/* Company document workspace: shared navigation and three-panel file view. */
:root { --text: #243b45; --ink: #173e37; --paper: #fff; --cream: #f7f9fa; --line: #e1e8ec; --muted: #677e8b; --radius: 9px; }
body { background: #fff; }
.trash-page { padding-bottom: 36px; }
.trash-page .page-intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.trash-page .page-intro h2 { margin: 0; color: var(--ink); font-size: 25px; }
.trash-page .page-intro p { max-width: 740px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.trash-search { flex: 0 1 340px; min-height: 42px; }
.trash-toolbar { min-height: 48px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; }
.trash-toolbar label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.trash-toolbar input, .trash-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: #167963; cursor: pointer; }
.trash-toolbar > span { margin-left: auto; }
.trash-toolbar .button { min-height: 34px; }
.trash-table { min-width: 860px; }
.trash-table th:first-child, .trash-table td:first-child { width: 38px; padding-inline: 12px; }
.trash-table th:last-child, .trash-table td:last-child { width: 125px; }
.trash-table td { vertical-align: middle; }
.trash-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.trash-item { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.trash-item .workspace-file-icon { width: 34px; height: 38px; }
.trash-item > div { display: grid; gap: 3px; min-width: 0; }
.trash-item b { overflow-wrap: anywhere; font-size: 13px; }
.trash-item small { color: var(--muted); font-size: 11px; }
.trash-subline { max-width: 250px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .trash-page .page-intro { align-items: stretch; flex-direction: column; }
  .trash-search { flex-basis: auto; width: 100%; }
  .trash-toolbar { flex-wrap: wrap; gap: 8px; }
  .trash-toolbar label { flex: 1 0 100%; }
  .trash-toolbar > span { margin-left: 0; }
}
.sidebar { inset: 0 0 auto; width: 100%; height: 82px; padding: 0 30px; flex-direction: row; align-items: center; gap: 42px; border: 0; border-bottom: 1px solid var(--line); transform: none; background: white; }
.sidebar .brand { margin: 0; flex: 0 0 238px; font-size: 18px; gap: 10px; }
.sidebar .brand img { width: 46px; height: 46px; filter: none; }
.sidebar .brand b { font-size: 21px; }
.main-nav { display: flex; align-self: stretch; gap: 20px; }
.nav-section-label, .privacy-card, .sidebar-overlay, .mobile-menu { display: none !important; }
.nav-item { position: relative; height: 100%; padding: 0 12px; gap: 11px; border-radius: 0; font-size: 15px; white-space: nowrap; color: #4c6472; }
.nav-item.active { background: transparent; color: #116654; }
.nav-item.active::before { position: absolute; margin: 0; inset: auto 0 0; width: 100%; height: 3px; border-radius: 2px; }
.sidebar-foot { margin: 0 0 0 auto; display: block; }
.user-menu { border: 0; width: auto; padding: 8px 0; }
.user-menu .avatar { background: var(--ink); color: white; width: 39px; height: 39px; font-size: 13px; }
.user-copy b { font-size: 14px; max-width: 130px; }
.user-copy small { display: none; }
.workspace { margin: 0; padding-top: 82px; min-height: 100vh; }
.topbar { background: white; height: 82px; padding: 0 32px; backdrop-filter: none; }
.topbar h1, .page-intro h2 { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 650; font-size: 26px; }
.topbar-actions { display: none; }
.content { padding: 24px 32px 40px; }
.companies-workbench-active .topbar { display: none; }
.companies-workbench-active .content { padding: 0; }
.file-workspace { display: grid; grid-template-columns: 285px minmax(420px, 1fr) 340px; min-height: calc(100vh - 82px); align-items: start; }
.company-browser { align-self: stretch; display: flex; flex-direction: column; background: #f5f8fa; border-right: 1px solid var(--line); min-height: calc(100vh - 82px); }
.company-browser-heading { padding: 31px 23px 20px; }
.company-browser-heading h2 { margin: 0; font-size: 22px; font-weight: 650; display: flex; gap: 12px; align-items: center; }
.company-browser-heading h2 span { font-size: 13px; padding: 3px 9px; background: #e4ecef; border-radius: 20px; font-weight: 500; }
.workspace-search { min-height: 42px; padding: 0 12px; border: 1px solid #dce4e9; background: #fff; border-radius: 6px; display: flex; gap: 10px; align-items: center; }
.workspace-search > .ui-icon { color: #708591; font-size: 20px; }
.workspace-search input { width: 100%; min-width: 0; height: 40px; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--text); }
.workspace-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px #dcece7; }
.company-browser > .workspace-search { margin: 0 22px 27px; background: transparent; }
.workspace-company-list { flex: 1; padding: 0 8px; }
.workspace-company { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 13px; min-height: 70px; width: 100%; background: transparent; border: 0; border-radius: 5px; text-align: left; cursor: pointer; margin-bottom: 3px; }
.workspace-company:hover { background: #eaf1f2; }
.workspace-company.selected { background: #dceeea; }
.workspace-company.selected::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #16876f; border-radius: 3px; }
.workspace-company-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #e0eaed; flex: none; color: #426572; font-size: 12px; }
.workspace-company.selected .workspace-company-avatar { background: #cae5df; color: #166957; }
.workspace-company b { flex: 1; min-width: 0; font-size: 12px; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
.workspace-company > span:last-child { font-size: 13px; color: #536d78; }
.workspace-add-company { width: 100%; margin-top: 28px; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 25px; display: flex; gap: 12px; align-items: center; font-size: 14px; color: #147564; cursor: pointer; text-align: left; }
.file-main { min-width: 0; padding: 30px 23px; }
.file-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); min-height: 103px; }
.file-heading > div:first-child { flex: 1 1 0; min-width: 0; }
.file-heading h1 { margin: 0 0 10px; font-size: 22px; line-height: 1.4; letter-spacing: -.4px; font-weight: 700; overflow: hidden; overflow-wrap: normal; text-overflow: ellipsis; white-space: nowrap; }
.file-heading p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.file-heading p span { padding: 0 8px; }
.file-heading-actions { flex: 0 1 auto; max-width: 68%; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.file-heading-actions > div { display: flex; width: max-content; max-width: 100%; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.file-heading-actions > div > * { flex: 0 0 auto; white-space: nowrap; }
.file-heading-actions p { font-size: 11px; text-align: right; margin-top: 10px; }
.file-heading-actions .button { padding: 0 12px; font-size: 12px; min-height: 40px; border-radius: 6px; box-shadow: none; }
.file-heading-actions .icon-button { width: 32px; height: 32px; }
.file-heading-actions .icon-button .ui-icon { font-size: 18px; }
.workspace-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 24px 0; color: #718492; font-size: 13px; }
.workspace-breadcrumb button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: inherit; }
.workspace-breadcrumb .ui-icon { font-size: 15px; }
.file-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.file-tabs { display: flex; align-items: stretch; gap: 18px; }
.file-tabs button { padding: 17px 0; background: transparent; border: 0; border-bottom: 3px solid transparent; font-size: 14px; color: #6d818d; cursor: pointer; white-space: nowrap; }
.file-tabs button.active { color: #136853; border-bottom-color: #147a62; font-weight: 600; }
.file-tabs button span { font-size: 11px; font-weight: 400; margin-left: 4px; }
.file-view-controls { display: flex; align-items: center; gap: 12px; min-width: 0; padding-bottom: 8px; }
.file-view-controls .workspace-search { max-width: 240px; }
.view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; }
.view-switch button { display: grid; place-items: center; width: 36px; height: 30px; padding: 0; border: 0; background: transparent; border-radius: 3px; color: #788995; cursor: pointer; }
.view-switch button.active { background: #d7eeea; color: #117a63; }
.workspace-list-head, .workspace-document { display: grid; grid-template-columns: minmax(0, 1fr) 110px 103px 20px; align-items: center; gap: 15px; }
.workspace-list-head { height: 49px; color: #6b818f; font-size: 12px; padding: 0 17px; }
.workspace-list-head button { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; text-align: left; padding: 0; }
.workspace-list-head .ui-icon { font-size: 15px; }
.workspace-document { width: 100%; padding: 17px; min-height: 82px; text-align: left; background: white; border: 0; border-bottom: 1px solid #e9eef0; cursor: pointer; color: var(--text); }
.workspace-document:hover { background: #f2f8f6; }
.workspace-document.selected { background: #e4f3ef; border-radius: 6px; border-bottom-color: transparent; }
.workspace-document-name { display: flex; align-items: center; gap: 15px; min-width: 0; }
.workspace-document-name > span:last-child { display: grid; gap: 7px; min-width: 0; }
.workspace-document-name b { font-size: 15px; font-weight: 550; overflow-wrap: anywhere; line-height: 1.5; }
.workspace-document-name small { display: block; font-size: 11px; color: #78909b; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.workspace-document-name small { display: flex; align-items: baseline; gap: 5px; }
.workspace-document-filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.workspace-document-size { flex-shrink: 0; }
.workspace-file-icon { width: 44px; height: 52px; flex: none; display: grid; place-items: center; color: #13826b; background: #d9f0e9; border-radius: 9px; }
.workspace-file-icon > .ui-icon { font-size: 28px; }
.workspace-document .status, .file-detail .status { font-size: 11px; font-weight: 500; padding: 5px 10px; justify-self: start; }
.workspace-document .status::before, .file-detail .status::before { width: 6px; height: 6px; }
.workspace-document-date { color: #627c8b; font-size: 13px; }
.workspace-document > .ui-icon { color: #728994; font-size: 21px; }
.workspace-file-count { color: #728996; padding: 22px 0 0; font-size: 13px; }
.workspace-documents.is-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 16px; }
.is-grid .workspace-list-head { display: none; }
.is-grid .workspace-document { grid-template-columns: 1fr auto; border: 1px solid var(--line); border-radius: 6px; gap: 16px; }
.is-grid .workspace-document-name { grid-column: 1/-1; }
.is-grid .workspace-document > .ui-icon { display: none; }
.workspace-folder { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.workspace-folder > button[data-workspace-folder] { min-width: 0; flex: 1; display: flex; align-items: center; padding: 22px 12px; gap: 15px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.workspace-folder > button[data-workspace-folder] > .ui-icon:first-child { font-size: 30px; color: #9d8b5e; }
.workspace-folder > button[data-workspace-folder] span:nth-child(2) { display: grid; gap: 5px; flex: 1; min-width: 0; }
.workspace-folder b { font-size: 14px; overflow-wrap: anywhere; }.workspace-folder small { font-size: 12px; color: var(--muted); }
.workspace-folder:hover { background: #f2f8f6; }
.is-grid .workspace-folder { border: 1px solid var(--line); border-radius: 6px; min-height: 110px; }
.is-grid .workspace-folder > button[data-workspace-folder] { padding: 17px; }
.workspace-empty { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; color: var(--muted); }
.workspace-empty > .ui-icon { font-size: 34px; color: #84afa3; }
.workspace-empty h3 { margin: 20px 0 8px; color: var(--text); font-size: 18px; }.workspace-empty p { font-size: 13px; max-width: 380px; line-height: 1.7; margin: 0 0 20px; }
.file-detail { min-width: 0; align-self: stretch; padding: 25px 22px; border-left: 1px solid var(--line); background: #fff; }
.file-detail-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.file-detail-heading h2 { font-size: 18px; font-weight: 650; margin: 0; }
.file-detail-heading .icon-button { width: 25px; height: 28px; color: #748592; }
.file-detail-title { display: flex; gap: 14px; align-items: center; margin: 24px 0; }
.file-detail-title h3 { font-size: 15px; margin: 0 0 9px; line-height: 1.6; overflow-wrap: anywhere; font-weight: 600; }
.file-identity { min-height: 186px; padding: 24px 18px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; background: #f7faf9; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.file-format { padding: 6px 10px; border: 1px solid #9cbfb4; border-radius: 4px; color: #18705e; font-size: 12px; font-weight: 600; }
.file-identity b { font-size: 12px; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }.file-identity p { color: var(--muted); margin: 0; font-size: 12px; line-height: 1.7; }
.file-properties { padding: 20px 0; margin: 20px 0 0; border-top: 1px solid var(--line); font-size: 13px; }
.file-properties > div { display: grid; grid-template-columns: 115px minmax(0,1fr); gap: 10px; margin-bottom: 12px; align-items: start; }
.file-properties dt { color: #536c79; }.file-properties dd { margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
.file-detail-actions { display: grid; gap: 8px; }
.file-detail-actions .button { width: 100%; justify-content: center; font-size: 13px; min-height: 42px; border-radius: 5px; }
.file-detail-actions .button-outline { border-color: #5a9c8b; color: #19745f; }
.file-detail-actions .danger { color: var(--danger); }
.file-permission-note { margin: -3px 0 3px; font-size: 11px; color: var(--muted); text-align: center; line-height: 1.5; }
.file-detail-empty { text-align: center; padding: 100px 20px; color: var(--muted); }
.file-detail-empty > .ui-icon { font-size: 38px; color: #a5c4bb; }.file-detail-empty h3 { font-size: 16px; font-weight: 500; }.file-detail-empty p { font-size: 13px; line-height: 1.8; }
.workspace-muted { padding: 15px; color: var(--muted); font-size: 13px; }
button:focus-visible, a:focus-visible { outline: 2px solid #1d806a; outline-offset: 3px; }
.welcome-band { padding: 22px 0 30px; color: var(--ink); background: transparent; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--line); }
.welcome-band::after { display: none; }.welcome-band .eyebrow { display: none; }.welcome-band h2 { font-family: inherit; font-size: 25px; font-weight: 600; }.welcome-band p:last-child { color: var(--muted); font-size: 14px; }
.date-tile { border: 1px solid var(--line); background: #f6f9f8; border-radius: 6px; }.date-tile strong { color: var(--green); font-family: inherit; font-size: 27px; }.date-tile span { color: var(--muted); font-size: 11px; }
.stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.stat-card { border: 0; border-radius: 0; border-right: 1px solid var(--line); background: transparent; box-shadow: none; }.stat-card:last-child { border: 0; }.stat-copy strong { font-family: inherit; font-size: 25px; }.stat-copy span { font-size: 13px; }
.panel { box-shadow: none; border-radius: 7px; }.panel-head h3 { font-size: 17px; }.panel-head p { font-size: 12px; }.document-row { min-height: 83px; }.doc-title b, .doc-company b { font-size: 13px; }.doc-title span, .doc-company span { font-size: 11px; }.text-link { font-size: 13px; }
.company-summary { margin-bottom: 24px; min-width: 0; }
.company-summary-head { padding-block: 15px; flex-wrap: wrap; }
.company-summary-head > div { flex: 1; min-width: 230px; }
.search-box > .ui-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted); pointer-events: none; }
.company-summary-head .search-box { display: block; align-self: center; }
.company-summary-scroll { overflow-x: auto; max-width: 100%; }
.company-summary-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.company-summary-table { width: 100%; min-width: 1820px; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.company-summary-table th { padding: 16px 12px; background: #f4f7f5; color: var(--muted); text-align: center; vertical-align: middle; line-height: 1.5; font-size: 12px; font-weight: 700; }
.company-summary-table td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; line-height: 1.5; overflow-wrap: anywhere; }
.company-summary-table th:nth-child(1) { width: 7%; }
.company-summary-table th:nth-child(2) { width: 15%; }
.company-summary-table th:nth-child(3) { width: 7.5%; }
.company-summary-table th:nth-child(4) { width: 7%; }
.company-summary-table th:nth-child(5) { width: 9%; }
.company-summary-table th:nth-child(6) { width: 9%; }
.company-summary-table th:nth-child(7) { width: 10%; }
.company-summary-table th:nth-child(8) { width: 8%; }
.company-summary-table th:nth-child(9) { width: 9.5%; }
.company-summary-table th:nth-child(10) { width: 8%; }
.company-summary-table th:nth-child(11) { width: 10%; }
.company-summary-actions { display: flex; justify-content: center; align-items: center; gap: 6px; white-space: nowrap; }
.company-summary-actions .button { flex-shrink: 0; padding-inline: 10px; }
.company-summary-table th:last-child, .company-summary-table td:last-child { position: sticky; right: 0; background: var(--paper); box-shadow: -1px 0 var(--line); }
.company-summary-table th:last-child { background: #f4f7f5; }
.company-summary-actions .danger { color: #b44438; }
.company-summary-table td:nth-child(3), .company-summary-table td:nth-child(4), .company-summary-table td:nth-child(6), .company-summary-table td:nth-child(9), .company-summary-table td:nth-child(10), .company-summary-table td:nth-child(11) { text-align: center; }
.company-summary-table td a { color: var(--ink); font-weight: 600; text-decoration: none; }
.company-summary-table td a:hover { text-decoration: underline; }
.company-summary-table td:first-child { position: sticky; left: 0; background: var(--paper); font-weight: 600; }
.company-summary-table th:first-child { position: sticky; left: 0; background: #f4f7f5; }
.company-summary-table td.company-summary-empty { padding: 32px; text-align: center; color: var(--muted); position: static; }
.permission-drawer.with-general-permissions { grid-template-rows: auto auto auto auto minmax(0,1fr) auto auto; }
.permission-general { display: grid; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: white; }
.permission-general label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.permission-general label + label { padding-top: 14px; border-top: 1px solid var(--line); }
.permission-general input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green); }
.permission-general label > span { display: grid; gap: 4px; }
.permission-general b { color: var(--ink); font-size: 14px; }
.permission-general small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.users-registry .table-panel { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: white; }
.users-registry .users-table { display: table; width: 100%; min-width: 1180px; table-layout: fixed; }
.users-registry .users-table thead { display: table-header-group; }
.users-registry .users-table tbody { display: table-row-group; }
.users-registry .users-table tr { display: table-row; background: white; border: 0; border-radius: 0; box-shadow: none; }
.users-registry .users-table th { height: 48px; padding: 12px 14px; text-align: center; white-space: nowrap; }
.users-registry .users-table th:first-child { width: 24%; text-align: left; }
.users-registry .users-table th:nth-child(2) { width: 14%; }
.users-registry .users-table th:nth-child(3) { width: 23%; }
.users-registry .users-table th:nth-child(4) { width: 10%; }
.users-registry .users-table th:nth-child(5) { width: 29%; }
.users-registry .users-table td { display: table-cell; height: 78px; padding: 16px 14px; border: 0; border-top: 1px solid var(--line); vertical-align: middle; background: transparent; }
.users-registry .users-table td::before { display: none; }
.users-registry .users-table td:nth-child(2), .users-registry .users-table td:nth-child(4) { text-align: center; white-space: nowrap; }
.users-registry .user-scope-summary { white-space: nowrap; }
.users-registry .users-table .cell-main b, .users-registry .users-table .cell-main span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.users-registry .table-actions { align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 8px; }
.users-registry .table-actions .button { min-height: 36px; padding: 0 12px; gap: 7px; flex-shrink: 0; white-space: nowrap; font-size: 12px; }
.users-registry .table-actions .icon-button { width: 34px; min-width: 34px; height: 36px; padding: 0; flex-shrink: 0; border: 0; background: transparent; }
.users-registry .table-actions .action-label { display: none; }
.permission-matrix-head small { font-size: 11px; }.permission-matrix-head > span:first-child { font-size: 11px; }.permission-matrix-check > span { width: 1px; }.permission-folder-name b { font-size: 13px; }.permission-folder-name small { font-size: 11px; }
.permission-matrix-row[data-folder-id="0"] { background: #edf8f4; }
.permission-matrix-row[data-folder-id="0"] .permission-folder-name > .ui-icon { color: #187b63; }

.import-page { display: grid; gap: 18px; max-width: 1480px; }
.import-context { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.import-context > div { min-width: 0; }
.import-eyebrow { display: block; margin-bottom: 7px; color: var(--green); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.import-context h2 { margin: 0; color: var(--ink); font-size: 21px; font-weight: 650; }
.import-context p { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.import-setting-grid input { min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; font: inherit; }
.import-settings { position: sticky; top: 94px; z-index: 18; padding: 0 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(23,62,55,.08); }
.import-settings-title { margin: 0; padding: 15px 0; color: var(--ink); font-size: 13px; font-weight: 650; }
.import-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0 0 17px; }
.import-account-group { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfc; }
.import-account-group h4 { margin: 0 0 10px; color: var(--ink); font-size: 12px; font-weight: 700; }
.import-setting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.import-setting-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.import-setting-grid input { width: 100%; height: 38px; font-size: 13px; }
.import-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 18px; }
.import-panel { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.import-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 103px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.import-panel h3 { margin: 0; color: var(--ink); font-size: 17px; }
.import-panel header p { max-width: 470px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.import-status { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 20px; color: var(--muted); background: #f2f7f5; font-size: 10px; white-space: nowrap; }
.import-status i { width: 7px; height: 7px; border-radius: 50%; background: #3ed2b9; }
.import-file-picker { display: flex; align-items: center; gap: 13px; min-height: 78px; margin: 16px 0 12px; padding: 14px; border: 1px dashed #a9c8bd; border-radius: 6px; background: #f8fbfa; cursor: pointer; }
.import-file-picker:hover { border-color: var(--green); background: #f0f8f5; }
.import-file-symbol { display: grid; width: 42px; height: 44px; flex-shrink: 0; place-items: center; border-radius: 5px; color: var(--green); background: #e2f1ec; font-size: 10px; font-weight: 750; }
.import-file-picker > span:nth-child(2) { display: grid; min-width: 0; gap: 5px; }
.import-file-picker b { overflow-wrap: anywhere; color: var(--ink); font-size: 12px; }
.import-file-picker small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.import-file-picker input { display: none; }
.import-process { width: 100%; min-height: 40px; justify-content: center; font-size: 12px; }
.import-process:disabled { opacity: .55; cursor: not-allowed; }
.import-warning { margin-top: 14px; padding: 12px 14px; border: 1px solid #ead7aa; border-radius: 5px; color: #775923; background: #fff9e9; font-size: 12px; }
.import-warning ul { display: grid; gap: 6px; margin: 8px 0 0; padding-left: 20px; line-height: 1.5; }
.import-result-grid { display: grid; gap: 8px; margin-top: 13px; }
.result-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.result-meta { display: grid; min-width: 0; gap: 5px; }
.result-meta strong { color: var(--ink); font-size: 12px; }
.result-meta span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.result-actions { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.result-badge { color: var(--green); font-size: 9px; font-weight: 750; }
.download-button { min-height: 32px; padding: 0 10px; border: 1px solid #b4d1c6; border-radius: 4px; color: var(--green); background: #f5faf8; cursor: pointer; font: inherit; font-size: 10px; font-weight: 650; }
.download-button:hover { background: #e6f3ee; }
.empty-result { display: flex; align-items: center; gap: 11px; padding: 14px 10px; color: var(--muted); }
.empty-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #82969e; background: #f1f5f4; }
.empty-result > div:last-child { display: grid; gap: 4px; }
.empty-result strong { color: var(--text); font-size: 11px; }
.empty-result span { font-size: 10px; }
.import-result-count { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; text-align: right; }
@media (max-width: 1000px) { .import-settings { top: 132px; }.import-module-grid { grid-template-columns: 1fr; }.import-setting-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) { .import-settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .import-settings { top: 124px; }.import-context { align-items: stretch; flex-direction: column; padding: 18px; gap: 16px; }.import-context h2 { font-size: 19px; }.import-panel { padding: 15px; }.import-panel > header { flex-direction: column; min-height: auto; }.import-setting-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.import-account-group { padding: 12px; }.result-card { align-items: flex-start; flex-direction: column; }.result-actions { width: 100%; justify-content: space-between; } }
@media (min-width: 1650px) { .file-workspace { grid-template-columns: 320px minmax(500px, 1fr) 440px; }.file-main { padding: 32px; }.file-heading h1 { font-size: 25px; }.file-heading-actions .button { font-size: 14px; }.file-heading-actions p { font-size: 12px; }.workspace-company b { font-size: 14px; }.file-detail { padding: 28px 24px; } }
@media (max-width: 1250px) { .sidebar { gap: 18px; padding: 0 22px; }.sidebar .brand { flex-basis: 215px; }.main-nav { gap: 3px; }.file-workspace { grid-template-columns: 240px minmax(0,1fr) 285px; }.file-main { padding: 24px 18px; }.file-heading { flex-direction: row; gap: 12px; }.file-heading-actions { max-width: 68%; }.file-heading-actions > div { justify-content: flex-start; }.file-heading-actions p { text-align: left; }.file-toolbar { flex-wrap: wrap; gap: 10px; }.file-view-controls { width: 100%; }.file-view-controls .workspace-search { max-width: none; flex: 1; }.workspace-list-head, .workspace-document { grid-template-columns: minmax(0,1fr) 95px 20px; gap: 8px; padding-inline: 10px; }.workspace-document-date, .workspace-list-head > span:nth-child(3) { display: none; }.file-detail { padding: 22px 16px; }.file-properties > div { grid-template-columns: 100px minmax(0,1fr); }.workspace-documents.is-grid { grid-template-columns: 1fr; } }
/* Prioritize company access and keep recent documents compact. */
.dashboard-grid { grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); align-items: start; }
.dashboard-grid > .panel { min-width: 0; }
.dashboard-companies .company-mini { min-height: 76px; padding: 15px; }
.dashboard-companies .company-mini b { font-size: 15px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.dashboard-companies .company-mini span { font-size: 12px; }
.dashboard-companies .company-mark { width: 44px; height: 44px; }
.dashboard-recent .panel-head { flex-wrap: wrap; padding-block: 14px; gap: 8px; }
.dashboard-recent .document-row { grid-template-columns: 37px minmax(0, 1fr) 20px; gap: 7px 12px; padding-block: 16px; }
.dashboard-recent .file-icon { grid-column: 1; grid-row: 1 / 4; align-self: start; }
.dashboard-recent .doc-title { grid-column: 2; grid-row: 1; }
.dashboard-recent .doc-title b { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.dashboard-recent .doc-company { display: grid; grid-column: 2; grid-row: 2; }
.dashboard-recent .doc-company b { font-size: 11px; font-weight: 500; white-space: normal; overflow-wrap: anywhere; }
.dashboard-recent .doc-company > span { display: none; }
.dashboard-recent .document-row > .status { display: inline-flex; grid-column: 2; grid-row: 3; }
.dashboard-recent .document-row > span:last-child { grid-column: 3; grid-row: 1 / 4; }

@media (max-width: 1000px) { .sidebar { height: 120px; flex-wrap: wrap; align-content: center; gap: 0; }.sidebar .brand { height: 63px; flex: 1; order: 0; }.sidebar-foot { order: 1; }.main-nav { order: 2; width: 100%; height: 57px; gap: 12px; }.nav-item { font-size: 14px; }.workspace { padding-top: 120px; }.file-workspace { grid-template-columns: 220px minmax(0,1fr); min-height: calc(100vh - 120px); }.company-browser { grid-row: 1 / 3; min-height: calc(100vh - 120px); }.file-detail { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); }.file-detail:not(.has-document) { display: none; }.file-heading { flex-direction: row; flex-wrap: nowrap; }.dashboard-grid { grid-template-columns: 1fr; }.content { padding: 22px; } }
@media (max-width: 650px) { .sidebar { padding: 0 14px; height: 112px; }.sidebar .brand { height: 59px; font-size: 16px; }.sidebar .brand b { font-size: 18px; }.sidebar .brand img { width: 36px; height: 36px; }.sidebar .user-copy { display: none; }.main-nav { height: 53px; gap: 0; justify-content: space-between; }.nav-item { flex: 1; justify-content: center; padding: 0 6px; font-size: 11px; gap: 5px; }.nav-item > .ui-icon { font-size: 18px; }.workspace { padding-top: 112px; }.file-workspace { display: block; }.company-browser { min-height: 0; border: 0; border-bottom: 1px solid var(--line); }.company-browser-heading { padding: 16px 18px 12px; }.company-browser-heading h2 { font-size: 18px; }.company-browser > .workspace-search { margin: 0 16px 12px; }.workspace-company-list { display: flex; overflow-x: auto; padding: 0 12px 12px; gap: 8px; max-height: 108px; }.workspace-company { flex: 0 0 210px; margin: 0; min-height: 70px; }.workspace-company b { font-size: 11px; }.workspace-company-avatar { width: 32px; height: 32px; }.workspace-add-company { padding: 12px 18px; margin: 0; font-size: 12px; }.file-main { padding: 20px 16px; }.file-heading h1 { font-size: 20px; }.file-heading-actions .button { font-size: 12px; }.file-heading-actions p { font-size: 11px; }.workspace-breadcrumb { padding: 17px 0; gap: 8px; font-size: 12px; }.file-tabs button { font-size: 13px; }.file-view-controls .workspace-search { flex: 1; }.workspace-document-name b { font-size: 12px; }.workspace-document-name small { font-size: 10px; }.workspace-document-name { gap: 9px; }.workspace-file-icon { width: 33px; height: 43px; }.workspace-file-icon > .ui-icon { font-size: 23px; }.workspace-list-head, .workspace-document { grid-template-columns: minmax(0,1fr) 83px 15px; gap: 7px; }.workspace-document .status { font-size: 10px; padding: 5px 7px; }.file-detail { padding: 24px 18px; }.file-detail-actions .button { min-height: 45px; }.stats-grid { grid-template-columns: 1fr; }.stat-card { border-right: 0; border-bottom: 1px solid var(--line); }.welcome-band h2 { font-size: 20px; }.welcome-band p:last-child { font-size: 12px; }.date-tile { display: none; }.topbar { padding-inline: 20px; height: 75px; }.topbar h1 { font-size: 23px; }.content { padding: 18px; }.document-row { grid-template-columns: 35px 1fr 24px; }.doc-company, .document-row > .status { display: none; } }
/* Keep the horizontal navigation centered despite legacy sidebar spacing. */
.sidebar .main-nav { margin-top: 0; height: 100%; align-items: stretch; }
.file-identity { min-height: 160px; }
.file-detail-actions { gap: 4px; }
.file-detail-actions .button { min-height: 36px; background: transparent; }
.file-detail-actions .button:hover { background: #edf6f2; }
@media (max-width: 1000px) { .sidebar .main-nav { height: 57px; } }
@media (max-width: 650px) { .sidebar .main-nav { height: 53px; }.file-detail-actions .button { min-height: 43px; } }
@media (max-width: 650px) {
  .sidebar .main-nav { gap: 0; }
  .sidebar .nav-item { min-width: 0; flex-direction: column; gap: 4px; padding: 6px 2px; font-size: 10px; line-height: 1.2; }
  .sidebar .nav-item > span:not(.ui-icon) { max-width: 100%; white-space: normal; text-align: center; }
}

/* Download follows view; the remaining actions are granted separately. */
.permission-matrix-head, .permission-matrix-row { min-width: 760px; grid-template-columns: minmax(230px,1fr) repeat(7, 74px); }
.permission-matrix-check:has(input:disabled), .permission-check-option:has(input:disabled) { cursor: default; }
.permission-matrix-head small { max-width: 70px; white-space: normal; line-height: 1.35; overflow: visible; }
.workspace-list-head select { max-width: 210px; min-height: 34px; padding: 5px 28px 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.workspace-folder.is-drop-target, .folder-card.is-drop-target { outline: 2px dashed var(--accent); outline-offset: -3px; background: #e9f6f2; }
.upload-dropzone.is-drop-target { outline: 2px dashed var(--accent); outline-offset: 3px; background: #e9f6f2; }
.users-filter-bar { display: flex; align-items: center; flex-wrap: wrap; }
.users-filter-bar .search-box { flex: 1 1 320px; }
.company-summary-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; border-bottom: 1px solid var(--line); }
.company-summary-tab { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); background: #f5f8f6; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font: inherit; font-weight: 650; }
.company-summary-tab.active { color: var(--green); background: #e6f3ee; border-color: #b9d9ce; }
.company-summary-tab b { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; color: inherit; background: rgba(39,122,104,.1); border-radius: 999px; font-size: .8em; }
.users-registry .users-table { min-width: 1180px; }
.users-registry .users-table th:first-child { width: 24%; text-align: left; }
.users-registry .users-table th:nth-child(2) { width: 14%; }
.users-registry .users-table th:nth-child(3) { width: 23%; }
.users-registry .users-table th:nth-child(4) { width: 10%; }
.users-registry .users-table th:nth-child(5) { width: 29%; }
.users-registry .users-table td:nth-child(2), .users-registry .users-table td:nth-child(4) { text-align: center; white-space: nowrap; }
.users-registry .users-table td:nth-child(5) { text-align: right; }
.permission-drawer { width: min(1540px, 64vw); }
.permission-drawer-head { min-height: 108px; padding: 21px 30px; }
.permission-user h2 { font-size: 1.65rem; }
.permission-user p { font-size: .72rem; }
.permission-drawer-metrics article { min-height: 72px; }
.permission-general { gap: 17px; padding: 19px 24px; }
.permission-general b { font-size: 16px; }
.permission-general small { font-size: 14px; }
.permission-company-list { padding: 14px 22px 22px; gap: 9px; }
.permission-company-row { min-height: 68px; padding: 9px 13px; }
.permission-company-open { grid-template-columns: 48px minmax(0,1fr) 24px; }
@media (max-width: 1320px) { .permission-drawer { width: min(1160px, 86vw); } }
@media (max-width: 1000px) { .permission-drawer { width: 100%; } }


/* File and folder selection controls for bulk download and director-only deletion. */
.workspace-list-head.has-delete-select { margin-left: 31px; }
.workspace-document-row { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: stretch; gap: 7px; border-bottom: 1px solid #e9eef0; padding-left: 17px; }
.workspace-document-row .workspace-document { border-bottom: 0; min-width: 0; }
.workspace-folder-select { width: 16px; height: 16px; flex: none; margin: 0 0 0 15px; accent-color: #167963; cursor: pointer; }
.workspace-document-select { width: 16px; height: 16px; margin: auto; accent-color: #167963; cursor: pointer; }
.workspace-bulk-toolbar { min-height: 46px; display: flex; align-items: center; gap: 14px; padding: 6px 17px; border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; color: #607987; font-size: 12px; }
.workspace-bulk-toolbar label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.workspace-bulk-toolbar input { width: 16px; height: 16px; accent-color: #167963; }
.workspace-bulk-toolbar > span { margin-left: auto; }
.workspace-bulk-toolbar .button { min-height: 34px; }
.is-grid .workspace-document-row { border: 0; padding: 0; align-items: center; }
.is-grid .workspace-document { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); border-radius: 6px; gap: 16px; }
@media (max-width: 1250px) { .workspace-list-head.has-delete-select { margin-left: 27px; } }
@media (max-width: 650px) { .workspace-list-head.has-delete-select { margin-left: 25px; }.workspace-document-row { grid-template-columns: 18px minmax(0,1fr); gap: 5px; padding-left: 7px; }.workspace-document { padding: 13px 8px; }.workspace-bulk-toolbar { flex-wrap: wrap; gap: 8px; padding: 8px; }.workspace-bulk-toolbar > span, .workspace-bulk-toolbar .button { margin-left: auto; } }

/* Clear file rename action shown beside every editable file. */
.workspace-list-head { display: grid; grid-template-columns: minmax(0, 1fr) 110px 103px 20px; align-items: center; gap: 15px; }
.workspace-list-head.has-rename-action { grid-template-columns: minmax(0,1fr) 110px 103px 42px; padding-right: 8px; }
.workspace-document { display: grid; grid-template-columns: minmax(0, 1fr) 110px 103px; align-items: center; gap: 15px; }
.workspace-document-row { display: grid; grid-template-columns: minmax(0,1fr); align-items: stretch; gap: 7px; border-bottom: 1px solid #e9eef0; padding-left: 0; }
.workspace-document-row.has-delete-select { grid-template-columns: 24px minmax(0,1fr); padding-left: 17px; }
.workspace-document-row.has-rename-action { grid-template-columns: minmax(0,1fr) 42px; padding-right: 8px; }
.workspace-document-row.has-delete-select.has-rename-action { grid-template-columns: 24px minmax(0,1fr) 42px; }
.workspace-document-row .workspace-document { border-bottom: 0; min-width: 0; }
.workspace-document-rename { width: 36px; height: 36px; justify-self: center; color: #176f60; background: #edf6f3; }
.workspace-document-rename:hover { background: #d9eee8; }
.is-grid .workspace-document-row { border: 0; padding: 0; align-items: center; }
.is-grid .workspace-document-row.has-delete-select { grid-template-columns: 24px minmax(0,1fr); }
.is-grid .workspace-document-row.has-rename-action { grid-template-columns: minmax(0,1fr) 42px; }
.is-grid .workspace-document-row.has-delete-select.has-rename-action { grid-template-columns: 24px minmax(0,1fr) 42px; }
.is-grid .workspace-document { grid-template-columns: 1fr auto; border: 1px solid var(--line); border-radius: 6px; gap: 16px; }
.is-grid .workspace-document-name { grid-column: 1/-1; }
@media (max-width: 1250px) {
  .workspace-list-head { grid-template-columns: minmax(0,1fr) 95px 20px; gap: 8px; padding-inline: 10px; }
  .workspace-list-head.has-rename-action { grid-template-columns: minmax(0,1fr) 95px 42px; padding-right: 8px; }
  .workspace-document { grid-template-columns: minmax(0,1fr) 95px; gap: 8px; padding-inline: 10px; }
  .workspace-list-head.has-delete-select { margin-left: 27px; }
  .workspace-document-date, .workspace-list-head > span:nth-child(3) { display: none; }
}
@media (max-width: 650px) {
  .workspace-list-head { grid-template-columns: minmax(0,1fr) 83px 15px; gap: 7px; }
  .workspace-list-head.has-rename-action { grid-template-columns: minmax(0,1fr) 83px 38px; padding-right: 3px; }
  .workspace-document { grid-template-columns: minmax(0,1fr) 83px; gap: 7px; }
  .workspace-list-head.has-delete-select { margin-left: 25px; }
  .workspace-document-row { gap: 5px; }
  .workspace-document-row.has-delete-select { grid-template-columns: 18px minmax(0,1fr); padding-left: 7px; }
  .workspace-document-row.has-rename-action { grid-template-columns: minmax(0,1fr) 38px; padding-right: 3px; }
  .workspace-document-row.has-delete-select.has-rename-action { grid-template-columns: 18px minmax(0,1fr) 38px; }
  .workspace-document { padding: 13px 8px; }
  .workspace-document-rename { width: 34px; height: 34px; }
}
/* codex-compact-workspace-v1 */
.file-tabs button { padding: 13px 0; font-size: 13px; }
.workspace-list-head { display: grid; grid-template-columns: minmax(0, 1fr) 110px 103px 20px; align-items: center; gap: 15px; height: 42px; padding: 0 14px; color: #6b818f; font-size: 11px; }
.workspace-list-head.has-rename-action { grid-template-columns: minmax(0,1fr) 110px 103px 42px; padding-right: 8px; }
.workspace-list-head.has-delete-select { margin-left: 31px; }
.workspace-list-head select { max-width: 210px; min-height: 34px; padding: 5px 28px 5px 9px; font-size: 11px; }
.workspace-document { display: grid; grid-template-columns: minmax(0, 1fr) 110px 103px; align-items: center; gap: 15px; padding: 12px 14px; min-height: 68px; }
.workspace-document[draggable="true"] { cursor: grab; }
.workspace-document[draggable="true"]:active, .workspace-document.is-dragging { cursor: grabbing; opacity: .62; }
.workspace-document-row { display: grid; grid-template-columns: minmax(0,1fr); align-items: stretch; gap: 7px; border-bottom: 1px solid #e9eef0; }
.workspace-document-row.has-delete-select { grid-template-columns: 24px minmax(0,1fr); padding-left: 17px; }
.workspace-document-row.has-rename-action { grid-template-columns: minmax(0,1fr) 42px; padding-right: 8px; }
.workspace-document-row.has-delete-select.has-rename-action { grid-template-columns: 24px minmax(0,1fr) 42px; }
.workspace-document-row .workspace-document { border-bottom: 0; min-width: 0; }
.workspace-document-name { gap: 12px; }
.workspace-document-name > span:last-child { gap: 4px; }
.workspace-document-name b { font-size: 13px; line-height: 1.4; }
.workspace-document-name small { font-size: 10px; }
.workspace-file-icon { width: 38px; height: 44px; border-radius: 8px; }
.workspace-file-icon > .ui-icon { font-size: 24px; }
.workspace-document .status, .file-detail .status { font-size: 10px; padding: 4px 8px; }
.workspace-document-date { font-size: 11px; }
.workspace-file-count { padding-top: 16px; font-size: 12px; }
.workspace-folder > button[data-workspace-folder] { padding: 14px 10px; gap: 12px; }
.workspace-folder > button[data-workspace-folder] > .ui-icon:first-child { font-size: 24px; }
.workspace-folder > button[data-workspace-folder] span:nth-child(2) { gap: 3px; }
.workspace-folder b { font-size: 13px; }
.workspace-folder small { font-size: 10px; }
.workspace-bulk-toolbar { min-height: 40px; gap: 12px; padding: 5px 14px; margin: 10px 0; font-size: 11px; }
.workspace-folder.is-drop-target, .folder-card.is-drop-target { outline: 2px dashed var(--accent); outline-offset: -3px; background: #e9f6f2; }
@media (max-width: 1250px) {
  .workspace-list-head { grid-template-columns: minmax(0,1fr) 95px 20px; gap: 8px; padding-inline: 10px; }
  .workspace-list-head.has-rename-action { grid-template-columns: minmax(0,1fr) 95px 42px; padding-right: 8px; }
  .workspace-document { grid-template-columns: minmax(0,1fr) 95px; gap: 8px; padding-inline: 10px; }
  .workspace-list-head.has-delete-select { margin-left: 27px; }
  .workspace-document-date, .workspace-list-head > span:nth-child(3) { display: none; }
}
@media (max-width: 650px) {
  .file-tabs button { font-size: 13px; }
  .workspace-document-name b { font-size: 12px; }
  .workspace-document-name { gap: 9px; }
  .workspace-file-icon { width: 33px; height: 43px; }
  .workspace-file-icon > .ui-icon { font-size: 23px; }
  .workspace-list-head { grid-template-columns: minmax(0,1fr) 83px 15px; gap: 7px; }
  .workspace-list-head.has-rename-action { grid-template-columns: minmax(0,1fr) 83px 38px; padding-right: 3px; }
  .workspace-document { grid-template-columns: minmax(0,1fr) 83px; gap: 7px; padding: 13px 8px; }
  .workspace-list-head.has-delete-select { margin-left: 25px; }
  .workspace-document-row { gap: 5px; }
  .workspace-document-row.has-delete-select { grid-template-columns: 18px minmax(0,1fr); padding-left: 7px; }
  .workspace-document-row.has-rename-action { grid-template-columns: minmax(0,1fr) 38px; padding-right: 3px; }
  .workspace-document-row.has-delete-select.has-rename-action { grid-template-columns: 18px minmax(0,1fr) 38px; }
  .workspace-document-rename { width: 34px; height: 34px; }
  .workspace-bulk-toolbar { flex-wrap: wrap; gap: 8px; padding: 8px; }
}.sidebar-foot { display: flex; align-items: center; gap: 12px; }
.language-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #f5f8f7; white-space: nowrap; }
.language-switch button { min-width: 38px; min-height: 30px; padding: 0 9px; border: 0; border-radius: 999px; color: #5f747d; background: transparent; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.language-switch button.active { color: #fff; background: var(--ink); box-shadow: 0 1px 3px rgba(23,62,55,.18); }
.language-switch button:focus-visible { outline: 2px solid #16876f; outline-offset: 2px; }
.login-language-switch { position: absolute; top: 24px; right: 28px; z-index: 2; }
