:root {
  --navy: #061c59;
  --blue: #0876f9;
  --blue-strong: #0667e8;
  --blue-soft: #eaf4ff;
  --ink: #061752;
  --muted: #61759c;
  --line: #dbe7f5;
  --surface: #ffffff;
  --bg: #f1f7fd;
  --green: #079b70;
  --shadow: 0 4px 18px rgba(33, 84, 140, .08);
}

/* The reader participates in the platform navigation and owns its inner layout. */
.reader-nav-label { margin-left: auto; padding: 1px 5px; border: 1px solid #ffffff55; border-radius: 4px; font-size: 10px; line-height: 17px; }
#materialReaderHost { display: block; min-width: 0; }

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--ink); font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; background: radial-gradient(circle at 58% 0, #fff 0, #f4f9fe 33%, #edf5fb 100%); }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(8, 118, 249, .2); outline-offset: 2px; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 260px; display: flex; flex-direction: column; overflow: hidden; color: #fff; background: linear-gradient(160deg, #073f86 0%, #0755a9 55%, #063f88 100%); box-shadow: 8px 0 24px rgba(6, 45, 100, .12); }
.sidebar::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.03), transparent 45%); }
.brand { position: relative; z-index: 2; display: flex; flex: 0 0 80px; align-items: center; gap: 12px; height: 80px; padding: 0 17px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark { width: 43px; aspect-ratio: 1; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid #9fd2ff; border-radius: 50%; font-family: serif; font-size: 20px; font-weight: 800; background: radial-gradient(circle, #157ade 30%, #0450a4 31%); box-shadow: inset 0 0 0 3px rgba(255,255,255,.18), 0 0 0 1px #d9eeff; }
.brand strong { display: block; font-size: 16px; letter-spacing: 0; white-space: nowrap; }
.brand span { display: block; margin-top: 6px; color: #bfddff; font-size: 12px; }
.main-nav { position: relative; z-index: 2; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 8px 36px; scrollbar-width: thin; scrollbar-color: rgba(190,222,255,.55) transparent; }
.main-nav::-webkit-scrollbar { width: 6px; }
.main-nav::-webkit-scrollbar-thumb { border-radius: 6px; background: rgba(190,222,255,.55); }
.main-nav::-webkit-scrollbar-track { background: transparent; }
.nav-item { position: relative; width: 100%; min-height: 58px; display: flex; align-items: center; gap: 19px; margin-bottom: 5px; padding: 0 24px; border: 0; border-radius: 7px; color: #d9ebff; font-size: 18px; background: transparent; text-align: left; transition: .2s ease; }
.nav-item > span:nth-child(2) { flex: 0 0 auto; white-space: nowrap; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(47,153,255,.75), rgba(39,126,227,.62)); box-shadow: inset 4px 0 #48bcff; }
.nav-icon { width: 22px; text-align: center; font-size: 26px; font-weight: 500; line-height: 1; }
.folder-mini { position: relative; width: 22px; height: 15px; border-radius: 3px; background: currentColor; }
.folder-mini::before { content: ""; position: absolute; top: -4px; left: 2px; width: 9px; height: 5px; border-radius: 2px 2px 0 0; background: currentColor; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 12px; background: #ff5656; }
.nav-badge[hidden] { display: none; }
.city-art { position: absolute; left: 0; right: 0; bottom: 115px; height: 160px; opacity: .18; border-bottom: 36px solid #64adf0; }
.city-art::before { content: ""; position: absolute; inset: auto -20px -45px -20px; height: 86px; border-radius: 50% 50% 0 0; background: #9cd5ff; transform: rotate(3deg); }
.tower { position: absolute; bottom: 0; width: 18px; background: #78c1ff; }
.tower::after { content: ""; position: absolute; top: -12px; left: 5px; border: 4px solid transparent; border-bottom: 8px solid #78c1ff; }
.t1{left:22px;height:65px}.t2{left:58px;height:92px}.t3{left:92px;height:55px}.t4{left:135px;height:108px}.t5{left:181px;height:72px}.t6{left:225px;height:48px}
.sidebar-motto { position: relative; z-index: 2; width: 100%; margin: 34px 0 0; color: #b9dcff; font-size: 17px; line-height: 1.8; text-align: center; }
.workspace { width: calc(100% - 260px); min-height: 100vh; margin-left: 260px; }
.topbar { position: sticky; top: 0; z-index: 15; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 28px; border-bottom: 1px solid #dfebf7; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); box-shadow: 0 2px 10px rgba(34,75,125,.05); }
.breadcrumb { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb-item { flex: 0 0 auto; padding: 4px 0; border: 0; color: #58739a; background: none; cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.breadcrumb-item:hover { color: var(--blue); }
.breadcrumb-item:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.breadcrumb-item.current { color: var(--ink); font-size: 16px; font-weight: 700; }
.breadcrumb-separator { flex: 0 0 auto; color: #93a8c3; }
.briefcase-icon { color: var(--blue); font-size: 22px; }
.global-search-wrap { position: relative; width: 408px; margin-left: auto; }
.global-search { width: 100%; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid #cadbef; border-radius: 22px; color: #6f86aa; background: rgba(255,255,255,.78); }
.global-search:focus-within { border-color: #7eb8f7; box-shadow: 0 0 0 3px rgba(8,118,249,.1); }
.global-search-submit { width: 24px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; color: #607da5; font-size: 18px; background: transparent; cursor: pointer; }
.global-search-submit:hover { color: var(--blue); background: #edf6ff; }
.global-search-submit:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.global-search input, .table-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.global-search input::placeholder, .table-search input::placeholder { color: #8a9cba; }
.global-search-history { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; left: 0; padding: 10px; border: 1px solid #d8e6f4; border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 14px 35px rgba(35,72,121,.16); }
.global-search-history[hidden] { display: none; }
.global-search-history-head { min-height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px 7px; border-bottom: 1px solid #edf2f8; }
.global-search-history-head strong { color: #647a9d; font-size: 12px; }
.global-search-history-head button { padding: 4px 6px; border: 0; border-radius: 5px; color: #5d78a0; font-size: 12px; background: transparent; }
.global-search-history-head button:hover { color: var(--blue); background: #eef6ff; }
.global-search-history-list { display: grid; gap: 3px; padding-top: 6px; }
.global-search-history-item { min-height: 38px; display: flex; align-items: center; gap: 4px; border-radius: 7px; }
.global-search-history-item:hover { background: #f2f7fd; }
.global-search-history-query { min-width: 0; display: flex; align-items: center; gap: 9px; flex: 1; padding: 8px 9px; border: 0; color: #1a355e; text-align: left; background: transparent; }
.global-search-history-query span { color: #7d91ae; font-size: 15px; }
.global-search-history-query strong { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.global-search-history-remove { width: 30px; height: 30px; flex: 0 0 auto; border: 0; border-radius: 6px; color: #91a2ba; font-size: 18px; background: transparent; }
.global-search-history-remove:hover { color: #d64343; background: #fff0f0; }
.global-search-history-query:focus-visible, .global-search-history-remove:focus-visible, .global-search-history-head button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.global-search-history-empty { padding: 18px 8px; color: #8799b3; font-size: 13px; text-align: center; }
.icon-btn { border: 0; background: transparent; }
.notification { position: relative; width: 42px; height: 42px; font-size: 25px; }
.notification span { position: absolute; top: 1px; right: 1px; min-width: 18px; height: 18px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: 10px; background: #f04d4d; }
.notification span[hidden] { display: none; }
.profile { display: flex; align-items: center; gap: 10px; padding-left: 18px; border-left: 1px solid #e3edf7; }
.avatar { width: 38px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; background: linear-gradient(145deg, #1a4776, #0b1c43); box-shadow: inset 0 0 0 3px #eaf3fd; }
.profile strong, .profile span { display: block; white-space: nowrap; }
.profile strong { font-size: 14px; }.profile span { margin-top: 2px; color: #6a7b9d; font-size: 12px; }
.mobile-menu { display: none; font-size: 21px; }
main { padding: 16px 18px 20px; }
.view { display: none; }.view.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: .35; transform: translateY(4px) } }
.surface, .hero-banner { border: 1px solid #e1ecf7; border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.hero-banner { position: relative; min-height: 140px; display: flex; align-items: center; gap: 28px; overflow: hidden; padding: 20px 28px; }
.folder-hero { position: relative; z-index: 2; width: 110px; height: 100px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: linear-gradient(135deg, #eff8ff, #f7fbff); }
.folder-hero::before { content: ""; position: absolute; width: 77px; height: 62px; border-radius: 8px 8px 13px 13px; background: linear-gradient(145deg, #1f9dff, #116ce7); box-shadow: inset 0 2px rgba(255,255,255,.55), 0 8px 14px rgba(13,102,218,.24); transform: skew(-4deg); }
.folder-hero::after { content: ""; position: absolute; top: 20px; left: 24px; width: 35px; height: 15px; border-radius: 8px 8px 0 0; background: #238ef4; }
.folder-hero span { position: relative; z-index: 3; width: 46px; height: 33px; transform: translateY(9px); background: radial-gradient(circle at 50% 18%, #fff 0 5px, transparent 5.5px), radial-gradient(circle at 22% 35%, #fff 0 4px, transparent 4.5px), radial-gradient(circle at 78% 35%, #fff 0 4px, transparent 4.5px), radial-gradient(ellipse at 50% 100%, #fff 0 12px, transparent 12.5px), radial-gradient(ellipse at 18% 100%, #fff 0 8px, transparent 8.5px), radial-gradient(ellipse at 82% 100%, #fff 0 8px, transparent 8.5px); }
.hero-copy { position: relative; z-index: 2; }
.library-account-avatar { position: relative; z-index: 2; width: 100px; height: 100px; display: grid; place-items: center; flex: 0 0 auto; }
.library-people-icon { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 24px; color: #fff; background: linear-gradient(145deg, #299aff, #076fe6); box-shadow: 0 8px 20px #0876ef29; }
.library-people-icon svg { width: 58px; height: 58px; }
.library-sort-label { color: #547093; font-size: 14px; }
.library-filter-hint { margin: 2px 0 12px; color: #637a98; font-size: 13px; line-height: 1.7; }
.library-permission { display: block; margin-top: 5px; color: #607b99; font-size: 12px; font-weight: 400; }
#sortLibraries:disabled, #moreRecentLibraries:disabled { cursor: default; opacity: .55; }
.recent-empty { grid-column: 1 / -1; margin: 6px 0; color: #7489a3; font-size: 14px; }
.library-card .card-footer > span { min-width: 0; overflow-wrap: anywhere; }
.library-card .enter-btn { flex-shrink: 0; }
@media (max-width: 600px) { .library-account-avatar { width: 76px; height: 76px; }.library-people-icon { width: 64px; height: 64px; border-radius: 18px; }.library-people-icon svg { width: 44px; height: 44px; } }
.evaluation-file-list, .evaluation-attachments { display: grid; gap: 8px; margin-top: 10px; }
.evaluation-file-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evaluation-file-list span, .evaluation-attachments button { overflow-wrap: anywhere; word-break: break-word; }
.evaluation-attachments button { text-align: left; white-space: normal; }
.hero-copy h1, .detail-copy h1 { margin: 0 0 8px; letter-spacing: 0; font-size: 32px; }
.hero-copy p, .detail-copy p { margin: 0; color: #526b96; font-size: 16px; line-height: 1.8; }
.mountains { position: absolute; right: 0; bottom: 0; width: 55%; height: 95%; opacity: .5; clip-path: polygon(0 100%, 16% 67%, 25% 78%, 35% 38%, 45% 61%, 54% 27%, 60% 45%, 69% 14%, 75% 43%, 85% 24%, 94% 59%, 100% 40%, 100% 100%); background: linear-gradient(160deg, transparent 0 30%, #d7ebfd 31% 56%, #eef7fe 57%); }
.primary-btn, .outline-btn, .ghost-btn { min-height: 42px; padding: 0 21px; border-radius: 7px; font-weight: 600; }
.primary-btn { border: 1px solid var(--blue); color: #fff; background: linear-gradient(135deg, #0a7cff, #0564ea); box-shadow: 0 5px 12px rgba(8,112,244,.16); }
.primary-btn:hover { background: #0568e9; }
.primary-btn:disabled { cursor: not-allowed; opacity: .55; background: #7991ad; }
.outline-btn { border: 1px solid var(--blue); color: var(--blue); background: #fff; }
.ghost-btn { border: 1px solid var(--line); background: #f7fafe; }
.hero-action { position: relative; z-index: 2; margin-left: auto; min-height: 54px; padding-inline: 26px; font-size: 17px; }
.library-panel { margin-top: 12px; padding: 8px 12px 14px; }
.total-library-tabs { display: flex; gap: 6px; margin-top: 11px; padding: 7px 10px; }.total-library-tabs button { min-width: 104px; height: 34px; padding: 0 15px; border: 0; border-radius: 6px; color: #547093; font-weight: 600; background: transparent; }.total-library-tabs button:hover, .total-library-tabs button:focus-visible { color: #0876ef; outline: none; background: #eef7ff; }.total-library-tabs button.active { color: #0876ef; background: #eaf4ff; }.section-title.inline #peopleDemoMeta { margin-left: 8px; color: #788da9; font-size: 12px; font-weight: 400; }
.library-toolbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.segmented { display: flex; gap: 8px; }.segmented button { min-width: 104px; height: 40px; padding: 0 16px; border: 0; border-radius: 22px; font-weight: 600; background: #f2f7fd; }.segmented button.active { color: #fff; background: linear-gradient(135deg, #087cf8, #066ae9); box-shadow: 0 5px 12px rgba(8,112,244,.18); }
.toolbar-actions, .view-toggle { display: flex; align-items: center; gap: 10px; }
.select-btn, .reset-btn { height: 40px; padding: 0 15px; border: 1px solid #d5e2f1; border-radius: 7px; font-size: 14px; background: #fff; }
.view-toggle { gap: 0; padding-left: 8px; border-left: 1px solid #e0ebf6; }.view-toggle button { width: 40px; height: 40px; border: 0; border-radius: 6px; color: #5d7395; font-size: 23px; background: #f2f7fc; }.view-toggle button.active { color: #fff; background: var(--blue); }
.library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.library-card { position: relative; min-height: 254px; padding: 20px 20px 16px; border: 1px solid #dbe7f2; border-radius: 10px; background: #fff; transition: .2s ease; }
.library-card:hover { transform: translateY(-2px); border-color: #a9cef7; box-shadow: 0 10px 24px rgba(41,92,153,.11); }
.library-card .card-menu { position: absolute; top: 13px; right: 15px; border: 0; border-radius: 6px; color: #174780; font-size: 22px; background: transparent; }
.library-card .card-menu:hover, .library-card .card-menu:focus-visible, .more-btn:hover, .more-btn:focus-visible { color: #0876ef; background: #edf6ff; outline: none; }
.folder-card { position: relative; width: 75px; height: 58px; display: grid; place-items: center; margin: 0 0 14px 3px; border-radius: 7px 7px 12px 12px; color: #fff; font-size: 25px; background: linear-gradient(145deg, #27a3ff, #0871ec); box-shadow: inset 0 2px rgba(255,255,255,.45), 0 6px 12px rgba(24,113,228,.18); }
.folder-card::before { content: ""; position: absolute; top: -7px; left: 5px; width: 35px; height: 12px; border-radius: 6px 6px 0 0; background: #2197f7; }
.folder-card span { position: relative; z-index: 1; }.library-card h3 { margin: 0 0 8px; font-size: 18px; }.library-card .description { height: 47px; margin: 0; overflow: hidden; color: #657ca0; font-size: 14px; line-height: 1.65; }.card-stats { display: flex; align-items: center; gap: 20px; margin-top: 10px; font-weight: 700; }.card-stats span + span { padding-left: 20px; border-left: 1px solid #d8e4f0; }.card-stats strong { font-size: 19px; }.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: #6c81a2; font-size: 13px; }.enter-btn { border: 0; color: #0071f2; font-weight: 700; background: none; }
.library-grid.list { grid-template-columns: 1fr; }.library-grid.list .library-card { min-height: 94px; display: grid; grid-template-columns: 64px 1.1fr 1.4fr auto auto; align-items: center; gap: 18px; padding: 14px 22px; }.library-grid.list .folder-card { width: 58px; height: 45px; margin: 0; font-size: 19px; }.library-grid.list .library-card h3 { margin: 0; }.library-grid.list .description { height: auto; }.library-grid.list .card-stats, .library-grid.list .card-footer { margin: 0; }.library-grid.list .card-footer { gap: 30px; }.library-grid.list .card-menu { display: none; }
.empty-state { min-height: 350px; padding-top: 90px; color: #7489aa; text-align: center; }.empty-state span { display: block; font-size: 52px; }.empty-state strong { display: block; margin-top: 10px; color: var(--ink); }.empty-state p { margin-top: 8px; }
.recent-panel { margin-top: 12px; padding: 12px 16px; }.section-heading { display: flex; align-items: center; justify-content: space-between; }.section-heading h2 { margin: 0; font-size: 15px; }.section-heading h2 span { margin-right: 8px; color: var(--blue); }.section-heading button { border: 0; color: var(--blue); background: none; }.recent-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }.recent-item { width: 100%; min-height: 57px; display: flex; align-items: center; gap: 14px; padding: 8px 16px; border: 1px solid #dde9f4; border-radius: 8px; color: var(--ink); text-align: left; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }.recent-item:hover { border-color: #9fc9f5; background: #f8fbff; box-shadow: 0 6px 16px rgba(33, 84, 140, .09); }.recent-item:focus-visible { border-color: #0876f9; outline: 3px solid rgba(8, 118, 249, .2); outline-offset: 2px; }.recent-item .folder-card { width: 42px; height: 32px; margin: 0; border-radius: 5px; font-size: 13px; }.recent-item .folder-card::before { width: 20px; height: 7px; top: -4px; }.recent-item div:nth-child(2) { min-width: 0; flex: 1; }.recent-item strong, .recent-item span { display: block; }.recent-item strong { font-size: 13px; }.recent-item span { margin-top: 3px; color: #7488a6; font-size: 12px; }.recent-item .recent-arrow { flex: 0 0 auto; margin: 0; color: var(--ink); font-size: 23px; line-height: 1; }
.library-action-menu { position: fixed; z-index: 60; width: 200px; padding: 6px; border: 1px solid #d8e5f1; border-radius: 9px; box-shadow: 0 14px 34px rgba(27, 68, 113, .18); background: #fff; }
.library-action-menu button { width: 100%; min-height: 36px; padding: 0 11px; border: 0; border-radius: 6px; color: #c84242; text-align: left; background: transparent; }.library-action-menu button:hover, .library-action-menu button:focus-visible { color: #ad2727; outline: none; background: #fff0f0; }.library-action-protected { margin: 3px; padding: 8px 9px; border-radius: 6px; color: #667c9d; font-size: 12px; line-height: 1.5; background: #f4f8fc; }.dissolve-library-modal { max-width: 440px; }.dissolve-library-modal > p { line-height: 1.75; }.dissolve-icon { color: #c63d3d; background: #fff0f0; }.danger-btn { min-width: 92px; min-height: 36px; border: 1px solid #c83d3d; border-radius: 6px; color: #fff; background: #c83d3d; }.danger-btn:hover, .danger-btn:focus-visible { border-color: #aa2626; outline: none; background: #aa2626; }
.detail-header { min-height: 148px; display: flex; align-items: center; gap: 26px; padding: 14px 27px; overflow: hidden; background: linear-gradient(100deg, #fff 0 62%, #f5faff); }.folder-hero.small { width: 130px; height: 116px; }.detail-copy { min-width: 0; max-width: 530px; }.title-row { display: flex; align-items: center; gap: 14px; }.type-tag { padding: 3px 11px; border-radius: 4px; color: #0876ef; font-size: 14px; background: #e8f4ff; }.detail-copy h1 { font-size: 28px; }.detail-metrics { display: flex; align-items: center; gap: 28px; margin-left: auto; }.detail-metrics > div { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 13px; }.metric-icon { grid-row: 1 / 3; color: var(--blue); font-size: 31px; }.detail-metrics strong { font-size: 30px; }.detail-metrics small { margin-left: 6px; font-size: 14px; }.detail-metrics p { margin: 2px 0 0; color: #647a9d; font-size: 13px; }.detail-metrics i { width: 1px; height: 54px; background: #d9e5f1; }.detail-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }.detail-actions .primary-btn, .detail-actions .outline-btn { min-width: 124px; padding-inline: 16px; white-space: nowrap; }.more-btn { width: 38px; height: 42px; border: 0; border-radius: 6px; font-size: 25px; background: transparent; }
.overview-panel, .sublibrary-panel, .people-panel { margin-top: 11px; padding: 9px 13px 12px; }.section-title { min-height: 28px; display: flex; align-items: center; }.section-title h2 { position: relative; margin: 0; padding-left: 18px; font-size: 20px; }.section-title h2::before { content: ""; position: absolute; left: 0; top: 3px; width: 6px; height: 22px; border-radius: 3px; background: var(--blue); }.section-title.inline span { margin-left: 12px; color: #435b82; }
.section-more { margin-left: auto; padding: 5px 7px; border: 0; color: #0874e9; font-size: 13px; font-weight: 600; background: transparent; }
.section-more:hover { text-decoration: underline; }
.overview-toggle { min-width: 70px; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-left: auto; padding: 0 9px; border: 1px solid #d5e3f2; border-radius: 5px; color: #45658d; font-size: 12px; background: #f8fbfe; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.overview-toggle:hover { border-color: #9bc8f6; color: #0874e9; background: #eef7ff; }
.overview-toggle i { font-size: 11px; font-style: normal; transition: transform .22s ease; }
.overview-collapse { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .26s ease, opacity .2s ease; }
.overview-collapse[hidden] { display: none; }
.overview-collapse-inner { min-height: 0; overflow: hidden; }
.overview-panel.is-collapsed { padding-bottom: 9px; }
.overview-panel.is-collapsed .overview-collapse { grid-template-rows: 0fr; opacity: 0; }
.overview-panel.is-collapsed .overview-toggle i { transform: translateY(-1px); }
.chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }.chart-card { min-height: 212px; padding: 12px 17px 8px; border: 1px solid #dbe7f2; border-radius: 8px; }.chart-head { display: flex; align-items: center; justify-content: space-between; }.chart-head h3 { margin: 0; font-size: 17px; }.chart-head h3 span { margin-right: 8px; color: var(--blue); }.chart-head small { color: #6a80a0; }.bars { position: relative; height: 126px; display: flex; align-items: end; justify-content: space-around; gap: 12px; margin: 10px 3px 0; padding: 0 4px 23px; border-bottom: 1px solid #c7d7e9; background: repeating-linear-gradient(to top, transparent 0 26px, #e1eaf4 27px 28px); }.bar-item { height: 100%; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; }.bar { position: relative; width: min(44px, 68%); height: calc(var(--value) * .85%); min-height: 10px; border-radius: 3px 3px 0 0; background: linear-gradient(#1188fc, #3598f6); box-shadow: 0 0 10px rgba(15,123,240,.12); }.bar strong { position: absolute; top: -20px; width: 100%; font-size: 13px; text-align: center; }.bar-item span { position: absolute; bottom: 2px; color: #4f668b; font-size: 12px; white-space: nowrap; }.chart-note { min-height: 27px; height: auto; line-height: 1.5; display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; padding: 6px 10px; border-radius: 5px; color: #61789e; font-size: 12px; background: #f4f8fc; }.chart-note b { color: var(--blue); }
.chart-grid.without-rank-chart { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sublibrary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 5px; }.sublibrary-card { min-height: 83px; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid #d9e6f2; border-radius: 8px; background: #fff; }.sublibrary-card .folder-card { width: 69px; height: 53px; flex: 0 0 auto; margin: 0; }.sublibrary-card h3, .sublibrary-card p { margin: 0; }.sublibrary-card h3 { font-size: 15px; }.sublibrary-card strong { display: block; margin-top: 3px; font-size: 19px; }.sublibrary-card p { color: #6c80a0; font-size: 12px; }.sublibrary-card button { margin-left: auto; border: 0; color: var(--blue); font-size: 27px; background: none; }

/* All sublibraries */
.all-sublibraries-header { min-height: 126px; display: grid; grid-template-columns: 42px 78px minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 16px 22px; overflow: hidden; background: linear-gradient(105deg, #fff 0 68%, #f2f8fe); }
.subpage-back { align-self: start; width: 38px; height: 38px; margin-top: 4px; border: 1px solid #d9e6f2; border-radius: 6px; color: #3c587e; font-size: 27px; background: #fff; }
.all-sublibraries-icon { position: relative; width: 76px; height: 60px; display: grid; place-items: center; border-radius: 8px 8px 12px 12px; color: #fff; font-size: 20px; font-weight: 700; background: linear-gradient(145deg, #27a3ff, #0871ec); box-shadow: inset 0 2px rgba(255,255,255,.45), 0 7px 14px rgba(24,113,228,.18); }
.all-sublibraries-icon::before { content: ""; position: absolute; top: -8px; left: 6px; width: 35px; height: 12px; border-radius: 6px 6px 0 0; background: #2197f7; }
.all-sublibraries-icon span { position: relative; z-index: 1; }
.all-sublibraries-copy > span { color: #7186a5; font-size: 12px; }
.all-sublibraries-copy h1 { margin: 3px 0 5px; font-size: 26px; }
.all-sublibraries-copy p { margin: 0; color: #657b9d; font-size: 13px; }
.all-sublibraries-total { display: grid; justify-items: center; min-width: 88px; padding: 4px 22px; border-left: 1px solid #dce7f2; }
.all-sublibraries-total strong { font-size: 28px; }.all-sublibraries-total span { margin-top: 2px; color: #7085a3; font-size: 11px; }
.all-sublibraries-header > .primary-btn { white-space: nowrap; }
.all-sublibraries-panel { margin-top: 11px; padding: 10px 13px 14px; }
.all-sublibraries-toolbar { min-height: 44px; display: flex; align-items: center; gap: 9px; }
.all-sublibraries-toolbar .section-title { margin-right: auto; white-space: nowrap; }
.sublibrary-search { width: 290px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid #d4e1ef; border-radius: 7px; color: #7b8fab; background: #fff; }
.sublibrary-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.all-sublibraries-toolbar select { height: 36px; min-width: 116px; padding: 0 28px 0 11px; border: 1px solid #d5e2ef; border-radius: 7px; color: #29466e; background: #fff; }
.all-sublibraries-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 7px; }
.all-sublibraries-grid[hidden] { display: none; }
.all-sublibrary-card { position: relative; min-width: 0; min-height: 174px; padding: 14px 15px 11px; border: 1px solid #dbe7f2; border-radius: 8px; background: #fff; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.all-sublibrary-card:hover { transform: translateY(-2px); border-color: #a5cdf5; box-shadow: 0 8px 20px rgba(33,81,134,.1); }
.all-sublibrary-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.all-sublibrary-card .folder-card { width: 55px; height: 43px; margin: 0; border-radius: 6px 6px 9px 9px; font-size: 15px; }
.all-sublibrary-card .folder-card::before { top: -5px; width: 27px; height: 9px; }
.sublibrary-status { padding: 3px 8px; border-radius: 10px; color: #078a67; font-size: 10px; background: #e2f7ef; }
.sublibrary-status.empty { color: #b36a08; background: #fff0d9; }
.sublibrary-type { position: absolute; top: 17px; left: 81px; color: #7185a3; font-size: 10px; }
.all-sublibrary-card h3 { margin: 10px 0 4px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.all-sublibrary-card > p { height: 18px; margin: 0; overflow: hidden; color: #7185a3; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.all-sublibrary-card-meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 7px; color: #7b8ea9; font-size: 10px; }
.all-sublibrary-card-meta strong { color: #173b69; font-size: 20px; }
.all-sublibrary-card > button { width: 100%; height: 29px; display: flex; align-items: center; justify-content: space-between; margin-top: 7px; padding: 0 9px; border: 0; border-radius: 4px; color: #0874e9; font-size: 11px; background: #f1f7fe; }
.all-sublibrary-card > button span { font-size: 18px; }
.sublibrary-empty { min-height: 430px; display: grid; place-content: center; justify-items: center; color: #8295af; text-align: center; }
.sublibrary-empty[hidden] { display: none; }.sublibrary-empty > span { font-size: 46px; }.sublibrary-empty strong { margin-top: 8px; color: #344f74; }.sublibrary-empty p { margin: 7px 0 0; font-size: 12px; }
.people-toolbar { min-height: 42px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }.people-toolbar .section-title { margin-right: auto; white-space: nowrap; }.table-search { width: 350px; min-width: 240px; height: 36px; display: flex; flex: 1 1 280px; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid #d4e1ef; border-radius: 8px; color: #7b8fab; }.people-toolbar select { height: 36px; min-width: 132px; flex: 0 0 auto; padding: 0 34px 0 14px; border: 1px solid #d5e2ef; border-radius: 7px; color: #223c69; background: #fff; }.people-toolbar .select-btn, .people-toolbar .reset-btn { height: 36px; flex: 0 0 auto; white-space: nowrap; }#moreFilters { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }#moreFilters span { width: 12px; display: inline-grid; place-items: center; font-size: 15px; line-height: 1; }.reset-btn { border-color: transparent; background: transparent; }
.table-wrap { overflow-x: auto; margin-top: 5px; }.table-wrap table { width: 100%; min-width: 950px; border-collapse: collapse; font-size: 13px; }.table-wrap th { height: 31px; color: #233c69; font-weight: 600; background: #eef4fa; }.table-wrap td { height: 29px; padding: 0 8px; border-bottom: 1px solid #d8e4ef; text-align: center; }.table-wrap td:nth-child(2) { color: #056ee8; font-weight: 700; }.row-menu { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 0; border-radius: 6px; color: #59718f; font-size: 19px; line-height: 1; background: transparent; cursor: pointer; }.row-menu:hover, .row-menu:focus-visible, .row-menu[aria-expanded="true"] { color: #076eea; outline: none; background: #edf5ff; }.person-row-action-menu { position: fixed; z-index: 65; width: 168px; padding: 5px; border: 1px solid #d8e5f1; border-radius: 8px; box-shadow: 0 12px 28px rgba(27,68,113,.18); background: #fff; }.person-row-action-menu button { width: 100%; min-height: 35px; padding: 0 10px; border: 0; border-radius: 5px; color: #263f68; text-align: left; background: transparent; cursor: pointer; }.person-row-action-menu button:hover, .person-row-action-menu button:focus-visible { outline: none; background: #f1f6fc; }.person-row-action-menu button.danger { color: #c84242; }.person-row-action-menu button.danger:hover, .person-row-action-menu button.danger:focus-visible { background: #fff0f0; }.status { display: inline-grid; min-width: 48px; height: 23px; place-items: center; border-radius: 12px; color: var(--green); font-size: 12px; background: #dff8ed; }.table-footer { min-height: 40px; display: flex; align-items: center; gap: 18px; color: #657a9d; font-size: 12px; }.table-footer select { height: 30px; border: 1px solid #d7e3ef; border-radius: 6px; color: #315077; background: #fff; }.pagination { display: flex; align-items: center; gap: 4px; margin-left: auto; }.pagination button { min-width: 32px; height: 32px; border: 0; border-radius: 5px; background: transparent; }.pagination button:hover:not(:disabled) { color: var(--blue); background: #edf5ff; }.pagination button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }.pagination button:disabled { cursor: not-allowed; color: #aebdd0; }.pagination button.active { color: #fff; background: var(--blue); }.pagination-ellipsis { min-width: 20px; text-align: center; }
.toast { position: fixed; z-index: 60; right: 28px; bottom: 28px; max-width: 340px; padding: 13px 18px; border-radius: 8px; color: #fff; font-size: 14px; background: #113867; box-shadow: 0 10px 30px rgba(5,35,74,.28); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s ease; }.toast.show { opacity: 1; transform: none; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3,19,53,.44); backdrop-filter: blur(3px); }.modal-backdrop[hidden] { display: none; }.modal { position: relative; width: min(460px, 100%); padding: 28px; border-radius: 12px; background: #fff; box-shadow: 0 25px 80px rgba(4,26,64,.25); }.modal-close { position: absolute; top: 13px; right: 13px; width: 36px; height: 36px; border-radius: 50%; font-size: 25px; }.modal-icon { margin-bottom: 18px; color: var(--blue); transform: scale(1.4); transform-origin: left bottom; }.modal h2 { margin: 0 0 8px; }.modal > p { margin: 0 0 20px; color: #677c9d; }.modal label { display: block; margin-top: 15px; }.modal label span { display: block; margin-bottom: 7px; font-size: 14px; }.modal input, .modal textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfdeed; border-radius: 7px; outline: 0; resize: vertical; }.modal input:focus, .modal textarea:focus { border-color: var(--blue); }.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* Add people picker */
.person-picker-backdrop { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(3,19,53,.52); backdrop-filter: blur(4px); }
.person-picker-backdrop[hidden] { display: none; }
.person-picker { width: min(1180px, 100%); max-height: min(860px, calc(100vh - 44px)); display: flex; overflow: hidden; flex-direction: column; border-radius: 13px; background: #fff; box-shadow: 0 28px 90px rgba(4,26,64,.3); }
.person-picker-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 20px 24px 16px; border-bottom: 1px solid #dce7f2; background: linear-gradient(110deg, #fff 45%, #eef7ff); }
.person-picker-header > div > span { color: #3683cc; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.person-picker-header h2 { margin: 4px 0; color: #102e5c; font-size: 23px; }
.person-picker-header p { margin: 0; color: #6b81a1; font-size: 12px; }
.person-picker-close { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; font-size: 24px; }
.person-picker-controls { min-height: 0; max-height: 44vh; overflow-y: auto; flex-shrink: 0; }
.person-picker-source-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px 0; }
.person-picker-source-bar .person-picker-sources { min-width: 0; padding: 0; }
.person-picker-upload { flex: 0 0 auto; min-height: 34px; }
.person-picker-header, .person-picker-footer, .person-picker-meta { flex-shrink: 0; }
.person-picker-sources { display: flex; overflow-x: auto; gap: 8px; padding: 12px 24px 0; scrollbar-width: thin; }
.person-picker-sources button { min-width: max-content; height: 34px; padding: 0 15px; border: 1px solid #d5e3f1; border-radius: 18px; color: #426184; font-weight: 600; background: #f7fafe; }
.person-picker-sources button:hover, .person-picker-sources button:focus-visible { border-color: #86baf0; color: #086fdc; outline: 0; }
.person-picker-sources button.active { border-color: #0876ef; color: #fff; background: #0876ef; box-shadow: 0 5px 14px rgba(8,118,239,.2); }
.person-picker-toolbar { display: grid; grid-template-columns: minmax(240px, 1.7fr) repeat(3, minmax(125px, 1fr)) auto auto; gap: 8px; padding: 12px 24px; }
.person-picker-search { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #d2e0ee; border-radius: 7px; color: #7b8fab; }
.person-picker-search:focus-within { border-color: #1681ed; box-shadow: 0 0 0 3px rgba(22,129,237,.1); }
.person-picker-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: #17375f; background: transparent; }
.person-picker-toolbar select, .person-picker-advanced select, .person-picker-advanced input { width: 100%; height: 36px; min-width: 0; padding: 0 34px 0 12px; border: 1px solid #d2e0ee; border-radius: 7px; color: #29486e; outline: 0; background: #fff; }
.person-picker-toolbar select:focus, .person-picker-advanced select:focus, .person-picker-advanced input:focus { border-color: #1681ed; box-shadow: 0 0 0 3px rgba(22,129,237,.1); }
.person-picker-advanced-toggle, #personPickerReset { height: 36px; white-space: nowrap; }
.person-picker-advanced-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.person-picker-advanced-toggle span { display: inline-grid; place-items: center; width: 12px; line-height: 1; font-size: 15px; }
.person-picker-advanced { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 24px 12px; padding: 12px 14px; border: 1px solid #dce8f4; border-radius: 8px; background: #f7fafd; }
.person-picker-advanced[hidden] { display: none; }
.person-picker-advanced label span { display: block; margin-bottom: 6px; color: #607796; font-size: 11px; }
.person-picker-help { margin: 0 24px 8px; color: #657c9c; font-size: 12px; line-height: 1.65; }
.picker-extra-filters { grid-column: 1 / -1; min-width: 0; padding-top: 12px; border-top: 1px solid #dce8f4; }
.picker-filter-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.picker-filter-heading strong { color: #29486e; font-size: 13px; }
.picker-extra-filters > p { margin: 8px 0; color: #657c9c; font-size: 12px; }
.picker-filter-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) minmax(130px, 1fr) minmax(160px, 1.5fr) auto; align-items: center; gap: 8px; margin-top: 8px; }
.picker-filter-row > * { min-width: 0; }
.picker-filter-row input:disabled { background: #edf2f7; color: #7185a3; }
#peopleTable td:nth-child(2) { color: inherit; font-weight: 400; }
.attachment-owner-review { margin-top: 18px; padding: 14px; border: 1px solid #ead9b5; border-radius: 8px; background: #fffbf2; color: #725d37; }
.attachment-owner-review summary { cursor: pointer; font-weight: 600; }
.attachment-owner-review p { font-size: 13px; line-height: 1.7; }
.attachment-owner-review article { padding: 12px 0; border-top: 1px solid #eadfc9; overflow-wrap: anywhere; }
.attachment-owner-review article > strong, .attachment-owner-review article > small { display: block; margin-bottom: 8px; }
.attachment-owner-review article > div { display: flex; gap: 8px; flex-wrap: wrap; }
.department-bars { display: grid; gap: 10px; margin: 14px 3px 10px; }
.department-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: baseline; }
.department-bar-name { color: #4f668b; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.department-bar-row > strong { color: #142f5a; font-size: 13px; }
.department-bar-track { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 4px; background: #eaf2fb; }
.department-bar-track > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1188fc, #3598f6); }
@media (max-width: 700px) { .picker-filter-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }.picker-filter-row > input { grid-column: 1; } }
.person-picker-meta { display: flex; align-items: center; justify-content: space-between; min-height: 35px; padding: 0 24px; color: #657c9c; font-size: 12px; }
.person-picker-meta button { border: 0; color: #0873e8; background: transparent; }
.person-picker-meta button:disabled { color: #9eafc2; }
.person-picker-table-wrap { min-height: 100px; flex: 1 1 230px; overflow: auto; margin: 0 24px; border: 1px solid #dce7f2; border-radius: 8px; }
.person-picker-table-wrap table { width: 100%; min-width: 950px; border-collapse: collapse; font-size: 12px; }
.person-picker-table-wrap thead { position: sticky; z-index: 1; top: 0; }
.person-picker-table-wrap th { height: 38px; padding: 0 10px; color: #29486e; text-align: left; background: #eef5fb; }
.person-picker-table-wrap th:first-child, .person-picker-table-wrap td:first-child { width: 42px; text-align: center; }
.person-picker-table-wrap td { min-height: 48px; padding: 8px 10px; border-bottom: 1px solid #e3ebf3; color: #3e5879; vertical-align: middle; }
.person-picker-table-wrap tr:last-child td { border-bottom: 0; }
.person-picker-table-wrap tbody tr:hover { background: #f8fbfe; }
.person-picker-table-wrap tr.is-member { background: #f8fafc; opacity: .68; }
.person-picker-table-wrap td > strong { display: block; color: #123465; font-size: 13px; }
.person-picker-table-wrap td > span, .person-picker-table-wrap td > small { display: block; }
.person-picker-table-wrap td > small { margin-top: 3px; color: #8496ae; font-size: 10px; }
.person-picker-table-wrap td:nth-child(2) small { color: #07876b; }
.picker-memberships { display: flex; flex-wrap: wrap; gap: 4px; max-width: 290px; }
.picker-memberships span { padding: 3px 6px; border-radius: 9px; color: #2c6ca9; font-size: 9px; background: #eaf4fe; }
.picker-memberships em { color: #94a3b5; font-style: normal; }
.picker-search-match-cell { min-width: 280px; max-width: 380px; background: #f7fbff; }
.picker-search-matches { display: grid; gap: 5px; }
.picker-search-matches > div { display: grid; grid-template-columns: minmax(82px, auto) 1fr; gap: 7px; align-items: start; }
.picker-search-matches b { color: #2672b8; font-size: 10px; font-weight: 700; }
.picker-search-matches span { color: #173e6b; font-size: 11px; line-height: 1.4; word-break: break-all; }
.picker-search-fallback { color: #7890aa; font-size: 10px; }
.person-picker-empty td { height: 220px; text-align: center !important; }
.person-picker-empty span, .person-picker-empty strong, .person-picker-empty p { display: block; }
.person-picker-empty span { color: #8fa2b8; font-size: 36px; }
.person-picker-empty strong { margin-top: 7px; color: #3c5677; }
.person-picker-empty p { margin: 5px 0 0; color: #8a9bb0; }
.person-picker-footer { display: flex; align-items: center; gap: 10px; padding: 14px 24px 18px; }
#personPickerSelection { display: flex; align-items: baseline; gap: 5px; margin-right: auto; color: #6b80a0; }
#personPickerSelection strong { color: #0876ed; font-size: 23px; }
#personPickerSubmit:disabled { cursor: not-allowed; opacity: .5; }

@media (min-width: 981px) and (max-width: 1400px) {
  .people-toolbar { flex-wrap: wrap; }
  .people-toolbar .section-title { width: 100%; margin-right: 0; }
  .people-toolbar .table-search { min-width: 240px; flex: 1; }
}
@media (max-width: 1350px) {
  .sidebar { width: 220px; }.workspace { width: calc(100% - 220px); margin-left: 220px; }.brand strong { font-size: 13px; }.topbar { padding-inline: 18px; }.global-search-wrap { width: 320px; }.library-grid { grid-template-columns: repeat(3, 1fr); }.detail-header { flex-wrap: wrap; }.detail-copy { max-width: 480px; }.detail-metrics { margin-left: 0; }.detail-actions { margin-left: auto; }.people-toolbar { flex-wrap: wrap; }.people-toolbar .section-title { width: 100%; }.table-search { flex: 1; }
  .all-sublibraries-toolbar { flex-wrap: wrap; }.all-sublibraries-toolbar .section-title { width: 100%; }.sublibrary-search { flex: 1; }
}
@media (min-width: 1351px) and (max-width: 1700px) {
  .detail-header { gap: 20px; }
  .folder-hero.small { width: 110px; }
  .detail-copy { max-width: 500px; }
  .detail-metrics { gap: 20px; }
  .detail-actions { gap: 7px; margin-left: 0; }
}
@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }.sidebar.open { transform: none; }.workspace { width: 100%; margin-left: 0; }.mobile-menu { display: block; }.profile > div:not(.avatar), .profile > button, .notification { display: none; }.library-grid { grid-template-columns: repeat(2, 1fr); }.chart-grid, .chart-grid.without-rank-chart { grid-template-columns: 1fr; }.sublibrary-grid { grid-template-columns: repeat(2, 1fr); }.recent-list { grid-template-columns: 1fr; }.detail-actions { width: 100%; margin: 0; justify-content: flex-end; }
  .all-sublibraries-header { grid-template-columns: 42px 70px minmax(0, 1fr); }.all-sublibraries-total { grid-column: 2; border: 0; padding: 0; }.all-sublibraries-header > .primary-btn { grid-column: 3; justify-self: end; }.all-sublibraries-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .topbar { height: 58px; gap: 10px; padding: 0 12px; }.breadcrumb { flex: 1; min-width: 0; gap: 8px; }.breadcrumb-item.current { font-size: 15px; }.global-search-wrap { width: auto; min-width: 0; flex: 1; }.profile { padding-left: 0; border: 0; }.avatar { width: 34px; } main { padding: 10px; }.hero-banner { min-height: 220px; align-items: flex-start; gap: 16px; padding: 18px; }.folder-hero { width: 80px; height: 80px; }.folder-hero::before { width: 59px; height: 48px; }.folder-hero::after { top: 18px; left: 18px; }.folder-hero span { width: 36px; height: 28px; }.hero-copy h1 { font-size: 24px; }.hero-copy p { font-size: 14px; }.hero-action { position: absolute; right: 18px; bottom: 18px; min-height: 44px; font-size: 14px; }.library-toolbar { align-items: stretch; flex-direction: column; padding: 5px 0 12px; }.segmented { overflow-x: auto; }.segmented button { min-width: 92px; }.toolbar-actions { justify-content: flex-end; }.library-grid { grid-template-columns: 1fr; }.library-card { min-height: 238px; }.library-grid.list .library-card { display: block; min-height: 220px; }.library-grid.list .folder-card { margin-bottom: 12px; }.detail-header { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px 14px; padding: 14px; }.folder-hero.small { width: 76px; height: 70px; }.detail-copy { width: auto; }.detail-copy h1 { font-size: 22px; }.title-row { align-items: flex-start; flex-direction: column; gap: 2px; }.type-tag { font-size: 12px; }.detail-copy p { display: none; }.detail-metrics { grid-column: 1 / -1; width: 100%; justify-content: space-around; margin: 4px 0 0; }.detail-actions { grid-column: 1 / -1; width: 100%; overflow-x: auto; justify-content: flex-start; }.detail-actions button { flex: 0 0 auto; }.sublibrary-grid { grid-template-columns: 1fr; }.people-toolbar .table-search { width: 100%; flex: auto; }.people-toolbar select { min-width: calc(50% - 5px); flex: 1; }.people-toolbar .select-btn { flex: 1; }.section-title h2 { font-size: 18px; }.table-footer { flex-wrap: wrap; }.pagination { width: 100%; overflow-x: auto; margin: 0; justify-content: center; }
  .overview-toggle { min-width: 66px; height: 28px; padding-inline: 8px; }
  .all-sublibraries-header { grid-template-columns: 34px 55px minmax(0, 1fr); gap: 9px; padding: 12px; }.subpage-back { width: 32px; height: 34px; margin: 0; font-size: 23px; }.all-sublibraries-icon { width: 53px; height: 45px; font-size: 14px; }.all-sublibraries-copy > span { font-size: 10px; }.all-sublibraries-copy h1 { font-size: 21px; }.all-sublibraries-copy p { display: none; }.all-sublibraries-total { display: flex; align-items: baseline; justify-self: start; gap: 5px; }.all-sublibraries-total strong { font-size: 22px; }.all-sublibraries-header > .primary-btn { min-height: 36px; height: 36px; padding: 0 12px; font-size: 12px; }
  .all-sublibraries-panel { padding: 9px 10px 12px; }.all-sublibraries-toolbar .section-title { width: 100%; }.sublibrary-search { width: 100%; flex: auto; }.all-sublibraries-toolbar select { min-width: calc(50% - 5px); flex: 1; }.all-sublibraries-toolbar .reset-btn { flex: 1; }.all-sublibraries-grid { grid-template-columns: 1fr; }.all-sublibrary-card { min-height: 164px; }.sublibrary-empty { min-height: 320px; }
}

@media (min-width: 641px) {
  .library-panel:has(.library-grid:not(.list)) { padding: 6px 10px 10px; }
  .library-panel:has(.library-grid:not(.list)) .library-toolbar { min-height: 42px; }
  .library-panel:has(.library-grid:not(.list)) .segmented button,
  .library-panel:has(.library-grid:not(.list)) .select-btn,
  .library-panel:has(.library-grid:not(.list)) .view-toggle button { height: 36px; }
  .library-panel:has(.library-grid:not(.list)) .view-toggle button { width: 36px; }
  .library-grid:not(.list) { gap: 11px; }
  .library-grid:not(.list) .library-card { min-height: 220px; padding: 14px 16px 12px; }
  .library-grid:not(.list) .library-card .card-menu { top: 10px; right: 12px; font-size: 20px; }
  .library-grid:not(.list) .folder-card { width: 62px; height: 48px; margin: 0 0 10px 2px; border-radius: 6px 6px 10px 10px; font-size: 21px; }
  .library-grid:not(.list) .folder-card::before { top: -6px; width: 30px; height: 10px; }
  .library-grid:not(.list) .library-card h3 { margin-bottom: 5px; font-size: 17px; }
  .library-grid:not(.list) .library-card .description { height: 42px; font-size: 13px; line-height: 1.6; }
  .library-grid:not(.list) .card-stats { gap: 18px; margin-top: 6px; }
  .library-grid:not(.list) .card-stats span + span { padding-left: 18px; }
  .library-grid:not(.list) .card-stats strong { font-size: 18px; }
  .library-grid:not(.list) .card-footer { margin-top: 8px; font-size: 12px; }
}

/* Person search results */
.person-search-heading { min-height: 92px; display: flex; align-items: center; padding: 0 3px 10px; }
.person-search-heading .eyebrow { color: #2d72b7; font-size: 12px; letter-spacing: .12em; }
.person-search-heading h1 { margin: 6px 0 5px; font-size: 27px; }
.person-search-heading p { margin: 0; color: #667c9d; font-size: 13px; }
.person-search-panel { min-height: 420px; padding: 16px; }
.person-search-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.person-search-card { min-width: 0; display: flex; flex-direction: column; padding: 16px; border: 1px solid #dbe7f2; border-radius: 9px; background: #fff; box-shadow: 0 4px 14px rgba(31,79,132,.05); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.person-search-card:hover { transform: translateY(-2px); border-color: #9fcaf7; box-shadow: 0 9px 22px rgba(31,79,132,.11); }
.person-search-card-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.person-search-avatar { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 10px; color: #fff; font-size: 19px; font-weight: 700; background: linear-gradient(145deg, #248eea, #1763ba); }
.person-search-avatar:hover, .person-search-avatar:focus-visible { background: linear-gradient(145deg, #0d79dc, #0d3a6d); }
.person-search-identity { min-width: 0; }
.person-search-name { max-width: 100%; overflow: hidden; padding: 0; border: 0; color: var(--ink); font-size: 18px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; background: transparent; }
.person-search-name:hover { color: var(--blue); }
.person-search-identity p { margin: 5px 0 0; overflow: hidden; color: #7085a3; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.person-search-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 15px; color: #536c8f; font-size: 12px; }
.person-search-libraries { min-height: 77px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #e4edf5; }
.person-search-libraries strong { display: block; margin-bottom: 8px; color: #274d78; font-size: 12px; }
.person-search-libraries div { display: flex; flex-wrap: wrap; gap: 6px; }
.person-search-libraries span { padding: 4px 8px; border: 1px solid #cfe4f8; border-radius: 12px; color: #1663a6; font-size: 11px; background: #f0f7ff; }
.person-search-open { width: 100%; height: 34px; display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding: 0 11px; border: 0; border-radius: 5px; color: #0873e9; font-size: 12px; font-weight: 700; background: #eff6fd; }
.person-search-open:hover, .person-search-open:focus-visible { color: #fff; background: #0876f9; }
.person-search-open span { font-size: 18px; }
.person-search-empty { min-height: 350px; display: grid; place-content: center; justify-items: center; color: #7e91aa; text-align: center; }
.person-search-empty[hidden] { display: none; }
.person-search-empty > span { font-size: 48px; }
.person-search-empty strong { margin-top: 8px; color: #355174; }
.person-search-empty p { margin: 6px 0 0; font-size: 12px; }
.search-result-section + .search-result-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e4edf5; }
.search-result-section[hidden] { display: none; }
.search-result-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.search-result-section-head h2 { margin: 0; color: #183b68; font-size: 16px; }
.search-result-section-head span { color: #7186a5; font-size: 12px; }
.library-search-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.library-search-card { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid #d8e7f5; border-radius: 9px; background: linear-gradient(135deg, #fbfdff, #f1f8ff); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.library-search-card:hover { border-color: #a6cff5; box-shadow: 0 8px 18px rgba(31,79,132,.1); transform: translateY(-1px); }
.library-search-card-icon { width: 42px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 700; background: linear-gradient(145deg, #299cff, #086ee6); box-shadow: 0 5px 10px rgba(8,110,230,.16); }
.library-search-card-copy { min-width: 0; }
.library-search-card h3 { margin: 0; overflow: hidden; color: #183b68; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.library-search-card p { margin: 4px 0 0; overflow: hidden; color: #3976af; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.library-search-card small { display: block; margin-top: 5px; overflow: hidden; color: #7185a2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.library-search-card button { min-height: 31px; padding: 0 9px; border: 0; border-radius: 5px; color: #0873e9; font-size: 12px; font-weight: 700; white-space: nowrap; background: #eaf4ff; }
.library-search-card button:hover, .library-search-card button:focus-visible { color: #fff; background: #0876f9; }
.library-card.search-focus { border-color: #1683f5; box-shadow: 0 0 0 4px rgba(22,131,245,.14), 0 12px 26px rgba(29,97,170,.16); }
.todo-search-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.todo-search-card { min-width: 0; display: flex; flex-direction: column; padding: 14px; border: 1px solid #d8e7f5; border-radius: 9px; background: linear-gradient(135deg, #fffdf9, #f4f9ff); box-shadow: 0 4px 13px rgba(31,79,132,.04); }
.todo-search-card-head, .todo-card-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.todo-priority, .todo-status { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 0 7px; border-radius: 11px; color: #2472c5; font-size: 11px; background: #e9f3ff; }
.todo-priority.high { color: #d95353; background: #ffebeb; }.todo-priority.medium { color: #bd7010; background: #fff1da; }.todo-priority.normal { color: #2472c5; background: #e9f3ff; }
.todo-status { color: #a06117; background: #fff4de; }.todo-status.completed { color: #16815c; background: #e5f7ef; }
.todo-search-card h3 { margin: 11px 0 0; color: #183b68; font-size: 15px; }.todo-search-card p { margin: 6px 0 0; color: #51749b; font-size: 12px; }.todo-search-card small { margin-top: 6px; color: #7489a5; font-size: 11px; }
.todo-search-card button { min-height: 31px; display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 0 10px; border: 0; border-radius: 5px; color: #0873e9; font-size: 12px; font-weight: 700; background: #eaf4ff; }.todo-search-card button:hover, .todo-search-card button:focus-visible { color: #fff; background: #0876f9; }
.todos-heading { min-height: 92px; display: flex; align-items: center; padding: 0 3px 10px; }.todos-heading .eyebrow { color: #2d72b7; font-size: 12px; letter-spacing: .12em; }.todos-heading h1 { margin: 6px 0 5px; color: #183b68; font-size: 27px; }.todos-heading p { margin: 0; color: #667c9d; font-size: 13px; }
.todos-panel { min-height: 420px; padding: 16px; }.todos-toolbar { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #e3edf6; }.todo-search { min-width: 260px; height: 38px; display: flex; align-items: center; gap: 8px; flex: 1; padding: 0 12px; border: 1px solid #d3e2f0; border-radius: 7px; color: #7489a5; background: #fff; }.todo-search:focus-within { border-color: #5fa7ef; box-shadow: 0 0 0 3px rgba(8,118,242,.08); }.todo-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }.todos-toolbar select { height: 38px; min-width: 112px; padding: 0 28px 0 11px; border: 1px solid #d3e2f0; border-radius: 7px; color: #29496f; background: #fff; }
.todos-list { display: grid; gap: 10px; padding-top: 14px; }.todo-card { display: flex; align-items: center; gap: 18px; padding: 15px; border: 1px solid #dbe7f2; border-radius: 9px; background: #fff; box-shadow: 0 4px 14px rgba(31,79,132,.04); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }.todo-card:hover { border-color: #acd2f6; box-shadow: 0 9px 20px rgba(31,79,132,.09); transform: translateY(-1px); }.todo-card.search-focus { border-color: #1683f5; box-shadow: 0 0 0 4px rgba(22,131,245,.14), 0 12px 26px rgba(29,97,170,.16); }.todo-card-main { min-width: 0; flex: 1; }.todo-card-tags time { margin-left: auto; color: #c27124; font-size: 12px; }.todo-card h3 { margin: 9px 0 0; color: #1b3c67; font-size: 16px; }.todo-card p { margin: 6px 0 0; color: #55779d; font-size: 13px; }.todo-card small { display: block; margin-top: 5px; color: #788da8; font-size: 12px; }.todo-card-actions { display: flex; gap: 8px; flex: 0 0 auto; }.todo-card-actions button { min-height: 32px; padding: 0 11px; border: 1px solid #abd1f8; border-radius: 5px; color: #0873e9; font-size: 12px; background: #f4f9ff; }.todo-card-actions button:hover, .todo-card-actions button:focus-visible { border-color: #0876f9; color: #fff; background: #0876f9; }.todo-card-actions .todo-complete { border-color: #b6e4cf; color: #157b58; background: #edf9f3; }.todo-card-actions .todo-reopen { border-color: #efd4a7; color: #a76512; background: #fff8e9; }
.todo-empty { min-height: 280px; display: grid; place-content: center; justify-items: center; color: #7e91aa; text-align: center; }.todo-empty[hidden] { display: none; }.todo-empty > span { font-size: 46px; color: #54ae81; }.todo-empty strong { margin-top: 8px; color: #355174; }.todo-empty p { margin: 6px 0 0; font-size: 12px; }.home-todo-complete { padding: 24px 0; color: #6d859f; font-size: 12px; text-align: center; }

/* Personnel base library */
.personnel-heading { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 3px 10px; }
.personnel-heading h1 { margin: 0; font-size: 25px; }
.personnel-heading p { margin: 5px 0 0; color: #667c9d; font-size: 13px; }
.personnel-summary { display: flex; align-items: center; gap: 0; }
.personnel-summary > span { min-width: 100px; display: grid; gap: 2px; padding: 0 20px; border-left: 1px solid #dce7f2; color: #7186a4; font-size: 11px; text-align: center; }
.personnel-summary strong { color: #173f70; font-size: 21px; }
.personnel-summary em { font-style: normal; }
.personnel-table-wrap tr.personnel-group-row th { height: 34px; color: #25466d; background: #e9f1f8; }
.personnel-table-wrap tr.personnel-group-row th span { margin-right: 10px; }
.personnel-table-wrap tr.personnel-group-row th small { color: #7185a2; font-size: 11px; font-weight: 500; }
.personnel-filters { min-height: 64px; display: flex; align-items: center; gap: 9px; padding: 11px 13px; }
.personnel-search { min-width: 280px; height: 40px; display: flex; align-items: center; gap: 9px; flex: 1; padding: 0 14px; border: 1px solid #ccdaea; border-radius: 6px; color: #7186a5; background: #fff; }
.personnel-search:focus-within { border-color: #5fa7ef; box-shadow: 0 0 0 3px rgba(8,118,242,.07); }
.personnel-search input { min-width: 0; flex: 1; border: 0; color: var(--ink); outline: 0; background: transparent; }
.personnel-filters select { height: 40px; min-width: 132px; flex: 0 0 auto; padding: 0 34px 0 12px; border: 1px solid #d3dfec; border-radius: 6px; color: #29466c; background: #fff; }
.personnel-select { height: 40px; display: flex; align-items: center; border: 1px solid #d3dfec; border-radius: 6px; overflow: hidden; background: #fff; }
.personnel-select > span { padding-left: 12px; color: #7185a2; font-size: 12px; white-space: nowrap; }
.personnel-select select { min-width: 116px; border: 0; }
.personnel-reset { height: 40px; white-space: nowrap; }
.personnel-explorer { min-height: 580px; margin-top: 11px; padding: 0 13px 14px; }
.explorer-commandbar { min-height: 54px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e0e9f2; }
.explorer-history { display: flex; gap: 4px; }
.explorer-history button { width: 34px; height: 34px; border: 0; border-radius: 5px; color: #3c587e; font-size: 23px; background: #f1f5f9; }
.explorer-history button:disabled { color: #aebccb; cursor: default; background: #f7f9fb; }
.explorer-address { min-width: 0; height: 36px; display: flex; align-items: center; gap: 7px; flex: 1; padding: 0 11px; border: 1px solid #d7e2ed; border-radius: 5px; overflow-x: auto; color: #71849f; background: #fff; white-space: nowrap; }
.explorer-address button { padding: 3px 5px; border: 0; color: #31567f; background: transparent; }
.explorer-address button:hover { color: #0875ee; background: #edf6ff; }
.explorer-address strong { color: #183d69; font-size: 13px; }
.explorer-actions { display: flex; align-items: center; gap: 7px; }
.expand-all-btn { height: 36px; padding: 0 13px; border: 1px solid #d5e1ed; border-radius: 5px; color: #31547c; background: #fff; }
.expand-all-btn:hover { border-color: #90c1f2; color: #0873e9; background: #f1f8ff; }
.personnel-field-button { border-color: #b9d8f5; color: #0871d6; background: #f4faff; }
.personnel-view-menu { position: relative; z-index: 8; }
.personnel-view-menu summary { height: 36px; min-width: 108px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #d4e1ed; border-radius: 5px; color: #29496f; cursor: pointer; list-style: none; background: #fff; }
.personnel-view-menu summary::-webkit-details-marker { display: none; }
.personnel-view-menu summary > span { color: #237ccc; font-size: 19px; }
.personnel-view-menu summary b { font-size: 13px; font-weight: 500; }
.personnel-view-menu summary i { margin-left: auto; color: #71849e; font-size: 11px; font-style: normal; }
.personnel-view-options { position: absolute; top: 42px; right: 0; width: 250px; padding: 7px; border: 1px solid #d5e0eb; border-radius: 7px; background: #fff; box-shadow: 0 16px 36px rgba(23,56,94,.18); }
.personnel-view-options button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 9px; padding: 7px 9px; border: 0; border-radius: 5px; text-align: left; background: transparent; }
.personnel-view-options button:hover, .personnel-view-options button.active { background: #eaf4ff; }
.personnel-view-options button > span { grid-row: 1 / 3; color: #41688e; font-size: 22px; text-align: center; }
.personnel-view-options button.active > span, .personnel-view-options button.active > b { color: #0873e9; }
.personnel-view-options b { font-size: 14px; }
.personnel-view-options small { color: #7a8da6; font-size: 10px; }
.explorer-meta { min-height: 47px; display: flex; align-items: center; gap: 10px; padding: 0 3px; }
.explorer-meta strong { color: #1e406b; font-size: 15px; }
.explorer-meta span { padding-left: 10px; border-left: 1px solid #d7e2ed; color: #7185a3; font-size: 12px; }
.personnel-folder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.personnel-folder-card { position: relative; min-width: 0; min-height: 154px; display: grid; grid-template-columns: 1fr auto; align-content: center; justify-items: start; gap: 13px 8px; padding: 18px 18px 15px; border: 1px solid #dce6ef; border-radius: 7px; text-align: left; background: #fff; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.personnel-folder-card:hover { transform: translateY(-2px); border-color: #a7cdf3; box-shadow: 0 9px 22px rgba(33,81,134,.1); }
.personnel-folder-icon { position: relative; grid-column: 1 / 3; width: 76px; height: 54px; display: block; border-radius: 5px 7px 9px 9px; background: linear-gradient(145deg, #27a3ff, #0871ec); box-shadow: inset 0 2px rgba(255,255,255,.45), 0 6px 12px rgba(24,113,228,.18); }
.personnel-folder-icon::before { content: ""; position: absolute; top: -8px; left: 5px; width: 35px; height: 11px; border-radius: 5px 5px 0 0; background: #2197f7; }
.personnel-folder-icon i { position: absolute; inset: 9px 6px 7px; border-radius: 4px 4px 7px 7px; background: linear-gradient(145deg, #58baff, #1680ee); }
.personnel-folder-copy { min-width: 0; display: grid; gap: 5px; }
.personnel-folder-copy strong { overflow: hidden; color: #1a3961; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.personnel-folder-copy small { color: #72859f; font-size: 11px; }
.personnel-folder-arrow { align-self: center; color: #2f79bb; font-size: 24px; }
.mini-folder { position: relative; width: 28px; height: 20px; display: inline-block; flex: 0 0 auto; border-radius: 3px 4px 5px 5px; background: linear-gradient(145deg, #27a3ff, #0871ec); box-shadow: inset 0 1px rgba(255,255,255,.4); vertical-align: middle; }
.mini-folder::before { content: ""; position: absolute; top: -4px; left: 2px; width: 13px; height: 5px; border-radius: 3px 3px 0 0; background: #2197f7; }
.personnel-folder-list { border: 1px solid #e0e9f2; border-radius: 6px; overflow: hidden; }
.personnel-folder-list > button { width: 100%; min-height: 51px; display: grid; grid-template-columns: 36px minmax(220px, 1fr) 90px 150px 24px; align-items: center; gap: 10px; padding: 5px 13px; border: 0; border-bottom: 1px solid #e7eef5; text-align: left; background: #fff; }
.personnel-folder-list > button:last-child { border-bottom: 0; }
.personnel-folder-list > button:hover { background: #eef6ff; }
.personnel-folder-list strong { color: #203f67; font-size: 14px; }
.personnel-folder-list span, .personnel-folder-list small { color: #6e829e; font-size: 12px; }
.personnel-folder-list i { color: #3e78b1; font-size: 20px; font-style: normal; }
.personnel-folder-details, .personnel-table-wrap { overflow-x: auto; border: 1px solid #dde7f0; border-radius: 6px; }
.personnel-folder-details table, .personnel-table-wrap table { width: 100%; border-collapse: collapse; color: #29476d; font-size: 12px; }
.personnel-folder-details th, .personnel-table-wrap th { height: 39px; padding: 0 12px; color: #536a88; font-weight: 600; text-align: left; background: #f1f5f9; white-space: nowrap; }
.personnel-folder-details td, .personnel-table-wrap td { height: 43px; padding: 0 12px; border-top: 1px solid #e4ebf2; white-space: nowrap; }
.personnel-folder-details tr:hover td, .personnel-table-wrap tr:hover td { background: #f7fbff; }
.personnel-table-wrap tr.personnel-group-row th { height: 34px; color: #25466d; background: #e9f1f8; }
.personnel-table-wrap tr.personnel-group-row th span { margin-right: 10px; }
.personnel-table-wrap tr.personnel-group-row th small { color: #7185a2; font-size: 11px; font-weight: 500; }
.personnel-folder-details td:first-child button { min-width: 210px; display: inline-flex; align-items: center; gap: 11px; border: 0; color: #1f446f; font-weight: 600; background: transparent; }
.personnel-folder-details td:last-child button, .personnel-open, .personnel-person-list article > button { border: 0; color: #0873e9; font-weight: 600; background: transparent; }
.personnel-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.personnel-card { position: relative; min-width: 0; min-height: 154px; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; padding: 15px; border: 1px solid #dce7f1; border-radius: 7px; background: #fff; }
.personnel-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 7px; color: #fff; font-size: 18px; font-weight: 700; background: linear-gradient(145deg, #248eea, #1763ba); }
.personnel-card > div:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.personnel-card strong { font-size: 16px; }
.personnel-card span, .personnel-card small { overflow: hidden; color: #71849f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.personnel-card > .personnel-status { position: absolute; top: 12px; right: 12px; }
.personnel-card > button { grid-column: 1 / 3; height: 31px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 0; border-radius: 4px; color: #0873e9; background: #eff6fd; }
.personnel-card > button span { color: inherit; font-size: 17px; }
.personnel-status { display: inline-grid; min-width: 45px; height: 22px; place-items: center; padding: 0 7px; border-radius: 11px; color: #087f60; font-size: 10px; background: #e2f6ef; }
.personnel-status.away { color: #a8610a; background: #fff0da; }
.personnel-person-list { border: 1px solid #e0e9f2; border-radius: 6px; overflow: hidden; }
.personnel-person-list article { min-height: 61px; display: grid; grid-template-columns: 42px minmax(220px, 1fr) 160px 70px 80px; align-items: center; gap: 12px; padding: 6px 13px; border-bottom: 1px solid #e6edf4; }
.personnel-person-list article:last-child { border-bottom: 0; }
.personnel-person-list .personnel-avatar { width: 38px; height: 38px; font-size: 14px; }
.personnel-person-list article > div:nth-child(2) { display: grid; gap: 3px; }
.personnel-person-list article span { color: #70839f; font-size: 11px; }
.personnel-table-wrap table { width: max-content; min-width: 100%; }
.personnel-table-wrap td:first-child { color: #0871e5; font-weight: 600; }

.library-field-backdrop,.extension-field-backdrop{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;background:rgba(22,36,48,.34)}
.library-field-backdrop[hidden],.extension-field-backdrop[hidden]{display:none}
.library-field-editor{width:min(1180px,100%);max-height:min(92vh,960px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #dce5e8;border-radius:8px;background:#f6f8f8;box-shadow:0 24px 70px rgba(19,39,47,.2)}
.library-field-editor>header,.extension-field-drawer>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 28px 18px;border-bottom:1px solid #e1e8e9;background:#fff}
.library-field-editor>header h2,.extension-field-drawer>header h2{margin:2px 0 5px;color:#253740;font-size:24px}
.library-field-editor>header span,.extension-field-drawer>header span{color:#168578;font-size:12px;font-weight:700}
.library-field-editor>header p{margin:0;color:#74848a;font-size:14px}
#libraryFieldEditorBody{min-height:0;overflow:auto;padding:20px 28px 24px}
.library-field-basic{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}
.library-field-basic label,.extension-field-drawer label{display:grid;gap:7px;color:#4d5e64;font-size:13px}
.library-field-basic input,.library-field-basic textarea,.extension-field-drawer input,.extension-field-drawer textarea,.extension-field-drawer select,.library-field-search input,.library-field-search select{width:100%;min-height:40px;padding:9px 11px;border:1px solid #d5e0e2;border-radius:5px;background:#fff;color:#2f4148}
.library-field-basic textarea{resize:vertical}
.library-field-config{display:grid;grid-template-columns:minmax(260px,.78fr) minmax(340px,1fr);gap:18px}
.library-field-column{min-width:0}
.library-field-column-heading{display:flex;justify-content:space-between;gap:10px;margin:0 0 9px;color:#708087;font-size:13px}
.library-field-search{display:flex;gap:8px;margin-bottom:12px}
.library-field-search input{flex:1}
.library-field-options,.library-field-selected{display:grid;align-content:start;gap:6px;max-height:340px;overflow:auto;padding:8px;border:1px solid #dfe7e9;border-radius:6px;background:#fff}
.library-field-option,.library-field-row{min-height:42px;display:flex;align-items:center;gap:10px;padding:7px 9px;border:1px solid transparent;border-radius:5px;background:#f7f9f9;color:#34464d}
.library-field-option{cursor:pointer}
.library-field-option[hidden], #libraryFieldFilterEmpty[hidden] { display: none !important; }
.profile-field-actions { display: flex; gap: 8px; margin-top: 7px; }
.profile-field-actions button { border: 0; padding: 0; color: #0876e8; background: transparent; font-size: 12px; cursor: pointer; }
.profile-shared-fields .profile-custom-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 22px; padding: 13px 15px; }
.profile-shared-fields .profile-custom-fields > div { display: block; }
.profile-shared-fields .profile-custom-fields dt { margin-bottom: 5px; }
.profile-shared-fields .profile-custom-fields dd { font-size: 14px; font-weight: 700; line-height: 1.55; }
.profile-group-side .profile-shared-fields .profile-custom-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-exit-status { margin: 12px 0; padding: 12px 16px; border: 1px solid #e6bf93; border-radius: 8px; color: #794619; background: #fff6e9; line-height: 1.7; overflow-wrap: anywhere; }
.profile-exit-status strong { margin-right: 12px; }
.profile-exit-status span + span::before { content: ' · '; }
.profile-exit-status p { margin: 2px 0 0; }
.evaluation-entry-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
#documentBackdrop { z-index: 400; }
.evaluation-list article > div:first-child { min-width: 0; flex: 1; }
.evaluation-list .evaluation-actions { align-items: flex-start; flex-wrap: wrap; flex: 0 0 auto; }
.evaluation-file-list > div > div { display: flex; gap: 8px; flex-shrink: 0; }
.evaluation-history { margin-top: 12px; color: #526f90; font-size: 12px; }
.evaluation-history summary { cursor: pointer; }
.evaluation-history section { padding: 10px 12px; margin-top: 8px; border-left: 2px solid #cbddf0; background: #f7fafd; }
.evaluation-history section > details { margin-top: 8px; }
.evaluation-history dl { margin: 8px 0; }
.evaluation-history dt { color: #7185a3; margin-top: 8px; }
.evaluation-history dd { margin: 3px 0 0; color: #213b62; white-space: pre-wrap; overflow-wrap: anywhere; }
.person-import-optional { grid-column: 1 / -1; padding-top: 8px; }
.person-import-optional > summary { color: #1877ce; cursor: pointer; font-size: 13px; }
.person-import-optional > div { margin-top: 12px; }
@media (max-width: 900px) { .profile-shared-fields .profile-custom-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .evaluation-file-list > div { flex-wrap: wrap; }.profile-shared-fields .profile-custom-fields { gap: 13px 9px; padding: 11px 4px 4px; } }
.library-field-option input{accent-color:#18877b}
.library-field-option small,.library-field-row small{margin-left:auto;padding:3px 8px;border-radius:10px;background:#eef3f3;color:#708087;font-size:11px;white-space:nowrap}
.library-field-row{cursor:grab}
.library-field-row.dragging{opacity:.45}
.library-field-row.drag-over{border-color:#86c8bf;background:#eef8f6}
.library-field-row .field-grip{color:#8c9ba0;font-size:18px;cursor:grab}
.library-field-row strong{font-size:14px;font-weight:600}
.library-field-row .field-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.library-field-row button{width:28px;height:28px;border:0;border-radius:4px;background:transparent;color:#73848a;font-size:18px}
.library-field-row button:hover{background:#eaf1f1;color:#34464d}
.library-field-add{width:100%;min-height:46px;margin-top:10px;border:1px dashed #96c9c2;border-radius:5px;background:#f1f9f7;color:#247f74;font-weight:650}
.library-field-add span{margin-right:8px;font-size:19px}
.library-field-info{margin-top:14px;padding:12px 14px;border-radius:5px;background:#edf6f4;color:#52726d;font-size:13px}
.library-field-editor>footer,.extension-field-drawer form>footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 28px;border-top:1px solid #e1e8e9;background:#fff}
.library-field-save-message{margin:0;padding:10px 28px;color:#a12b2b;background:#fff3f1;border-top:1px solid #f2d0cc;font-size:14px;line-height:1.5}.library-field-save-message[hidden]{display:none}
.toast{z-index:120}
.extension-field-backdrop{z-index:95;place-items:stretch end;padding:0}
.extension-field-drawer{width:min(480px,100%);height:100%;height:100dvh;max-height:100dvh;display:flex;flex-direction:column;background:#fff;box-shadow:-18px 0 50px rgba(19,39,47,.16)}
.extension-field-drawer>header{padding:22px 24px}
.extension-field-drawer form{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden;padding:0}
.extension-field-form-body{display:grid;align-content:start;gap:16px;min-height:0;overflow:auto;padding:22px 24px}
.extension-field-drawer form>footer{flex:0 0 auto;margin:0;padding:16px 24px}
.extension-field-drawer textarea{resize:vertical}
.extension-field-drawer [hidden]{display:none!important}
.extension-field-more summary{color:#3f655f;font-size:13px;cursor:pointer}
.extension-field-more label{margin-top:10px}
.field-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field-advanced-options{border:1px solid #dce6eb;border-radius:7px;background:#f8fbfc}
.field-advanced-options>summary{padding:12px 14px;color:#4d6770;font-size:13px;font-weight:600;cursor:pointer}
.field-advanced-content{display:grid;gap:14px;padding:2px 14px 14px}
.extension-field-drawer .field-checkbox{display:flex;align-items:center;gap:9px}
.extension-field-drawer .field-checkbox input{width:16px;min-height:16px;accent-color:#168578}
.field-pool-note{margin:0;padding:11px 12px;border-radius:5px;background:#edf6f4;color:#607d77;font-size:12px;line-height:1.6}
.library-custom-table-wrap{overflow:auto;border:1px solid #e1e8e9;border-radius:6px}
.library-custom-table{width:100%;min-width:760px;border-collapse:collapse;color:#3a4c53}
.library-custom-table th{height:44px;padding:0 14px;background:#f2f6f6;color:#728187;text-align:left;font-size:13px;font-weight:550;white-space:nowrap}
.library-custom-table td{height:64px;padding:8px 14px;border-top:1px solid #e4ebec;white-space:nowrap}
.library-custom-table tr:hover td{background:#fafcfc}
.library-custom-table .custom-field-value{color:#607278}
.library-inline-value{width:100%;min-width:88px;height:34px;padding:5px 8px;border:1px solid #dce5e6;border-radius:4px;background:#fff;color:#364a50}
.library-custom-person{display:flex;align-items:center;gap:9px;border:0;background:none;color:#273a41;font-weight:650}
.library-custom-person .profile-avatar{width:32px;height:32px}
.library-field-toolbar-button{flex:0 0 auto}
@media(max-width:760px){.library-field-backdrop{padding:0}.library-field-editor{width:100%;height:100%;max-height:none;border:0;border-radius:0}.library-field-editor>header{padding:18px}.library-field-editor>header h2{font-size:20px}#libraryFieldEditorBody{padding:16px}.library-field-basic,.library-field-config{grid-template-columns:1fr}.library-field-options,.library-field-selected{max-height:250px}.library-field-editor>footer{padding:12px 16px}.field-form-row{grid-template-columns:1fr}}
.personnel-name { padding: 0; border: 0; color: #0871e5; font-weight: 700; background: transparent; }
.personnel-table-wrap td.personnel-library-cell { min-width: 190px; padding-top: 6px; padding-bottom: 6px; white-space: normal; }
.personnel-library-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.personnel-library-chip { display: inline-flex; padding: 2px 6px; border: 1px solid #cfe4fb; border-radius: 10px; color: #176eb5; line-height: 1.4; background: #f2f8ff; white-space: nowrap; }
.personnel-library-empty { color: #94a6bb; }
.personnel-empty { min-height: 360px; display: grid; place-content: center; justify-items: center; color: #7e91aa; text-align: center; }
.personnel-empty[hidden] { display: none; }
.personnel-empty > span { font-size: 44px; }
.personnel-empty strong { margin-top: 7px; color: #355174; }
.personnel-empty p { margin: 6px 0 0; font-size: 12px; }

@media (max-width: 1400px) {
  .personnel-filters { flex-wrap: wrap; }
  .personnel-search { width: 100%; min-width: 100%; flex: auto; }
  .personnel-folder-grid, .personnel-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .personnel-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .personnel-summary { width: 100%; }
  .personnel-summary > span { flex: 1; }
  .personnel-search { width: 100%; min-width: 100%; }
  .personnel-filters select, .personnel-select { flex: 1; }
  .personnel-folder-grid, .personnel-card-grid, .person-search-grid, .todo-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .person-search-heading { min-height: 78px; padding-bottom: 8px; }
  .person-search-heading h1 { font-size: 22px; }
  .person-search-panel { padding: 10px; }
  .todos-heading { min-height: 78px; padding-bottom: 8px; }.todos-heading h1 { font-size: 22px; }.todos-panel { padding: 10px; }.todos-toolbar { align-items: stretch; flex-wrap: wrap; }.todo-search { width: 100%; min-width: 100%; flex: auto; }.todos-toolbar select, .todos-toolbar .reset-btn { min-width: calc(50% - 5px); flex: 1; }.todo-card { align-items: stretch; flex-direction: column; gap: 12px; }.todo-card-tags time { margin-left: 0; }.todo-card-actions { width: 100%; }.todo-card-actions button { flex: 1; }
  .person-search-grid, .library-search-grid, .todo-search-grid { grid-template-columns: 1fr; gap: 10px; }
  .person-search-card { padding: 13px; }
  .personnel-heading { min-height: 0; padding: 2px 2px 10px; }
  .personnel-heading h1 { font-size: 22px; }
  .personnel-heading p { line-height: 1.55; }
  .personnel-summary > span { min-width: 0; padding: 0 8px; }
  .personnel-summary > span:first-child { border-left: 0; }
  .personnel-summary strong { font-size: 18px; }
  .personnel-filters { padding: 9px; }
  .personnel-select { width: 100%; flex: auto; }
  .personnel-select select { width: 100%; }
  .personnel-filters > select { width: calc(50% - 5px); min-width: 0; flex: auto; }
  .personnel-reset { flex: 1; }
  .personnel-explorer { min-height: 520px; padding: 0 9px 10px; }
  .explorer-commandbar { flex-wrap: wrap; gap: 7px; padding: 8px 0; }
  .explorer-address { order: 1; flex: 1; }
  .explorer-actions { order: 2; width: 100%; justify-content: flex-end; }
  .personnel-view-options { right: 0; width: 240px; }
  .explorer-meta { align-items: flex-start; flex-direction: column; gap: 3px; padding: 9px 2px; }
  .explorer-meta span { padding-left: 0; border: 0; }
  .personnel-folder-grid, .personnel-card-grid { grid-template-columns: 1fr; }
  .personnel-folder-card { min-height: 128px; grid-template-columns: 74px 1fr auto; align-content: center; align-items: center; gap: 10px; padding: 14px; }
  .personnel-folder-icon { grid-column: auto; width: 64px; height: 46px; }
  .personnel-folder-arrow { grid-column: 3; }
  .personnel-folder-list > button { grid-template-columns: 34px minmax(130px, 1fr) 55px 20px; }
  .personnel-folder-list small { display: none; }
  .personnel-person-list article { grid-template-columns: 38px minmax(145px, 1fr) auto; gap: 8px; }
  .personnel-person-list article > span { display: none; }
  .personnel-person-list article > button { grid-column: 2; justify-self: start; }
  .personnel-person-list .personnel-status { grid-column: 3; grid-row: 1; display: inline-grid; }
}

/* Home dashboard */
.dashboard-intro { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 2px 8px; }
.dashboard-intro h1 { margin: 0; font-size: 24px; }
.dashboard-intro p { margin: 4px 0 0; color: #657b9d; font-size: 13px; }
.dashboard-date { display: flex; align-items: center; gap: 10px; color: #7186a5; font-size: 12px; }
.dashboard-date strong { color: #365477; font-weight: 500; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { --accent: #0876f9; min-width: 0; min-height: 104px; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 13px; padding: 13px 14px 13px 17px; border: 1px solid #dfe9f4; border-left: 4px solid var(--accent); border-radius: 8px; text-align: left; background: #fff; box-shadow: var(--shadow); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.metric-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 42%, #dfe9f4); box-shadow: 0 9px 24px rgba(27,75,128,.12); }
.metric-card.green { --accent: #10a177; }.metric-card.orange { --accent: #ef972b; }.metric-card.violet { --accent: #716cd9; }
.metric-card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; color: var(--accent); font-size: 18px; font-weight: 700; background: color-mix(in srgb, var(--accent) 10%, white); }
.metric-card-copy { min-width: 0; display: block; }
.metric-card-copy > small { display: block; color: #637a9c; font-size: 12px; }
.metric-card-copy > strong { display: block; margin: 3px 0 1px; color: #102f59; font-size: 29px; line-height: 1; }
.metric-card-copy > strong em { margin-left: 4px; color: #647c9d; font-size: 12px; font-style: normal; font-weight: 500; }
.metric-change { display: block; overflow: hidden; color: #7488a5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.metric-change.up { color: #078864; }.metric-change.warn { color: #d97611; }
.metric-card > i { color: #9bb0c9; font-size: 23px; font-style: normal; }
.dashboard-section { margin-top: 10px; }
.dashboard-section-head { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.dashboard-section-head h2 { position: relative; margin: 0; padding-left: 13px; font-size: 17px; }
.dashboard-section-head h2::before { content: ""; position: absolute; left: 0; top: 2px; width: 5px; height: 19px; border-radius: 3px; background: var(--blue); }
.dashboard-section-head p { margin: 3px 0 0 13px; color: #7a8da9; font-size: 11px; }
.dashboard-section-head button { border: 0; color: #0874e9; font-size: 12px; background: transparent; }
.quick-library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 5px; }
.quick-library-card { min-width: 0; min-height: 104px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 16px; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid #dce7f2; border-radius: 8px; text-align: left; background: #fff; box-shadow: 0 3px 12px rgba(34,81,132,.055); transition: .18s ease; }
.quick-library-card:hover { transform: translateY(-2px); border-color: #9fcaf7; box-shadow: 0 8px 20px rgba(34,81,132,.1); }
.quick-library-card[hidden], .home-chart-panel[hidden], .alert-list article[hidden], .activity-list article[hidden] { display: none !important; }
.quick-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; color: #fff; font-size: 16px; font-weight: 700; background: linear-gradient(145deg, #188af5, #0768df); }
.quick-icon.deputy { background: linear-gradient(145deg, #18a586, #0a856d); }.quick-icon.chief { background: linear-gradient(145deg, #6f7ce1, #565bc7); }.quick-icon.public { background: linear-gradient(145deg, #ed9e35, #da7918); }.quick-icon.digital { background: linear-gradient(145deg, #11a0bc, #087c9b); }
.quick-library-card > span:nth-child(2) { min-width: 0; }
.quick-library-card strong, .quick-library-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-library-card strong { margin-bottom: 6px; font-size: 14px; }
.quick-library-card small { color: #7589a6; font-size: 10px; }
.quick-library-card small b { color: #0872e7; font-size: 13px; }
.quick-library-card > i { color: #8aa3c0; font-size: 21px; font-style: normal; }
.chart-section { margin-top: 11px; }
.chart-legend { color: #778ba7; font-size: 11px; }.chart-legend i { width: 8px; height: 8px; display: inline-block; margin-right: 6px; border-radius: 2px; background: #1888f5; }
.home-chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 5px; }
.home-chart-panel { min-width: 0; height: 210px; padding: 12px 15px 10px; border: 1px solid #dce7f2; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.home-chart-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-chart-title h3 { margin: 0; font-size: 15px; }.home-chart-title span { color: #7388a6; font-size: 10px; }
.vertical-chart { height: 158px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 10px; padding: 23px 8px 24px; border-bottom: 1px solid #cbd9e7; background: repeating-linear-gradient(to top, transparent 0 31px, #edf2f7 32px 33px); }
.vertical-chart button { position: relative; height: calc(var(--bar) * 1%); min-height: 14px; padding: 0; border: 0; background: transparent; }
.vertical-chart button i { position: absolute; inset: 0 22%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #2696f7, #0c72e8); box-shadow: 0 4px 9px rgba(9,114,229,.12); }
.rank-chart button i { background: linear-gradient(180deg, #747ee1, #5864ca); }
.vertical-chart button strong { position: absolute; z-index: 2; top: -19px; left: 0; width: 100%; font-size: 11px; }
.vertical-chart button span { position: absolute; top: calc(100% + 7px); left: 50%; color: #617899; font-size: 10px; white-space: nowrap; transform: translateX(-50%); }
.department-chart { display: flex; flex-direction: column; }
.horizontal-chart { flex: 1; min-height: 0; display: grid; align-content: start; gap: 12px; margin-top: 13px; padding: 0 6px 5px 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.horizontal-chart:focus-visible { outline: 2px solid #1681ed; outline-offset: 3px; border-radius: 3px; }
.horizontal-chart > button { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: start; gap: 5px 8px; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.horizontal-chart > button > span { color: #5d7395; font-size: 11px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.horizontal-chart > button > i { grid-column: 1 / -1; grid-row: 2; height: 8px; overflow: hidden; border-radius: 2px; background: #eef3f8; }
.horizontal-chart > button > strong { grid-column: 2; grid-row: 1; color: #395779; font-size: 11px; line-height: 1.5; text-align: right; }
.horizontal-chart > button:hover > span, .horizontal-chart > button:focus-visible > span { color: #0876c9; }
.horizontal-chart > button:focus-visible { outline: 2px solid #1681ed; outline-offset: 2px; border-radius: 2px; }
.horizontal-chart b { display: block; width: var(--width); height: 100%; border-radius: 2px; background: linear-gradient(90deg, #11a083, #36b999); }
.dashboard-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(330px, 1fr); grid-auto-rows: 231px; align-items: stretch; gap: 11px; margin-top: 11px; }
.dashboard-bottom-grid > .dashboard-panel { box-sizing: border-box; height: 231px; min-height: 0; }
.dashboard-panel.alert-panel { display: flex; flex-direction: column; min-height: 0; }
.alert-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.dashboard-panel { min-width: 0; min-height: 211px; padding: 10px 14px 8px; border: 1px solid #dce7f2; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.alert-list, .activity-list { margin-top: 3px; border-top: 1px solid #e4edf5; }
.alert-list article { min-height: 47px; display: grid; grid-template-columns: 39px minmax(0, 1fr) 65px 45px; align-items: center; gap: 10px; border-bottom: 1px solid #e8eff6; }
.alert-level { min-width: 36px; padding: 3px 4px; border-radius: 3px; color: #d95353; font-size: 10px; text-align: center; background: #ffebeb; }
.alert-level.medium { color: #bd7010; background: #fff1da; }.alert-level.normal { color: #2472c5; background: #e9f3ff; }
.alert-list strong, .alert-list p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-list strong { font-size: 12px; }.alert-list p { margin: 3px 0 0; color: #7589a6; font-size: 10px; }
.alert-list time { color: #d26b20; font-size: 10px; text-align: right; }
.alert-list article > button { height: 26px; padding: 0; border: 1px solid #acd1f8; border-radius: 4px; color: #0874e9; font-size: 10px; background: #f4f9ff; }
.activity-list article { position: relative; min-height: 36px; display: grid; grid-template-columns: 12px minmax(0, 1fr) 36px; align-items: center; gap: 8px; padding-left: 2px; }
.activity-list article:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 22px; width: 1px; height: 26px; background: #dce7f2; }
.activity-list article > i { z-index: 1; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #1689f3; box-shadow: 0 0 0 1px #1689f3; }
.activity-list article > i.green { background: #12a17b; box-shadow: 0 0 0 1px #12a17b; }.activity-list article > i.orange { background: #ec9a27; box-shadow: 0 0 0 1px #ec9a27; }.activity-list article > i.violet { background: #696fd4; box-shadow: 0 0 0 1px #696fd4; }
.activity-list strong { display: block; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.activity-list small { display: block; overflow: hidden; margin-top: 2px; color: #7b8fa9; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.activity-list a { color: var(--ink); font-family: inherit; text-decoration: none; }
.activity-list a:hover, .activity-list a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.activity-list time { color: #8093ad; font-size: 9px; text-align: right; }
.home-search-empty { min-height: 260px; display: grid; place-content: center; justify-items: center; color: #8295af; text-align: center; }
.home-search-empty[hidden] { display: none; }.home-search-empty span { font-size: 40px; }.home-search-empty strong { margin-top: 6px; color: #344f74; }.home-search-empty p { margin: 6px 0 0; font-size: 12px; }

@media (max-width: 1500px) {
  .metric-grid { gap: 9px; }.metric-card { grid-template-columns: 44px minmax(0, 1fr); gap: 9px; padding-inline: 12px; }.metric-card-icon { width: 42px; height: 42px; }
  .quick-library-grid { gap: 8px; }.quick-library-card { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding-inline: 9px; }.quick-icon { width: 39px; height: 42px; }.quick-library-card > i { display: none; }
  .vertical-chart button i { inset-inline: 18%; }
}
@media (max-width: 980px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-chart-grid { grid-template-columns: 1fr; }.home-chart-panel { height: 220px; }.vertical-chart { height: 167px; }
  .dashboard-bottom-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .dashboard-bottom-grid > .dashboard-panel { height: auto; min-height: 211px; }
  .alert-list { flex: none; max-height: 240px; }
}
@media (max-width: 640px) {
  .dashboard-intro { align-items: flex-start; }.dashboard-intro h1 { font-size: 21px; }.dashboard-intro p { font-size: 11px; }.dashboard-date { display: none; }
  .metric-grid { gap: 8px; }.metric-card { min-height: 104px; grid-template-columns: 39px minmax(0, 1fr); gap: 8px; padding: 10px 8px; }.metric-card-icon { width: 37px; height: 39px; font-size: 14px; }.metric-card > i { display: none; }.metric-card-copy > strong { font-size: 24px; }.metric-change { font-size: 9px; }
  .dashboard-section-head p { display: none; }.dashboard-section-head h2 { font-size: 16px; }
  .quick-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.quick-library-card { min-height: 104px; grid-template-columns: 37px minmax(0, 1fr); padding: 8px; }.quick-icon { width: 36px; height: 38px; }.quick-library-card strong { margin-bottom: 4px; font-size: 12px; }.quick-library-card small { font-size: 9px; }
  .home-chart-title span, .chart-legend { display: none; }.home-chart-panel { height: 210px; padding-inline: 10px; }.vertical-chart { height: 158px; padding-inline: 0; }.vertical-chart button i { inset-inline: 22%; }
  .dashboard-panel { padding-inline: 10px; }.alert-list article { grid-template-columns: 38px minmax(0, 1fr) 42px; gap: 7px; padding: 5px 0; }.alert-list article > button { grid-column: 2 / 4; justify-self: end; width: 52px; }.alert-list time { font-size: 9px; }
  .activity-list article { min-height: 47px; }
}

/* Personal profile */
.person-link { padding: 4px 8px; border: 0; color: #056ee8; font-weight: 700; background: transparent; }
.person-link:hover { text-decoration: underline; }
#profileView { padding-bottom: 24px; }
/* Local reader integration; subsequent GitHub layout rules take precedence. */

.profile-reader-options .material-perspective{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}.material-perspective select{min-width:0;width:100%;padding:8px 10px;border:1px solid #cfdeec;border-radius:7px;background:#fff;color:#1c3e67;font:inherit}

.reading-verification-history{padding:16px;border:1px solid #dce7f4;border-radius:8px;margin-bottom:16px}.reading-verification-history summary{cursor:pointer}.reading-verification-record{border-top:1px solid #e5edf6;padding:14px 0;margin-top:10px}.reading-verification-record p{white-space:pre-wrap}.reading-verification-record small{color:#71849c}

.document-paper{min-height:0;flex:1;min-width:0;overflow:auto}.document-paper:empty{min-height:300px}.online-file-preview{min-height:260px}.online-file-preview p{text-indent:0;white-space:pre-wrap;overflow-wrap:anywhere}.docx-preview-content{font-family:SimSun,"宋体",serif;font-size:16px;line-height:1.9}.docx-preview-content p{margin:0 0 12px}.docx-preview-content .docx-title{font-weight:bold;font-size:22px;text-align:center}.docx-preview-content .docx-heading{font-weight:bold}.document-paper .file-preview-note{font:12px/1.7 "Microsoft YaHei",sans-serif;color:#71849c;padding:10px 12px;background:#f4f8fc;border-radius:5px;margin-bottom:18px;text-indent:0}.file-table-scroll{max-width:100%;overflow-x:auto;margin:12px 0}.file-preview-table{border-collapse:collapse;width:100%;font-size:13px}.file-preview-table th,.file-preview-table td{border:1px solid #cfdcea;padding:7px 9px;min-width:65px;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}.file-preview-table th{background:#eef4fb;font-weight:500}.file-preview-table p{font-size:inherit;margin-bottom:5px}.file-sheet-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.file-sheet-tabs button,.file-sheet-controls button{padding:6px 10px;border:1px solid #d3e0ef;border-radius:5px;background:white;color:#466384}.file-sheet-tabs button.active{color:#0876f9;border-color:#0876f9;background:#edf5ff}.file-sheet-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:12px;margin-top:14px}.file-text-preview{font:14px/1.9 "Microsoft YaHei",sans-serif;white-space:pre-wrap;overflow-wrap:anywhere}.file-original-link{display:inline-block;margin-top:18px;font-size:13px;color:#0876f9}.uploaded-image-preview{max-width:100%;height:auto}.document-actions{flex-shrink:0}@media print{body.printing-document .file-original-link,body.printing-document .file-sheet-controls,body.printing-document .file-sheet-tabs,body.printing-document .file-preview-note{display:none}body.printing-document .file-table-scroll{overflow:visible}body.printing-document .docx-preview-content{font-size:12pt}}
.reading-task-notice{position:fixed;right:24px;bottom:24px;z-index:180;display:flex;gap:18px;align-items:center;max-width:calc(100vw - 32px);background:#fff;border:1px solid #bcd9f8;border-radius:10px;box-shadow:0 6px 26px #163b6d29;padding:14px 18px;font-size:14px;color:#163c70}.reading-task-notice button{border:0;background:#0876f9;color:white;border-radius:6px;padding:9px 12px;cursor:pointer;white-space:nowrap}.reading-task-notice[hidden]{display:none}.profile-person-code{font-size:12px;color:#61759c}.profile-metrics{flex-wrap:wrap}.data-import-table td select{max-width:340px;min-width:200px}.data-import-table td small{display:block;color:#61759c;font-size:12px;margin-top:4px}
.reading-task-notice button.reading-task-notice-close{width:30px;height:30px;display:grid;place-items:center;padding:0;border:1px solid #dce7f1;border-radius:50%;color:#61759c;font-size:19px;line-height:1;background:#fff}
.reading-task-notice button.reading-task-notice-close:hover,.reading-task-notice button.reading-task-notice-close:focus-visible{border-color:#b9cde0;color:#24496f;background:#f3f7fb;outline:none}
.more-people-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:12px;margin:8px 0 10px;border:1px solid #dce7f1;border-radius:7px;background:#f7fafe}
.more-people-filters[hidden]{display:none}
.more-people-filters label{display:grid;gap:5px;min-width:0;color:#5d7493;font-size:12px}
.more-people-filters select{width:100%;min-width:0;height:36px;padding:0 28px 0 10px;border:1px solid #d5e2ef;border-radius:6px;color:#29466c;background:#fff}
.profile-metrics{grid-template-columns:repeat(4,minmax(0,150px))}@media(max-width:740px){.profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:8px}.profile-metrics>*{padding:8px!important}.more-people-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.reading-task-notice{right:12px;bottom:12px;padding:10px;font-size:12px;gap:7px}.reading-task-notice button{padding:7px 8px}.reading-task-notice button.reading-task-notice-close{width:28px;height:28px}}
.reading-check-status{margin:12px 0;padding:12px 14px;border:1px solid #dbe7f5;border-radius:7px;background:#f7faff}.reading-check-status>strong{font-size:13px;color:#245c95}.reading-check-status>p{margin:6px 0;color:#61759c}.reading-check-finding+.reading-check-finding{border-top:1px solid #dbe7f5;margin-top:10px;padding-top:10px}.reading-check-note{white-space:pre-wrap;line-height:1.8;color:#17375e}.reading-check-finding .outline-btn{margin:4px 8px 4px 0;white-space:normal;overflow-wrap:anywhere}.reading-check-edit{font-size:12px;color:#61759c;line-height:1.8}.reading-check-edit .text-button{border:0;background:transparent;padding:0;color:#0876f9;text-decoration:underline;cursor:pointer;font:inherit}
.profile-hero { position: relative; z-index: 6; min-height: 150px; display: grid; grid-template-columns: 44px 106px minmax(360px, 1fr) auto; grid-template-rows: auto; align-items: center; column-gap: 20px; row-gap: 8px; overflow: visible; padding: 12px 24px 8px 14px; }
.profile-hero::after { content: ""; position: absolute; right: 0; bottom: 0; width: 40%; height: 100%; opacity: .52; background: linear-gradient(150deg, transparent 0 48%, #e4f1fd 49% 62%, transparent 63%), linear-gradient(165deg, transparent 0 58%, #f1f8fe 59%); pointer-events: none; }
.profile-back { z-index: 2; align-self: start; width: 38px; height: 38px; margin-top: 7px; border: 1px solid #d9e6f2; border-radius: 6px; color: #3b587e; font-size: 27px; background: #fff; }
.profile-portrait { position: relative; z-index: 2; width: 98px; height: 112px; display: grid; place-items: end center; overflow: hidden; border: 4px solid #fff; border-radius: 8px; color: rgba(255,255,255,.92); font-size: 25px; font-weight: 700; background: radial-gradient(circle at 50% 34%, #e1b697 0 18px, transparent 19px), radial-gradient(ellipse at 50% 102%, #16375c 0 43px, transparent 44px), linear-gradient(145deg, #dce8f4, #adc4dc); box-shadow: 0 5px 15px rgba(22,66,111,.16); }
.profile-portrait span { width: 100%; padding: 5px; text-align: center; background: rgba(9,40,78,.38); }
.profile-avatar-upload { padding: 0; cursor: pointer; }
.profile-avatar-upload span { position: absolute; right: 0; bottom: 0; left: 0; display: flex; min-height: 32px; align-items: center; justify-content: center; padding: 5px; color: #fff; font-size: 11px; line-height: 1.2; opacity: 0; background: rgba(5, 34, 70, .76); transition: opacity .18s ease; }
.profile-avatar-upload:hover span, .profile-avatar-upload:focus-visible span { opacity: 1; }
.profile-avatar-upload:focus-visible { outline: 3px solid #1681ed; outline-offset: 3px; }
.profile-identity { position: relative; z-index: 2; align-self: stretch; padding-top: 8px; }
.profile-name-line { display: flex; align-items: center; gap: 10px; }
.profile-name-line h1 { margin: 0 6px 0 0; font-size: 29px; }
.profile-name-line span { color: #536b91; font-size: 14px; }
.profile-name-line b { padding: 3px 12px; border-radius: 12px; color: #078e69; font-size: 12px; font-weight: 500; background: #ddf8eb; }
.profile-identity > p { margin: 8px 0 6px; color: #213f70; font-size: 17px; font-weight: 600; }
.profile-meta { display: flex; align-items: center; gap: 11px; color: #6b7f9f; font-size: 13px; }
.profile-meta i { width: 1px; height: 13px; background: #cbd9e8; }
.profile-tag-list, .inline-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-identity > .profile-tag-list { margin-top: 11px; }
.profile-tag-list span, .inline-tags span { padding: 4px 9px; border: 1px solid #c9e3ff; border-radius: 4px; color: #0874e9; font-size: 12px; font-weight: 500; background: #eef7ff; }
.inline-tags span { padding: 3px 8px; border: 0; color: #235f9f; background: #edf5fd; }
.talent-tag-list { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }.talent-tag, .profile-tag-list .talent-tag, .inline-tags .talent-tag { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px; border: 1px solid var(--tag-border, #c9e3ff); border-radius: 12px; color: var(--tag-text, #0874e9); font-size: 11px; font-weight: 600; line-height: 1.2; white-space: nowrap; background: var(--tag-bg, #eef7ff); }.talent-tag-list.compact { gap: 4px; }.talent-tag-list.compact .talent-tag { min-height: 20px; padding: 1px 6px; font-size: 10px; }.talent-tag-empty { color: #9aaac0; font-size: 11px; }.person-search-tags { margin-top: 9px; }.tag-manager-modal { width: min(560px, calc(100vw - 28px)); max-height: min(720px, calc(100vh - 28px)); overflow: auto; }.tag-modal-icon { color: #2478c7; background: #eaf4ff; }.tag-manager-form { display: grid; gap: 12px; margin-top: 16px; }.tag-manager-form label > span, .tag-manager-form legend { display: block; margin-bottom: 6px; color: #506987; font-size: 13px; font-weight: 600; }.tag-manager-form input { width: 100%; min-height: 38px; padding: 0 11px; border: 1px solid #cddfed; border-radius: 6px; color: #24476f; outline: none; }.tag-manager-form input:focus { border-color: #2989ef; box-shadow: 0 0 0 3px rgba(8,118,242,.1); }.tag-manager-form fieldset { margin: 0; padding: 0; border: 0; }.tag-color-options { display: flex; gap: 9px; }.tag-color-option { width: 27px; height: 27px; border: 2px solid #fff; border-radius: 50%; background: var(--tag-color-bg); box-shadow: 0 0 0 1px #cbddeb; }.tag-color-option::after { content: ""; display: block; width: 9px; height: 9px; margin: auto; border-radius: 50%; background: var(--tag-color); }.tag-color-option.active { box-shadow: 0 0 0 2px var(--tag-color), 0 0 0 4px #fff; }.tag-manager-list-head { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 13px; border-top: 1px solid #e1ebf4; color: #3e5c80; font-size: 13px; }.tag-manager-list-head span { color: #7b8faa; }.tag-manager-list { display: grid; gap: 7px; margin-top: 10px; }.tag-manager-item { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid #e0eaf3; border-radius: 7px; }.tag-manager-item > span:nth-child(2) { flex: 1; color: #7c8ea8; font-size: 12px; }.tag-manager-item > div { display: flex; gap: 5px; }.tag-manager-item button { min-height: 27px; padding: 0 8px; border: 0; border-radius: 5px; color: #2476bd; font-size: 12px; background: #edf6ff; }.tag-manager-item button:last-child { color: #c54242; background: #fff1f1; }.tag-manager-empty { margin: 14px 0; color: #8295ad; font-size: 13px; text-align: center; }.profile-tag-editor { display: grid; gap: 8px; }.profile-tag-editor > span { color: #506987; font-size: 13px; font-weight: 600; }.profile-tag-choices { display: flex; flex-wrap: wrap; gap: 7px; max-height: 126px; overflow: auto; padding: 2px; }.profile-tag-choice { position: relative; display: inline-flex; }.profile-tag-choice input { position: absolute; opacity: 0; pointer-events: none; }.profile-tag-choice .talent-tag { cursor: pointer; }.profile-tag-choice input:checked + .talent-tag { box-shadow: 0 0 0 2px var(--tag-text), 0 0 0 4px #fff; }.profile-tag-create { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 7px; }.profile-tag-create input, .profile-tag-create select { min-width: 0; min-height: 34px; padding: 0 9px; border: 1px solid #cddfed; border-radius: 6px; color: #345475; background: #fff; }.profile-tag-create .outline-btn { min-height: 34px; padding: 0 10px; font-size: 12px; }
.profile-actions { position: relative; z-index: 3; align-self: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(480px, 100%); gap: 9px; padding-top: 8px; }
.profile-actions > button, .profile-action-menu > button { height: 40px; min-height: 40px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; }
.profile-action-menu { position: relative; min-width: 0; }
.profile-action-menu > button { width: 100%; padding: 0 9px; }
.profile-action-menu > button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.profile-menu-caret { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-action-menu-list { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; width: max-content; min-width: min(180px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: min(55vh, 320px); overflow-y: auto; padding: 5px; border: 1px solid #d9e5f0; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(24, 59, 98, .18); }
.profile-action-menu-list[data-placement="top"] { top: auto; bottom: calc(100% + 6px); }
.profile-action-menu-list[hidden] { display: none; }
.profile-action-menu-list button { display: flex; width: 100%; height: 37px; align-items: center; justify-content: flex-start; gap: 9px; padding: 0 10px; border: 0; border-radius: 5px; color: #345474; background: #fff; text-align: left; }
.profile-menu-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.profile-action-menu-list button:hover, .profile-action-menu-list button:focus-visible { color: #0876ef; outline: none; background: #eef7ff; }
.profile-membership-modal label { display: grid; gap: 7px; margin-top: 15px; color: #526d8d; font-size: 14px; }
.profile-membership-modal .modal-close { z-index: 2; pointer-events: auto; }
.profile-membership-modal .membership-modal-icon-button { position: relative; display: block; width: fit-content; margin: 0 0 18px; padding: 0; border: 0; color: var(--blue); background: transparent; font: inherit; cursor: pointer; transform: scale(1.4); transform-origin: left bottom; }
.profile-membership-modal .membership-modal-icon-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.profile-membership-modal select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid #cfdeed; border-radius: 7px; color: #24466e; background: #fff; outline: 0; }
.profile-membership-modal select:focus { border-color: var(--blue); }
.profile-lifecycle-status.is-exited { color: #9a3412; background: #fff7ed; }
.personnel-status.exited { color: #9a3412; background: #fff0e8; }
.lifecycle-modal form > label, .lifecycle-modal #exitFields { display: grid; gap: 12px; }
.lifecycle-modal [hidden] { display: none !important; }
.lifecycle-modal #exitFields { margin: 16px 0; }
.lifecycle-modal textarea { min-height: 64px; resize: vertical; }
#lifecycleBackdrop .modal-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 9px; transform: none; transform-origin: center; }
.profile-upload-modal { width: min(680px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 28px)); overflow: auto; padding: 24px; border-radius: 14px; background: #fff; box-shadow: 0 18px 56px rgba(21, 60, 99, .22); }.profile-upload-modal header { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid #e3edf6; }.profile-upload-modal header span { color: #2781dc; font-size: 13px; font-weight: 700; }.profile-upload-modal h2 { margin: 4px 0; color: #10275c; }.profile-upload-modal header p { margin: 0; color: #7690ad; font-size: 13px; }.profile-upload-kinds { display: flex; gap: 10px; margin: 18px 0; }.profile-upload-kinds input { position: absolute; opacity: 0; }.profile-upload-kinds span { display: inline-flex; min-height: 34px; align-items: center; padding: 0 15px; border: 1px solid #d5e4f3; border-radius: 18px; color: #55708f; cursor: pointer; }.profile-upload-kinds input:checked + span { border-color: #177bf0; color: #076ee2; background: #edf6ff; box-shadow: inset 0 0 0 1px #177bf0; }.profile-upload-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }.profile-upload-fields .wide { grid-column: 1 / -1; }.profile-upload-fields label, .profile-upload-file { display: grid; gap: 6px; color: #466384; font-size: 13px; font-weight: 600; }.profile-upload-fields input, .profile-upload-fields select, .profile-upload-fields textarea, .profile-upload-file input { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #cfdeec; border-radius: 7px; color: #1c3e67; background: #fff; outline: none; }.profile-upload-fields textarea { resize: vertical; }.profile-upload-fields input:focus, .profile-upload-fields select:focus, .profile-upload-fields textarea:focus, .profile-upload-file input:focus { border-color: #147bf0; box-shadow: 0 0 0 3px rgba(20, 123, 240, .1); }.profile-upload-file { margin-top: 15px; }.profile-upload-file + .profile-upload-fields { margin-top: 16px; }.profile-upload-file b { color: #e05252; }.profile-upload-file small { color: #8093aa; font-size: 12px; font-weight: 400; }.profile-upload-modal footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }.material-actions, .evaluation-actions { display: flex; align-items: center; gap: 8px; }.text-danger { min-height: 30px; padding: 0 9px; border: 0; border-radius: 6px; color: #c74343; background: #fff1f1; font-size: 12px; }.evaluation-list { display: grid; gap: 12px; }.evaluation-list article { display: flex; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid #dce8f3; border-radius: 9px; background: #fff; }.evaluation-list span, .evaluation-list small { color: #728aa6; font-size: 12px; }.evaluation-list h3 { margin: 7px 0; color: #163863; font-size: 16px; }.evaluation-list p { margin: 0; color: #4f6b8c; line-height: 1.75; white-space: pre-wrap; }.evaluation-list small { display: block; margin-top: 8px; }.uploaded-file-preview { width: 100%; min-height: 430px; border: 0; border-radius: 6px; background: #f6f9fc; }
.evaluation-entry-form { margin: 0 0 16px; padding: 16px; border: 1px solid #dce8f3; border-radius: 8px; background: #f8fbfe; }
.evaluation-entry-form footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.profile-metrics { position: relative; z-index: 2; grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, 150px); align-self: stretch; border-top: 1px solid #e2ebf4; }
.profile-metrics > * { display: flex; align-items: center; gap: 10px; padding-top: 8px; }
.profile-metrics > * + * { padding-left: 25px; border-left: 1px solid #e3ecf5; }
.profile-metric { border: 0; color: inherit; text-align: left; background: transparent; cursor: pointer; }
.profile-metric:hover span { color: #0876f9; }
.profile-metric:focus-visible { outline: 2px solid #0876f9; outline-offset: -2px; }
.profile-metrics strong { font-size: 25px; }
.profile-metrics span { color: #6a7f9f; font-size: 12px; }
.profile-tabs { min-height: 54px; display: flex; align-items: stretch; justify-content: space-between; gap: 8px; margin-top: 11px; padding: 0 16px; overflow-x: auto; }
.profile-tabs .profile-tab { position: relative; flex: 1 1 0; min-width: 0; padding: 0 8px; border: 0; color: #566d91; font-size: 15px; font-weight: 600; text-align: center; white-space: nowrap; background: transparent; cursor: pointer; }
.profile-tabs .profile-tab.active { color: #076ee8; }
.profile-tabs .profile-tab.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 2px; background: #0876f9; }
.profile-tabs em { display: inline-grid; min-width: 19px; height: 19px; margin-left: 4px; place-items: center; border-radius: 10px; color: #5b7398; font-size: 10px; font-style: normal; background: #edf3fa; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; margin-top: 11px; }
.profile-main, .profile-side { display: grid; align-content: start; gap: 11px; }
.profile-section { min-width: 0; padding: 12px 16px; }
.profile-wide-section { margin-top: 11px; }
.profile-section-bar { min-height: 30px; display: flex; align-items: center; }
.profile-section-bar { justify-content: space-between; gap: 12px; }
.profile-section-actions { display: flex; align-items: center; gap: 6px; }
.profile-module-add { min-height: 30px; padding: 0 9px; font-size: 12px; white-space: nowrap; }
.evaluation-add-record { min-height: 34px; gap: 6px; padding: 0 11px; }
.profile-section-actions { align-self: center; }
.evaluation-add-record { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.evaluation-add-record svg { width: 16px; height: 16px; flex: 0 0 16px; }
.profile-group-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 11px; }
.profile-group-main, .profile-group-side, .profile-module-grid { display: contents; }
.profile-group-grid .profile-wide-section { margin-top: 0; }
.profile-custom-fields { display: grid; gap: 7px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #e5edf5; }
.profile-custom-fields > div { display: grid; grid-template-columns: minmax(70px, .7fr) minmax(0, 1.5fr) auto; align-items: start; gap: 10px; }
.profile-custom-fields dt { color: #7185a3; font-size: 12px; }
.profile-custom-fields dd { margin: 0; color: #213b62; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-custom-fields > div > span { display: flex; gap: 4px; }
.profile-custom-fields button, .profile-custom-record-actions button { padding: 2px 5px; border: 0; color: #0876e8; background: transparent; font-size: 11px; cursor: pointer; }
.profile-custom-records { margin-top: 8px; }
.profile-custom-record-actions { white-space: nowrap; }
.profile-summary-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0 2px; }
.profile-summary-stats span { padding: 8px 10px; border-radius: 6px; color: #617999; background: #f1f7fd; font-size: 12px; }
.profile-summary-stats strong { margin-right: 5px; color: #0876f9; font-size: 17px; }
.profile-section-bar h2 { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; padding-left: 14px; font-size: 18px; }
.profile-section-bar h2::before { content: ""; position: absolute; left: 0; top: 2px; width: 5px; height: 20px; border-radius: 3px; background: #0876f9; }
.profile-section-edit { width: 23px; height: 23px; display: inline-grid; flex: 0 0 23px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 5px; color: #6e94bd; background: transparent; font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.profile-section-edit svg { width: 16px; height: 16px; display: block; }
.profile-section-edit:hover, .profile-section-edit:focus-visible { border-color: #c9e1fa; color: #0876f9; background: #eef7ff; outline: none; }
.profile-info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 22px; row-gap: 16px; margin-top: 9px; padding: 13px 15px; border-top: 1px solid #e4edf6; }
.profile-info-item { min-width: 0; }
.profile-basic-info .profile-info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 14px; row-gap: 12px; }
.profile-current-position .profile-info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-group-side .profile-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-info-item.wide { grid-column: span 2; }
.profile-info-item > span { display: block; margin-bottom: 5px; color: #7185a3; font-size: 12px; }
.profile-info-item > strong { display: block; color: #213b62; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.profile-achievement-list { margin-top: 8px; border-top: 1px solid #e4edf6; }
.profile-achievement-list article { min-height: 62px; display: grid; grid-template-columns: 58px 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid #e8eff6; }
.profile-achievement-list article:last-child { border-bottom: 0; }
.profile-achievement-list time { color: #7185a3; font-size: 12px; }
.achievement-type { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: 12px; font-style: normal; background: #1885ef; }
.profile-achievement-list h3 { margin: 0 0 4px; font-size: 14px; }
.profile-achievement-list p { margin: 0; color: #7487a4; font-size: 11px; }
.profile-achievement-list article > span { padding: 4px 9px; border-radius: 3px; color: #087b61; font-size: 11px; white-space: nowrap; background: #e5f7f1; }
.stage-card { margin-top: 10px; padding: 11px 12px; border-radius: 6px; background: linear-gradient(100deg, #edf6ff, #f8fbff); }
.stage-card span, .stage-card small { display: block; color: #7185a4; font-size: 11px; }
.stage-card strong { display: block; margin: 5px 0; color: #096ee6; font-size: 18px; }
.stage-steps { display: flex; justify-content: space-between; margin: 20px 18px 0; border-top: 2px solid #dce8f3; }
.stage-steps i { width: 12px; height: 12px; margin-top: -7px; border: 2px solid #d0deeb; border-radius: 50%; background: #fff; }
.stage-steps i.done { border-color: #38a7fa; background: #38a7fa; }
.stage-steps i.active { border: 3px solid #fff; background: #0876f9; box-shadow: 0 0 0 2px #0876f9; }
.stage-labels { display: flex; justify-content: space-between; margin: 7px 10px 3px; color: #7890ae; font-size: 10px; }
.completion-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 9px; }
.completion-head strong { color: #0876f9; font-size: 22px; }
.completion-head span { color: #7185a3; font-size: 11px; }
.completion-bar { height: 7px; margin: 10px 0 8px; overflow: hidden; border-radius: 4px; background: #e6eef6; }
.completion-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1f9ef8, #0873ec); }
.archive-completion { display: grid; justify-items: center; gap: 9px; padding: 13px 0 4px; }
.archive-completion-ring { position: relative; width: 132px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#0876f9 var(--completion), #e7eff7 0); }
.archive-completion-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.archive-completion-ring > div { position: relative; display: grid; justify-items: center; gap: 2px; }
.archive-completion-ring strong { color: #0876f9; font-size: 27px; line-height: 1.2; }
.archive-completion-ring span, .archive-completion-count { color: #7185a3; font-size: 12px; }
.profile-material-mini { margin: 0; padding: 0; list-style: none; }
.profile-material-mini li { height: 33px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; border-bottom: 1px solid #e9f0f6; font-size: 12px; }
.profile-material-mini i { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 10px; font-style: normal; background: #18ad7d; }
.profile-material-mini small { color: #7c90ac; }
.profile-material-mini .pending i { background: #efa52d; }
.profile-material-mini .pending small { color: #b66c00; }
.profile-timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 9px; padding: 12px 5px 4px; border-top: 1px solid #e5edf5; }
.profile-timeline article { position: relative; display: grid; grid-template-columns: 54px 34px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; padding-right: 15px; }
.profile-timeline article:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: 7px; width: 1px; height: 48px; background: #dce7f2; transform: translateY(-50%); }
.profile-timeline time { color: #7185a4; font-size: 11px; }
.profile-timeline i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 11px; font-style: normal; background: #1689f3; }
.profile-timeline h3 { margin: 0 0 4px; font-size: 13px; }
.profile-timeline p { margin: 0; color: #7487a4; font-size: 10px; line-height: 1.4; }
.profile-timeline div > span { display: block; margin-top: 4px; color: #0876e9; font-size: 10px; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 11px; }
.record-span-2 { grid-column: span 2; }
.record-table { margin-top: 9px; border: 1px solid #e1eaf3; border-radius: 6px; overflow: hidden; }
.record-row { display: grid; grid-template-columns: 1.05fr 1fr 1fr 1fr; min-height: 42px; align-items: center; border-top: 1px solid #e4ecf4; }
.record-row:first-child { border-top: 0; }
.record-row span { min-width: 0; padding: 8px 12px; color: #344e72; font-size: 12px; overflow-wrap: anywhere; }
.record-row span + span { border-left: 1px solid #e4ecf4; }
.record-head { min-height: 36px; background: #f2f6fa; }
.record-head span { color: #627898; font-weight: 600; }
.family-table .record-row { grid-template-columns: .7fr .8fr .6fr 1fr 1.6fr; }
.resume-list { margin-top: 10px; padding-left: 14px; border-left: 2px solid #dce9f5; }
.resume-list article { position: relative; display: grid; grid-template-columns: 125px 1fr; gap: 14px; padding: 8px 0 12px 13px; }
.resume-list article::before { content: ""; position: absolute; top: 13px; left: -20px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #1688f3; box-shadow: 0 0 0 1px #1688f3; }
.resume-list time { color: #66809f; font-size: 12px; }
.resume-list p { margin: 0; color: #28466e; font-size: 12px; line-height: 1.55; }
.performance-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; padding: 10px 0; border-top: 1px solid #e4edf6; }
.category-filter { display: flex; flex-wrap: wrap; gap: 7px; }
.category-filter button { height: 32px; padding: 0 13px; border: 1px solid #dbe6f1; border-radius: 5px; color: #526b8e; background: #fff; }
.category-filter button.active { border-color: #0876f2; color: #fff; background: #0876f2; }
.performance-tools select { height: 34px; padding: 0 28px 0 11px; border: 1px solid #d7e3ef; border-radius: 5px; color: #3e5c82; background: #fff; }
.development-section { margin-top: 11px; }
.development-section .profile-timeline { grid-template-columns: 1fr; padding-left: 105px; }
.development-section .profile-timeline article { grid-template-columns: 90px 42px minmax(0, 1fr); min-height: 82px; align-items: start; }
.development-section .profile-timeline article:not(:last-child)::after { top: 40px; right: auto; left: 109px; width: 2px; height: 58px; transform: none; }
.development-section .profile-timeline i { width: 36px; height: 36px; }
.development-section .profile-timeline h3 { font-size: 15px; }
.development-section .profile-timeline p { font-size: 12px; }
.measure-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 9px; padding-top: 12px; border-top: 1px solid #e5edf5; }
.measure-grid article { min-height: 130px; padding: 14px; border: 1px solid #dfe9f3; border-radius: 7px; background: #fbfdff; }
.measure-grid i { color: #a8bed6; font-size: 22px; font-style: normal; font-weight: 700; }
.measure-grid h3 { margin: 8px 0 6px; font-size: 15px; }
.measure-grid p { margin: 0; color: #657d9e; font-size: 12px; line-height: 1.65; }
.material-summary { display: flex; gap: 28px; margin-top: 8px; padding: 11px 14px; border-top: 1px solid #e4edf6; color: #6b809f; font-size: 13px; background: #f7faff; }
.material-summary strong { margin-left: 5px; color: #176fd1; font-size: 18px; }
.material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.material-grid article { min-height: 92px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: 1fr auto; align-items: center; gap: 0 12px; padding: 12px 14px; border: 1px solid #dfe9f3; border-radius: 7px; }
.material-icon { grid-row: 1 / 3; width: 46px; height: 54px; display: grid; place-items: center; border-radius: 5px; color: #fff; font-size: 21px; background: linear-gradient(145deg, #2c9af9, #0b6ee7); }
.material-grid article > div:nth-child(2) span, .material-grid article > div:nth-child(2) p { color: #7489a6; font-size: 11px; }
.material-grid h3 { margin: 4px 0; font-size: 14px; }
.material-grid p { margin: 0; }
.material-grid b { align-self: start; padding: 3px 8px; border-radius: 10px; color: #068b68; font-size: 10px; background: #e2f7ef; }
.material-grid b.pending { color: #b86d00; background: #fff1d6; }
.material-grid button { grid-column: 3; min-height: 30px; height: 30px; padding: 0 12px; font-size: 12px; }
.profile-empty { min-height: 210px; display: grid; place-content: center; justify-items: center; color: #8294ad; text-align: center; }
.profile-empty span { font-size: 38px; }
.profile-empty strong { margin-top: 7px; color: #344f75; }
.profile-empty p { margin: 6px 0 0; font-size: 12px; }
.drawer-backdrop { position: fixed; z-index: 80; inset: 0; background: rgba(3,19,53,.38); backdrop-filter: blur(2px); }
.drawer-backdrop[hidden] { display: none; }
.profile-drawer { position: absolute; top: 0; right: 0; width: min(500px, 100%); height: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: -18px 0 50px rgba(5,32,72,.2); animation: drawer-in .22s ease; }
@keyframes drawer-in { from { transform: translateX(30px); opacity: .6; } }
.drawer-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 15px 22px; border-bottom: 1px solid #dfe8f1; }
.drawer-header span { color: #7488a5; font-size: 12px; }
.drawer-header h2 { margin: 3px 0 0; font-size: 20px; }
.drawer-close { width: 38px; height: 38px; font-size: 25px; }
.profile-drawer form { min-height: 0; display: flex; flex: 1; flex-direction: column; }
.drawer-body { min-height: 0; flex: 1; overflow-y: auto; padding: 10px 22px 24px; }
.drawer-body label { display: block; margin-top: 14px; }
.drawer-body label > span { display: block; margin-bottom: 7px; color: #536b8e; font-size: 13px; }
.drawer-body input, .drawer-body select, .drawer-body textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #ceddea; border-radius: 6px; color: #243f68; outline: 0; background: #fff; resize: vertical; }
.drawer-body input:focus, .drawer-body select:focus, .drawer-body textarea:focus { border-color: #0876f2; box-shadow: 0 0 0 3px rgba(8,118,242,.08); }
.profile-edit-fieldset { min-width: 0; margin: 12px 0 0; padding: 5px 14px 14px; border: 1px solid #dce8f4; border-radius: 8px; }
.profile-edit-fieldset legend { padding: 0 6px; color: #173f70; font-size: 14px; font-weight: 700; }
.capability-field-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 12px; padding: 10px 12px; border: 1px solid #dce8f4; border-radius: 6px; color: #58718e; font-size: 13px; }
.capability-field-options > span { color: #173f70; font-weight: 700; }
.capability-field-options label { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; margin: 0; }
.capability-field-options input { width: 15px; min-height: 15px; margin: 0; }
.profile-avatar-editor { display: flex; align-items: center; gap: 14px; margin: 8px 0 14px; padding: 12px; border: 1px solid #e0eaf4; border-radius: 8px; background: #f8fbfe; }
.profile-avatar-editor img { width: 76px; height: 76px; flex: 0 0 76px; border: 1px solid #d7e4f0; border-radius: 8px; object-fit: cover; background: #eaf2fa; }
.profile-avatar-editor > div { display: grid; gap: 6px; min-width: 0; }
.profile-avatar-editor label { color: #244668; font-size: 13px; font-weight: 700; }
.profile-avatar-editor input { max-width: 100%; }
.profile-avatar-editor small { color: #8093aa; font-size: 12px; }
.profile-edit-fieldset .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-custom-field-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.profile-custom-field-editor .profile-custom-field-actions > .outline-btn { min-height: 34px; margin-top: 0; }
.profile-custom-field-delete-toggle { color: #b43535; border-color: #e8b9b9; }
.profile-custom-field-delete-toggle:hover, .profile-custom-field-delete-toggle.is-active { color: #a12626; border-color: #d98c8c; background: #fff6f6; }
.profile-custom-field-feedback { min-height: 16px; margin: 7px 0 0; color: #14734f; font-size: 12px; line-height: 1.4; }
.profile-custom-field-feedback.is-error { color: #b43535; }
.profile-custom-field-list { display: grid; gap: 9px; margin-top: 10px; }
.profile-custom-field-item { padding: 7px 10px 10px; border-radius: 7px; background: #f4f8fc; }
.profile-custom-field-item .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-custom-field-item .text-danger { display: block; margin: 8px 0 0 auto; }
.profile-custom-field-empty { margin: 10px 0 0; padding: 11px; border-radius: 6px; color: #7186a4; font-size: 12px; text-align: center; background: #f5f8fb; }
.profile-custom-field-delete-list { display: grid; gap: 7px; }
.profile-custom-field-delete-item { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 10px 12px; border: 1px solid #e1eaf3; border-radius: 7px; background: #f8fbfe; cursor: pointer; }
.profile-custom-field-delete-item > input { width: 16px; min-height: 16px; flex: 0 0 16px; accent-color: #0876f2; }
.profile-custom-field-delete-item > span { display: grid; gap: 3px; min-width: 0; }
.profile-custom-field-delete-item strong { color: #243f68; font-size: 13px; }
.profile-custom-field-delete-item small { overflow: hidden; color: #7186a4; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-custom-field-confirm-delete { min-height: 34px; margin-top: 9px; padding: 0 12px; }
.profile-custom-field-confirm-delete:disabled, .profile-custom-field-actions button:disabled { cursor: not-allowed; opacity: .55; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drawer-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid #dfe8f1; background: #f9fbfd; }
.profile-save-feedback { flex: 1; align-self: center; min-width: 0; margin: 0 auto 0 0; color: #a33b32; font-size: 13px; line-height: 1.4; }
.profile-save-feedback:empty { display: none; }
.profile-save-feedback.is-success { color: #16734a; }
.document-modal { position: relative; width: min(850px, 96vw); max-height: calc(100vh - 40px); display: flex; flex-direction: column; padding: 22px; border-radius: 10px; background: #eef3f7; box-shadow: 0 25px 80px rgba(4,26,64,.3); }
.personnel-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }.person-entry-modal, .person-import-modal { width: min(760px, 100%); max-height: calc(100vh - 36px); display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 25px 80px rgba(4,26,64,.28); }.person-entry-modal > header, .person-import-modal > header { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 26px 16px; border-bottom: 1px solid #e2ebf3; }.person-entry-modal h2, .person-import-modal h2 { margin: 3px 0 5px; }.person-entry-modal header span, .person-import-modal header span { color: #6f86a5; font-size: 12px; }.person-entry-modal header p, .person-import-modal header p { margin: 0; color: #6c81a0; font-size: 13px; }.person-entry-modal form { display: flex; min-height: 0; flex: 1; flex-direction: column; }.person-entry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; overflow-y: auto; padding: 18px 26px 10px; }.person-entry-fields label { min-width: 0; }.person-entry-fields label.wide { grid-column: span 2; }.person-entry-fields label span { display: block; margin-bottom: 6px; color: #506987; font-size: 13px; font-weight: 600; }.person-entry-fields input, .person-entry-fields select { width: 100%; min-height: 39px; padding: 0 10px; border: 1px solid #ceddea; border-radius: 6px; color: #243f68; outline: none; background: #fff; }.person-entry-fields input:focus, .person-entry-fields select:focus { border-color: #0876f2; box-shadow: 0 0 0 3px rgba(8,118,242,.08); }.person-entry-hint { margin: 0; padding: 0 26px 14px; color: #8294ac; font-size: 12px; }.person-entry-modal footer, .person-import-modal footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 26px; border-top: 1px solid #e1eaf2; background: #f9fbfd; }.person-import-steps { display: flex; align-items: center; gap: 10px; padding: 16px 26px; color: #6c83a4; font-size: 13px; background: #f7fbff; }.person-import-steps b:first-child { color: #0876f2; }.person-import-steps i { color: #a3b5c9; font-style: normal; }.person-import-actions { display: flex; gap: 10px; padding: 18px 26px 4px; }.upload-person-file { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }.person-import-file { margin: 8px 26px 14px; color: #6f84a2; font-size: 13px; }.person-import-summary { display: flex; gap: 10px; padding: 0 26px 12px; }.person-import-summary span { padding: 5px 9px; border-radius: 12px; color: #506987; font-size: 12px; background: #eef5fb; }.person-import-summary .ok { color: #17734d; background: #e9f8f0; }.person-import-summary .warn { color: #a65a00; background: #fff5e6; }.person-import-summary .error { color: #b43535; background: #fff0f0; }.person-import-preview { min-height: 0; flex: 1; overflow: auto; margin: 0 26px 18px; border: 1px solid #dce7f1; border-radius: 8px; }.person-import-preview table { width: 100%; min-width: 670px; border-collapse: collapse; font-size: 13px; }.person-import-preview th, .person-import-preview td { padding: 9px 10px; border-bottom: 1px solid #e7eef5; text-align: left; vertical-align: top; }.person-import-preview th { position: sticky; top: 0; color: #4e6788; background: #f2f7fc; }.person-import-preview tr.invalid { background: #fff8f4; }.person-import-preview tr.duplicate { background: #fff5f5; }.person-import-preview td:last-child { min-width: 180px; color: #a65a00; }.person-import-preview tr.duplicate td:last-child { color: #b43535; }
.document-heading span { color: #7186a4; font-size: 12px; }
.document-heading h2 { margin: 3px 0 4px; font-size: 20px; }
.document-heading p { margin: 0; color: #6a809e; font-size: 12px; }
.document-paper { width: min(680px, 100%); min-height: 450px; overflow-y: auto; margin: 16px auto; padding: 48px 58px; color: #222; background: #fff; box-shadow: 0 4px 18px rgba(28,54,84,.15); }
.paper-title { margin-bottom: 30px; text-align: center; }
.paper-title strong, .paper-title span { display: block; }
.paper-title strong { font-family: SimSun, serif; font-size: 23px; }
.paper-title span { margin-top: 8px; color: #777; font-size: 12px; }
.document-paper p { margin: 0 0 18px; font-family: SimSun, serif; line-height: 2; text-indent: 2em; }
.paper-signature { display: grid; justify-content: end; gap: 8px; margin-top: 45px; text-align: center; }
.document-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 1350px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr) 295px; }
  .profile-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-metrics { grid-template-columns: repeat(3, 125px); }
  .profile-tabs { gap: 16px; }
  .profile-timeline { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .profile-timeline article:nth-child(2)::after { display: none; }
}
@media (max-width: 980px) {
  .profile-hero { grid-template-columns: 42px 90px minmax(0, 1fr); grid-template-rows: auto auto; padding-right: 16px; }
  .profile-portrait { width: 86px; height: 100px; }
  .profile-actions { grid-column: 2 / -1; width: 100%; align-self: center; padding: 0; }
  .profile-metrics { grid-column: 2 / -1; width: 100%; grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
  .profile-metrics > * { justify-content: center; }
  .profile-metrics > * + * { padding-left: 8px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { grid-template-columns: 1fr 1fr; }
  .record-grid { grid-template-columns: 1fr; }
  .record-span-2 { grid-column: auto; }
  .material-grid { grid-template-columns: 1fr; }
  .measure-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  #profileView { padding-bottom: 12px; }
  .profile-hero { grid-template-columns: 34px 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 9px; min-height: 160px; padding: 10px 12px; }
  .profile-back { width: 32px; height: 34px; margin: 0; font-size: 23px; }
  .profile-portrait { width: 70px; height: 84px; }
  .profile-name-line { flex-wrap: wrap; gap: 6px; }
  .profile-name-line h1 { width: 100%; font-size: 23px; }
  .profile-identity > p { margin: 5px 0; font-size: 14px; }
  .profile-meta { gap: 6px; font-size: 11px; }
  .profile-identity > .profile-tag-list { margin-top: 7px; }
  .profile-tag-create { grid-template-columns: 1fr 80px; }.profile-tag-create .outline-btn { grid-column: 1 / -1; }
  .profile-actions { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
  .profile-actions button { min-width: 0; padding: 0 10px; }
  .profile-upload-modal { width: min(100vw - 20px, 680px); padding: 18px; }.profile-upload-fields { grid-template-columns: 1fr; }.profile-upload-fields .wide { grid-column: auto; }.evaluation-list article { display: grid; gap: 12px; }.evaluation-actions { justify-content: flex-end; }.uploaded-file-preview { min-height: 300px; }
  .profile-metrics { grid-column: 1 / -1; }
  .profile-metrics > * { display: grid; justify-items: center; gap: 1px; padding: 7px 3px 0; text-align: center; }
  .profile-metrics > * + * { padding-left: 3px; }
  .profile-metrics strong { font-size: 20px; }
  .profile-metrics span { font-size: 10px; }
  .profile-tabs { justify-content: space-between; gap: 0; min-height: 48px; padding: 0 6px; }
  .profile-tabs .profile-tab { min-width: 0; font-size: 13px; }
  .profile-layout, .record-grid { margin-top: 9px; }
  .profile-side { grid-template-columns: 1fr; }
  .profile-section { padding: 11px 12px; }
  .profile-section-bar h2 { font-size: 16px; }
  .profile-info-grid { grid-template-columns: 1fr 1fr; gap: 13px 9px; padding: 11px 4px 4px; }
  .profile-basic-info .profile-info-grid { grid-template-columns: 1fr 1fr; gap: 13px 9px; }
  .profile-current-position .profile-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-info-item.wide { grid-column: 1 / -1; }
  .profile-achievement-list article { grid-template-columns: 42px 30px minmax(0, 1fr); padding: 8px 0; }
  .profile-achievement-list article > span { grid-column: 3; justify-self: start; }
  .profile-achievement-list p { line-height: 1.4; }
  .profile-timeline { grid-template-columns: 1fr; }
  .profile-timeline article::after { display: none; }
  .record-table { overflow-x: auto; }
  .record-row { min-width: 590px; }
  .family-table .record-row { min-width: 680px; }
  .resume-list article { grid-template-columns: 1fr; gap: 5px; }
  .performance-tools { align-items: stretch; flex-direction: column; }
  .category-filter { display: grid; grid-template-columns: repeat(3, 1fr); }
  .category-filter button { padding: 0 5px; font-size: 12px; }
  .development-section .profile-timeline { padding-left: 0; }
  .development-section .profile-timeline article { grid-template-columns: 70px 36px 1fr; padding-right: 0; }
  .measure-grid { grid-template-columns: 1fr; }
  .material-summary { gap: 12px; justify-content: space-between; padding-inline: 5px; font-size: 11px; }
  .material-summary strong { display: block; margin: 2px 0 0; }
  .material-grid article { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 10px; }
  .material-icon { width: 38px; height: 48px; }
  .material-grid h3 { font-size: 13px; }
  .document-paper { min-height: 400px; padding: 35px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

.profile-export-backdrop { z-index: 1400; padding: 20px; }
.profile-export-dialog { width: min(1080px, 100%); max-height: min(92vh, 980px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dce6f1; border-radius: 10px; background: #fff; box-shadow: 0 24px 70px rgba(8, 34, 70, .22); }
.profile-export-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 24px 14px; border-bottom: 1px solid #e5edf5; }
.profile-export-dialog > header span { color: #0876f9; font-size: 12px; }
.profile-export-dialog > header h2 { margin: 5px 0; color: #102e58; font-size: 20px; }
.profile-export-dialog > header p { margin: 0; color: #6d819b; font-size: 13px; }
.profile-export-toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: #6d819b; font-size: 13px; }
.profile-export-sections { min-height: 0; flex: 1; display: grid; align-content: start; gap: 12px; overflow-y: auto; padding: 0 24px 18px; }
.profile-export-item { min-width: 0; overflow: hidden; border: 1px solid #dce6f1; border-radius: 6px; background: #fff; }
.profile-export-item.is-excluded { opacity: .52; }
.profile-export-choice { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-bottom: 1px solid #e5edf5; color: #18365e; font-size: 14px; font-weight: 700; }
.profile-export-choice input { width: 16px; height: 16px; accent-color: #0876f9; }
.profile-export-editor { max-height: 290px; overflow: auto; padding: 12px; outline: none; background: #fff; }
.profile-export-editor:focus { box-shadow: inset 0 0 0 2px #91c4ff; }
.profile-export-editor .profile-section-actions, .profile-export-editor button { display: none !important; }
.profile-export-editor .profile-section { width: 100%; margin: 0; box-shadow: none; }
.profile-export-dialog > footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid #e5edf5; background: #fff; }
.profile-export-print { display: none; }
@media (max-width: 640px) { .profile-export-backdrop { padding: 0; align-items: end; }.profile-export-dialog { width: 100%; max-height: 94dvh; border-radius: 10px 10px 0 0; }.profile-export-dialog > header, .profile-export-toolbar { padding-inline: 16px; }.profile-export-sections { padding-inline: 12px; }.profile-export-dialog > footer { padding-inline: 16px; }.profile-export-editor { max-height: 220px; padding: 8px; } }

@page { size: A4 landscape; margin: 10mm; }
@media print {
  html, body { width: auto; overflow: visible !important; background: #fff !important; }
  .sidebar, .topbar, .profile-actions, .profile-tabs, .profile-back, .toast, .drawer-backdrop, .modal-backdrop, .document-actions { display: none !important; }
  .workspace { width: 100% !important; min-height: 0; margin: 0 !important; }
  main { padding: 0 !important; }
  .view { display: none !important; }
  #profileView.active { display: block !important; }
  .surface, .profile-section { break-inside: avoid; border-color: #cfd6dd; box-shadow: none !important; }
  .profile-hero { min-height: 0; grid-template-columns: 95px 1fr; grid-template-rows: auto; row-gap: 6px; padding: 8px 14px; }
  .profile-portrait { width: 80px; height: 92px; }
  .profile-identity { grid-column: 2; }
  .profile-metrics { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .profile-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .profile-info-grid { grid-template-columns: repeat(4, 1fr); }
  .profile-timeline { grid-template-columns: repeat(4, 1fr); }
  body.printing-document #profileView { display: none !important; }
  body.printing-document #documentBackdrop { position: static; display: block !important; padding: 0; background: #fff; }
  body.printing-document .document-modal { width: 100%; max-height: none; padding: 0; box-shadow: none; background: #fff; }
  body.printing-document .document-heading, body.printing-document .document-modal > .modal-close { display: none; }
  body.printing-document .document-paper { width: 100%; min-height: 0; margin: 0; padding: 12mm 18mm; overflow: visible; box-shadow: none; }
  body.printing-profile-export > *:not(#profileExportPrint) { display: none !important; }
  body.printing-profile-export #profileExportPrint { display: block !important; color: #102e58; }
  body.printing-profile-export #profileExportPrint > header { margin-bottom: 12mm; border-bottom: 1px solid #b8c9dc; }
  body.printing-profile-export #profileExportPrint > header h1 { padding-bottom: 5mm; font-size: 20pt; }
  body.printing-profile-export #profileExportPrint .profile-section { margin: 0 0 7mm; break-inside: avoid; border-color: #cfd6dd; box-shadow: none !important; }
  body.printing-profile-export #profileExportPrint .profile-section-actions, body.printing-profile-export #profileExportPrint button { display: none !important; }
  body.printing-profile-export #profileExportPrint .profile-section-collapse-content[hidden] { display: block !important; }
}

@media (max-width: 1350px) {
  .person-picker-toolbar { grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(130px, 1fr)); }
  .person-picker-toolbar .person-picker-advanced-toggle, .person-picker-toolbar #personPickerReset { justify-self: start; }
}

@media (max-width: 640px) {
  .person-picker-backdrop { align-items: end; padding: 0; }
  .person-picker { width: 100%; max-height: 94vh; border-radius: 14px 14px 0 0; }
  .person-picker-header { padding: 16px; }
  .person-picker-header h2 { font-size: 19px; }
  .person-picker-source-bar { align-items: stretch; flex-direction: column; padding: 10px 16px 0; }
  .person-picker-sources { padding: 10px 16px 0; }
  .person-picker-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 16px; }
  .person-picker-search { grid-column: 1 / -1; }
  .person-picker-toolbar .person-picker-advanced-toggle, .person-picker-toolbar #personPickerReset { width: 100%; justify-content: center; }
  .person-picker-advanced { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 16px 10px; }
  .person-picker-advanced label:last-child { grid-column: 1 / -1; }
  .person-picker-meta { padding: 0 16px; }
  .person-picker-table-wrap { margin: 0 16px; }
  .person-picker-footer { padding: 12px 16px 16px; }
.person-picker-footer .ghost-btn, .person-picker-footer .primary-btn { padding-inline: 12px; }
}

/* Spreadsheet imports and structured achievement details. */
#dataImportView .personnel-heading p { margin: 8px 0 0; color: #7185a3; font-size: 13px; }
.data-import-notice { padding: 12px 16px; border: 1px solid #cfe1f5; border-radius: 8px; color: #416689; background: #f1f7ff; font-size: 13px; line-height: 1.7; }
.data-import-row-guide { margin: 16px 0 20px; padding: 14px 16px; border: 1px solid #cfe1f5; border-radius: 8px; background: #f7fbff; }
.data-import-row-guide strong { color: #1d4d78; font-size: 14px; }
.data-import-row-guide p { margin: 6px 0 10px; color: #587492; }
.data-import-row-guide > div { display: flex; flex-wrap: wrap; gap: 8px; }
.data-import-row-guide span { padding: 5px 9px; border-radius: 4px; color: #28608d; background: #e9f4ff; font-size: 12px; }
.data-import-areas { display: flex; gap: 8px; margin: 0 0 16px; border-bottom: 1px solid #dce6ef; }
.data-import-areas button { padding: 11px 16px; border: 0; border-bottom: 2px solid transparent; color: #6b819d; background: transparent; font: inherit; cursor: pointer; }
.data-import-areas button.active { border-color: #0874e9; color: #0874e9; font-weight: 650; }
.data-import-areas button:focus-visible, .data-import-template-link:focus-visible { outline: 2px solid #1681ed; outline-offset: 2px; }
.data-import-people > header { display: flex; justify-content: space-between; }
.data-import-target { display: flex; align-items: center; gap: 14px; max-width: 600px; margin: 18px 0; color: #416689; font-size: 13px; }
.data-import-target select { min-width: 260px; padding: 10px 12px; border: 1px solid #cedceb; border-radius: 6px; color: #1a3961; background: #fff; font: inherit; }
.data-import-people-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.data-import-people-actions article { min-width: 0; padding: 20px; border: 1px solid #dce6ef; border-radius: 6px; }
.data-import-people-actions h3 { margin: 0 0 8px; color: #1a3961; font-size: 16px; }
.data-import-people-actions p { min-height: 44px; }
.data-import-template-link { margin-top: 20px; padding: 0; border: 0; color: #0874e9; background: transparent; font: inherit; cursor: pointer; }
.data-import-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 20px 0; list-style: none; }
.data-import-steps li { padding: 12px 16px; border: 1px solid #dce6ef; border-radius: 8px; color: #7185a3; background: #fff; font-size: 13px; }
.data-import-steps li.active { border-color: #0874e9; color: #0874e9; background: #eef6ff; font-weight: 700; }
.data-import-steps li.complete { color: #217b65; background: #f2faf7; border-color: #cce7db; }
.data-import-panel { padding: 24px; border: 1px solid #dce6ef; border-radius: 10px; background: #fff; }
.data-import-panel h2 { margin: 0 0 10px; font-size: 20px; color: #1a3961; }
.data-import-panel h3 { margin: 22px 0 12px; font-size: 15px; color: #1a3961; }
.data-import-panel p { color: #7185a3; font-size: 13px; line-height: 1.7; }
.data-import-upload { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 22px 0; padding: 34px 16px; border: 1px dashed #a7c9ec; border-radius: 8px; background: #f8fbff; }
.data-import-upload > span { color: #0874e9; font-size: 16px; font-weight: 600; }
.data-import-upload input { max-width: 100%; font: inherit; font-size: 13px; }
.data-import-upload small { color: #7185a3; font-size: 12px; }
.data-import-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.data-import-form label, .imported-detail-grid label { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #416689; font-size: 13px; }
.data-import-form input, .data-import-form select, .imported-detail-grid input, .imported-detail-grid textarea, .performance-selects select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #cedceb; border-radius: 6px; font: inherit; color: #1a3961; background: #fff; }
.data-import-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.data-import-fields dl { min-width: 0; margin: 0; padding: 13px 16px; border: 1px solid #e1eaf3; border-radius: 7px; background: #f9fbfe; }
.data-import-fields dt { margin-bottom: 7px; color: #1a3961; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.data-import-fields dd { margin: 0; color: #7185a3; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.data-import-example dd { color: #274b70; }
.data-import-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.data-import-summary > span { padding: 9px 14px; border: 1px solid #dce6ef; border-radius: 7px; background: #f8fbff; color: #59738d; font-size: 13px; }
.data-import-summary b { margin-left: 8px; color: #0874e9; font-size: 18px; }
.data-import-table-wrap { max-height: 480px; overflow: auto; border: 1px solid #e1eaf3; border-radius: 7px; }
.data-import-table { width: 100%; min-width: 740px; border-collapse: collapse; text-align: left; font-size: 13px; }
.data-import-table th { position: sticky; top: 0; padding: 13px 12px; color: #59738d; background: #f4f8fd; z-index: 1; white-space: nowrap; }
.data-import-table td { padding: 13px 12px; border-top: 1px solid #e9eff6; color: #59738d; line-height: 1.7; overflow-wrap: anywhere; max-width: 280px; }
.data-import-table td strong { color: #1a3961; }
.data-import-table label { white-space: nowrap; }
.data-import-table input { accent-color: #0874e9; }
.data-import-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e9eff6; }
.data-import-panel .data-import-error, .data-import-error { padding: 10px 14px; border: 1px solid #efcbca; border-radius: 6px; color: #aa3934; background: #fff4f3; font-size: 13px; }
.data-import-retry { margin-left: 12px; padding: 4px 10px; border: 1px solid #d9a6a3; border-radius: 5px; color: #91312d; background: #fff; font-size: 12px; }
.data-import-retry:hover, .data-import-retry:focus-visible { border-color: #b96a66; background: #fffafa; }
.data-import-result-list > p { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.data-import-result details { padding: 16px; border-radius: 7px; background: #f8fbff; color: #59738d; font-size: 13px; }
.data-import-result details li { margin-top: 8px; }
/* Keep preview and result actions outside the scrolling data region. */
#dataImportView.active:has(#dataImportContent[data-import-step="3"], #dataImportContent[data-import-step="4"]) { height: calc(100dvh - 100px); display: flex; flex-direction: column; min-height: 0; }
#dataImportView > .personnel-heading { flex: 0 0 auto; }
#dataImportView:has(#dataImportContent[data-import-step="3"], #dataImportContent[data-import-step="4"]) > .personnel-heading { min-height: 44px; }
#dataImportContent:is([data-import-step="3"], [data-import-step="4"]) { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
#dataImportContent:is([data-import-step="3"], [data-import-step="4"]) > .data-import-notice { margin: 0; flex: 0 0 auto; }
#dataImportContent:is([data-import-step="3"], [data-import-step="4"]) > .data-import-steps { margin: 12px 0; flex: 0 0 auto; }
#dataImportContent:is([data-import-step="3"], [data-import-step="4"]) > .data-import-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; padding: 18px; }
.data-import-result { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
.data-import-panel-head { flex: 0 0 auto; }
.data-import-panel-head > p { margin: 0 0 12px; }
.data-import-panel-head .data-import-summary { margin: 0 0 12px; gap: 6px; }
.data-import-panel-head .data-import-summary > span { padding: 5px 9px; }
.data-import-scroll { flex: 1; min-height: 0; min-width: 0; max-height: none; overflow: auto; overscroll-behavior: contain; }
.data-import-result-list { padding: 0 12px; border: 1px solid #e1eaf3; border-radius: 7px; }
.data-import-result-list > p { padding: 8px 0; margin: 0; border-bottom: 1px solid #e9eff6; }
.data-import-result-list > p:last-child { border-bottom: 0; }
#dataImportContent:is([data-import-step="3"], [data-import-step="4"]) .data-import-actions { flex: 0 0 auto; margin-top: 12px; padding-top: 12px; background: #fff; }
@media (max-width: 640px) {
  #dataImportView.active:has(#dataImportContent[data-import-step="3"], #dataImportContent[data-import-step="4"]) { height: calc(100dvh - 78px); }
  #dataImportContent:is([data-import-step="3"], [data-import-step="4"]) > .data-import-panel { padding: 12px; }
  #dataImportContent:is([data-import-step="3"], [data-import-step="4"]) .data-import-notice { padding: 8px 10px; font-size: 12px; }
  .data-import-panel-head h2 { font-size: 18px; margin-bottom: 6px; }
  .data-import-panel-head > p { margin-bottom: 8px; font-size: 12px; }
  .data-import-panel-head .data-import-summary { gap: 4px; margin-bottom: 8px; }
  .data-import-panel-head .data-import-summary > span { padding: 3px 6px; font-size: 11px; }
  .data-import-panel-head .data-import-summary b { font-size: 14px; margin-left: 4px; }
}
@media (max-height: 650px) {
  #dataImportContent:is([data-import-step="3"], [data-import-step="4"]) > .data-import-notice { padding: 6px 10px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #dataImportContent:is([data-import-step="3"], [data-import-step="4"]) > .data-import-steps { margin: 8px 0; gap: 4px; }
  #dataImportContent:is([data-import-step="3"], [data-import-step="4"]) .data-import-steps li { padding: 7px 10px; }
  #dataImportContent:is([data-import-step="3"], [data-import-step="4"]) > .data-import-panel { padding: 12px; }
  .data-import-panel-head h2 { margin-bottom: 6px; font-size: 18px; }
  .data-import-panel-head > p { margin-bottom: 6px; font-size: 12px; }
  .data-import-panel-head .data-import-summary { margin-bottom: 8px; gap: 4px; }
  .data-import-panel-head .data-import-summary > span { padding: 3px 6px; font-size: 11px; }
  .data-import-panel-head .data-import-summary b { margin-left: 4px; font-size: 14px; }
  #dataImportContent:is([data-import-step="3"], [data-import-step="4"]) .data-import-actions { margin-top: 8px; padding-top: 8px; }
}

.performance-selects { display: flex; gap: 10px; flex-wrap: wrap; }
.performance-selects select { width: auto; font-size: 12px; }
.imported-achievement-backdrop { display: flex; align-items: center; justify-content: center; padding: 24px; }
.imported-achievement-drawer { width: min(860px, 100%); max-height: calc(100dvh - 48px); padding: 24px; overflow-y: auto; border-radius: 16px; background: #fff; box-shadow: 0 25px 80px rgba(4,26,64,.25); }
.imported-achievement-drawer > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid #e1eaf3; }
.imported-achievement-drawer header span { color: #0874e9; font-size: 12px; }
.imported-achievement-drawer h2 { margin: 8px 0 0; color: #1a3961; font-size: 21px; overflow-wrap: anywhere; }
.imported-achievement-drawer footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.imported-achievement-meta { color: #416689; font-size: 13px; }
.imported-achievement-source { color: #7185a3; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.imported-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.imported-detail-grid > div { min-width: 0; padding: 16px; border-radius: 7px; background: #f8fbff; }
.imported-detail-grid .wide { grid-column: 1 / -1; }
.imported-detail-grid dt { margin-bottom: 8px; color: #7185a3; font-size: 12px; }
.imported-detail-grid dd { margin: 0; color: #1a3961; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.imported-detail-grid textarea { resize: vertical; line-height: 1.7; }
@media (max-width: 980px) {
  .data-import-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-import-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-tools { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 640px) {
  .data-import-panel { padding: 16px; }
  .data-import-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .data-import-steps li { padding: 10px 12px; font-size: 12px; }
  .data-import-fields, .data-import-form, .imported-detail-grid { grid-template-columns: 1fr; }
  .data-import-actions { flex-wrap: wrap; }
  .data-import-actions > button { max-width: 100%; white-space: normal; }
  .data-import-upload { padding: 24px 10px; }
  .imported-achievement-backdrop { padding: 12px; }
  .imported-achievement-drawer { max-height: calc(100dvh - 24px); padding: 18px; }
  .performance-selects { width: 100%; }
  .performance-selects select { flex: 1; min-width: 120px; }
}

.person-import-config { padding: 0 26px 14px; overflow-y: auto; max-height: 42vh; }
.person-import-selectors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .35fr); gap: 12px; margin-bottom: 16px; }
.person-import-selectors label, .person-import-map-field { display: flex; flex-direction: column; gap: 6px; color: #506987; font-size: 12px; }
.person-import-selectors select, .person-import-selectors input, .person-import-map-field select { width: 100%; min-width: 0; min-height: 36px; padding: 6px 9px; border: 1px solid #ceddea; border-radius: 6px; color: #243f68; background: #fff; font: inherit; }
.person-import-mapping-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.person-import-mapping-heading h3 { margin: 0; color: #243f68; font-size: 14px; }
.person-import-mapping-heading p { margin: 0; color: #7185a3; font-size: 11px; }
.person-import-mapping { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.person-import-map-field { min-width: 0; }
.person-import-map-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #425d7c; font-weight: 600; }
.person-import-map-field small { color: #8798ad; font-size: 10px; font-weight: 400; text-align: right; }
.person-import-extension-fields,.person-import-new-fields{grid-column:1/-1;margin-top:12px;padding-top:12px;border-top:1px solid #e2e9ec}
.person-import-extension-fields h4,.person-import-new-fields h4{margin:0 0 9px;color:#314a52;font-size:13px}
.person-import-new-fields p{margin:0 0 8px;color:#6b7d82;font-size:12px}
.person-import-new-fields>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid #edf1f2;color:#40555b;font-size:13px}
.person-import-map-status { margin: 12px 0 0; color: #17734d; font-size: 12px; }
.person-import-map-status.error { color: #aa3934; }
@media (max-width: 640px) {
  .person-import-config { padding: 0 16px 12px; max-height: 38vh; }
  .person-import-mapping-heading { display: block; }
  .person-import-mapping-heading p { margin-top: 5px; }
  .person-import-mapping { grid-template-columns: 1fr; }
}

/* Personnel dimensions; the profile hero and its actions retain their existing styles. */
.dimension-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; color: #7a8fab; font-size: 12px; }
.dimension-toolbar .outline-btn { padding: 7px 13px; }
.profile-basic-dimensions .profile-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 20px; gap: 20px 16px; }
.education-dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.education-dimensions article { min-width: 0; padding: 12px; border-radius: 6px; background: #f7faff; }
.education-dimensions h3 { margin: 0 0 12px; color: #0874e8; font-size: 14px; }
.education-dimensions dl { margin: 0; }
.education-dimensions dl > div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 8px; padding: 6px 0; }
.education-dimensions dt { color: #7488a5; font-size: 12px; }
.education-dimensions dd { margin: 0; color: #213f67; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.dimension-subtitle { margin: 22px 0 8px; font-size: 14px; }
.dimension-note, .dimension-empty { color: #7b8da8; font-size: 12px; line-height: 1.7; }
.dimension-empty { margin: 16px 0; padding: 20px 10px; text-align: center; border-radius: 6px; background: #f8fbfe; }
.dimension-table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid #e0eaf4; border-radius: 6px; }
.dimension-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.dimension-table th, .dimension-table td { padding: 11px 14px; border-bottom: 1px solid #e5edf5; overflow-wrap: anywhere; }
.dimension-table th { color: #617999; background: #f0f6fc; white-space: nowrap; }
.dimension-table tr:last-child td { border-bottom: 0; }
.dimension-long-text { min-height: 50px; padding: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #3b557a; line-height: 1.7; }
.profile-supplement { margin-top: 12px; padding: 14px 16px; }
.profile-supplement summary { cursor: pointer; color: #597398; font-size: 13px; }
.case-count-chart { min-height: 250px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 18px; margin: 14px 0 20px; padding: 20px 22px 14px; border: 1px solid #e2ebf4; border-radius: 8px; background: linear-gradient(to bottom, #fff 0 24%, #f8fbfe 24% 25%, #fff 25% 49%, #f8fbfe 49% 50%, #fff 50% 74%, #f8fbfe 74% 75%, #fff 75%); }
.case-chart-column { min-width: 0; height: 212px; display: grid; grid-template-rows: 24px minmax(0, 1fr) 24px; justify-items: center; align-items: end; }
.case-chart-value { color: #55718f; font-size: 12px; font-weight: 700; }
.case-chart-track { width: min(54px, 70%); height: 100%; display: flex; align-items: end; overflow: hidden; border-radius: 6px 6px 0 0; background: #edf4fb; }
.case-chart-track i { width: 100%; height: var(--bar-height); min-height: 0; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #36a1ff 0%, #0876f9 100%); transition: height .25s ease; }
.case-chart-year { align-self: end; color: #7187a6; font-size: 12px; white-space: nowrap; }
.performance-dashboard { height: min(620px, calc(100vh - 166px)); min-height: 420px; grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr); grid-template-rows: minmax(0, 1fr); gap: 14px; align-items: stretch; }
.performance-dashboard > .performance-main, .performance-dashboard > .performance-side { min-width: 0; display: grid; align-content: start; gap: 14px; }
.performance-dashboard > .performance-main { display: flex; align-self: stretch; align-items: stretch; min-height: 0; height: 100%; padding: 0; }
.performance-dashboard > .performance-side { align-self: stretch; }
.performance-dashboard > .performance-side { min-height: 0; align-content: stretch; }
.profile-work-achievements { width: 100%; height: 100%; min-width: 0; min-height: 0; flex: 1 1 auto; align-self: stretch; display: flex; flex-direction: column; overflow: hidden; }
.profile-work-achievements > .profile-section-bar { flex: 0 0 auto; }
.work-achievements-scroll { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: 7px; }
.work-achievements-scroll::-webkit-scrollbar { width: 8px; }
.work-achievements-scroll::-webkit-scrollbar-thumb { border-radius: 8px; background: #c9d8e8; }
.work-achievements-scroll::-webkit-scrollbar-track { background: #f3f7fb; }
.profile-work-achievements .profile-achievement-list article { grid-template-columns: 76px 38px minmax(0, 1fr) auto; min-height: 76px; }
.performance-side .profile-section { padding: 14px; }
.performance-side .profile-section-bar h2 { font-size: 16px; }
.performance-side .dimension-long-text { min-height: 0; margin: 4px 0; padding: 7px 0; font-size: 13px; }
.performance-side .profile-summary-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.performance-side .profile-summary-stats span { padding: 7px; font-size: 11px; }
.performance-side .profile-summary-stats strong { display: block; margin: 0 0 2px; font-size: 19px; }
.performance-side .case-count-chart { min-height: 174px; gap: 5px; margin: 9px 0 6px; padding: 12px 7px 8px; }
.performance-side .case-chart-column { height: 147px; grid-template-rows: 19px minmax(0, 1fr) 20px; }
.performance-side .case-chart-value, .performance-side .case-chart-year { font-size: 10px; }
.performance-side .case-chart-track { width: min(30px, 75%); }
.case-chart-summary { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; color: #7288a5; font-size: 12px; }
.case-chart-summary strong { color: #0876f9; font-size: 24px; }
.case-chart-details { margin-top: 8px; border-top: 1px solid #e6eef6; color: #587395; font-size: 12px; }
.case-chart-details summary { padding: 9px 0 2px; cursor: pointer; }
.case-chart-records .dimension-table-wrap { margin-bottom: 2px; }
.case-chart-records .dimension-table th:first-child, .case-chart-records .dimension-table td:first-child { min-width: 72px; white-space: nowrap; overflow-wrap: normal; }
.profile-dimension-modal { width: min(900px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 24px; border-radius: 16px; background: #fff; box-shadow: 0 25px 80px rgba(4,26,64,.25); }
.profile-dimension-modal > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #e0eaf3; }
.profile-dimension-modal h2 { margin: 0; font-size: 21px; }
.profile-dimension-modal fieldset { margin: 18px 0; padding: 14px; border: 1px solid #dde8f4; border-radius: 8px; min-width: 0; }
.profile-dimension-modal legend, .dimension-edit-list h3 { color: #426187; font-size: 14px; font-weight: 600; }
.dimension-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dimension-form-grid .wide { grid-column: 1 / -1; }
.dimension-form-grid label > span { display: block; margin-bottom: 7px; color: #6c819e; font-size: 12px; }
.dimension-form-grid input, .dimension-form-grid textarea { width: 100%; min-width: 0; min-height: 40px; padding: 9px; border: 1px solid #cadbeb; border-radius: 6px; color: #25446b; font: inherit; }
.dimension-form-grid input:focus-visible, .dimension-form-grid textarea:focus-visible { outline: 2px solid #1488ef; outline-offset: 1px; }
.dimension-edit-row > button { display: block; margin: 12px 0 0 auto; }
.profile-dimension-modal footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
@media (max-width: 1200px) { .profile-tabs .profile-tab { font-size: 14px; padding-inline: 6px; }.profile-tabs { gap: 4px; padding-inline: 10px; } }
@media (max-width: 800px) { .profile-basic-dimensions { grid-template-columns: 1fr; }.profile-basic-dimensions .record-span-2 { grid-column: auto; }.case-count-chart { min-height: 220px; gap: 8px; padding-inline: 10px; }.case-chart-column { height: 185px; }.case-chart-track { width: min(42px, 75%); }.profile-group-grid { grid-template-columns: 1fr; }.profile-group-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }.performance-dashboard { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }.performance-dashboard > .performance-main, .performance-dashboard > .performance-side { display: grid; grid-template-columns: minmax(0, 1fr); }.performance-dashboard > .performance-side { position: static; }.profile-work-achievements { height: min(65vh, 560px); min-height: 280px; }.work-achievements-scroll { overflow-y: auto; padding-right: 7px; }.performance-side .case-count-chart { min-height: 220px; gap: 10px; padding: 18px 14px 10px; }.performance-side .case-chart-column { height: 185px; }.performance-side .case-chart-track { width: min(48px, 70%); }.profile-work-achievements .profile-achievement-list article { grid-template-columns: 58px 34px minmax(0, 1fr) auto; min-height: 66px; } }
@media (max-width: 520px) { .profile-tabs { justify-content: flex-start; }.profile-basic-dimensions .profile-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.profile-basic-dimensions .appointment-dimension .profile-info-grid { grid-template-columns: 1fr; }.education-dimensions { grid-template-columns: 1fr; }.dimension-form-grid { grid-template-columns: 1fr; }.profile-dimension-modal { padding: 18px; max-height: calc(100dvh - 24px); }.dimension-table { min-width: 520px; }.profile-module-grid, .profile-group-side { grid-template-columns: 1fr; }.profile-section-bar { align-items: flex-start; }.profile-section-actions { flex-shrink: 0; }.profile-custom-fields > div { grid-template-columns: 1fr auto; }.profile-custom-fields dd { grid-row: 2; } }
.bar[data-zero="true"] { height: 0; min-height: 0; }
.chart-empty { height: 126px; display: grid; place-items: center; margin-top: 10px; border-bottom: 1px solid #c7d7e9; color: #8294ad; font-size: 14px; }
.chart-card[data-chart="department"] .bars { height: 126px; padding-bottom: 23px; }
.chart-card[data-chart="department"] .bar-item { position: relative; }
.chart-card[data-chart="department"] .bar-item span { left: 0; bottom: 1px; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 9px; }
.profile-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(480px, 100%); }
.profile-section-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; color: inherit; font: inherit; font-weight: inherit; background: transparent; cursor: pointer; }
.profile-section-toggle > span { color: #7890ad; font-size: 16px; transition: transform .16s ease; }
.profile-section-toggle[aria-expanded="true"] > span { transform: rotate(180deg); }
.profile-section-toggle:focus-visible { outline: 2px solid #1488ef; outline-offset: 3px; border-radius: 2px; }
.profile-section-collapse-content[hidden] { display: none; }
.profile-tag-modal { width: min(620px, calc(100vw - 28px)); max-height: min(680px, calc(100vh - 28px)); overflow: auto; padding: 24px; border-radius: 14px; background: #fff; box-shadow: 0 18px 56px rgba(21, 60, 99, .22); }
.profile-tag-modal > header { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid #e3edf6; }
.profile-tag-modal > header span { color: #2781dc; font-size: 13px; font-weight: 700; }
.profile-tag-modal h2 { margin: 4px 0; color: #10275c; }
.profile-tag-modal header p { margin: 0; color: #7690ad; font-size: 13px; }
.profile-tag-modal-body { padding: 20px 0 4px; }
.profile-tag-modal .profile-tag-choices { max-height: 260px; }
.profile-tag-modal footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e3edf6; }
.profile-achievement-list .profile-achievement-item { min-height: 0; border-bottom: 1px solid #e8eff6; }
.profile-achievement-item > summary { min-height: 62px; display: grid; grid-template-columns: 58px 34px minmax(0, 1fr) auto 16px; align-items: center; gap: 11px; cursor: pointer; list-style: none; }
.profile-achievement-item > summary::-webkit-details-marker { display: none; }
.profile-achievement-item > summary::after { content: "⌄"; color: #7890ad; font-size: 16px; transition: transform .16s ease; }
.profile-achievement-item[open] > summary::after { transform: rotate(180deg); }
.profile-achievement-item summary time { color: #7185a3; font-size: 12px; }
.profile-achievement-item summary h3 { margin: 0 0 4px; font-size: 14px; }
.profile-achievement-item summary p { margin: 0; color: #7487a4; font-size: 11px; }
.profile-achievement-item summary > span { padding: 4px 9px; border-radius: 3px; color: #087b61; font-size: 11px; white-space: nowrap; background: #e5f7f1; }
.profile-achievement-detail { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 0 16px 14px 104px; color: #536f90; font-size: 13px; line-height: 1.6; }
.profile-achievement-detail p { margin: 0; white-space: pre-wrap; }
.profile-achievement-detail .outline-btn { flex: 0 0 auto; }
@media (max-width: 520px) {
  .profile-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .profile-tag-modal { width: calc(100vw - 20px); padding: 18px; }
  .profile-achievement-item > summary { grid-template-columns: 42px 30px minmax(0, 1fr) 14px; gap: 8px; padding: 8px 0; }
  .profile-achievement-item summary > span { grid-column: 3; justify-self: start; }
  .profile-achievement-item > summary::after { grid-column: 4; grid-row: 1; }
  .profile-achievement-detail { padding-left: 0; }
}

/* Cropped character portraits shared by personnel and profile views. */
.person-avatar-image { display: block; width: 100%; height: 100%; min-width: 0; object-fit: contain; }
.profile-portrait, .personnel-avatar, .person-search-avatar { background: linear-gradient(145deg, #eef5fc, #d6e7f7); }
.personnel-avatar, .person-search-avatar { overflow: hidden; }
.profile-portrait { place-items: center; }
.person-search-avatar { padding: 0; }
.person-search-avatar:hover, .person-search-avatar:focus-visible { background: #d6e7f7; }
/* System settings: shared blue and white configuration panels. */
.settings-page{background:#f1f7fe;border-radius:18px;min-height:calc(100dvh - 112px);padding:28px!important;color:var(--ink)}
.settings-page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.settings-page-heading h1{font-size:28px;margin:0;font-weight:750}.settings-page-heading>span{color:#7188a5;font-size:13px}
.settings-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;align-items:start}.settings-nav{background:white;border:1px solid #dce8f6;border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:6px}.settings-nav button{display:flex;align-items:center;gap:12px;border:0;background:none;color:#6a83a4;border-radius:9px;padding:17px 14px;text-align:left;font-size:15px}.settings-nav svg{width:22px;height:22px;flex-shrink:0}.settings-nav button:hover{background:#f3f8ff}.settings-nav button.active{color:#0876f9;background:#eaf4ff;font-weight:700}
.settings-panel{padding:0!important;border:1px solid #dce8f6;border-radius:14px!important;display:flex;flex-direction:column;height:calc(100dvh - 210px);min-height:0;overflow:hidden}.settings-panel-heading{padding:27px 30px 18px;flex:none}.settings-panel-heading h2{font-size:23px;margin:0 0 12px}.settings-panel-heading p{color:#7188a5;margin:0;font-size:14px;line-height:1.6}.settings-panel-body{padding:0 30px 20px;overflow:auto;min-height:0;overscroll-behavior:contain;flex:1}.settings-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 30px;border-top:1px solid #e1ebf7;background:white}.settings-footer>span{font-size:12px;color:#7188a5}.settings-footer>div{display:flex;gap:10px}.settings-footer button{min-height:40px}
.settings-section{padding:18px 0 22px;border-bottom:1px solid #e0eaf6}.settings-section:last-child{border:0}.settings-section h3{font-size:16px;margin:0 0 18px}.settings-section p{font-size:13px;line-height:1.7;color:#7188a5}.settings-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.settings-field{display:flex;flex-direction:column;gap:9px;font-size:14px;font-weight:500}.settings-field input,.settings-field select,.settings-field textarea,.settings-log-filters input,.settings-log-filters select{border:1px solid #d6e5f8;border-radius:8px;background:white;min-height:42px;padding:10px 12px;color:var(--ink);font:inherit;max-width:100%;width:100%}.settings-field input:disabled{background:#f5f8fc;color:#7188a5}.settings-hint{color:#7188a5;font-size:12px}.settings-note{background:#eaf4ff;border-radius:9px;padding:16px 18px;color:#7188a5;font-size:13px;line-height:1.7;margin-top:20px}.settings-loading,.settings-empty{color:#7188a5;padding:25px;text-align:center}
.settings-list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:12px 0 22px}.settings-list-toolbar input{flex:1;min-width:0;border:1px solid #d6e5f8;border-radius:9px;padding:13px 15px;font:inherit}.settings-list-toolbar h3{font-size:17px;margin:0}.settings-list-toolbar>.primary-btn{white-space:nowrap;min-height:44px}.settings-table-scroll{overflow:auto;max-height:min(480px,45dvh);max-width:100%;overscroll-behavior:contain;border-radius:2px;outline-offset:2px}.settings-table-scroll table{border-collapse:collapse;width:100%;font-size:13px;min-width:560px}.settings-table-scroll th{text-align:left;background:#f1f7fe;color:#6881a2;position:sticky;top:0;z-index:1;font-weight:600;padding:15px 12px;white-space:nowrap}.settings-table-scroll td{padding:18px 12px;border-bottom:1px solid #dce8f6;max-width:320px;overflow-wrap:anywhere;line-height:1.6}.settings-table-scroll td strong{font-weight:650}.settings-row-actions{white-space:nowrap}.settings-row-actions button,.settings-link{border:0;background:none;color:#0876f9;padding:4px 0;cursor:pointer;font:inherit}.settings-row-actions button+button{margin-left:14px;color:#7188a5}.settings-status{display:inline-flex;align-items:center;gap:5px;color:#7188a5;background:#f1f7fe;padding:3px 9px;border-radius:20px;white-space:nowrap}.settings-status i{height:5px;width:5px;background:currentColor;border-radius:50%}.settings-status.enabled{color:#168567;background:#eaf8f2}.settings-table-meta{display:flex;justify-content:space-between;gap:12px;margin:18px 0;font-size:12px;color:#7188a5}
.settings-dictionary-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 26px}.settings-dictionary-cards button{border:1px solid #dce8f6;border-radius:9px;background:white;padding:17px;text-align:left;color:var(--ink);display:flex;flex-direction:column;gap:7px}.settings-dictionary-cards strong{font-size:15px;font-weight:500}.settings-dictionary-cards span{font-size:12px;color:#7188a5}.settings-dictionary-cards button.active{background:#eaf4ff;border-color:#0876f9;color:#0876f9}.settings-rule{padding:20px 0 27px;border-bottom:1px solid #dce8f6}.settings-rule-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:24px}.settings-rule h3{font-size:16px;margin:0 0 9px}.settings-rule p{font-size:13px;color:#7188a5;margin:0;line-height:1.6}.settings-rule h4{font-size:14px;font-weight:500}.settings-checkboxes{display:flex;flex-wrap:wrap;gap:18px;color:#7188a5;font-size:14px}.settings-checkboxes label,.settings-checkbox,.settings-scope label{display:flex;align-items:center;gap:8px}.settings-checkboxes input,.settings-checkbox input,.settings-scope input{accent-color:#0876f9;width:16px;height:16px}.settings-inline-field{display:flex;align-items:center;gap:14px;font-size:14px}.settings-inline-field input{border:1px solid #d6e5f8;width:95px;padding:12px;border-radius:9px;font:inherit;color:var(--ink)}.settings-switch{display:flex;align-items:center;gap:10px;cursor:pointer;white-space:nowrap;font-size:13px}.settings-switch input{position:absolute;opacity:0;width:1px;height:1px}.settings-switch>span{width:44px;height:25px;background:#c0ccdc;border-radius:20px;position:relative;transition:background .15s}.settings-switch>span:after{content:'';position:absolute;background:white;border-radius:50%;width:19px;height:19px;top:3px;left:3px;transition:transform .15s}.settings-switch input:checked+span{background:#0876f9}.settings-switch input:checked+span:after{transform:translateX(19px)}.settings-switch input:focus-visible+span{outline:2px solid #0876f9;outline-offset:3px}.settings-switch b{font-weight:400}
.settings-editor-layer{z-index:300!important}.settings-editor{background:white;width:min(580px,calc(100vw - 30px));max-height:85dvh;overflow:auto;padding:28px;border-radius:14px;box-shadow:0 20px 80px #17375830}.settings-editor h2{margin:0 0 24px;font-size:21px}.settings-editor form{display:flex;flex-direction:column;gap:18px}.settings-editor footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:12px}.settings-editor-error,.auth-error{color:#c0393d;font-size:13px;margin:0}.settings-scope{border:1px solid #dce8f6;border-radius:8px;display:grid;gap:9px;padding:15px;max-height:220px;overflow:auto;font-size:13px}.settings-data-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 20px}.settings-data-tabs button{background:white;border:1px solid #dce8f6;color:#7188a5;padding:10px 13px;border-radius:8px}.settings-data-tabs button.active{color:#0876f9;background:#eaf4ff;border-color:#0876f9}.settings-log-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.settings-data-content p{line-height:1.7}.settings-data-content select{max-width:220px}
.auth-layer{position:fixed;inset:0;z-index:1000;background:#edf5ff;display:grid;place-items:center;padding:20px}.auth-layer[hidden]{display:none}.auth-card{background:white;border:1px solid #dce8f6;box-shadow:0 20px 60px #18416c14;border-radius:18px;width:min(440px,100%);padding:36px;color:var(--ink)}.auth-mark{background:#0876f9;color:white;font-size:28px;border-radius:12px;width:54px;height:54px;display:grid;place-items:center;margin-bottom:24px}.auth-card h1{font-size:24px;margin:0 0 12px}.auth-card>p{font-size:13px;line-height:1.7;color:#7188a5;margin-bottom:26px}.auth-card form{display:flex;flex-direction:column;gap:18px}.auth-card label{display:flex;flex-direction:column;gap:8px;font-size:14px}.auth-card label[hidden]{display:none}.auth-card input{padding:12px 14px;border:1px solid #d6e5f8;border-radius:8px;font:inherit;width:100%;box-sizing:border-box}.auth-card button{margin-top:8px;min-height:44px}.auth-card .auth-mode-toggle{margin-top:0;border:0;background:transparent;color:#0873d1;font:inherit;cursor:pointer}.topbar .profile{position:relative}.platform-account-menu{position:absolute;right:0;top:50px;border:1px solid #dce8f6;background:white;border-radius:9px;padding:6px;box-shadow:0 10px 30px #18416c18;z-index:100;min-width:140px}.platform-account-menu button{display:block;width:100%;border:0;background:white;padding:12px;text-align:left;color:var(--ink);font:inherit}.platform-account-menu button:hover{background:#eaf4ff}
body[data-platform-role="viewer"] .profile-actions,body[data-platform-role="viewer"] .profile-info-edit,body[data-platform-role="viewer"] .profile-module-add,body[data-platform-role="viewer"] [data-custom-edit],body[data-platform-role="viewer"] [data-custom-remove],body[data-platform-role="viewer"] [data-template-record-edit],body[data-platform-role="viewer"] [data-template-record-remove],body[data-platform-role="viewer"] [data-edit-section],body[data-platform-role="viewer"] [data-edit-profile],body[data-platform-role="viewer"] [data-profile-inline-edit],body[data-platform-role="viewer"] [data-nav="data-import"],body[data-platform-role="viewer"] #addPerson,body[data-platform-role="viewer"] #openPersonImport,body[data-platform-role="viewer"] [data-remove-uploaded],body[data-platform-role="viewer"] [data-profile-tag-edit]{display:none!important}
@media(max-width:1000px){.settings-page{padding:20px!important}.settings-layout{grid-template-columns:160px minmax(0,1fr);gap:16px}.settings-nav button{padding:15px 10px;font-size:14px}.settings-panel-heading{padding:23px 22px 16px}.settings-panel-body{padding:0 22px 18px}.settings-footer{padding:15px 22px}.settings-form-grid{grid-template-columns:1fr}.settings-panel{height:calc(100dvh - 190px)}}
@media(max-width:700px){.settings-page{padding:14px!important;min-height:calc(100dvh - 85px)}.settings-page-heading{margin-bottom:16px}.settings-page-heading h1{font-size:23px}.settings-layout{display:flex;flex-direction:column;gap:14px}.settings-nav{flex-direction:row;overflow:auto;width:100%;padding:5px;gap:4px}.settings-nav button{white-space:nowrap;gap:6px;padding:12px 10px;font-size:13px}.settings-nav svg{width:18px;height:18px}.settings-panel{width:100%;height:calc(100dvh - 218px);min-height:0}.settings-panel-heading{padding:20px 17px 12px}.settings-panel-heading h2{font-size:20px}.settings-panel-heading p{font-size:12px}.settings-panel-body{padding:0 17px 14px}.settings-footer{padding:12px 17px;flex-wrap:wrap}.settings-footer>div{margin-left:auto}.settings-footer button{font-size:12px;padding:9px 12px}.settings-dictionary-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.settings-dictionary-cards button{padding:12px}.settings-rule-head{align-items:start}.settings-rule-head h3{font-size:14px}.settings-switch{gap:6px;font-size:12px}.settings-switch b{display:none}.settings-list-toolbar{flex-wrap:wrap}.settings-table-meta{flex-wrap:wrap}.settings-editor{padding:22px}.settings-log-filters{grid-template-columns:1fr}.auth-card{padding:28px}}
.viewer-profile-export{display:none}body[data-platform-role="viewer"] .viewer-profile-export{display:block}
body[data-platform-role="viewer"] [data-inline-info-group],body[data-platform-role="viewer"] [data-custom-entry],body[data-platform-role="viewer"] [data-template-record-add],body[data-platform-role="viewer"] [data-add-work-history],body[data-platform-role="viewer"] [data-remove-uploaded-entry],body[data-platform-role="viewer"] #newPersonButton,body[data-platform-role="viewer"] #importPeopleButton,body[data-platform-role="viewer"] [data-person-menu],body[data-platform-role="viewer"] [data-manage-tags],body[data-platform-role="viewer"] .card-menu,body[data-platform-role="viewer"] #createLibraryBtn{display:none!important}
body[data-platform-role="unit-manager"] [data-profile-delete],body[data-platform-role="unit-manager"] [data-profile-exit],body[data-platform-role="unit-manager"] [data-profile-reenter]{display:none!important}
body[data-platform-role="viewer"] [data-edit-profile-section],body[data-platform-role="viewer"] [data-add-profile-material],body[data-platform-role="viewer"] [data-upload-delete],body[data-platform-role="viewer"] [data-edit-info-group],body[data-platform-role="viewer"] .todo-complete,body[data-platform-role="viewer"] .todo-reopen,body[data-platform-role="viewer"] [data-modal]{display:none!important}
@media(max-width:980px){.topbar .profile>button{display:block}.platform-account-menu{top:42px}}
body[data-platform-role="viewer"] #openNewPerson,body[data-platform-role="viewer"] [data-person-row-menu],body[data-platform-role="viewer"] #addPersonBtn,body[data-platform-role="viewer"] [data-add-person]{display:none!important}
.profile-reader-options{display:grid;gap:10px;padding:14px 16px;margin:16px 0;border:1px solid #dbe7f5;border-radius:8px;background:#f5faff;font-size:13px}.profile-reader-options label{display:flex;align-items:flex-start;gap:8px;line-height:1.7}.profile-reader-options input{margin-top:5px}.profile-reader-options p{margin:0;color:#61759c;font-size:12px;line-height:1.8}.reading-profile-sources{margin-top:14px;padding:12px;border:1px solid #dbe7f5;border-radius:7px;font-size:13px}.reading-profile-sources summary{cursor:pointer;color:#1765b6}.reading-profile-sources article{padding:14px 0;border-bottom:1px solid #e8eff7}.reading-profile-sources small{display:block;color:#61759c;margin-top:4px}.reading-profile-sources blockquote{margin:10px 0;padding:8px 12px;border-left:3px solid #bddbff;background:#f5faff;white-space:pre-wrap;line-height:1.8}.reading-profile-sources p{overflow-wrap:anywhere}
.reading-source-row td{padding:3px 8px 10px;background:#fafcff}.reading-source-row .reading-profile-sources{margin:0;padding:8px 10px;border-color:#e6eef8}.reading-source-row .reading-profile-sources article{padding:10px 0}
.profile-upload-fields label[hidden]{display:none!important}

.achievement-center-heading { align-items: center; }
.achievement-center-heading > div:first-child p { margin: 6px 0 0; color: #7085a1; font-size: 13px; }
.achievement-center-total { display: flex; align-items: baseline; gap: 8px; color: #7185a3; font-size: 13px; }
.achievement-center-total strong { color: #0876f9; font-size: 25px; }
.achievement-center-toolbar { display: flex; align-items: center; gap: 14px; padding: 12px 0 18px; border-bottom: 1px solid #dce7f3; }
.achievement-center-search { display: flex; align-items: center; gap: 9px; width: min(620px, 100%); min-width: 180px; height: 40px; padding: 0 12px; border: 1px solid #d5e1ee; border-radius: 6px; color: #6b83a1; background: #fff; }
.achievement-center-type-filter { width: 170px; min-width: 130px; height: 40px; padding: 0 10px; border: 1px solid #d5e1ee; border-radius: 6px; color: #365678; background: #fff; font: inherit; }
.achievement-center-search:focus-within { border-color: #1380ef; box-shadow: 0 0 0 2px #1380ef20; }
.achievement-center-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #23466c; font: inherit; background: transparent; }
.achievement-center-count { margin-left: auto; color: #7185a3; font-size: 12px; white-space: nowrap; }
.achievement-center-results { padding-top: 16px; }
.achievement-auto-section + .achievement-auto-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e2eaf3; }
.achievement-auto-section > h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; color: #365678; font-size: 15px; }
.achievement-auto-section > h2 span { color: #8294aa; font-size: 12px; font-weight: 400; }
.achievement-person-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 14px; }
.achievement-person-result { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; min-width: 0; padding: 12px 14px; border: 1px solid #dce6f0; border-radius: 6px; background: #fff; color: #365678; text-align: left; cursor: pointer; }
.achievement-person-result:hover, .achievement-person-result.active { border-color: #1681f5; background: #f4f9ff; }
.achievement-person-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.achievement-person-result span { grid-column: 1 / -1; overflow: hidden; color: #7488a2; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.achievement-person-result small { align-self: center; grid-column: 2; grid-row: 1; color: #8496ab; font-size: 11px; white-space: nowrap; }
.achievement-center-error { margin: 14px 0 0; padding: 10px 13px; border: 1px solid #f0d4d1; border-radius: 6px; color: #a53b36; background: #fff7f6; font-size: 13px; }
.achievement-event-groups { display: grid; gap: 22px; }
.achievement-event-group { min-width: 0; }
.achievement-event-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; padding: 0 4px; }
.achievement-event-group-head > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.achievement-event-group-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; color: #0876c9; background: #eaf5fc; font-size: 13px; }
.achievement-event-group-head h3 { margin: 0; color: #24476c; font-size: 15px; }
.achievement-event-group-head > span { color: #7185a3; font-size: 12px; white-space: nowrap; }
.achievement-event-list { border-top: 1px solid #e3ebf4; }
.achievement-event-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 88px 82px minmax(120px, auto); align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 12px 10px; border: 0; border-bottom: 1px solid #e3ebf4; color: #24476c; background: transparent; text-align: left; cursor: pointer; }
.achievement-event-row:hover, .achievement-event-row:focus-visible { background: #f4f8fd; outline: 0; }
.achievement-event-icon { display: grid; place-items: center; width: 36px; aspect-ratio: 1; border-radius: 6px; color: #0876c9; background: #eaf5fc; font-size: 19px; }
.achievement-event-copy { display: grid; gap: 5px; min-width: 0; }
.achievement-event-copy strong { overflow: hidden; color: #17395f; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.achievement-event-copy small, .achievement-event-meta small { color: #7b8ea8; font-size: 11px; }
.achievement-event-category { justify-self: start; width: max-content; max-width: 100%; padding: 2px 7px; border-radius: 3px; color: #087166; background: #e8f6f2; font-size: 11px; line-height: 1.4; }
.achievement-event-meta { display: grid; justify-items: center; gap: 3px; }
.achievement-event-meta strong { color: #294e75; font-size: 15px; }
.achievement-event-date { color: #7287a3; font-size: 12px; text-align: right; white-space: nowrap; }
.achievement-center-backrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #7287a3; font-size: 12px; }
.achievement-event-detail, .achievement-person-event { padding: 18px 20px; border: 1px solid #e0e9f2; border-radius: 7px; background: #fff; }
.achievement-event-detail > header, .achievement-person-event > header { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #e7edf4; }
.achievement-event-detail h2, .achievement-person-event h2 { margin: 0; color: #183c63; font-size: 17px; overflow-wrap: anywhere; }
.achievement-event-detail header p, .achievement-person-event header p { margin: 6px 0 0; color: #758aa5; font-size: 12px; }
.achievement-participant-list { display: grid; gap: 10px; padding-top: 12px; }
.achievement-participant { padding: 13px 14px; border: 1px solid #e5edf5; border-radius: 6px; background: #fbfdff; }
.achievement-participant-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.achievement-participant-head > span { color: #7b8da5; font-size: 12px; }
.achievement-participant-head .person-link { padding: 0; font-size: 14px; }
.achievement-record-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 12px 0 0; }
.achievement-record-fields > div { min-width: 0; }
.achievement-record-fields dt { margin-bottom: 4px; color: #8192a7; font-size: 11px; }
.achievement-record-fields dd { margin: 0; color: #395875; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.achievement-person-toolbar { display: flex; align-items: end; gap: 16px; margin-bottom: 14px; }
.achievement-person-category { margin-top: 18px; }
.achievement-person-category > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding: 0 4px; }
.achievement-person-category h3 { margin: 0; color: #24476c; font-size: 15px; }
.achievement-person-category > header span { color: #7185a3; font-size: 12px; }
.achievement-person-select { display: grid; gap: 6px; width: min(430px, 100%); color: #607895; font-size: 12px; }
.achievement-person-select select { min-width: 0; height: 40px; padding: 0 11px; border: 1px solid #d2dfec; border-radius: 6px; color: #294a6d; background: #fff; font: inherit; }
.achievement-person-summary { display: flex; align-items: baseline; gap: 7px; color: #7185a3; font-size: 12px; }
.achievement-person-summary strong { color: #0876c9; font-size: 20px; }
.achievement-person-summary .person-link { margin-left: 10px; }
.achievement-source-link { color: #1765b6; text-decoration: none; white-space: nowrap; }
.achievement-source-link:hover { color: #0b4f99; text-decoration: underline; }
.achievement-source-link:focus-visible { outline: 2px solid #1488ef; outline-offset: 2px; border-radius: 2px; }
.achievement-person-source { margin: 12px 0 0; color: #7287a3; font-size: 12px; }
.achievement-record-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.achievement-record-actions button { padding: 0; border: 0; color: #1765b6; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.achievement-record-actions button:hover { text-decoration: underline; }
.achievement-record-actions button.danger { color: #c53f3f; }
.achievement-table td .achievement-record-actions { margin-top: 0; white-space: nowrap; }
.achievement-person-event { margin-top: 10px; }
.achievement-center-empty { display: grid; justify-items: center; gap: 9px; min-height: 210px; align-content: center; color: #8193aa; text-align: center; }
.achievement-center-empty > span { font-size: 24px; }
.achievement-center-empty strong { color: #365678; font-size: 15px; }
.achievement-center-empty p { margin: 0; font-size: 12px; line-height: 1.6; }
.achievement-center-empty .outline-btn { margin-top: 4px; }
@media (max-width: 760px) {
  .achievement-center-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .achievement-center-search { width: 100%; }
  .achievement-center-type-filter { width: 100%; }
  .achievement-center-count { margin-left: 0; }
  .achievement-event-group-head { align-items: flex-start; }
  .achievement-event-group-head > span { padding-top: 5px; }
  .achievement-event-row { grid-template-columns: 34px minmax(0, 1fr) 58px 14px; gap: 8px; min-height: 70px; padding-inline: 3px; }
  .achievement-event-icon { width: 32px; }
  .achievement-event-meta:nth-of-type(4) { display: none; }
  .achievement-event-date { grid-column: 2 / 4; text-align: left; font-size: 11px; }
  .achievement-event-row { row-gap: 2px; }
  .achievement-event-copy { grid-row: 1 / 3; }
  .achievement-event-meta { grid-row: 1 / 3; grid-column: 3; }
  .achievement-event-row::after { content: "›"; grid-row: 1 / 3; grid-column: 4; color: #7b8ea8; }
  .achievement-event-date { display: none; }
  .achievement-person-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .achievement-person-summary { flex-wrap: wrap; }
  .achievement-record-fields { grid-template-columns: 1fr; gap: 8px; }
  .achievement-event-detail, .achievement-person-event { padding: 14px; }
  .achievement-participant { padding: 11px; }
}

.reading-profile-destinations{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 18px;margin-bottom:18px;border:1px solid #cde2fa;border-radius:8px;background:#f2f8ff;font-size:13px}.reading-profile-destinations strong{color:#31527d}.reading-profile-destinations a{color:#1765b6;text-decoration:none;padding:6px 10px;border:1px solid #dbe7f5;border-radius:5px;background:white}.reading-profile-destinations a:focus-visible{outline:2px solid #1488ef;outline-offset:2px}

.person-import-mode { display: flex; align-self: flex-start; gap: 4px; margin: 16px 26px 0; padding: 4px; border-radius: 6px; background: #edf3f9; }
.person-import-mode button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 4px; color: #58718e; background: transparent; cursor: pointer; }
.person-import-mode button.active { color: #0876f2; background: #fff; box-shadow: 0 1px 4px #173b6418; }
@media (max-width: 700px) { .person-import-mode { margin-inline: 16px; } }
@media (max-width: 700px) { .data-import-people-actions { grid-template-columns: 1fr; gap: 10px; }.data-import-target { align-items: stretch; flex-direction: column; }.data-import-target select { min-width: 0; width: 100%; }.data-import-people-actions p { min-height: 0; } }
.achievement-table-wrap { max-width: 100%; overflow-x: auto; margin-top: 14px; border: 1px solid #dce7f1; border-radius: 6px; background: #fff; }
.achievement-table { width: 100%; min-width: 760px; border-collapse: collapse; color: #365678; font-size: 13px; }
.achievement-table th, .achievement-table td { padding: 11px 13px; border-bottom: 1px solid #e6edf4; text-align: left; vertical-align: top; }
.achievement-table th { position: sticky; top: 0; z-index: 1; color: #516b89; background: #f3f7fb; font-size: 12px; font-weight: 600; white-space: nowrap; }
.achievement-table td { line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.achievement-table tbody tr:last-child td { border-bottom: 0; }
.achievement-table tbody tr:hover { background: #f8fbfe; }
.achievement-table td:first-child { min-width: 150px; white-space: normal; }
.achievement-table td:first-child small { display: block; margin-top: 3px; color: #7b8ea8; font-size: 11px; }
.settings-inout-ages{max-width:560px;margin:22px 0}.settings-inout-ages input{min-height:42px;border:1px solid #d6e5f8;border-radius:8px;padding:10px 12px;font:inherit;color:var(--ink)}
.more-people-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 12px; margin: 8px 0 10px; border: 1px solid #dce7f1; border-radius: 7px; background: #f7fafe; }
.more-people-filters[hidden] { display: none; }
.more-people-filters label { display: grid; gap: 5px; min-width: 0; color: #5d7493; font-size: 12px; }
.more-people-filters select { width: 100%; min-width: 0; height: 36px; padding: 0 28px 0 10px; border: 1px solid #d5e2ef; border-radius: 6px; color: #29466c; background: #fff; }
.reading-task-notice { max-width: calc(100vw - 32px); display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
.reading-task-notice button.reading-task-notice-close { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #dce7f1; border-radius: 50%; color: #61759c; font-size: 19px; line-height: 1; background: #fff; }
.reading-task-notice button.reading-task-notice-close:hover, .reading-task-notice button.reading-task-notice-close:focus-visible { border-color: #b9cde0; color: #24496f; background: #f3f7fb; outline: none; }
@media (max-width: 740px) { .more-people-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }.reading-task-notice { right: 12px; bottom: 12px; padding: 10px; gap: 7px; font-size: 12px; }.reading-task-notice button { padding: 7px 8px; }.reading-task-notice button.reading-task-notice-close { width: 28px; height: 28px; } }

.achievement-fulltext-search{margin:18px 0 22px}.achievement-search-tabs{display:flex;align-items:center;gap:6px;padding:5px;width:max-content;margin-bottom:14px;border:1px solid #dce7f3;border-radius:8px;background:#f7fafe}.achievement-search-tabs button{min-height:34px;padding:0 15px;border:0;border-radius:5px;color:#617897;background:transparent;font:inherit;font-size:13px;cursor:pointer}.achievement-search-tabs button.active{color:#fff;background:#0876f9;box-shadow:0 3px 9px #0876f92b}.achievement-fulltext-head{display:flex;align-items:baseline;justify-content:space-between;margin:0 2px 10px}.achievement-fulltext-head h2{margin:0;color:#0a1d4d;font-size:18px}.achievement-fulltext-head h2 span{margin-left:6px;color:#0876f9}.achievement-fulltext-head p{margin:0;color:#8093ac;font-size:12px}.achievement-search-loading{padding:22px;border:1px solid #dce9f6;border-radius:10px;color:#7187a3;background:#fff;font-size:13px;text-align:center}.achievement-search-result{display:flex;gap:16px;margin-bottom:10px;padding:17px 19px;border:1px solid #dce8f4;border-radius:10px;background:#fff;box-shadow:0 4px 14px #193f6b0a}.achievement-search-score{flex:0 0 68px;display:grid;place-content:center;text-align:center;border-right:1px solid #e7eff7}.achievement-search-score strong{color:#0876d7;font-size:22px}.achievement-search-score span{color:#8597ad;font-size:11px}.achievement-search-result-body{min-width:0;flex:1}.achievement-search-result-head{display:flex;align-items:center;gap:9px}.achievement-search-result-head h3{margin:0;color:#102957;font-size:17px}.achievement-search-kind{padding:2px 7px;border:1px solid #cfe5fb;border-radius:4px;color:#1768b5;background:#f2f9ff;font-size:11px;white-space:nowrap}.achievement-search-person{margin:6px 0;color:#647c9a;font-size:12px}.achievement-search-result blockquote{margin:8px 0;padding:9px 12px;border-left:3px solid #2b8af1;color:#405a7b;background:#f7fbff;font-size:13px;line-height:1.7}.achievement-search-result mark{color:#754700;background:#ffe9ad;padding:1px 2px}.achievement-search-meta{display:flex;flex-wrap:wrap;gap:7px;color:#748aa5;font-size:11px}.achievement-search-meta span{padding:2px 6px;border-radius:4px;background:#f2f6fa}.achievement-search-actions{display:flex;gap:8px;margin-top:10px}.achievement-search-actions button{font-size:12px;min-height:32px}.full-text-search-section{margin-top:22px}.full-text-search-section .achievement-search-result{width:100%}@media(max-width:700px){.achievement-search-result{display:block;padding:14px}.achievement-search-score{display:flex;gap:5px;border:0;border-bottom:1px solid #e7eff7;padding-bottom:7px;margin-bottom:9px;justify-content:flex-start;text-align:left}.achievement-search-score strong{font-size:18px}.achievement-search-result-head{align-items:flex-start;flex-direction:column;gap:5px}.achievement-search-tabs{width:100%;overflow:auto}.achievement-search-tabs button{flex:1;white-space:nowrap}}
.dimension-table tr.search-focus td{background:#fff7dd;box-shadow:inset 0 1px #f0d58a,inset 0 -1px #f0d58a}

.achievement-search-actions a { min-height: 32px; display: inline-flex; align-items: center; font-size: 12px; text-decoration: none; }

/* Unified database */
.database-nav-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.database-heading { min-height: 76px; }
.database-heading-total { display: flex; align-items: baseline; gap: 8px; color: #7185a3; font-size: 13px; }
.database-heading-total strong { color: #0876f9; font-size: 27px; }
.database-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.database-metric { min-height: 84px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 3px 12px; padding: 14px 17px; border: 1px solid #dce8f4; border-radius: 9px; background: #fff; box-shadow: 0 4px 16px #173d6910; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.database-metric:hover { border-color: #9cc7f2; box-shadow: 0 7px 20px #173d691c; transform: translateY(-1px); }
.database-metric:focus-visible { outline: 3px solid #8fc6ff; outline-offset: 2px; }
.database-metric span { align-self: end; color: #667d9c; font-size: 13px; }
.database-metric strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #173f70; font-size: 28px; }
.database-metric small { color: #8a9db4; font-size: 11px; }
.database-metric.primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, #0876f9, #0a58c9); }
.database-metric.primary span, .database-metric.primary small { color: #dcecff; }
.database-metric.primary strong { color: #fff; }
.database-panel { padding: 0 18px 18px; }
.database-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 13px 0 11px; border-bottom: 1px solid #e3ebf4; scrollbar-width: thin; }
.database-tabs button { min-height: 38px; flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 0 13px; border: 0; border-radius: 6px; color: #58718f; background: transparent; font-size: 13px; cursor: pointer; white-space: nowrap; }
.database-tabs button:hover { background: #f2f7fd; }
.database-tabs button.active { color: #086bd8; background: #eaf4ff; box-shadow: inset 0 0 0 1px #cbe4ff; }
.database-tabs b { min-width: 21px; padding: 2px 6px; border-radius: 10px; color: #7187a5; background: #f0f5fa; font-size: 10px; text-align: center; }
.database-tabs button.active b { color: #0876f9; background: #fff; }
.database-toolbar { display: flex; align-items: center; gap: 9px; padding: 13px 0 10px; }
.database-search { width: min(610px, 100%); min-width: 220px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #d3e0ed; border-radius: 7px; color: #6e84a1; background: #fff; }
.database-search:focus-within { border-color: #1380ef; box-shadow: 0 0 0 2px #1380ef20; }
.database-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #294a6d; background: transparent; font: inherit; }
.database-toolbar select, .database-reset { min-height: 40px; padding: 0 11px; border: 1px solid #d3e0ed; border-radius: 7px; color: #365678; background: #fff; font: inherit; font-size: 13px; }
.database-reset { margin-left: auto; color: #58718e; cursor: pointer; }
.database-result-meta { display: flex; justify-content: space-between; gap: 12px; padding: 2px 2px 10px; color: #8092aa; font-size: 12px; }
.database-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; padding: 11px 13px; border: 1px solid #efd3d0; border-radius: 7px; color: #a6443d; background: #fff7f6; font-size: 13px; }
.database-error button { flex: 0 0 auto; padding: 5px 10px; border: 1px solid #e3aaa4; border-radius: 5px; color: #a6443d; background: #fff; cursor: pointer; }
.database-table-wrap { overflow: auto; border: 1px solid #dce7f1; border-radius: 7px; }
.database-table { width: 100%; min-width: 980px; border-collapse: collapse; color: #365678; font-size: 13px; }
.database-table th, .database-table td { padding: 12px 13px; border-bottom: 1px solid #e7eef5; text-align: left; vertical-align: middle; }
.database-table th { position: sticky; top: 0; z-index: 1; color: #536d8b; background: #f3f7fb; font-size: 12px; font-weight: 600; white-space: nowrap; }
.database-table tbody tr:last-child td { border-bottom: 0; }
.database-table tbody tr:hover { background: #f9fcff; }
.database-file { min-width: 270px; display: flex; align-items: center; gap: 11px; }
.database-file-icon { width: 43px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; color: #fff; background: #5f7895; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.database-file-icon.type-pdf { background: #df4b4b; }
.database-file-icon.type-doc, .database-file-icon.type-docx { background: #2e75d4; }
.database-file-icon.type-xls, .database-file-icon.type-xlsx, .database-file-icon.type-csv { background: #198a63; }
.database-file-icon.type-png, .database-file-icon.type-jpg, .database-file-icon.type-jpeg { background: #8e5ec7; }
.database-file > div { min-width: 0; }
.database-file strong, .database-person { display: block; color: #203f65; font-size: 13px; overflow-wrap: anywhere; }
.database-people { color: #203f65; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.database-person-link { color: #0873e8; font-weight: 600; text-decoration: none; }
.database-person-link:hover, .database-person-link:focus-visible { color: #035fc5; text-decoration: underline; outline: none; }
.database-person-separator, .database-person-more { color: #6f86a3; }
.database-file small, .database-table td > small, .database-table td > span + small { display: block; margin-top: 3px; color: #8294aa; font-size: 11px; overflow-wrap: anywhere; }
.database-file blockquote { margin: 7px 0 0; padding: 7px 9px; border-left: 3px solid #3a90ee; color: #526b88; background: #f6faff; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.database-file mark { padding: 1px 2px; color: #704600; background: #ffe7a6; }
.database-category { display: block; max-width: 240px; color: #416384; line-height: 1.55; overflow-wrap: anywhere; }
.database-source-tag { display: inline-block; width: max-content; margin-top: 5px; padding: 2px 6px; border-radius: 4px; color: #1768b5; background: #edf7ff; font-size: 10px; }
.database-status, .database-index { display: inline-block; width: max-content; padding: 3px 7px; border-radius: 10px; color: #177157; background: #e9f8f2; font-size: 10px; white-space: nowrap; }
.database-index { margin-top: 5px; color: #637d9c; background: #f0f4f8; }
.database-status.staged, .database-index.indexing { color: #9a6912; background: #fff3d8; }
.database-status.unclassified { color: #7955a5; background: #f4edff; }
.database-status.missing, .database-index.failed, .database-index.missing { color: #a6443d; background: #fff0ee; }
.database-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.database-actions button, .database-actions a { min-height: 31px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid #bdd9f6; border-radius: 5px; color: #086bd8; background: #f7fbff; font-size: 11px; text-decoration: none; cursor: pointer; }
.database-actions button:hover, .database-actions a:hover { color: #fff; border-color: #0876f9; background: #0876f9; }
.database-actions > span { color: #9a8990; font-size: 11px; }
.database-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px 0; color: #7890aa; font-size: 12px; }
.database-pagination > div { display: flex; gap: 4px; }
.database-pagination button { min-width: 31px; height: 31px; padding: 0 8px; border: 1px solid #d6e2ef; border-radius: 5px; color: #526f8e; background: #fff; cursor: pointer; }
.database-pagination button.active { color: #fff; border-color: #0876f9; background: #0876f9; }
.database-pagination button:disabled { opacity: .42; cursor: default; }
.database-empty, .database-loading { min-height: 260px; display: grid; place-content: center; justify-items: center; color: #8294aa; text-align: center; }
.database-empty > span { color: #6fa9e9; font-size: 38px; }
.database-empty strong { margin-top: 8px; color: #355174; font-size: 15px; }
.database-empty p, .database-loading p { margin: 6px 0 0; font-size: 12px; }
.database-loading > span, .database-preview-loading > span { width: 28px; height: 28px; border: 3px solid #d8eafd; border-top-color: #0876f9; border-radius: 50%; animation: database-spin .8s linear infinite; }
@keyframes database-spin { to { transform: rotate(360deg); } }
.database-preview-backdrop { z-index: 80; padding: 24px; background: rgba(4, 20, 45, .58); }
.database-preview-dialog { width: min(1180px, 100%); height: min(900px, calc(100dvh - 48px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 11px; background: #f6f9fc; box-shadow: 0 24px 80px rgba(4, 24, 52, .36); }
.database-preview-dialog > header { flex: 0 0 auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border-bottom: 1px solid #dce7f2; background: #fff; }
.database-preview-dialog > header > div:first-child { min-width: 0; }
.database-preview-dialog header span { color: #6f86a4; font-size: 11px; }
.database-preview-dialog header h2 { margin: 3px 0 0; color: #183b63; font-size: 19px; overflow-wrap: anywhere; }
.database-preview-dialog header p { margin: 5px 0 0; color: #7288a4; font-size: 12px; }
.database-preview-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.database-preview-body { min-height: 0; flex: 1; overflow: auto; padding: 18px; background: #edf3f9; }
.database-preview-loading, .database-preview-error { min-height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; color: #657e9b; text-align: center; }
.database-preview-error strong { color: #8a4b46; font-size: 16px; }
.database-preview-error p { max-width: 520px; margin: 0; line-height: 1.7; }
.database-pdf-preview { width: 100%; height: 100%; min-height: 520px; border: 0; border-radius: 5px; background: #fff; }
.database-image-preview { display: block; max-width: 100%; max-height: 100%; margin: auto; border-radius: 5px; background: #fff; box-shadow: 0 6px 24px #173c671c; }
.database-office-preview { min-height: 100%; padding: 26px; border-radius: 5px; background: #fff; box-shadow: 0 6px 24px #173c6716; }
body.database-preview-open { overflow: hidden; }
@media (max-width: 900px) {
  .database-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .database-toolbar { align-items: stretch; flex-wrap: wrap; }
  .database-search { width: 100%; flex: 1 0 100%; }
  .database-toolbar select { flex: 1; min-width: 130px; }
  .database-reset { margin-left: 0; }
}
@media (max-width: 760px) {
  .database-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .database-heading-total strong { font-size: 23px; }
  .database-panel { padding: 0 10px 12px; border-radius: 8px; }
  .database-tabs { margin-inline: -10px; padding-inline: 10px; }
  .database-table-wrap { overflow: visible; border: 0; }
  .database-table { min-width: 0; display: block; }
  .database-table thead { display: none; }
  .database-table tbody { display: grid; gap: 10px; }
  .database-table tr { display: grid; padding: 11px; border: 1px solid #dce7f2; border-radius: 8px; background: #fff; }
  .database-table td { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding: 7px 2px; border: 0; }
  .database-table td::before { content: attr(data-label); color: #8496ab; font-size: 11px; }
  .database-table td:first-child, .database-table td:last-child { grid-template-columns: 1fr; }
  .database-table td:first-child::before, .database-table td:last-child::before { display: none; }
  .database-file { min-width: 0; }
  .database-actions { flex-wrap: wrap; }
  .database-pagination { align-items: flex-start; flex-direction: column; }
  .database-preview-backdrop { padding: 0; }
  .database-preview-dialog { width: 100%; height: 100dvh; border-radius: 0; }
  .database-preview-dialog > header { align-items: flex-start; flex-direction: column; }
  .database-preview-actions { width: 100%; }
  .database-preview-actions .outline-btn { margin-right: auto; }
  .database-preview-body { padding: 8px; }
  .database-office-preview { padding: 15px; }
}

/* Keep the personnel preview visible after a workbook has been selected. */
.person-import-setup[hidden], .person-import-compact[hidden] { display: none; }
.person-import-compact { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 26px 10px; padding: 12px 14px; border: 1px solid #cfe2f7; border-radius: 8px; background: #f3f9ff; }
.person-import-compact-main { min-width: 0; display: flex; align-items: center; gap: 11px; }
.person-import-compact-main > span { width: 38px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; color: #fff; background: linear-gradient(145deg, #2d99f7, #0870df); font-size: 18px; }
.person-import-compact-main > div { min-width: 0; }
.person-import-compact-main strong { display: block; overflow: hidden; color: #173e6c; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.person-import-compact-main small { display: block; margin-top: 4px; overflow: hidden; color: #67809e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.person-import-compact-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.person-import-compact-actions button { min-height: 34px; padding: 0 11px; border: 1px solid #bdd9f5; border-radius: 6px; color: #086fdc; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.person-import-compact-actions button:hover, .person-import-compact-actions button:focus-visible { border-color: #0876f9; background: #edf7ff; outline: none; }
.person-import-modal:has(.person-import-compact:not([hidden])) .person-import-summary { padding-top: 2px; }
.person-import-modal:has(.person-import-compact:not([hidden])) .person-import-preview { min-height: 260px; }
@media (max-width: 640px) {
  .person-import-compact { align-items: stretch; flex-direction: column; margin: 12px 16px 9px; }
  .person-import-compact-actions button { flex: 1; }
}

.person-import-new-fields { flex: 0 0 auto; margin: 0 26px 10px; border: 1px solid #f0dca9; border-radius: 8px; background: #fffaf0; }
.person-import-new-fields > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; color: #7b5b13; cursor: pointer; list-style: none; }
.person-import-new-fields > summary::-webkit-details-marker { display: none; }
.person-import-new-fields > summary::before { content: '›'; margin-right: 3px; transition: transform .16s ease; }
.person-import-new-fields[open] > summary::before { transform: rotate(90deg); }
.person-import-new-fields > summary span { margin-right: auto; font-weight: 600; }
.person-import-new-fields > summary small { color: #9a7b35; font-size: 11px; }
.person-import-new-field-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 9px; border-top: 1px solid #f2e7cc; }
.person-import-new-field-toolbar label { display: flex; align-items: center; gap: 7px; color: #7b6b4e; font-size: 11px; }
.person-import-new-field-toolbar select, .person-import-new-field-toolbar button { min-height: 30px; padding: 0 9px; border: 1px solid #dfcfaa; border-radius: 5px; color: #66532e; background: #fff; font: inherit; font-size: 11px; }
.person-import-new-field-toolbar button { cursor: pointer; }
.person-import-new-field-list { max-height: 260px; overflow: auto; display: grid; gap: 7px; padding: 0 12px 12px; }
.person-import-new-field-card { padding: 10px 11px; border: 1px solid #eadfca; border-radius: 7px; background: #fff; }
.person-import-new-field-card.resolved { background: #fbfdfb; }
.person-import-new-field-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.person-import-new-field-head strong { color: #4b402b; font-size: 13px; }
.person-import-new-field-head small { display: block; margin-top: 3px; color: #8b7d65; font-size: 10px; }
.person-import-new-field-head > span { flex: 0 0 auto; max-width: 220px; padding: 3px 7px; border-radius: 10px; color: #7e672c; background: #fff4d8; font-size: 10px; text-align: right; }
.person-import-new-field-card.resolved .person-import-new-field-head > span { color: #177157; background: #eaf8f1; }
.person-import-new-field-card > p { margin: 6px 0 8px; color: #81755f; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.person-import-new-field-actions { display: flex; align-items: center; gap: 8px; }
.person-import-new-field-actions select { min-width: 220px; min-height: 32px; padding: 0 8px; border: 1px solid #d8c9aa; border-radius: 5px; color: #55482e; background: #fff; font: inherit; font-size: 12px; }
.person-import-new-field-actions small { color: #9b762a; font-size: 10px; }
.person-import-new-field-actions small.error { color: #b13e38; }
.person-import-field-conflicts { display: grid; gap: 6px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed #e5d5b2; }
.person-import-field-conflicts > strong { color: #a55136; font-size: 11px; }
.person-import-field-conflicts label { display: grid; grid-template-columns: minmax(80px, .7fr) minmax(160px, 1fr); align-items: center; gap: 8px; color: #745d3e; font-size: 11px; }
.person-import-field-conflicts select { min-height: 30px; padding: 0 7px; border: 1px solid #dfcfaa; border-radius: 5px; color: #55482e; background: #fff; font: inherit; font-size: 11px; }
.person-import-new-fields-empty { margin: 0; padding: 10px 0; color: #998b72; font-size: 12px; }
@media (max-width: 640px) {
  .person-import-new-fields { margin-inline: 16px; }
  .person-import-new-field-toolbar, .person-import-new-field-actions, .person-import-new-field-head { align-items: stretch; flex-direction: column; }
  .person-import-new-field-actions select { min-width: 0; width: 100%; }
}
