/* Work files share one collection within each company. */
.doc-company { color: var(--muted); font-size: 12px; }
.doc-info { gap: 12px; }
.doc-info .doc-bottom { margin-top: 16px; }
.document-disclosure { margin-top: 0; }

/* A shared grid keeps the biography and portrait edges aligned. */
.about-section { grid-template-columns: minmax(0, 1fr) 360px; align-items: stretch; gap: 48px; }
.about-copy { max-width: none; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.about-title h2 { margin: 12px 0 16px; font-size: 36px; line-height: 1.45; }
.about-title > p:last-child { font-size: 15px; }
.about-summary { flex: 1; display: grid; grid-template-rows: 1fr 1.2fr; gap: 24px; }
.about-bio, .about-direction { margin: 0; padding: 28px 32px; max-width: none; border: 1px solid var(--line); border-radius: var(--radius); background: #edf4ee; display: flex; flex-direction: column; justify-content: center; }
.about-bio .about-label, .about-direction .about-label { font-size: 12px; margin-bottom: 12px; }
.about-bio .about-intro { margin: 0; max-width: none; font-size: 16px; line-height: 1.9; color: #566c5e; text-align: justify; text-justify: inter-ideograph; }
.about-direction h3 { font-size: 21px; line-height: 1.5; margin: 0 0 12px; }
.about-direction > p { font-size: 15px; line-height: 1.9; text-align: justify; text-justify: inter-ideograph; }
.about-tags { margin-top: 20px; gap: 12px; }
.about-tags span { background: #ffffff90; padding: 5px 10px; font-size: 12px; }
.about-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.about-actions > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.about-actions > div > span { font-size: 11px; color: var(--muted); }
.about-actions strong { font-size: 14px; font-weight: 500; }
.about-actions .button { padding: 12px 20px; font-size: 14px; white-space: nowrap; }
.about-section .profile-card { display: flex; flex-direction: column; min-width: 0; }
.about-section .profile-info { flex: 1; display: flex; flex-direction: column; padding: 28px; }
.profile-name { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
.profile-name strong { font-size: 28px; }
.profile-name > span { font-size: 11px; }
.profile-role { margin-top: 12px; font-size: 15px; }
.profile-facts { grid-template-columns: 60px minmax(0, 1fr); row-gap: 16px; column-gap: 16px; margin: auto 0 0; padding-top: 24px; font-size: 13px; }
.profile-facts dd { min-width: 0; text-align: right; line-height: 1.6; }
.profile-facts dd span { font-size: 11px; margin-top: 4px; }

/* Full-screen, read-only Office-style document canvas. */
#document-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; inset: 0; margin: 0; border: 0; border-radius: 0; background: #f4f6f4; box-shadow: none; }
#document-dialog[open] { display: flex; flex-direction: column; }
.viewer-header { padding: 10px 16px; min-height: 66px; gap: 16px; background: #22392d; border-bottom-color: #ffffff12; color: white; }
.viewer-file-icon { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 38px; background: #9cc3a7; color: #213d2b; border-radius: 5px; font: 700 19px/1 var(--serif); }
.viewer-heading { flex: 1; }
.viewer-heading p { color: #bacdbf; font-size: 10px; margin-bottom: 2px; }
.viewer-heading h2 { font-size: 15px; line-height: 1.4; color: white; }
.viewer-readonly { padding: 3px 10px; font-size: 10px; color: #d7e5db; border: 1px solid #ffffff25; border-radius: 5px; white-space: nowrap; }
.viewer-header .close-button { background: #ffffff0d; color: #edf4ef; height: 40px; width: 40px; border-radius: 6px; }
.viewer-header .close-button:hover { background: #ffffff24; color: white; }
.viewer-toolbar { background: #f6f8f6; padding: 8px 16px; gap: 16px; border-bottom-color: #dce2dc; }
.viewer-toolbar .viewer-controls { gap: 12px; }
.viewer-toolbar button, .viewer-toolbar input, .viewer-toolbar select { min-height: 36px; height: 36px; font-size: 12px; border-radius: 5px; }
.viewer-toolbar .zoom-label { margin-left: auto; white-space: nowrap; font-size: 12px; }
.viewer-nav-button { padding: 6px 12px; background: white; border-color: #d4ddd5; }
.viewer-controls[hidden], .viewer-sidebar[hidden], .sheet-formula-bar[hidden], .workbook-navigation[hidden], #row-jump-form[hidden], #sheet-media-button[hidden] { display: none; }
.sheet-formula-bar { flex-shrink: 0; display: flex; align-items: center; gap: 0; height: 36px; background: white; border-bottom: 1px solid #d2dcd4; }
.sheet-formula-bar output { display: grid; place-items: center; width: 88px; flex-shrink: 0; height: 100%; color: #3d5946; font-size: 12px; border-right: 1px solid #dce4de; }
.sheet-formula-bar > span { flex-shrink: 0; width: 40px; font: italic 16px var(--serif); text-align: center; color: #8b978e; }
.sheet-formula-bar input { width: 0; flex: 1; min-width: 0; padding: 4px 12px; height: 100%; font: 12px var(--sans); background: white; border: 0; color: #35463a; outline-offset: -3px; }
.viewer-content { background: #ecefec; }
.viewer-stage.sheet-stage { padding: 0; background: #fafbfa; background-image: linear-gradient(#dfe5e0 1px, transparent 1px), linear-gradient(90deg, #dfe5e0 1px, transparent 1px); background-size: 130px 26px; }
.sheet-scaled { width: max-content; min-width: 100%; min-height: 100%; border: 0; background: transparent; }
.sheet-canvas { width: max-content; min-width: 100%; position: relative; }
.sheet-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; line-height: 1.45; font-size: 13px; color: #222; }
.sheet-table td, .sheet-table th { border: 0; border-right: 1px solid #d4ddd6; border-bottom: 1px solid #d4ddd6; padding: 4px 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
.sheet-table td { vertical-align: top; background: white; position: relative; }
.sheet-table thead th { height: 28px; padding: 4px 6px; background: #e9eee9; font-size: 11px; color: #68756a; }
.sheet-table .row-head { background: #edf1ed; color: #738175; font-size: 10px; padding: 4px; vertical-align: middle; z-index: 5; }
.sheet-table thead th { z-index: 6; }
.sheet-table thead .row-head { z-index: 7; }
.sheet-table .selected-cell { outline: 2px solid #4d9870; outline-offset: -2px; z-index: 3; }
.sheet-table .selected-header { background: #d8e7db; color: #275b3a; }
.sheet-inline-image { position: absolute; padding: 0; border: 0; background: transparent; border-radius: 0; z-index: 4; display: block; overflow: hidden; }
.sheet-inline-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sheet-inline-image:hover { outline: 2px solid #4d9870; outline-offset: -2px; }
.sheet-inline-image:active { transform: none; }
.sheet-media-gallery { padding: 24px; }
.workbook-navigation { display: flex; align-items: stretch; gap: 0; min-height: 43px; flex-shrink: 0; min-width: 0; background: #27382d; color: #d6e2d9; border-top: 1px solid #385341; }
.sheet-arrows { flex-shrink: 0; display: flex; align-items: center; gap: 0; padding: 0 8px; border-right: 1px solid #ffffff14; }
.sheet-arrows button { min-width: 30px; height: 34px; padding: 2px 6px; border: 0; border-radius: 4px; font: 17px var(--sans); color: #c7d6cc; background: transparent; }
.sheet-arrows button:hover { background: #ffffff12; color: white; }
.sheet-arrows button:disabled { opacity: .3; cursor: default; transform: none; }
#sheet-tabs { flex: 1; min-width: 0; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #72967d transparent; }
#sheet-tabs button { flex-shrink: 0; white-space: nowrap; padding: 8px 20px; min-height: 42px; border: 0; border-right: 1px solid #ffffff10; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #cbd8cf; font-size: 12px; }
#sheet-tabs button:hover { background: #ffffff0c; color: white; }
#sheet-tabs button[aria-selected=true] { background: #eff7f0; color: #397153; border-bottom-color: #67a17b; font-weight: 600; }
#sheet-tabs button:focus-visible, .sheet-arrows button:focus-visible { outline: 2px solid #9bccaa; outline-offset: -3px; }
.sheet-count { align-self: center; flex-shrink: 0; padding: 0 16px; color: #9eb5a5; font-size: 10px; }
.viewer-footer { padding: 6px 16px; min-height: 30px; gap: 24px; flex-shrink: 0; background: #ecf2ed; border-top: 1px solid #d4dfd6; }
.viewer-footer > span { font-size: 10px; color: #7b8b7f; }
.viewer-footer strong { font-size: 11px; font-weight: 400; color: #42604c; }
.pdf-stage { padding: 24px; }

@media (max-width: 1000px) and (min-width: 701px) {
  .about-section { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
  .about-copy { gap: 20px; }
  .about-title h2 { font-size: 30px; }
  .about-bio, .about-direction { padding: 24px; }
  .about-bio .about-intro { font-size: 15px; }
  .about-actions { padding: 16px; gap: 12px; }
  .about-actions strong { font-size: 12px; }
  .about-actions .button { padding: 10px 12px; font-size: 12px; }
  .about-section .profile-info { padding: 24px 20px; }
}
@media (max-width: 700px) {
  .about-section { gap: 24px; }
  .about-copy { gap: 24px; }
  .about-title h2 { font-size: 29px; }
  .about-summary { grid-template-rows: auto auto; gap: 16px; }
  .about-bio, .about-direction { padding: 24px; }
  .about-bio .about-intro { font-size: 15px; }
  .about-actions { flex-wrap: wrap; padding: 20px; gap: 16px; }
  .about-actions .button { width: 100%; }
  .about-tags { gap: 8px; margin-top: 16px; }
  .about-section .profile-info { padding: 24px; }
  .viewer-header { padding: 8px 12px; gap: 10px; min-height: 60px; }
  .viewer-readonly { display: none; }
  .viewer-heading h2 { font-size: 12px; max-height: 3em; }
  .viewer-heading p { font-size: 9px; }
  .viewer-file-icon { width: 25px; height: 30px; font-size: 16px; }
  .viewer-header .close-button { width: 40px; height: 40px; }
  .viewer-toolbar { padding: 8px 12px; gap: 8px; }
  .viewer-toolbar .viewer-controls { width: auto; gap: 8px; }
  .viewer-toolbar #sheet-controls { flex: 1; }
  .viewer-toolbar .zoom-label { order: initial; margin-left: auto; }
  .viewer-toolbar #sheet-media-button { order: initial; font-size: 10px; }
  .viewer-toolbar button, .viewer-toolbar input, .viewer-toolbar select { height: 40px; min-height: 40px; font-size: 11px; }
  #row-jump { width: 52px; }
  #row-jump-form { gap: 6px; }
  .sheet-formula-bar output { width: 56px; }
  .sheet-formula-bar > span { width: 28px; }
  .sheet-formula-bar input { font-size: 11px; padding: 4px 8px; }
  .sheet-arrows { padding-inline: 4px; }
  .sheet-arrows button { min-width: 28px; height: 44px; padding: 2px; }
  #sheet-tabs button { padding: 8px 16px; min-height: 46px; font-size: 12px; }
  .sheet-count { display: none; }
  .viewer-footer { padding: 6px 12px; display: flex; gap: 8px; min-height: 30px; }
  .viewer-footer > span { font-size: 9px; display: block; }
  .viewer-footer strong { font-size: 10px; margin-top: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .sheet-media-gallery { padding: 12px; }
}
@media (max-width: 360px) { #sheet-controls #sheet-media-button { padding-inline: 6px; } .viewer-toolbar { gap: 6px; } .viewer-toolbar .zoom-label { gap: 4px; } .viewer-toolbar .zoom-label select { padding-inline: 4px; } .viewer-footer > span { max-width: 120px; } }
