:root {
  color-scheme: light;
  --ink: #182b3d;
  --muted: #718096;
  --line: #e6ebf0;
  --canvas: #f5f7fa;
  --paper: #fff;
  --navy: #132b40;
  --navy-soft: #1d3e58;
  --teal: #168d83;
  --teal-dark: #11756e;
  --teal-wash: #e7f5f2;
  --amber: #c8872f;
  --amber-wash: #fff5e6;
  --violet: #7566b4;
  --violet-wash: #f1effb;
  --danger: #b04f4f;
  --shadow: 0 10px 28px rgba(25, 48, 68, .055);
  font-family: Inter, "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(22, 141, 131, .28); outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; display: flex; width: 252px; flex-direction: column; padding: 26px 16px 18px; color: #dce8ef; background: var(--navy); z-index: 5; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 30px; color: white; }
.brand-mark, .document-logo { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg, #32b2a1, #13786f); font-size: 20px; font-weight: 800; box-shadow: 0 4px 12px rgba(19, 120, 111, .28); }
.brand strong, .auth-brand strong { display: block; font-size: 15px; letter-spacing: .01em; }
.brand small, .auth-brand small { display: block; margin-top: 3px; color: #9eb2bf; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.primary-nav { display: grid; gap: 7px; }
.primary-nav a, .nav-action { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 13px; border: 0; border-radius: 10px; color: #b6c6d0; background: transparent; text-align: start; font-size: 13px; font-weight: 550; transition: .15s ease; }
.primary-nav a:hover, .nav-action:hover { color: white; background: rgba(255,255,255,.08); }
.primary-nav a.active { color: white; background: rgba(38, 166, 151, .22); box-shadow: inset 3px 0 #38b4a5; }
.nav-icon { display: inline-grid; width: 20px; place-items: center; color: #8fa7b7; font-size: 17px; }
.sidebar-bottom { display: grid; gap: 9px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(221,236,244,.13); }
.profile-link { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 9px; border-radius: 10px; }
.profile-link:hover { background: rgba(255,255,255,.07); }
.profile-copy { display: grid; min-width: 0; gap: 3px; }
.profile-copy strong { overflow: hidden; color: white; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { overflow: hidden; color: #a2b5c1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; color: #147a71; background: #d6f1eb; font-size: 13px; font-weight: 700; }
.nav-action { cursor: pointer; padding-inline: 10px; font-size: 12px; }
.main-area { min-height: 100vh; margin-inline-start: 252px; }
.main-area-public { margin-inline-start: 0; }
.topbar { display: flex; height: 70px; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); }
.topbar-right, .mobile-brand { display: flex; align-items: center; gap: 15px; }
.mobile-brand { display: none; }
.confidential-tag { padding: 6px 9px; border: 1px solid #f1dfbe; border-radius: 999px; color: #986b2c; background: #fff9ee; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.language-form select { padding: 7px 28px 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 11px; }
.page-wrap { width: min(100%, 1380px); margin: 0 auto; padding: 34px 42px 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 5px 0 27px; }
.page-heading h1 { margin: 3px 0 6px; color: #172d40; font-size: clamp(23px, 2vw, 31px); font-weight: 720; letter-spacing: -.035em; line-height: 1.2; }
.page-heading p { margin: 0; }
.compact-heading { align-items: center; margin-top: 14px; }
.eyebrow { margin: 0 0 6px; color: #6b8293; font-size: 9px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.6; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 700; transition: .15s ease; }
.button-primary { color: white; background: #126f68; box-shadow: 0 4px 10px rgba(18,111,104,.2); }
.button-primary:hover { color: white; background: #0d5d57; transform: translateY(-1px); }
.button-secondary { border-color: #cbd9e0; color: #304c5f; background: #f8fbfc; }
.button-secondary:hover { border-color: #9eb8c3; background: #fbfcfd; }
.button-quiet { color: #687d8d; background: transparent; }
.button-quiet:hover { color: var(--danger); background: #fff5f4; }
.button-wide { width: 100%; justify-content: space-between; padding-inline: 15px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 23px; }
.stat-card, .panel { border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow); }
.stat-card { display: flex; min-height: 115px; align-items: center; gap: 15px; padding: 22px; }
.stat-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 13px; font-size: 19px; }
.icon-blue { color: #4a76a8; background: #edf3fb; }
.icon-amber { color: var(--amber); background: var(--amber-wash); }
.icon-violet { color: var(--violet); background: var(--violet-wash); }
.icon-red { color: #a74444; background: #fff0ee; }
.stat-card p { margin: 0 0 5px; color: #75889a; font-size: 11px; }
.stat-card strong { color: #1b3246; font-size: 26px; font-weight: 720; }
.panel { padding: 24px; margin-bottom: 19px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.section-heading h2, .form-section-heading h2 { margin: 2px 0 0; color: #1a3247; font-size: 17px; letter-spacing: -.015em; }
.text-link { color: var(--teal-dark); font-size: 11px; font-weight: 680; }
.text-link:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: start; }
th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: #8292a0; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-align: start; text-transform: uppercase; }
td { padding: 13px 12px; border-bottom: 1px solid #eef1f4; color: #536779; font-size: 11px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td strong { color: var(--ink); font-size: 11px; }
td small { margin-top: 4px; color: #8493a0; font-size: 10px; }
.date-pill, .status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.date-pill { color: #916923; background: var(--amber-wash); }
.date-pill.late { color: #a44040; background: #fff0ee; }
.status-draft { color: #9c7029; background: #fff3dd; }
.status-complete { color: #17786f; background: #e4f5f1; }
.status-muted { color: #70808d; background: #edf1f4; }
.empty-state { display: grid; min-height: 145px; align-content: center; justify-items: center; gap: 10px; color: #75899a; text-align: center; }
.empty-state strong { color: #5e7385; font-size: 12px; }
.empty-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; color: #348f85; background: #e9f6f3; font-size: 19px; }
.search-bar { display: flex; gap: 10px; }
.search-box { display: flex; min-height: 40px; flex: 1; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #e1e8ed; border-radius: 8px; color: #7990a0; background: #fbfcfd; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.directory-toolbar { display: flex; justify-content: space-between; margin: 21px 2px 12px; color: #8292a0; font-size: 10px; }
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.member-card { display: flex; min-width: 0; align-items: center; gap: 13px; padding: 15px; border: 1px solid #edf0f3; border-radius: 10px; background: #fff; transition: .15s ease; }
.member-card:hover { border-color: #c5e2dd; box-shadow: 0 5px 14px rgba(26,78,84,.06); transform: translateY(-1px); }
.member-avatar { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; overflow: hidden; border-radius: 13px; color: #147a71; background: #dff2ed; font-size: 15px; font-weight: 750; object-fit: cover; }
.member-avatar-large { width: 58px; height: 58px; flex-basis: 58px; border-radius: 17px; font-size: 20px; }
.member-card-main { display: grid; min-width: 0; flex: 1; gap: 4px; }
.member-card-main strong { overflow: hidden; color: #20374a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.member-card-main small { color: #8594a0; font-size: 10px; }
.member-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.member-tags em { padding: 3px 7px; border-radius: 5px; color: #587183; background: #f0f4f6; font-size: 9px; font-style: normal; }
.card-arrow { color: #9aacb7; font-size: 15px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 17px; color: #718493; font-size: 11px; }
.breadcrumbs a { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 11px; border: 1px solid #bcd8d4; border-radius: 999px; color: #145f59; background: #e8f5f2; font-weight: 750; }
.breadcrumbs a:hover { border-color: #75b7ae; background: #ddf1ed; }
.breadcrumb-current { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 11px; border: 1px solid #d4dfe5; border-radius: 999px; color: #2c4658; background: #f3f6f8; font-weight: 700; }
.breadcrumbs > span[aria-hidden="true"] { color: #a1afb8; font-size: 17px; }
.member-hero { display: flex; align-items: center; gap: 16px; padding: 21px 23px; }
.member-hero-copy { min-width: 0; flex: 1; }
.member-hero-copy h1 { margin: 3px 0 5px; color: #1b3246; font-size: 23px; letter-spacing: -.03em; }
.member-hero-copy p { margin: 0; }
.member-hero-copy .eyebrow { display: flex; align-items: center; gap: 8px; }
.dot-separator { padding-inline: 7px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.hero-actions form { margin: 0; }
.section-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 11px; }
.section-tabs a { display: inline-flex; min-height: 38px; flex: 0 0 auto; align-items: center; padding: 8px 12px; border: 1px solid #d8e2e7; border-radius: 8px; color: #405a6c; background: #fff; font-size: 11px; font-weight: 700; }
.section-tabs a:hover { border-color: #a6c8c3; color: #145f59; background: #f0f8f6; }
.section-tabs span { margin-inline-start: 5px; color: #526c7d; }
.profile-panel { padding: 22px 24px; }
.profile-panel .section-heading { margin-bottom: 15px; }
.profile-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.profile-fields > div, .review-snapshot > div { display: grid; gap: 5px; }
.profile-fields small, .review-snapshot small { color: #81919e; font-size: 9px; }
.profile-fields strong, .review-snapshot strong { color: #263e51; font-size: 11px; font-weight: 650; }
.content-panel { padding: 22px 24px; }
.content-panel .section-heading { margin-bottom: 15px; }
.timeline { display: grid; gap: 12px; }
.timeline-item { display: grid; grid-template-columns: 12px 1fr; gap: 12px; }
.timeline-dot { width: 9px; height: 9px; margin-top: 17px; border: 2px solid #c9e8e2; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #edf8f5; }
.timeline-card { padding: 13px 15px; border: 1px solid #edf0f3; border-radius: 9px; }
.timeline-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.timeline-top > div { display: flex; align-items: center; gap: 9px; }
.timeline-top > small { color: #83929e; font-size: 10px; }
.timeline-title { color: #20384c; font-size: 12px; font-weight: 700; }
.timeline-card p { margin: 9px 0; }
.timeline-card > small { color: #708697; font-size: 10px; }
.timeline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.history-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.history-view-switch { display: inline-flex; gap: 5px; padding: 4px; border: 1px solid #dce5e9; border-radius: 11px; background: #f2f6f8; }
.history-view-switch .button { min-height: 38px; padding: 8px 12px; }
.history-view-switch .is-selected { border-color: #126f68; color: white; background: #126f68; }
.history-view-switch .is-selected:hover { color: white; background: #0d5d57; }
.history-table-intro { margin: 0 0 13px; color: #617687; font-size: 12px; line-height: 1.6; }
.history-table-scroll-hint { margin: -6px 0 10px; color: #718493; font-size: 10px; }
.history-table-wrap { max-height: min(72vh, 720px); overflow: auto; border: 1px solid #e4eaee; border-radius: 10px; scrollbar-color: #b7c8cf #f3f6f7; scrollbar-width: thin; }
.history-table-wrap:focus-visible { outline: 3px solid rgba(22, 141, 131, .28); outline-offset: 2px; }
.history-table { width: 2490px; min-width: 2490px; table-layout: fixed; }
.history-column-date { width: 160px; }
.history-column-evaluator { width: 205px; }
.history-column-status { width: 170px; }
.history-column-overall, .history-column-improvement { width: 220px; }
.history-column-positive { width: 235px; }
.history-column-development { width: 240px; }
.history-column-comments { width: 210px; }
.history-column-title { width: 205px; }
.history-column-hr { width: 200px; }
.history-column-actions { width: 245px; }
.history-column-follow-up { width: 180px; }
.history-table th { position: sticky; top: 0; z-index: 3; color: #556d7e; background: #f4f7f9; line-height: 1.45; }
.history-table td { padding: 12px 13px; vertical-align: top; line-height: 1.55; overflow-wrap: anywhere; }
.history-table th, .history-table td { border-inline-end: 1px solid #edf1f3; }
.history-table th:last-child, .history-table td:last-child { border-inline-end: 0; }
.history-table tbody tr:nth-child(even) td { background: #fbfcfd; }
.history-table tbody tr:hover td { background: #f0f8f6; }
.history-table th:first-child { inset-inline-start: 0; z-index: 4; }
.history-table .history-date-cell { position: sticky; inset-inline-start: 0; z-index: 2; background: #fff; box-shadow: 1px 0 0 #e1e7eb, 7px 0 8px -7px rgba(25, 48, 68, .25); }
.history-table tbody tr:nth-child(even) .history-date-cell { background: #fbfcfd; }
.history-table tbody tr:hover .history-date-cell { background: #f0f8f6; }
.history-date-link { color: #145f59; font-weight: 750; white-space: nowrap; }
.reviewer-identity { display: flex; min-width: 145px; align-items: center; gap: 9px; }
.reviewer-identity > span { display: grid; min-width: 0; gap: 3px; }
.reviewer-identity strong { color: #263e51; font-size: 11px; }
.reviewer-identity small { color: #718493; font-size: 10px; }
.reviewer-identity-compact { min-width: 0; gap: 7px; }
.reviewer-identity-compact small { color: #526c7d; font-size: 10px; font-weight: 650; }
.reviewer-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; overflow: hidden; border-radius: 50%; object-fit: cover; }
.reviewer-avatar-fallback { color: #155f58; background: #dff2ed; font-size: 12px; font-weight: 800; }
.reviewer-byline { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #617687; font-size: 11px; }
.reviewer-byline strong { color: #264458; }
.history-review-actions { display: grid; justify-items: start; gap: 7px; }
.button-small { min-height: 36px; padding: 7px 10px; font-size: 10px; }
.history-actions-list { display: grid; min-width: 145px; gap: 9px; margin: 0; padding-inline-start: 16px; }
.history-actions-list li { padding-inline-start: 2px; }
.history-actions-list small { color: #718493; }
.member-photo-preview { display: flex; align-items: center; gap: 12px; color: #617687; font-size: 11px; font-weight: 650; }
.scheduled-member { display: flex; min-width: 150px; align-items: center; gap: 10px; }
.scheduled-member > span { display: grid; gap: 3px; }
.schedule-time { color: #24584f; font-size: 12px; font-weight: 750; }
.schedule-view-button { display: flex; width: fit-content; margin-top: 7px; }
.count-badge { display: inline-grid; min-width: 25px; height: 25px; place-items: center; margin-inline-start: 5px; border-radius: 999px; color: #145f59; background: #e3f3ef; font-size: 11px; vertical-align: middle; }
.count-badge-alert { color: #a44040; background: #fff0ee; }
.overdue-panel { border-color: #f1d7d4; }
.comment-compose { display: flex; align-items: flex-end; gap: 12px; padding: 14px; border: 1px solid #e9eef1; border-radius: 10px; background: #fbfcfd; }
.comment-compose .field-wrap { flex: 1; }
.comment-compose textarea { min-height: 68px; }
.comment-feed { display: grid; gap: 4px; margin-top: 14px; }
.comment-card { display: flex; gap: 11px; padding: 15px 4px; border-bottom: 1px solid #edf0f3; }
.comment-card:last-child { border-bottom: 0; }
.comment-avatar { display: grid; width: 33px; height: 33px; flex: 0 0 33px; place-items: center; border-radius: 50%; color: #477394; background: #e7eff6; font-size: 12px; font-weight: 700; }
.comment-body { min-width: 0; flex: 1; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.comment-meta strong { color: #243b4d; font-size: 11px; }
.comment-meta span, .comment-meta time, .comment-meta small { color: #82919d; font-size: 9px; }
.comment-body > p { margin: 7px 0; color: #536a7b; font-size: 11px; line-height: 1.65; }
.comment-body > .deleted-comment { color: #98a4ad; font-style: italic; }
.comment-actions { display: flex; gap: 12px; }
.comment-actions a, .comment-actions button { padding: 0; border: 0; color: #6a8795; background: transparent; cursor: pointer; font-size: 9px; }
.comment-actions button:hover, .comment-actions a:hover { color: var(--danger); }
.comment-actions form { margin: 0; }
.form-panel { max-width: 860px; padding: 25px; }
.stack-form { display: grid; gap: 16px; }
.field-wrap { display: grid; gap: 7px; }
.field-wrap label { color: #485f71; font-size: 10px; font-weight: 700; }
.form-control { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #dfe6eb; border-radius: 7px; color: #24394a; background: #fff; font-size: 11px; }
textarea.form-control { min-height: 84px; resize: vertical; line-height: 1.55; }
.form-control:hover { border-color: #c0d2d9; }
.field-wrap ul.errorlist, .form-errors ul { margin: 0; padding-inline-start: 16px; color: #ae4b4b; font-size: 10px; }
.form-errors { padding: 10px 12px; border: 1px solid #f2d1cc; border-radius: 8px; color: #a74747; background: #fff3f1; font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 7px; }
.form-actions-sticky { position: sticky; bottom: 12px; z-index: 2; width: fit-content; margin-inline-start: auto; padding: 10px; border: 1px solid #e4e9ed; border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.help-text { color: #7e8e9a; font-size: 9px; line-height: 1.6; }
.profile-password-link { margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); text-align: end; }
.profile-photo-large { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; }
.messages { display: grid; gap: 7px; margin-bottom: 15px; }
.notice { padding: 10px 13px; border: 1px solid #cee8df; border-radius: 8px; color: #1f7669; background: #edf9f5; font-size: 11px; }
.notice.error { border-color: #f2d1cc; color: #a74747; background: #fff3f1; }
.team-panel { padding: 4px 22px; }
.team-row { display: grid; grid-template-columns: minmax(180px, 1fr) 100px minmax(200px, .9fr); align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid #edf0f3; }
.team-row:last-child { border-bottom: 0; }
.team-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.team-identity > div { display: grid; gap: 4px; }
.team-identity strong { color: #263d4f; font-size: 11px; }
.team-identity small { color: #8695a0; font-size: 9px; }
.team-status { display: grid; justify-items: start; gap: 4px; }
.team-status > span + span { color: #8795a0; font-size: 9px; }
.team-actions { display: flex; justify-content: flex-end; gap: 13px; }
.team-actions form { margin: 0; }
.text-button { padding: 3px; border: 0; color: #548391; background: transparent; cursor: pointer; font-size: 9px; font-weight: 650; }
.text-button:hover { color: var(--danger); }
.credential-card { display: grid; max-width: 500px; justify-items: center; margin: 11vh auto 0; padding: 37px; text-align: center; }
.credential-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 16px; border-radius: 50%; color: #167a70; background: #e4f6f1; font-size: 20px; }
.credential-card h1 { margin: 2px 0 7px; font-size: 22px; }
.credential-card p { margin: 0 0 11px; }
.credential-value { width: 100%; margin: 9px 0 13px; padding: 14px; border: 1px dashed #9bc9c1; border-radius: 8px; color: #164d4b; background: #f3fbf9; font-family: Consolas, monospace; font-size: 14px; overflow-wrap: anywhere; }
.credential-warning { margin-top: 14px !important; color: #9c7029; font-size: 10px; }
.auth-layout { display: grid; min-height: calc(100vh - 68px); place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 25%, #e7f5f2 0, transparent 46%); }
.auth-card { width: min(100%, 410px); padding: 31px; }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 31px; }
.auth-brand strong { color: #1d3448; }
.auth-brand small { color: #8293a0; }
.auth-card h1 { margin: 3px 0 6px; font-size: 24px; letter-spacing: -.03em; }
.auth-card > .muted { margin: 0 0 22px; }
.auth-card .stack-form { gap: 14px; }
.secure-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid #edf0f3; color: #8997a1; font-size: 9px; text-align: center; }
.secure-note span { margin-inline-end: 4px; color: #348f85; }
.review-form { display: grid; gap: 14px; }
.review-form .panel { margin: 0; }
.form-section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 19px; }
.form-section-heading p { margin: 5px 0 0; color: #8a98a3; font-size: 10px; }
.section-number { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 9px; color: #257f77; background: #e8f5f2; font-size: 10px; font-weight: 750; }
.review-snapshot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px; border: 1px solid #eaf0f2; border-radius: 9px; background: #f8fafb; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.review-snapshot + .form-grid { margin-top: 15px; }
.action-row { position: relative; display: grid; gap: 10px; margin: 10px 0; padding: 14px; border: 1px solid #e8edf0; border-radius: 9px; background: #fcfdfd; }
.action-row .form-grid { align-items: end; }
.action-row .button-quiet { justify-self: end; min-height: 29px; padding: 5px 9px; font-size: 9px; }
.delete-field { display: none; }
.document-section { padding: 22px 0; border-bottom: 1px solid #e9eef1; }
.document-section:last-of-type { border-bottom: 0; }
.document-section h3 { margin: 0 0 17px; color: #1b3549; font-size: 14px; }
.review-document { max-width: 1000px; padding: 27px 32px; }
.review-document-header { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 2px solid #eaf0f2; }
.review-document-header h2 { margin: 0; color: #20394d; font-size: 17px; }
.review-document-header .eyebrow { margin-bottom: 4px; }
.review-document-header .confidential-tag { margin-inline-start: auto; }
.document-logo { width: 42px; height: 42px; flex-basis: 42px; }
.document-fields { display: grid; gap: 13px; }
.document-fields > div { padding: 0 0 11px; border-bottom: 1px dashed #e8edf0; }
.document-fields > div:last-child { border-bottom: 0; }
.document-fields h4 { margin: 0 0 6px; color: #718797; font-size: 10px; }
.document-fields p { margin: 0; color: #344f63; font-size: 11px; line-height: 1.7; }
.prepared-by { display: grid; gap: 4px; justify-items: end; padding-top: 20px; color: #7e909d; font-size: 9px; }
.prepared-by strong { color: #294457; font-size: 11px; }
.review-document .profile-fields { grid-template-columns: repeat(3, minmax(0,1fr)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.print-only { display: none; }

html[dir="rtl"] .primary-nav a.active { box-shadow: inset -3px 0 #38b4a5; }
html[dir="rtl"] .form-actions-sticky { margin-inline-start: auto; }
html[dir="rtl"] .review-document-header .confidential-tag { margin-inline-start: auto; }
html[dir="rtl"] .history-table .history-date-cell { box-shadow: -1px 0 0 #e1e7eb, -7px 0 8px -7px rgba(25, 48, 68, .25); }

@media (max-width: 1050px) {
  .sidebar { width: 218px; }
  .main-area { margin-inline-start: 218px; }
  .page-wrap { padding-inline: 27px; }
  .topbar { padding-inline: 27px; }
  .team-row { grid-template-columns: minmax(160px, 1fr) 84px minmax(170px, .9fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; height: auto; padding: 10px 14px; }
  .brand { display: none; }
  .primary-nav { display: flex; overflow-x: auto; gap: 5px; }
  .primary-nav a { width: auto; flex: 0 0 auto; padding: 9px 11px; font-size: 10px; }
  .primary-nav a.active { box-shadow: inset 0 -2px #38b4a5; }
  .nav-icon { display: none; }
  .sidebar-bottom { position: absolute; top: 10px; inset-inline-end: 13px; margin: 0; padding: 0; border: 0; }
  .sidebar-bottom .profile-link { display: none; }
  .sidebar-bottom form { display: none; }
  .main-area { margin-inline-start: 0; }
  .topbar { height: 56px; padding-inline: 17px; }
  .mobile-brand { display: flex; gap: 8px; color: #1d3448; font-size: 12px; }
  .mobile-brand .brand-mark { width: 29px; height: 29px; flex-basis: 29px; border-radius: 9px; font-size: 16px; }
  .confidential-tag { display: none; }
  .page-wrap { padding: 24px 16px 45px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading > .button { align-self: stretch; }
  .stats-grid { grid-template-columns: 1fr; gap: 9px; }
  .stat-card { min-height: 82px; padding: 14px 17px; }
  .stat-card strong { font-size: 21px; }
  .panel { padding: 17px; border-radius: 11px; }
  .member-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .search-bar .button { align-self: stretch; }
  .member-hero { align-items: flex-start; flex-wrap: wrap; }
  .member-hero-copy { flex-basis: calc(100% - 76px); }
  .hero-actions { width: 100%; }
  .hero-actions > * { flex: 1; }
  .hero-actions .button { width: 100%; }
  .section-tabs { gap: 14px; overflow-x: auto; white-space: nowrap; }
  .content-panel .section-heading { align-items: stretch; flex-direction: column; }
  .history-heading-actions { width: 100%; justify-content: space-between; }
  .history-view-switch { flex: 1; }
  .history-view-switch .button { flex: 1; }
  .timeline-top { align-items: flex-start; flex-direction: column; }
  .timeline-top > div { flex-wrap: wrap; }
  .history-table-wrap { max-height: 68vh; overflow: auto; border: 1px solid #e4eaee; }
  .history-review-actions { min-width: 0; }
  .reviewer-identity { min-width: 180px; }
  .history-actions-list { min-width: 0; }
  .history-table .button-small { width: fit-content; }
  .profile-fields, .review-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comment-compose { align-items: stretch; flex-direction: column; }
  .comment-compose .button { align-self: flex-end; }
  .team-row { grid-template-columns: 1fr auto; gap: 10px; }
  .team-actions { grid-column: 1 / -1; justify-content: flex-start; padding-inline-start: 45px; }
  .team-status { justify-items: end; }
  .form-grid { grid-template-columns: 1fr; }
  .review-document { padding: 18px; }
  .review-document-header { flex-wrap: wrap; }
  .review-document-header .confidential-tag { display: inline-flex; margin-inline-start: 0; }
  .review-document .profile-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .auth-layout { min-height: calc(100vh - 105px); padding: 14px; }
  .auth-card { padding: 23px; }
  .credential-card { margin-top: 7vh; padding: 25px 19px; }
  .table-wrap { margin-inline: -8px; }
  table { min-width: 540px; }
  .dashboard-panel .table-wrap { margin-inline: -8px; }
  .dashboard-panel .table-wrap table { min-width: 650px; }
  .history-table-wrap { margin-inline: 0; }
  .breadcrumbs { gap: 6px; }
  .breadcrumbs a, .breadcrumb-current { min-height: 38px; }
}
@media print {
  body { color: #000; background: #fff; }
  .sidebar, .topbar, .breadcrumbs, .hero-actions, .section-tabs, .messages, .button, .comment-compose, .comment-actions { display: none !important; }
  .main-area { margin: 0; }
  .page-wrap { width: 100%; padding: 0; }
  .panel { border: 0; box-shadow: none; }
  .review-document { max-width: none; padding: 0; }
  .print-only { display: block; }
}

