/* The Files page uses the shared compact header; all other rules stay scoped. */
.files-workspace { max-width: var(--content-width); }
.files-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: #fff;
  border-bottom: 1px solid #dce5df;
}
.files-toolbar p { display: grid; gap: 3px; margin: 0; color: #244c40; }
.files-toolbar p span { font-size: 13px; color: #58685f; }
.files-search { display: grid; gap: 5px; width: min(340px, 45%); font-size: 12px; font-weight: 700; color: #42594d; }
.files-search input { box-sizing: border-box; width: 100%; min-height: 42px; margin: 0; background: #fff; }
.files-mobile-folder { display: none; }
.files-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 380px; }
.files-sidebar { padding: 22px 14px; background: #f3f6f3; border-right: 1px solid #dce5df; }
.files-nav-label { margin: 0 12px 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #617267; }
.files-sidebar button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  margin: 0 0 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #344e41;
  box-shadow: none;
  font-size: 14px;
  text-align: left;
  line-height: 1.4;
}
.files-sidebar button small { font-size: 10px; font-weight: 500; }
.files-sidebar button:hover { background: #e8eee8; }
.files-sidebar button.active { background: #e0ebe1; border-color: #c1d4c4; color: #204b35; font-weight: 700; }
.files-archive { border-top: 1px solid #d5dfd6; margin-top: 18px; padding-top: 10px; }
.files-archive summary { padding: 12px; cursor: pointer; color: #526456; font-size: 12px; font-weight: 600; }
.files-archive button { font-size: 13px; }
.files-content { min-width: 0; padding: 26px; }
.files-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; font-size: 12px; color: #657168; }
.files-breadcrumbs button { min-height: 32px; padding: 3px 0; border: 0; background: transparent; color: #2c6146; box-shadow: none; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.files-folder-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 24px; }
.files-folder-heading h2 { margin: 0 0 7px; color: #244c40; font-size: 23px; line-height: 1.25; overflow-wrap: anywhere; }
.files-folder-heading h2:focus { outline: none; }
.files-folder-heading p { margin: 0; color: #58685f; font-size: 14px; line-height: 1.6; }
.files-audience { flex-shrink: 0; border-radius: 20px; padding: 6px 10px; color: #365542; background: #e9f0e5; font-size: 11px; font-weight: 600; }
.files-folder-list { list-style: none; margin: 0; padding: 0; border: 1px solid #d9e2dc; border-radius: 10px; overflow: hidden; }
.files-folder-list li + li { border-top: 1px solid #e1e7e2; }
.files-folder-list button { display: flex; gap: 15px; align-items: center; width: 100%; min-height: 84px; padding: 16px 18px; border: 0; border-radius: 0; background: #fff; color: #294e3c; box-shadow: none; text-align: left; }
.files-folder-list button:hover { background: #f0f5ee; }
.files-folder-icon { flex: 0 0 29px; width: 29px; height: 29px; color: #8d743b; }
.files-folder-copy { display: grid; gap: 6px; min-width: 0; }
.files-folder-copy strong { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.files-folder-copy small { font-size: 12px; line-height: 1.5; font-weight: 400; color: #5c6a61; overflow-wrap: anywhere; }
.files-folder-chevron { margin-left: auto; font-size: 25px; color: #7e8e81; }
.files-empty { padding: 34px 18px; margin-top: 20px; text-align: center; border: 1px dashed #cedbd0; border-radius: 10px; background: #f7f9f6; }
.files-empty h3 { font-size: 15px; color: #425b48; margin: 0 0 8px; }
.files-empty p { font-size: 13px; line-height: 1.6; margin: 0; color: #5d6d61; }
.files-empty button { margin-top: 16px; }
.files-workspace :is(button, summary, input):focus-visible { outline: 3px solid #9a6d18; outline-offset: -3px; }
@media (max-width: 700px) {
  .files-toolbar { align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; }
  .files-search { width: 100%; }
  .files-layout { grid-template-columns: minmax(0, 1fr); }
  .files-sidebar { display: none; }
  .files-mobile-folder { display: grid; gap: 5px; font-size: 12px; font-weight: 700; color: #42594d; }
  .files-mobile-folder select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; margin: 0; background: #fff; font-size: 16px; }
  .files-content { padding: 20px 16px; }
  .files-folder-heading { flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .files-folder-heading h2 { font-size: 21px; }
  .files-folder-list button { padding: 14px 12px; gap: 11px; }
  .files-empty { padding: 26px 14px; }
}
