/* Compact workspace density. Keep tender text complete and controls legible. */
:root {
  --product-header-height: 48px;
  --content-gutter: 20px;
  --comments-panel-width: 350px;
  --radius: 8px;
}
body { font-size: 13px; line-height: 1.5; }
.product-header { height: var(--product-header-height); padding-inline: 20px; gap: 24px; }
.product-logo { width: 24px; height: 24px; flex-basis: 24px; font-size: 14px; }
.product-brand strong { font-size: 15px; }
.product-brand { gap: 8px; }
.product-nav-item { min-height: 40px; }
.product-account { gap: 10px; }
.language-option { min-height: 24px; }
.workspace > .topbar { height: 44px; }
.topbar-right { gap: 6px; }
.main-content { padding-top: 16px; }
.btn { min-height: 32px; padding: 6px 10px; font-size: 12px; border-radius: 6px; }
.btn.small { min-height: 28px; padding: 4px 8px; }
.icon-button { width: 30px; height: 30px; }
.badge { padding: 3px 6px; font-size: 10px; }
.tender-hero { margin-bottom: 14px; }
.hero-top { margin-bottom: 6px; gap: 12px; }
.hero-top .eyebrow { gap: 7px; font-size: 10px; letter-spacing: .8px; }
.hero-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; }
.hero-heading h1,
body.comments-open .hero-heading h1 { font-size: 25px; line-height: 1.22; letter-spacing: -.7px; }
.hero-break { display: none; }
.hero-decision { gap: 4px; }
.hero-decision > .status-pill { min-height: 28px; padding: 5px 8px; font-size: 11px; }
.hero-decision > span { font-size: 10px; }
.hero-subtitle { margin-top: 6px; font-size: 12px; }
.hero-subtitle-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; }
.hero-subtitle-row > .hero-subtitle { margin: 0; min-width: 0; }
.hero-subtitle-row > .hero-tools { width: auto; margin-left: auto; flex: 0 0 auto; }
.tender-details-list { margin: 0; padding: 0 15px 13px; display: grid; gap: 10px; }
.tender-details-list > div { display: grid; gap: 3px; }
.tender-details-list dt { color: var(--muted); font-size: 11px; }
.tender-details-list dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 600; }
.tender-reference-row { display: flex; align-items: center; gap: 6px; }
.tender-reference-row input { width: 100%; min-width: 0; padding: 4px 0; border: 0; background: transparent; color: var(--ink); font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.tender-reference-row .icon-button { width: 28px; height: 28px; flex: 0 0 28px; }
.hero-meta { margin-top: 14px; }
.meta-item { padding-inline: 14px; min-height: 32px; gap: 7px; }
.meta-label { margin-bottom: 2px; font-size: 10px; }
.meta-item strong { font-size: 12px; }
.meta-item strong > span { font-size: 10px; }
.meta-item .avatar { width: 27px; height: 27px; font-size: 9px; }
.days-pill { padding: 2px 4px; font-size: 9px; }
.tabbar { min-height: 42px; margin-top: 4px; gap: 21px; }
.tab-button { padding-block: 10px 9px; font-size: 12px; }
.view { padding-top: 14px; }
.overview-grid { gap: 14px; grid-template-columns: minmax(0,1fr) 270px; }
.main-column,.right-column { gap: 12px; }
.card { border-radius: 8px; }
.card-head { gap: 10px; padding: 13px 15px 10px; }
.card-title { gap: 6px; }
.card-title h2,.card-head > h2,.card-head h3 { font-size: 14px; line-height: 1.4; }
.card-body { padding: 0 15px 14px; }
.card-foot { padding: 8px 15px; gap: 8px; }
.card-foot > span { font-size: 10px; line-height: 1.45; }
.card-icon { width: 22px; height: 22px; }
.stat-grid { gap: 10px; }
.stat-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  min-height: 88px;
  padding: 12px 14px 10px;
  border-radius: 8px;
}
.stat-top { position: absolute; top: 10px; right: 10px; }
.stat-icon { display: none; }
.stat-top > svg { width: 11px; height: 11px; }
.stat-value { grid-column: 1; grid-row: 1 / 3; margin: 0; font-size: 27px; line-height: 1.15; white-space: nowrap; }
.stat-value > span { font-size: 13px; }
.stat-card h3 { grid-column: 2; grid-row: 1; margin: 0; padding-right: 10px; font-size: 12px; line-height: 1.4; }
.stat-bottom { grid-column: 2; grid-row: 2; margin: 0; font-size: 10px; line-height: 1.4; }
.stat-card .mini-progress { grid-column: 1 / -1; grid-row: 3; height: 3px; margin-top: 5px; }
.summary-text { font-size: 13px; line-height: 1.6; }
.summary-card .section-kicker { margin-top: 12px; }
.summary-card .tech-list { margin-top: 6px; }
.tech-list { gap: 5px; }
.tech-tag { padding: 3px 6px; font-size: 11px; }
.tech-tag small { font-size: 10px; }
.scope-grid { margin-top: 12px; padding-top: 11px; gap: 10px; }
.scope-number { font-size: 20px; }
.scope-item > span:last-child { font-size: 11px; line-height: 1.4; }
.next-step-card { padding: 13px 15px; border-radius: 8px; }
.next-step-label { font-size: 9px; }
.next-step-card h2 { margin-top: 5px; font-size: 14px; line-height: 1.4; }
.next-step-card p { margin: 4px 0 9px; font-size: 12px; line-height: 1.45; }
.next-step-card .btn { min-height: 30px; padding-block: 5px; font-size: 11px; }
.readiness-card .card-head { padding-bottom: 10px; }
.readiness-top { gap: 12px; padding: 0 15px 11px; }
.progress-ring { width: 60px; height: 60px; }
.progress-ring::before { inset: 5px; }
.progress-ring > span { font-size: 20px; }
.readiness-number { gap: 2px; }
.readiness-number > strong { font-size: 20px; }
.readiness-number > span:not(.badge) { font-size: 10px; }
.readiness-number > .badge { margin-top: 2px; font-size: 9px; }
.readiness-note { margin: 0 15px 9px; padding-block: 8px; font-size: 11px; line-height: 1.5; }
.blocker-list { padding: 0 15px 8px; gap: 7px; }
.blocker-item { font-size: 11px; line-height: 1.4; }
.readiness-link { margin: 0 15px 12px; font-size: 11px; }
.deadline-row { margin-inline: 15px; padding-block: 9px; gap: 8px; }
.date-tile { width: 30px; height: 33px; }
.deadline-row > div > strong { font-size: 11px; }
.deadline-row > div > span { margin-top: 2px; font-size: 10px; }
.deadline-foot { padding: 8px 15px 11px; line-height: 1.4; }
.activity-list { padding: 0 15px 12px; }
.activity-item { gap: 8px; padding-bottom: 12px; }
.activity-copy { line-height: 1.4; }
.activity-copy strong { font-size: 12px; line-height: 1.4; }
.activity-copy > span { display: inline; margin-right: 6px; font-size: 10px; }
.activity-time { display: inline; font-size: 10px; }
.requirement-row { padding: 11px 15px; gap: 9px; }
.row-content p { margin-top: 2px; font-size: 12px; line-height: 1.5; }
.row-title,.data-table .row-title { font-size: 13px; line-height: 1.4; }
.row-source { margin-top: 3px; }
.row-icon { width: 26px; height: 26px; }
.criteria-grid { padding: 0 15px 12px; gap: 10px; }
.criteria-grid strong { font-size: 22px; }
.criteria-grid > div > span:last-child { font-size: 11px; line-height: 1.4; }
.criteria-bar { margin: 0 15px 14px; height: 4px; }
.section-header { margin-bottom: 12px; gap: 12px; }
.section-header .section-kicker { margin-bottom: 3px; }
.section-heading h2 { font-size: 20px; line-height: 1.3; }
.section-heading p { margin-top: 3px; font-size: 13px; line-height: 1.5; }
.info-banner { margin-bottom: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.5; }
.view > .card + .card { margin-top: 14px; }
.view > .card + .section-header { margin-top: 16px; }
.toolbar { gap: 8px; margin-bottom: 10px; }
.card > .toolbar { padding-inline: 14px; margin-bottom: 10px; }
.segmented { padding: 3px; }
.segmented button { padding: 5px 10px; font-size: 11px; }
.search-field input { height: 32px; font-size: 12px; padding-block: 6px; }
.data-table th { padding: 9px 12px; font-size: 11px; }
.data-table td { padding: 9px 12px; }
.table-description { margin: 3px 0 2px; font-size: 12px; line-height: 1.45; }
.check-state { min-height: 28px; padding: 4px 7px; font-size: 11px; }
.section-note { margin: -2px 14px 12px; font-size: 12px; line-height: 1.5; }
.legal-grid,.reference-grid,.team-grid { gap: 10px; padding: 0 14px 14px; }
.legal-item,.reference-card,.person-card { padding: 12px; }
.legal-item-top { margin-bottom: 7px; }
.legal-item h3,.reference-card h3,.person-card-top h3 { font-size: 14px; line-height: 1.4; }
.legal-item > p { margin: 4px 0 8px; font-size: 12px; line-height: 1.5; }
.legal-item-bottom { margin: 9px 0 8px; padding-top: 8px; }
.reference-rule { margin: 0 14px 10px; padding: 8px 10px; font-size: 12px; line-height: 1.5; }
.reference-card-top { margin-bottom: 8px; }
.reference-symbol { width: 27px; height: 27px; }
.reference-facts { padding: 8px 0; margin: 7px 0; gap: 16px; }
.reference-card .reference-description { margin-bottom: 8px; font-size: 12px; line-height: 1.5; }
.reference-proof { margin-bottom: 10px; }
.reference-empty p { margin-bottom: 10px; }
.person-card-top .avatar { width: 29px; height: 29px; }
.person-experience { margin: 9px 0; gap: 4px; }
.person-experience span { padding: 3px 5px; font-size: 11px; }
.person-proof { padding-top: 8px; }
.person-proof small { margin-bottom: 4px; }
.person-proof > span { font-size: 12px; line-height: 1.45; }
.person-card-bottom { margin-top: 10px; }
.signature-summary { gap: 10px; margin-bottom: 12px; }
.signature-summary > div { padding: 11px 12px; grid-template-columns: 26px 1fr; gap: 0 8px; }
.signature-summary-icon { width: 26px; height: 26px; }
.signature-summary strong { font-size: 21px; }
.signature-summary > div > span:last-child { font-size: 11px; }
.document-row { padding: 10px 14px; gap: 10px; }
.document-icon { width: 30px; height: 34px; }
.document-info p { margin-top: 2px; font-size: 12px; }
.document-status { gap: 3px; }
.document-status small { font-size: 10px; }
.source-doc-grid { gap: 10px; padding: 0 14px 14px; }
.source-document { padding: 10px 12px; gap: 9px; }
.source-document strong { font-size: 13px; }
.source-document small { display: inline-block; margin-right: 8px; font-size: 11px; }
.timeline { padding: 14px; }
.timeline-item { gap: 10px; padding-bottom: 14px; }
.timeline-title h3 { font-size: 13px; }
.timeline-item p { margin-top: 3px; font-size: 12px; line-height: 1.5; }
.timeline-meta { margin-top: 5px; }
.submission-grid { gap: 14px; }
.submission-check { padding: 10px 14px; gap: 9px; }
.submission-check strong { font-size: 13px; }
.submission-check small { margin-top: 2px; font-size: 11px; }
.final-review-box { padding: 14px; }
.final-review-box h3 { margin-bottom: 7px; }
.checkbox-label { line-height: 1.5; }
.submission-package { padding: 16px; }
.package-icon { width: 32px; height: 32px; margin-bottom: 9px; }
.submission-package > p { margin: 5px 0 10px; font-size: 12px; line-height: 1.5; }
.package-lines { gap: 8px; padding: 11px 0; margin-bottom: 8px; }
.submission-package > .package-note { margin-top: 9px; font-size: 11px; line-height: 1.5; }
.page-footer { padding-block: 15px; margin-top: 12px; }

/* The narrower dock leaves enough space for a useful two-column overview. */
@media (min-width: 1280px) {
  .team-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  body.comments-open .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.comments-open .main-content { padding-inline: 20px; }
  body.comments-open .workspace > .topbar { padding-inline: 20px; }
  body.comments-open .hero-meta { grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 0; }
  body.comments-open .hero-meta .meta-item { padding-left: 12px; padding-right: 12px; border-left: 1px solid #e0e5ed; }
  body.comments-open .hero-meta .meta-item:first-child { padding-left: 0; border-left: 0; }
  body.comments-open .hero-meta .meta-item:last-child { padding-right: 0; }
  body.comments-open .overview-grid { grid-template-columns: minmax(0,1fr) 250px; }
  body.comments-open .overview-grid > .right-column { display: flex; flex-direction: column; gap: 12px; }
}
@media (max-width: 1100px) {
  .overview-grid { grid-template-columns: minmax(0,1fr); }
  .right-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
}
@media (max-width: 760px) {
  :root { --product-header-height: 88px; --content-gutter: 14px; }
  .product-header { height: 88px; grid-template-rows: 44px 44px; padding-inline: 14px; gap: 0 10px; }
  .product-nav-item { min-height: 44px; }
  .workspace > .topbar { height: 44px; }
  .main-content { padding-top: 12px; }
  .hero-heading { grid-template-columns: 1fr; gap: 7px; }
  .hero-heading h1 { font-size: 22px; }
  .hero-decision { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; margin-left: 0; }
  .hero-subtitle { margin-top: 7px; font-size: 11px; }
  .hero-meta { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 0; margin-top: 12px; }
  .hero-meta .meta-item { padding-inline: 10px; }
  .hero-meta .meta-item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .tabbar { min-height: 42px; gap: 18px; margin-top: 2px; }
  .tab-button { min-height: 42px; padding-block: 8px; }
  .stat-card { min-height: 110px; grid-template-columns: 1fr; gap: 3px; padding: 10px; }
  .stat-value { grid-column: 1; grid-row: 1; font-size: 24px; }
  .stat-card h3 { grid-column: 1; grid-row: 2; font-size: 11px; line-height: 1.4; padding: 0; }
  .stat-bottom { grid-column: 1; grid-row: 3; font-size: 10px; }
  .stat-card .mini-progress { grid-column: 1; grid-row: 4; margin-top: 3px; }
  .card-head { padding: 12px 13px 9px; }
  .card-body { padding: 0 13px 12px; }
  .card-foot { padding: 8px 13px; }
  .scope-grid { gap: 9px; margin-top: 10px; padding-top: 10px; }
  .section-heading h2 { font-size: 19px; }
  .section-header > .btn { font-size: 12px; }
  .document-actions { margin-left: 40px; }
  .document-status { margin-left: 40px; }
}
@media (max-width: 480px) {
  .hero-top { flex-direction: row; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
  .hero-top .eyebrow { font-size: 9px; gap: 5px; }
  .hero-tools { width: auto; flex: 0 0 auto; }
  .hero-tools > .text-button { font-size: 10px; }
  .stat-grid { gap: 7px; }
  .stat-card { padding: 10px 9px; }
  .right-column { display: flex; flex-direction: column; }
  .comments-toggle-label { display: none; }
  .comments-toggle { padding-inline: 8px; }
  .source-document small { display: block; }
}
@media (pointer: coarse) {
  .btn,.icon-button,.check-state,.segmented button,.language-option,.account-menu { min-height: 44px; }
  .icon-button { min-width: 40px; }
  .topbar-right .icon-button { width: 34px; min-width: 34px; }
  .workspace > .topbar { height: 48px; }
  .language-option { min-height: 36px; }
  .source-link,.text-button { min-height: 32px; }
  .tab-button { min-height: 44px; }
}

/* Compact comments and dialog content. Merge after the existing component CSS. */
.comments-panel { width: min(var(--comments-panel-width, 350px), 100%); }
.comments-header { padding: 16px; }
.comments-heading-row { min-height: 26px; gap: 7px; padding-right: 34px; }
.comments-heading-row h2 { font-size: 15px; letter-spacing: -.2px; }
.comments-close { top: 12px; right: 10px; width: 32px; height: 32px; }
.comments-count,
.comments-toggle-count { min-width: 19px; height: 19px; padding-inline: 5px; border-radius: 5px; }
.comments-tender-title { margin: 10px 0 3px; font-size: 12px; line-height: 1.45; }
.comments-tender-buyer { color: #667085; font-size: 11px; line-height: 1.45; }
.comments-composer { padding: 12px 16px; }
.comments-composer textarea {
  height: 72px;
  min-height: 72px;
  max-height: 144px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.comments-composer textarea::placeholder { color: #778395; }
.comments-composer-footer { gap: 9px; margin-top: 8px; }
.comments-composer-footer .btn { min-height: 30px; padding: 6px 10px; font-size: 12px; }
.comments-local-note { max-width: 180px; color: #667085; font-size: 11px; line-height: 1.4; }
.comments-list-toolbar { gap: 8px; padding: 12px 16px 5px; }
.comments-list-toolbar h3 { font-size: 12px; }
#comments-open-count { color: #667085; font-size: 11px; }
.comment-item { gap: 8px 10px; margin-inline: 16px; padding-block: 12px; }
.comment-author-row { gap: 8px; }
.comment-author-row .avatar { width: 28px; height: 28px; }
.comment-author-meta { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; }
.comment-author-meta strong { font-size: 12px; line-height: 1.4; }
.comment-author-meta time { color: #6b7789; font-size: 11px; line-height: 1.4; }
.comment-status { gap: 5px; min-height: 28px; }
.comment-status-text { color: #667085; font-size: 11px; }
.comment-body { color: #475569; font-size: 12.5px; line-height: 1.6; }
.comments-panel-foot { padding: 9px 16px max(9px, env(safe-area-inset-bottom)); color: #667085; font-size: 11px; line-height: 1.45; }
.comments-empty { padding: 24px 20px; color: #667085; font-size: 12px; line-height: 1.6; }
.comments-empty svg { width: 24px; height: 24px; margin-bottom: 8px; }
.comments-empty h3 { font-size: 13px; }

/* Keep dialog dimensions and behavior; reduce space around their content. */
.drawer-header,
.modal-header { gap: 12px; padding: 16px 20px 14px; }
.drawer-header h2,
.modal-header h2 { font-size: 18px; line-height: 1.35; letter-spacing: -.35px; }
.drawer-header p,
.modal-header p { margin-top: 3px; color: #667085; font-size: 12px; line-height: 1.5; }
.drawer-header .section-kicker { margin-bottom: 5px; }
.drawer-header .icon-button,
.modal-header .icon-button { margin: -3px -5px 0 0; }
.drawer-body,
.modal-body { min-height: 0; padding: 16px 20px; font-size: 13px; line-height: 1.6; }
.drawer-body > p { color: #667085; font-size: 13px; line-height: 1.6; }
.drawer-body h3 { margin-bottom: 9px; }
.modal-body > p,
.modal-intro { margin-bottom: 12px; line-height: 1.6; }
.modal-intro { font-size: 13px; }
.drawer-footer,
.modal-footer { flex: 0 0 auto; gap: 7px; padding: 11px 20px; }
.drawer-footer > .btn,
.modal-footer > .btn { min-height: 32px; padding: 7px 11px; font-size: 12px; }

:is(.modal, .drawer) .form-field { margin-bottom: 12px; color: #526177; font-size: 12px; }
:is(.modal, .drawer) .form-field > label,
:is(.modal, .drawer) .form-field > .label { margin-bottom: 4px; color: #526177; font-size: 12px; }
:is(.modal, .drawer) .form-field input:not([type=checkbox]):not([type=radio]),
:is(.modal, .drawer) .form-field textarea,
:is(.modal, .drawer) .form-field select {
  min-height: 36px;
  margin-top: 4px;
  padding: 7px 10px;
  color: #344256;
  font-size: 13px;
  line-height: 1.5;
}
:is(.modal, .drawer) .form-field textarea { min-height: 72px; }
:is(.modal, .drawer) .form-field small { margin-top: 4px; color: #667085; font-size: 11px; line-height: 1.45; }
:is(.modal, .drawer) .form-grid { gap: 12px; }
:is(.modal, .drawer) .form-meta { color: #667085; font-size: 11px; }
.decision-options { gap: 7px; margin-bottom: 14px; }
.decision-option { gap: 9px; padding: 10px 12px; }
.decision-option strong { font-size: 13px; line-height: 1.4; }
.decision-option small { margin-top: 2px; font-size: 12px; line-height: 1.45; }
:is(.modal, .drawer) .checkbox-label { color: #526177; font-size: 12px; line-height: 1.6; }
:is(.modal, .drawer) .small-note { margin-top: 10px; color: #667085; font-size: 11px; line-height: 1.5; }

.source-meta { gap: 8px; margin-bottom: 14px; }
.source-meta strong { font-size: 13px; line-height: 1.45; }
.source-meta > div > span { margin-top: 2px; font-size: 11px; }
.source-paper { padding: 16px; font-size: 13px; line-height: 1.65; }
.source-paper h3 { margin-bottom: 10px; font-size: 15px; line-height: 1.4; }
.source-paper h4 { margin: 13px 0 7px; font-size: 12px; line-height: 1.5; }
.source-paper p,
.signer-paper p { margin-bottom: 9px; color: #5e6b7d; font-size: 13px; line-height: 1.65; }
.source-paper > mark { margin-block: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.6; }
.source-paper blockquote { margin-block: 10px; padding: 10px 12px; }
.paper-header { padding-bottom: 10px; color: #748086; font-size: 10px; letter-spacing: .35px; }
.paper-label,
.signer-paper .paper-label { margin: 15px 0 8px; color: #748086; font-size: 10px; letter-spacing: .5px; }
.paper-context { font-size: 12px; line-height: 1.5; }
.paper-lines { gap: 6px; margin: 14px 0 22px; }
.paper-footer { padding-top: 10px; color: #748086; font-size: 10px; }
.source-evidence { margin-top: 15px; }
.source-evidence h3 { margin-bottom: 7px; font-size: 13px; }
.source-evidence > p { margin: 6px 0 10px; font-size: 12px; line-height: 1.55; }
.source-evidence dl,
.signer-details dl { gap: 7px; padding-top: 10px; }
.source-evidence dl > div,
.signer-details dl > div { gap: 12px; font-size: 12px; line-height: 1.5; }
.source-evidence dt,
.signer-details dt { color: #667085; }
.source-paper + .info-banner { margin-top: 12px; }

.reference-choice { padding: 12px; }
.reference-choice-head { gap: 8px; }
.check-list { gap: 7px; margin-block: 12px; }
.check-list li { font-size: 12px; line-height: 1.55; }
.recipient-card { gap: 9px; padding: 11px 12px; margin-bottom: 13px; }
.recipient-card strong { font-size: 13px; }
.recipient-card div > span,
.recipient-card small { color: #667085; font-size: 11px; line-height: 1.45; }
.detail-list { margin: 10px 0 14px; }
.detail-list > div { gap: 12px; padding-block: 7px; font-size: 12px; line-height: 1.5; }
.detail-list strong { font-size: 12px; }
.document-detail-status { gap: 8px; margin-bottom: 12px; }
.document-detail-status > span:last-child { color: #667085; font-size: 11px; }
.document-preview-mini { gap: 10px; padding: 12px; margin-bottom: 16px; }
.document-preview-mini > svg { width: 24px; height: 24px; }
.document-preview-mini span { margin-top: 2px; font-size: 11px; }
.signature-history { margin: 12px 0 16px; }
.signature-history > div { gap: 8px; padding-bottom: 12px; }
.signature-history strong { font-size: 12px; line-height: 1.5; }
.signature-history small { margin-top: 2px; font-size: 11px; line-height: 1.45; }
.archive-note { padding: 11px 12px; margin-bottom: 13px; }
.archive-note p,
.archive-note small { color: #667085; font-size: 11px; line-height: 1.55; }
.document-management { gap: 9px; margin-top: 15px; }
.document-management .text-button { font-size: 12px; }
.invite-list { gap: 7px; margin-bottom: 13px; }
.invite-item { gap: 8px; padding: 10px 12px; }
.invite-item div > span,
.invite-item small { font-size: 11px; line-height: 1.45; }
.invite-details { gap: 9px; padding-block: 12px; }
.invite-details > span,
.invite-details strong { font-size: 12px; line-height: 1.5; }

.signer-banner { gap: 4px; padding: 8px 11px; margin-bottom: 13px; font-size: 11px; line-height: 1.4; letter-spacing: .2px; }
.signer-banner > span { font-size: 11px; line-height: 1.45; }
.signer-grid { gap: 16px; }
.signer-paper { padding: 15px; }
.signer-paper h3 { font-size: 15px; }
.signature-line { gap: 4px; margin-top: 22px; padding-top: 10px; }
.signature-line > span,
.signature-line > small { color: #748086; font-size: 11px; line-height: 1.5; }
.signer-details { padding-top: 3px; }
.signer-details > h3 { margin: 6px 0; font-size: 18px; line-height: 1.4; }
.signer-details > p { margin-bottom: 12px; font-size: 12px; line-height: 1.6; }
.signer-details dl { padding-bottom: 12px; margin-bottom: 12px; }
.signer-details .checkbox-label { font-size: 12px; line-height: 1.6; }
.signer-details .btn { margin-top: 12px; font-size: 12px; }
.signer-details > .text-button { margin-top: 8px; font-size: 12px; }
.signer-details > .small-note { margin-top: 10px; color: #667085; font-size: 11px; line-height: 1.5; }
.success-state { padding-block: 10px; }
.success-state > span { width: 46px; height: 46px; margin-bottom: 12px; }
.success-state > span > svg { width: 24px; height: 24px; }
.success-state h3 { font-size: 18px; }
.success-state p { margin-block: 8px; font-size: 13px; line-height: 1.6; }
.success-state small { font-size: 11px; }
.guide-steps { gap: 14px; margin-bottom: 15px; }
.guide-steps > div { gap: 9px; }
.guide-steps p { margin-top: 3px; font-size: 12px; line-height: 1.6; }
:is(.modal, .drawer) .notification-list,
:is(.modal, .drawer) .action-list { gap: 7px; }
:is(.modal, .drawer) .notification-item,
:is(.modal, .drawer) .tender-list-item,
:is(.modal, .drawer) .action-list > button { gap: 9px; padding: 10px 12px; }
:is(.modal, .drawer) .notification-item small,
:is(.modal, .drawer) .tender-list-item small { margin-top: 2px; font-size: 12px; line-height: 1.5; }
:is(.modal, .drawer) .search-field.large { margin-bottom: 11px; }
:is(.modal, .drawer) .search-results { gap: 6px; margin-top: 12px; }
:is(.modal, .drawer) .search-result { padding: 9px 11px; }
:is(.modal, .drawer) .search-result small { color: #667085; font-size: 11px; }

/* Compact layout still keeps touch controls large and form text zoom-safe. */
@media (max-width: 760px), (pointer: coarse) {
  .comments-close { width: 44px; height: 44px; top: 6px; right: 6px; }
  .comments-heading-row { min-height: 30px; padding-right: 40px; }
  .comments-composer-footer .btn,
  .comments-toggle,
  .comment-status { min-height: 44px; }
  .comment-status { align-self: center; }
  .comments-composer textarea { font-size: 16px; }
  .drawer-header .icon-button,
  .modal-header .icon-button { flex: 0 0 44px; width: 44px; height: 44px; margin: -6px -8px -6px 0; }
  .drawer-footer > .btn,
  .modal-footer > .btn,
  .signer-details .btn,
  :is(.modal, .drawer) .text-button,
  :is(.modal, .drawer) .checkbox-label,
  :is(.modal, .drawer) .decision-option,
  :is(.modal, .drawer) .action-list > button,
  :is(.modal, .drawer) .search-result { min-height: 44px; }
  :is(.modal, .drawer) .checkbox-label { align-items: center; }
  :is(.modal, .drawer) .checkbox-label input { margin-top: 0; }
  :is(.modal, .drawer) .form-field input:not([type=checkbox]):not([type=radio]),
  :is(.modal, .drawer) .form-field textarea,
  :is(.modal, .drawer) .form-field select,
  :is(.modal, .drawer) .search-field input { min-height: 44px; font-size: 16px; }
  :is(.modal, .drawer) .form-field textarea { min-height: 76px; }
}
@media (max-width: 480px) {
  .comments-panel { width: 100%; }
  .drawer-header,
  .modal-header { padding: 14px 16px; }
  .drawer-body,
  .modal-body { padding: 14px 16px; }
  .drawer-footer,
  .modal-footer { padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
  :is(.modal, .drawer) .form-grid { gap: 0; }
  .source-paper { padding: 14px; }
  .source-meta > div { min-width: 0; }
  .signer-grid { gap: 14px; }
}
