.td-admin-workspace { display: none; padding: 20px 24px; min-width: 0; min-height: 100dvh; background: #f5f7f6; }
body[data-active-admin-section="partnerOnboarding"] #partnerOnboardingSection { display: block; }
.td-admin-workspace *, .td-team-workspace *, .td-dialog * { box-sizing: border-box; letter-spacing: 0; }
.td-admin-workspace [hidden], .td-team-workspace [hidden], .td-viewer [hidden] { display: none !important; }
.admin-nav-item[data-section="partnerOnboarding"] strong { white-space: normal; line-height: 1.3; }
.td-workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.td-workspace-header .eyebrow { margin: 0 0 4px; font-size: 10px; line-height: 1.4; color: #657973; }
.td-workspace-header h1 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 700; }
.td-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.td-admin-layout { --td-height: max(480px, calc(100dvh - 120px)); display: grid; grid-template-columns: 216px minmax(0, 1fr) 232px; gap: 16px; align-items: start; }
.td-library { height: var(--td-height); display: flex; flex-direction: column; min-width: 0; }
.td-library-heading, .td-publication-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px; margin-bottom: 10px; border-bottom: 1px solid #dce5e1; padding-bottom: 10px; }
.td-library-heading h2, .td-publication-heading h2 { font-size: 13px; margin: 0; font-weight: 700; }
.td-count { min-width: 21px; padding: 2px 5px; text-align: center; border-radius: 4px; background: #e6ebed; font-size: 10px; font-weight: 700; color: #50646a; }
.td-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #c8d9d7; border-radius: 5px; padding: 0 10px; min-height: 38px; min-width: 0; }
.td-search svg { width: 16px; height: 16px; flex-shrink: 0; color: #637873; }
.td-search input { border: 0; background: transparent; width: 100%; min-width: 0; outline: none; padding: 8px 0; font: inherit; font-size: 13px; }
.td-search:focus-within { border-color: #107f72; box-shadow: 0 0 0 2px #d6eee8; }
.td-filter { width: 100%; min-height: 36px; margin-top: 8px; padding: 7px 9px; background: #fff; border: 1px solid #c8d9d7; border-radius: 5px; font: inherit; font-size: 12px; }
.td-document-list { margin-top: 14px; overflow-y: auto; flex: 1; min-height: 0; padding-right: 3px; }
.td-document-row { display: flex; width: 100%; align-items: flex-start; gap: 10px; padding: 13px 10px; border: 1px solid transparent; border-bottom-color: #d7e2df; border-radius: 4px; background: transparent; color: #143d36; text-align: left; cursor: pointer; font: inherit; }
.td-document-row:hover { background: #f7fbfa; }
.td-document-row.selected { background: #fff; border-color: #71b4a4; box-shadow: inset 3px 0 #107f72; }
.td-document-symbol { flex-shrink: 0; margin-top: 1px; color: #3e776a; }
.td-document-symbol svg { width: 22px; height: 22px; }
.td-document-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.td-document-copy strong { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.td-muted { font-size: 12px; color: #617773; line-height: 1.5; overflow-wrap: anywhere; }
.td-document-state { font-size: 11px; font-weight: 600; color: #687b77; }
.td-document-state.published { color: #087962; }
.td-badge { background: #edf1f3; border-radius: 4px; color: #536a66; padding: 4px 7px; font-size: 11px; font-weight: 700; }
.td-badge.published { background: #e4f2e8; color: #19723b; }
.td-publication { min-width: 0; padding-left: 16px; border-left: 1px solid #cddfda; }
.td-publication fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.td-publication legend { font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.td-radio { display: flex; gap: 8px; align-items: center; min-height: 44px; font-size: 13px; cursor: pointer; }
.td-radio input, .td-member input { accent-color: #107f72; width: 16px; height: 16px; flex-shrink: 0; }
.td-radio svg { width: 17px; height: 17px; color: #5f7770; flex-shrink: 0; }
.td-member-search { width: 100%; min-height: 35px; margin: 9px 0; border: 1px solid #c8d9d7; border-radius: 5px; background: #fff; padding: 8px; font: inherit; font-size: 12px; }
.td-members { max-height: 280px; overflow-y: auto; border-top: 1px solid #d4e2dd; border-bottom: 1px solid #d4e2dd; }
.td-member { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 12px; cursor: pointer; }
.td-member > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.td-member small { color: #677d75; font-size: 11px; }
.td-publication-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 12px; margin-top: 16px; border-top: 1px solid #d4e2dd; }
.td-file-meta { white-space: pre-line; font-size: 11px; line-height: 1.7; color: #627a72; overflow-wrap: anywhere; margin: 18px 0 0; }
.td-primary-button, .td-secondary-button, .td-text-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 37px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; border-radius: 5px; cursor: pointer; line-height: 1.35; }
.td-primary-button { color: #fff; background: #0d8173; border: 1px solid #0d8173; }
.td-primary-button:hover:not(:disabled) { background: #08685d; }
.td-secondary-button { color: #21544a; background: #fff; border: 1px solid #bcd4ca; }
.td-text-button { color: #45665c; background: transparent; border: 1px solid transparent; }
.td-secondary-button:hover:not(:disabled), .td-text-button:hover:not(:disabled) { background: #edf5f0; }
.td-full { width: 100%; }
.td-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-width: 34px; padding: 7px; border: 1px solid #c9d9d4; border-radius: 5px; color: #28665a; background: #fff; cursor: pointer; text-decoration: none; }
.td-icon-button:hover:not(:disabled) { background: #e7f2ee; }
.td-primary-button svg, .td-secondary-button svg, .td-text-button svg, .td-icon-button svg { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 1.8; }
.td-admin-workspace button:disabled, .td-viewer button:disabled, .td-dialog button:disabled { opacity: .5; cursor: default; }
.td-status { min-height: 18px; margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: #187344; overflow-wrap: anywhere; }
.td-status:empty { min-height: 0; margin-bottom: 8px; }
.td-status.error { color: #b6242c; }
.td-list-empty { padding: 18px 4px; color: #687c75; font-size: 12px; line-height: 1.6; }
.td-viewer { height: var(--td-height, max(580px, calc(100dvh - 220px))); display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #c9d9d5; border-radius: 6px; overflow: hidden; }
.td-viewer-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid #d7e0dc; }
.td-viewer-heading-copy { min-width: 0; }
.td-viewer-heading h2 { font-size: 15px; line-height: 1.4; margin: 0 0 2px; overflow-wrap: anywhere; }
.td-viewer-links { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.td-viewer-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fafcfa; border-bottom: 1px solid #d7e0dc; }
.td-viewer-page-controls { display: flex; align-items: center; gap: 7px; margin-right: auto; }
.td-page-input { width: 44px; height: 32px; padding: 5px 2px 5px 5px; border: 1px solid #c6d7ce; border-radius: 4px; font: inherit; font-size: 12px; text-align: center; }
.td-page-count { font-size: 12px; color: #62776c; min-width: 32px; }
.td-zoom { width: 85px; height: 33px; border: 1px solid #c6d7ce; border-radius: 4px; background: #fff; padding: 4px; font: inherit; font-size: 12px; }
.td-viewer-scroll { background: #e9edef; flex: 1; min-height: 0; min-width: 0; width: 100%; overflow: auto; padding: 20px; text-align: center; overscroll-behavior: contain; }
.td-pdf-canvas { display: block; margin: 0 auto; background: #fff; box-shadow: 0 2px 12px #1f3c3025; }
.td-viewer-empty { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #768c81; gap: 12px; }
.td-viewer-empty svg { width: 52px; height: 52px; stroke-width: 1.2; }
.td-viewer-empty p, .td-viewer-message { font-size: 13px; color: #61766d; line-height: 1.6; }
.td-viewer-message:empty { display: none; }
.td-viewer:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; }
.td-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid #bfd3c8; border-radius: 8px; padding: 24px; background: #fff; color: #163d30; box-shadow: 0 16px 60px #12332333; }
.td-dialog::backdrop { background: #10292380; }
.td-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.td-dialog h2 { font-size: 18px; line-height: 1.4; margin: 0; }
.td-document-form > label, .td-form-row label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; margin-bottom: 14px; min-width: 0; }
.td-document-form input, .td-document-form textarea, .td-document-form select { width: 100%; font: inherit; font-size: 13px; color: #153e32; padding: 9px; border: 1px solid #bed4c8; border-radius: 5px; background: #fff; }
.td-document-form textarea { resize: vertical; }
.td-form-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
.td-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.td-confirm-dialog { width: min(450px, calc(100vw - 32px)); }
.td-confirm-dialog p { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.td-team-workspace { min-width: 0; }
.td-gallery-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #d7e4df; margin-bottom: 22px; }
.td-gallery-toolbar > .td-muted { margin-right: auto; }
.td-gallery-toolbar .td-search { width: min(300px, 100%); }
.td-gallery-toolbar .td-filter { width: 190px; margin: 0; min-height: 38px; }
.td-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; align-items: stretch; }
.td-document-tile { display: flex; flex-direction: column; min-width: 0; padding: 0; text-align: left; color: #184333; background: #fff; border: 1px solid #d1dfd9; border-radius: 6px; overflow: hidden; font: inherit; cursor: pointer; }
.td-document-tile:hover { border-color: #76a994; box-shadow: 0 3px 12px #254f3020; }
.td-document-tile:focus-visible, .td-admin-workspace button:focus-visible, .td-viewer button:focus-visible, .td-reader-back:focus-visible { outline: 2px solid #176cda; outline-offset: 3px; }
.td-thumbnail { --td-preview-padding: 15px; position: relative; aspect-ratio: 16 / 11; width: 100%; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: #edf1f3; border-bottom: 1px solid #d6e1dc; padding: var(--td-preview-padding); }
.td-thumbnail > svg { width: 48px; height: 48px; color: #698b7c; stroke-width: 1.3; }
.td-thumbnail img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; max-width: calc(100% - 2 * var(--td-preview-padding)); height: calc(100% - 2 * var(--td-preview-padding)); width: auto; object-fit: contain; box-shadow: 0 2px 8px #354a3e20; background: #fff; }
.td-tile-copy { padding: 16px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.td-tile-category { color: #27688b; font-size: 11px; font-weight: 600; }
.td-tile-copy h2 { margin: 8px 0 6px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.td-tile-version { margin: 0; font-size: 12px; color: #6a7c72; }
.td-tile-description { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: #5d7469; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.td-tile-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 16px; font-size: 11px; color: #61796a; }
.td-tile-footer svg { width: 17px; height: 17px; color: #147763; }
.td-gallery-empty { grid-column: 1 / -1; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #7b9181; }
.td-gallery-empty svg { width: 54px; height: 54px; stroke-width: 1.2; }
.td-gallery-empty h2 { margin: 0; font-size: 16px; color: #617769; }
.td-reader-back { margin-bottom: 12px; padding-left: 0; }
.td-admin-workspace .td-search { min-height: 32px; border-color: #d2ded8; }
.td-admin-workspace .td-search input { font-size: 12px; padding: 6px 0; }
.td-admin-workspace .td-filter { min-height: 31px; padding: 5px 7px; margin-top: 6px; font-size: 11px; }
.td-admin-workspace .td-document-list { margin-top: 10px; }
.td-admin-workspace .td-document-row { padding: 10px 8px; gap: 8px; border-bottom-color: #e1e7e4; }
.td-admin-workspace .td-document-row.selected { border-color: #91b7ac; background: #fff; box-shadow: inset 2px 0 #0f7a6b; }
.td-admin-workspace .td-document-symbol { width: 28px; height: 30px; display: grid; place-items: center; background: #e8eeef; border-radius: 4px; color: #477486; }
.td-admin-workspace .selected .td-document-symbol { background: #e5f2ec; color: #117c65; }
.td-admin-workspace .td-document-symbol svg { width: 18px; height: 18px; }
.td-admin-workspace .td-document-copy { gap: 4px; }
.td-admin-workspace .td-document-copy strong { font-size: 12px; font-weight: 600; line-height: 1.45; }
.td-admin-workspace .td-document-copy .td-muted { font-size: 10px; color: #677d75; }
.td-admin-workspace .td-document-state { align-self: flex-start; font-size: 10px; font-weight: 600; }
.td-admin-workspace .td-document-state.draft { color: #997122; }
.td-admin-workspace .td-document-state.archived { color: #78847e; }
.td-admin-workspace .td-publication { padding-left: 0; border-left: 0; }
.td-admin-workspace .td-publication legend { font-size: 11px; margin-bottom: 6px; color: #5b7169; }
.td-admin-workspace .td-radio { min-height: 35px; gap: 7px; font-size: 12px; }
.td-admin-workspace .td-radio input, .td-admin-workspace .td-member input { width: 14px; height: 14px; margin: 0; }
.td-admin-workspace .td-radio svg { width: 15px; height: 15px; }
.td-admin-workspace .td-member-search { min-height: 31px; font-size: 11px; margin: 8px 0; padding: 6px 8px; }
.td-admin-workspace .td-member { font-size: 11px; padding: 8px 0; }
.td-admin-workspace .td-member strong { font-weight: 600; }
.td-admin-workspace .td-member small { font-size: 10px; }
.td-admin-workspace .td-badge { font-size: 10px; padding: 3px 5px; line-height: 1.4; }
.td-admin-workspace .td-badge[data-state="draft"] { background: #fbf2df; color: #916719; }
.td-admin-workspace .td-primary-button, .td-admin-workspace .td-secondary-button, .td-admin-workspace .td-text-button { min-height: 32px; padding: 6px 10px; font-size: 12px; border-radius: 4px; }
.td-admin-workspace .td-icon-button { width: 30px; height: 30px; min-width: 30px; padding: 6px; border-radius: 4px; }
.td-admin-workspace .td-primary-button svg, .td-admin-workspace .td-icon-button svg { width: 15px; height: 15px; }
.td-admin-workspace .td-file-meta { margin-top: 12px; font-size: 10px; line-height: 1.65; }
.td-admin-workspace .td-status { font-size: 11px; }
.td-admin-workspace .td-viewer { border-color: #cbd9d2; border-radius: 4px; }
.td-admin-workspace .td-viewer-heading { min-height: 56px; padding: 10px 12px; }
.td-admin-workspace .td-viewer-heading h2 { font-size: 13px; font-weight: 600; }
.td-admin-workspace .td-viewer-heading .td-muted { font-size: 10px; }
.td-admin-workspace .td-viewer-toolbar { padding: 6px 10px; }
.td-admin-workspace .td-page-input { width: 39px; height: 29px; font-size: 11px; }
.td-admin-workspace .td-page-count { font-size: 11px; min-width: 28px; }
.td-admin-workspace .td-zoom { width: 78px; height: 30px; font-size: 11px; }
.td-admin-workspace .td-viewer-scroll { padding: 18px; background: #e8edef; }
.td-admin-workspace .td-dialog { padding: 20px; }
.td-admin-workspace .td-dialog h2 { font-size: 16px; }
@media (max-width: 1350px) {
  .td-admin-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 14px; }
  .td-publication { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr minmax(260px, 1fr); column-gap: 26px; border-left: 0; border-top: 1px solid #cddfda; padding: 20px 0 0; }
  .td-publication-heading, .td-file-meta { grid-column: 1 / -1; }
  .td-publication-actions { margin-top: 0; padding-top: 0; border-top: 0; align-self: end; }
  .td-admin-workspace .td-publication { padding-top: 16px; border-top: 1px solid #d4e2dd; }
}
@media (max-width: 750px) {
  .td-admin-workspace { padding: 14px; }
  .td-workspace-header { flex-wrap: wrap; gap: 12px; }
  .td-workspace-header h1 { font-size: 18px; }
  .td-admin-layout { grid-template-columns: minmax(0, 1fr); --td-height: 65dvh; }
  .td-library { height: auto; max-height: 300px; }
  .td-document-list { max-height: 210px; flex: auto; }
  .td-publication { grid-column: auto; display: block; }
  .td-publication-actions { margin-top: 16px; padding-top: 16px; border-top: 1px solid #d4e2dd; }
  .td-admin-workspace .td-publication-actions { margin-top: 12px; padding-top: 12px; }
  .td-viewer { min-height: 440px; }
  .td-gallery-toolbar { gap: 9px; }
  .td-gallery-toolbar > .td-muted { width: 100%; }
  .td-gallery-toolbar .td-search { flex: 0 0 100%; width: 100%; }
  .td-gallery-toolbar .td-filter { flex: 1; min-width: 0; width: auto; order: 2; }
  .td-gallery-toolbar > .td-icon-button { order: 3; }
  .td-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .td-tile-copy { padding: 12px; }
  .td-tile-copy h2 { font-size: 14px; }
  .td-thumbnail { --td-preview-padding: 10px; }
}
@media (max-width: 430px) {
  .td-gallery { grid-template-columns: minmax(0, 1fr); }
  .td-thumbnail { aspect-ratio: 16 / 9; }
  .td-viewer-heading { padding: 10px; gap: 8px; }
  .td-viewer-toolbar { padding: 7px; gap: 5px; }
  .td-viewer-page-controls { gap: 4px; }
  .td-zoom { width: 75px; }
  .td-viewer-scroll { padding: 14px; }
  .td-form-row { grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
}
