/* Shared compact workspace controls; scoped to Builder and Files. */
:is([data-records-library],.records-document-builder-page, .files-workspace-page) :is(.btn,.product-app-actions a,.product-app-actions button,.site-menu-link,.files-primary,.files-secondary,.files-toolbar-actions button,.file-browser button,.document-editor-actions button,.document-create-bar button) {
 border-radius:5px; min-height:36px; padding:8px 13px; font:600 12px/1.4 Manrope,Arial,sans-serif; letter-spacing:0; text-transform:none; box-shadow:none;
}
.records-document-builder-page :is(h1,h2,h3) {font-family:Manrope,Arial,sans-serif;letter-spacing:-.025em;}
.records-document-builder-page :is(input,select,textarea) {border-radius:5px;box-shadow:none;}
.records-document-builder-page .document-editor-actions {gap:10px;}
.records-document-builder-page .document-toolbar-group button {border-radius:4px;box-shadow:none;}
.records-document-builder-page #document-change-reason {width:100%;max-width:780px;font-size:13px;padding:10px 12px;}
.records-document-builder-page :is(.document-library,.document-editor-empty) h2 {font-size:24px;}
.files-workspace-page :is(button,select,input:not([type="checkbox"]),.files-primary,.files-secondary) {border-radius:5px;}
.files-workspace-page .product-app-actions :is(a,button) {border-radius:5px;min-height:36px;padding:8px 12px;font-size:12px;letter-spacing:0;text-transform:none;}
:is([data-records-library],.records-document-builder-page,.files-workspace-page) :is(button,a,input,select):focus-visible {outline:2px solid #28796d;outline-offset:3px;}

.files-workspace-page :is(h1,h2,h3) {font-family:Manrope,Arial,sans-serif!important;letter-spacing:-.025em;}
.files-workspace-page #files-title {font-size:28px;line-height:1.25;margin:8px 0;}
:is(.files-workspace-page,.records-document-builder-page) :is(.site-nav-actions,.product-app-actions,.header-actions) :is(a,button),
.records-document-builder-page .btn {border-radius:5px!important;box-shadow:none!important;font-size:12px!important;padding:8px 13px!important;min-height:36px!important;letter-spacing:0!important;text-transform:none!important;}
.records-document-builder-page .records-mobile-tabbar {display:none;}
@media(max-width:760px){
 .records-document-builder-page .records-mobile-tabbar {display:flex;position:fixed;bottom:0;left:0;right:0;z-index:100;background:#fff;border-top:1px solid #d8e1e4;padding:8px 4px;}
 .records-document-builder-page .records-mobile-tabbar a {flex:1;display:flex;align-items:center;flex-direction:column;gap:4px;font:600 10px Manrope,sans-serif;color:#51625c;text-decoration:none;}
 .records-document-builder-page .records-mobile-tabbar svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;}
 .records-document-builder-page .document-workspace-actions-slot {padding-bottom:60px;}
}
.records-document-builder-page #document-change-reason {flex:0 0 38px;min-height:38px;width:calc(100% - 32px);margin:4px 16px 10px;background:#fff;border:1px solid #d8e1e4;}
.records-document-builder-page label[for="document-change-reason"] {padding:10px 16px 0;font:600 11px Manrope,sans-serif;color:#586a63;}
.records-document-builder-page .document-workspace-actions-slot {flex:0 0 62px;min-height:62px;}
.records-document-builder-page .records-desktop-app-actions :is(button,a) {border-radius:5px!important;padding:8px 13px!important;min-height:36px!important;font:600 12px/1.4 Manrope,Arial,sans-serif!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important;}
.records-document-builder-page :is(.document-editor-empty,.document-library) h2 {font-family:Manrope,Arial,sans-serif!important;}

[data-records-library] :is(h1,h2,h3) {font-family:Manrope,Arial,sans-serif!important;letter-spacing:-.025em;}
[data-records-library] :is(.btn,.records-desktop-app-actions a,.records-desktop-app-actions button) {border-radius:5px!important;min-height:36px!important;padding:8px 12px!important;font:600 12px/1.4 Manrope,Arial,sans-serif!important;text-transform:none!important;letter-spacing:0!important;box-shadow:none!important;}
[data-records-library] .file-row {border-radius:5px;padding:16px;flex-wrap:wrap;gap:12px;border:1px solid #dce4e1;}
[data-records-library] .library-related {flex:0 0 100%;width:100%;border-top:1px solid #e5ebe8;padding-top:10px;}
[data-records-library] .library-related summary {cursor:pointer;font:600 12px Manrope,sans-serif;color:#276e65;list-style:none;}
[data-records-library] .library-related summary::-webkit-details-marker {display:none;}
[data-records-library] .library-related summary span {margin-left:8px;color:#718078;}
[data-records-library] .library-related-row {display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0;border-bottom:1px solid #edf1ef;font-size:13px;}
[data-records-library] .library-related-row>span {overflow-wrap:anywhere;min-width:0;}
[data-records-library] .library-related summary:focus-visible {outline:2px solid #28796d;outline-offset:3px;}
[data-records-library] .library-related {grid-column:1 / -1;min-width:0;}
[data-records-library] .library-related-row .doc-actions {display:flex;flex-wrap:nowrap;flex:none;gap:8px;}
[data-records-library] .files-filter-bar {border-radius:5px;}
[data-records-library] :is(.files-filter-btn,.files-filter-upload-btn) {border-radius:5px;min-height:34px;padding:7px 12px;font-size:12px;}
@media(max-width:600px){[data-records-library] .library-related-row {flex-wrap:wrap;}}
/* Meeting Notes shares the same controls and reading scale. */
.records-meeting-notes-page :is(h1,h2,h3,h4) {font-family:Manrope,Arial,sans-serif!important;letter-spacing:-.025em;}
.records-meeting-notes-page :is(.btn,.records-desktop-app-actions a,.records-desktop-app-actions button,.meeting-library-new-button) {border-radius:5px!important;min-height:36px!important;padding:8px 13px!important;font:600 12px/1.4 Manrope,Arial,sans-serif!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important;}
.records-meeting-notes-page :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {border-radius:5px;box-shadow:none;font-size:13px;}
.records-meeting-notes-page .meeting-library-new-button {gap:12px;height:auto!important;}
.records-meeting-notes-page .meeting-library-new-button .section-toggle-indicator {border:0;border-radius:0;width:auto;height:auto;background:none;font-size:18px;}
.records-meeting-notes-page .meeting-editor-empty h2 {font-size:28px!important;line-height:1.3;max-width:520px;}
.records-meeting-notes-page .meeting-editor-empty > p:last-child {font-size:14px;line-height:1.6;max-width:500px;}
.records-meeting-notes-page .meeting-empty-icon {width:44px;height:52px;border-radius:5px;box-shadow:none;}
.records-meeting-notes-page .meeting-workspace-intro h3 {font-size:20px;}
.records-meeting-notes-page :is(.meeting-workspace-intro,.meeting-workspace-section-head) p {font-size:13px;}
.records-meeting-notes-page :is(button,a,input,select,textarea):focus-visible {outline:2px solid #28796d;outline-offset:3px;}
.records-meeting-notes-page .records-mobile-tabbar {display:none;}
@media(max-width:760px){
 .records-meeting-notes-page .records-mobile-tabbar {display:flex;position:fixed;bottom:0;left:0;right:0;z-index:100;background:#fff;border-top:1px solid #d8e1e4;padding:8px 4px;}
 .records-meeting-notes-page .records-mobile-tabbar a {flex:1;display:flex;align-items:center;flex-direction:column;gap:4px;font:600 10px Manrope,sans-serif;color:#51625c;text-decoration:none;}
 .records-meeting-notes-page .records-mobile-tabbar svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;}
 .records-meeting-notes-page .meeting-editor-empty h2 {font-size:23px!important;}
}
/* Detail dialogs: compact tabs, readable content, one scrolling body. */
.records-meeting-notes-page :is(.settings-modal-dialog,.confirm-modal-dialog) {border-radius:8px;max-height:calc(100dvh - 40px);}
.records-meeting-notes-page .settings-modal-header {padding:16px 20px;gap:16px;align-items:flex-start;}
.records-meeting-notes-page .settings-modal-title {font-size:20px;line-height:1.35;overflow-wrap:anywhere;}
.records-meeting-notes-page :is(.settings-modal-close,.confirm-modal-close,.recording-reference-remove) {flex:none;border-radius:5px;min-height:34px;padding:7px 12px;font:600 12px/1.4 Manrope,sans-serif;box-shadow:none;}
.records-meeting-notes-page .settings-modal-body {padding:16px 20px 20px;min-height:0;overflow-y:auto;}
.records-meeting-notes-page .recording-detail-tabs {display:flex;gap:4px;padding:0 0 10px;margin:0 0 18px;border:0;border-bottom:1px solid #dce4e1;border-radius:0;background:#fff;overflow-x:auto;}
.records-meeting-notes-page .recording-detail-tab {flex:0 0 auto;min-height:34px;padding:7px 12px;border:1px solid transparent;border-radius:4px;font:600 12px/1.4 Manrope,sans-serif;color:#586a64;background:transparent;box-shadow:none;}
.records-meeting-notes-page .recording-detail-tab.is-active {background:#e8f2ef;color:#175c52;border-color:#c6dcd4;box-shadow:none;}
.records-meeting-notes-page .recording-detail-tab:focus-visible {outline:2px solid #28796d;outline-offset:0;}
.records-meeting-notes-page .recording-detail-grid {gap:0 20px;}
.records-meeting-notes-page .recording-detail-grid .account-item {padding:10px 0;border:0;border-bottom:1px solid #e6ece9;border-radius:0;background:transparent;}
.records-meeting-notes-page .recording-detail-grid .account-value {font-size:13px;line-height:1.5;overflow-wrap:anywhere;}
.records-meeting-notes-page .recording-detail-section {margin-top:16px;}
.records-meeting-notes-page .recording-detail-tab-panel {margin-top:0;}
.records-meeting-notes-page :is(.recording-detail-panel-actions,.recording-review-actions) {display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.records-meeting-notes-page :is(.recording-notes-preview,.recording-transcript-preview,.recording-reference-preview) {border-radius:5px;font-size:13px;line-height:1.65;overflow-wrap:anywhere;}
.records-meeting-notes-page .recording-transcript-preview {white-space:pre-wrap;max-height:330px;overflow:auto;padding:14px;}
.records-meeting-notes-page .recording-player {width:100%;margin-top:12px;}
.records-meeting-notes-page .recording-review-list {gap:0;}
.records-meeting-notes-page .recording-review-item {border:0;border-bottom:1px solid #e2e9e5;background:transparent;border-radius:0;padding:14px 0;}
.records-meeting-notes-page .recording-review-item p {font-size:13px;line-height:1.6;margin:6px 0;}
.records-meeting-notes-page .recording-review-item span {font-size:12px;line-height:1.5;}
.records-meeting-notes-page .recording-review-item .recording-review-status {border-radius:3px;padding:3px 6px;font-size:10px;}
.records-meeting-notes-page .minutes-style-field {margin-top:18px;}
.records-meeting-notes-page .minutes-style-options {display:inline-flex;width:auto;gap:4px;padding:4px;border-radius:5px;}
.records-meeting-notes-page .minutes-style-options span {min-height:32px;padding:7px 16px;border-radius:4px;font:600 12px/1.4 Manrope,sans-serif;box-shadow:none!important;}
.records-meeting-notes-page .recording-reference-row {border-radius:5px;padding:12px;gap:12px;}
@media(max-width:600px){
 .records-meeting-notes-page .settings-modal-header {padding:12px;}
 .records-meeting-notes-page .settings-modal-body {padding:12px;}
 .records-meeting-notes-page .settings-modal-title {font-size:17px;}
 .records-meeting-notes-page .recording-detail-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .records-meeting-notes-page .minutes-style-options span {padding:7px 12px;}
}
.records-meeting-notes-page #recording-detail-modal .settings-modal-dialog {height:min(780px,calc(100dvh - 40px));display:flex;flex-direction:column;}
.records-meeting-notes-page #recording-detail-modal .settings-modal-header {flex:0 0 auto;}
.records-meeting-notes-page #recording-detail-modal .settings-modal-body {flex:1 1 auto;}
.records-meeting-notes-page #recording-detail-modal .recording-detail-tabs {position:sticky;top:-16px;z-index:2;padding-top:12px;background:#fff;}
@media(max-width:600px){.records-meeting-notes-page #recording-detail-modal .recording-detail-tabs {top:-12px;}}
.records-meeting-notes-page .meeting-source-options {display:flex;flex-direction:column;gap:0;border:1px solid #dce4e1;border-radius:5px;background:#fff;overflow:hidden;}
.records-meeting-notes-page .meeting-source-option {display:flex;align-items:flex-start;gap:10px;padding:12px;border:0;border-bottom:1px solid #e5ebe8;border-radius:0;min-height:0;box-shadow:none;}
.records-meeting-notes-page .meeting-source-option:last-child {border-bottom:0;}
.records-meeting-notes-page .meeting-source-option>span {min-width:0;}
.records-meeting-notes-page .meeting-source-option strong {font-size:13px;}
.records-meeting-notes-page .meeting-source-option small {font-size:12px;line-height:1.5;}
.records-meeting-notes-page .meeting-source-option:has(input:checked) {background:#edf5f2;border-color:#dce4e1;}
.records-meeting-notes-page .meeting-note-workspace {padding-bottom:90px;}
/* Keep phone controls readable without hiding actions beyond the viewport. */
@media(max-width:760px){
 .records-meeting-notes-page .recording-detail-tabs {flex-wrap:wrap;overflow:visible;gap:4px;}
 .records-meeting-notes-page .settings-modal-header>div {min-width:0;}
 .records-meeting-notes-page :is(.recording-detail-tab-panel,.meeting-setup-grid>*,.meeting-preparation-grid>*,.recording-reference-form>*) {min-width:0;}
 .records-meeting-notes-page :is(.recording-detail-panel-actions,.recording-review-actions)>.btn {max-width:100%;white-space:normal;}
 .records-meeting-notes-page .meeting-workspace-actions {height:auto;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:8px;}
 .records-meeting-notes-page .meeting-workspace-actions.is-docked {padding:10px;}
 .records-meeting-notes-page .meeting-workspace-actions :is(.meeting-workspace-actions-primary,.meeting-workspace-actions-secondary) {width:100%;min-width:0;}
 .records-meeting-notes-page .meeting-workspace-actions .btn {white-space:normal;overflow-wrap:anywhere;}
 .records-meeting-notes-page .records-mobile-tabbar {padding-bottom:max(8px,env(safe-area-inset-bottom));}
}
@media(max-width:380px){
 .records-meeting-notes-page .recording-detail-grid {grid-template-columns:minmax(0,1fr);}
 .records-meeting-notes-page .minutes-style-options {display:flex;flex-wrap:wrap;max-width:100%;}
 .records-meeting-notes-page .minutes-style-options span {padding:7px 9px;}
}
.records-meeting-notes-page :is(.settings-modal,.confirm-modal) {z-index:200;}

/* One compact formatting bar with every tool visible (no overflow menu); keep the two primary actions together. */
.records-document-builder-page .document-toolbar { flex-wrap: wrap; overflow: visible; align-items: center; gap: .25rem; padding-inline: .6rem; }
.records-document-builder-page .document-toolbar-group { flex: none; gap: .1rem; padding-right: .25rem; }
.records-document-builder-page .document-toolbar button { min-width: 28px; padding: .3rem .34rem; }
.records-document-builder-page .document-other-actions summary {
  width: fit-content; padding: .6rem .25rem; cursor: pointer; color: #285c50; font: 600 .85rem/1.45 Manrope, sans-serif;
}
.records-document-builder-page summary:focus-visible { outline: 2px solid #28796d; outline-offset: 2px; }
.records-document-builder-page .document-other-actions > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.records-document-builder-page .document-editor-actions { justify-content: flex-end; }
.records-document-builder-page .document-editor-actions::before { opacity: 1; }
.records-document-builder-page .document-delivery-actions { display: flex; gap: .5rem; flex-wrap: nowrap; }
@media (max-width: 760px) {
  .records-document-builder-page .document-delivery-actions { display: grid; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .records-document-builder-page .document-editor-actions { grid-template-columns: minmax(0,1fr); }
}

.records-document-builder-page #document-pdf-modal {
  box-sizing: border-box; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0;
}
@media (max-width: 620px) {
  .records-document-builder-page #document-pdf-modal { padding: .5rem; }
  .records-document-builder-page .document-pdf-dialog .file-modal-header { flex-wrap: wrap; gap: .5rem; }
}
