.help-button { min-width: 92px; }
.chairman-shell { padding-bottom: 64px; }

.chairman-intro {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.chairman-intro h1 { margin: 0; color: #173957; font-size: clamp(25px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.03em; }
.chairman-intro p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.identity-note { display: flex; max-width: 330px; padding: 12px 15px; align-items: center; gap: 11px; border: 1px solid #b9e2c5; border-radius: 12px; color: #087832; background: #f1faf4; }
.identity-note > span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; color: var(--white); background: #20964c; font-size: 13px; font-weight: 800; }
.identity-note strong, .identity-note small { display: block; }
.identity-note strong { font-size: 12px; }
.identity-note small { margin-top: 3px; color: #51705d; font-size: 10px; }

.chairman-summary { display: grid; margin-bottom: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chairman-stat { display: grid; min-height: 78px; padding: 12px 16px; grid-template-columns: 34px auto 1fr; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; color: #173957; background: var(--white); text-align: left; cursor: pointer; box-shadow: 0 6px 18px rgba(11, 31, 51, 0.05); }
.chairman-stat:hover { transform: translateY(-1px); }
.chairman-stat:focus-visible { outline: 3px solid rgba(24, 103, 255, 0.22); outline-offset: 2px; }
.chairman-stat[aria-pressed="true"] { border-color: var(--blue-700); box-shadow: 0 0 0 2px rgba(13, 126, 214, 0.13); }
.chairman-stat > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; font-weight: 800; }
.chairman-stat strong { font-size: 25px; line-height: 1; }
.chairman-stat small { color: #455a6e; font-size: 12px; font-weight: 700; }
.chairman-stat--waiting > span { color: #53667a; background: #e9edf1; }
.chairman-stat--signed > span { color: #087832; background: #dff3e5; }
.chairman-stat--rejected > span { color: #a7193f; background: #ffe1e8; }

.chairman-documents { overflow: visible; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.chairman-toolbar { display: grid; min-height: 78px; padding: 16px 20px; grid-template-columns: minmax(130px, auto) minmax(240px, 1fr) auto auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.chairman-toolbar__title { padding-right: 12px; }
.chairman-toolbar__title h2 { margin: 0; color: #173957; font-size: 18px; line-height: 1.15; }
.chairman-toolbar__title span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.chairman-search { width: 100%; min-width: 0; margin: 0; }
.chairman-filter select { min-height: 42px; }

.chairman-table-wrap { overflow-x: auto; border-radius: 0 0 14px 14px; }
.chairman-table { width: 100%; min-width: 1160px; border-spacing: 0; table-layout: fixed; }
.chairman-table th, .chairman-table td { padding: 14px 13px; vertical-align: middle; overflow-wrap: normal; }
.chairman-table th { height: 48px; padding: 10px 13px; color: #566677; background: #f5f8fa; font-size: 10px; line-height: 1.25; letter-spacing: 0.045em; text-transform: uppercase; }
.chairman-table th:nth-child(1) { width: 145px; }
.chairman-table th:nth-child(2) { width: 300px; }
.chairman-table th:nth-child(3) { width: 215px; }
.chairman-table th:nth-child(4) { width: 170px; }
.chairman-table th:nth-child(5) { width: 180px; }
.chairman-table th:nth-child(6) { width: 130px; }
.chairman-table td { border-top: 1px solid #e4ebf1; color: #33485c; background: var(--white); font-size: 12px; line-height: 1.4; }
.chairman-table tbody tr:first-child td { border-top: 0; }
.chairman-table td:first-child { padding-left: 16px; border-left: 4px solid transparent; }
.chairman-row--waiting td { background: #f7f9fb; }
.chairman-row--waiting td:first-child { border-left-color: #8091a3; }
.chairman-row--signed td { background: #f1faf4; }
.chairman-row--signed td:first-child { border-left-color: #28a45b; }
.chairman-row--rejected td { background: #fff6f8; }
.chairman-row--rejected td:first-child { border-left-color: #d9385f; }
.document-name { display: block; color: #174f81; font-size: 13px; font-weight: 750; line-height: 1.35; }
.document-name + span, .uploader small, .received small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.uploader strong { display: block; color: #33485c; font-size: 12px; }
.notice-status { display: inline-flex; align-items: center; gap: 6px; color: #087832; font-weight: 650; }
.notice-status::before { content: "✓"; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: var(--white); background: #20964c; font-size: 9px; font-weight: 800; }
.signature-status { display: inline-flex; min-height: 29px; padding: 5px 9px; align-items: center; gap: 7px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.signature-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.signature-status--waiting { color: #53667a; background: #e9edf1; }
.signature-status--signed { color: #087832; background: #dff3e5; }
.signature-status--rejected { color: #a7193f; background: #ffe1e8; }
.status-detail { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.review-button { display: inline-flex; min-height: 34px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid #96b5d2; border-radius: 8px; color: var(--blue-700); background: var(--white); font-size: 11px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.review-button--primary { border-color: var(--blue-700); color: var(--white); background: var(--blue-700); }
.review-button:hover { filter: brightness(0.97); }
.chairman-empty { display: grid; min-height: 230px; place-content: center; gap: 6px; color: var(--muted); text-align: center; }
.chairman-empty strong { color: #33485c; font-size: 16px; }
.chairman-empty[hidden] { display: none; }

.chairman-modal { position: fixed; z-index: 50; inset: 0; display: grid; padding: 24px; place-items: center; }
.chairman-modal[hidden] { display: none; }
.chairman-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 42, 66, 0.72); backdrop-filter: blur(3px); }
.chairman-modal__dialog { position: relative; z-index: 1; width: min(860px, 100%); max-height: calc(100vh - 48px); padding: 34px; overflow-y: auto; border-radius: 18px; background: var(--white); box-shadow: 0 24px 70px rgba(8, 29, 50, 0.32); }
.chairman-modal__dialog h2 { max-width: calc(100% - 60px); margin: 0 0 22px; color: #173957; font-size: 25px; line-height: 1.2; }
.document-review { display: grid; margin-bottom: 20px; grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1.15fr); gap: 20px; }
.document-preview { display: grid; min-height: 250px; padding: 26px; place-content: center; justify-items: center; gap: 12px; border: 1px dashed #9eb9d6; border-radius: 12px; background: #f4f8fc; text-align: center; }
.pdf-badge { display: grid; width: 58px; height: 70px; place-items: center; border-radius: 7px 7px 10px 10px; color: var(--white); background: #d9385f; font-size: 15px; font-weight: 800; box-shadow: inset 0 -8px 0 rgba(114, 14, 39, 0.16); }
.document-preview strong { max-width: 300px; color: #173957; font-size: 14px; line-height: 1.4; }
.document-preview small { color: var(--muted); font-size: 11px; }
.document-preview button { border: 0; color: var(--blue-700); background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }
.document-details { margin: 0; border-top: 1px solid var(--line); }
.document-details div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.document-details dt { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.document-details dd { margin: 0; color: #33485c; font-size: 13px; font-weight: 650; }
.signing-area { padding: 17px; border: 1px solid #c9d8e7; border-radius: 12px; background: #f8fbfe; }
.review-confirm { display: flex; align-items: flex-start; gap: 10px; color: #2f465b; font-size: 13px; font-weight: 650; cursor: pointer; }
.review-confirm input { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; accent-color: var(--blue-700); }
.signing-area p { margin: 10px 0 0 28px; color: var(--muted); font-size: 10px; }
.signing-actions { display: flex; margin-top: 17px; justify-content: flex-end; gap: 10px; }
.sign-button { color: var(--white); background: var(--blue-700); }
.sign-button:disabled { color: #8a96a2; background: #e6eaee; cursor: not-allowed; }
.reject-button { border: 1px solid #d67a90; color: #a7193f; background: var(--white); }
.reject-button:hover { background: #fff0f3; }
.cancel-button { border: 1px solid #aab7c4; color: #4c5967; background: var(--white); }
.rejection-form { padding: 17px; border: 1px solid #f0b8c5; border-radius: 12px; background: #fff7f9; }
.rejection-form[hidden] { display: none; }
.rejection-form label > span { display: block; margin-bottom: 7px; color: #34495e; font-size: 12px; font-weight: 750; }
.rejection-form textarea { width: 100%; padding: 11px 12px; resize: vertical; border: 1px solid #c7d1dc; border-radius: 8px; color: var(--text); background: var(--white); font: inherit; font-size: 13px; }
.rejection-form textarea:focus-visible { outline: 3px solid rgba(200, 45, 83, 0.17); outline-offset: 1px; border-color: #c82d53; }
.completed-note { padding: 16px; border-radius: 12px; color: #33485c; background: #f2f5f8; font-size: 13px; line-height: 1.5; }
.completed-note[hidden] { display: none; }

@media (max-width: 980px) {
  .chairman-toolbar { grid-template-columns: 1fr 1fr; }
  .chairman-toolbar__title, .chairman-search { grid-column: 1 / -1; }
  .chairman-filter select { width: 100%; }
}

@media (max-width: 700px) {
  .help-button { width: 42px; min-width: 42px; padding: 0; font-size: 0; }
  .help-button::before { content: "?"; font-size: 18px; }
  .chairman-intro { align-items: stretch; flex-direction: column; }
  .identity-note { max-width: none; }
  .chairman-summary { grid-template-columns: 1fr; }
  .chairman-stat { min-height: 66px; }
  .chairman-documents { border: 0; background: transparent; box-shadow: none; }
  .chairman-toolbar { padding: 0 0 14px; grid-template-columns: 1fr; border: 0; }
  .chairman-toolbar__title, .chairman-search { grid-column: auto; }
  .chairman-table-wrap { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
  .chairman-modal { padding: 10px; }
  .chairman-modal__dialog { max-height: calc(100vh - 20px); padding: 24px 18px; border-radius: 14px; }
  .document-review { grid-template-columns: 1fr; }
  .document-preview { min-height: 200px; }
  .signing-actions { align-items: stretch; flex-direction: column-reverse; }
  .signing-actions .button { width: 100%; }
}
