[hidden] { display: none !important; }
header > a { display: inline-flex; }
header img { display: block; }
#logout { margin-left: auto; padding: 9px 16px; }
#account:not(:empty) + #logout { margin-left: 0; }
#files aside nav a { display: block; border-radius: 12px; }
#files aside nav a:hover { background: #dcd5c6; }
.workspace { max-width: 1450px; width: 100%; }
.workspace h2 { overflow-wrap: anywhere; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: .9rem; color: #706b62; }
.breadcrumbs a { color: inherit; text-underline-offset: 4px; overflow-wrap: anywhere; }
.tools { align-items: center; margin-bottom: 24px; }
#search, #folder-name { border: 1px solid #cfc9ba; border-radius: 14px; background: #fff; padding: 11px 14px; font: inherit; color: inherit; min-width: 0; }
#search { margin-left: auto; width: min(100%, 240px); }
button:disabled { cursor: default; opacity: .48; transform: none; }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px 101px 86px 78px; align-items: center; gap: 10px; min-height: 62px; border-bottom: 1px solid #e3e0d8; font-size: .88rem; color: #645e53; }
.file-head { min-height: 34px; }
.file-row:not(.file-head):hover { background: #f2efe8; }
.file-name { display: flex; gap: 14px; align-items: center; min-height: 44px; overflow-wrap: anywhere; font-size: 1rem; color: #302f2c; text-decoration: none; }
.file-name:hover, .download:hover { text-decoration: underline; }
button.file-name { padding: 0; width: 100%; justify-content: flex-start; border-radius: 0; background: transparent; text-align: left; }
button.file-name:hover, button.file-name:active { transform: none; }
.download { color: #4d4639; text-underline-offset: 4px; }
#listing, #notice { color: #645e53; overflow-wrap: anywhere; }
#notice { border-left: 3px solid #ab986e; padding: 8px 12px; background: #f3eee4; }
#notice[data-error="true"] { border-color: #a24a38; }
dialog { max-width: calc(100vw - 24px); width: 420px; padding: 24px; border: 1px solid #dedbd4; border-radius: 20px; background: #faf9f6; color: inherit; }
dialog::backdrop { background: #25231f80; }
dialog h3 { margin: 0 0 20px; font-weight: 550; }
dialog label, #folder-name { display: block; width: 100%; }
#folder-name { margin: 8px 0 20px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
#preview { width: 760px; }
.preview-heading { display: flex; gap: 12px; justify-content: space-between; align-items: start; }
.preview-heading h3 { overflow-wrap: anywhere; }
#preview-status:empty { display: none; }
#preview-content img { display: block; max-width: 100%; max-height: 60vh; object-fit: contain; margin: 0 auto 16px; }
#preview-content pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 54vh; overflow: auto; padding: 12px; background: #f1efe9; }
:focus-visible { outline: 2px solid #796240; outline-offset: 3px; }
@media (max-width: 960px) {
  #files aside { min-height: 54px; }
  #files aside nav { display: block; margin: 4px 0; width: max-content; }
}
@media (max-width: 650px) {
  .file-row { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 0; gap: 4px 10px; }
  .file-head { display: none; }
  .file-name { grid-column: 1/-1; }
  .file-size { display: none; }
  .download { grid-column: 2; text-align: right; }
  #search { margin-left: 0; }
}
@media (max-width: 420px) {
  header { gap: 9px; }
  .division { padding-left: 9px; }
}

.file-row { grid-template-columns: minmax(0, 1fr) 118px 101px 86px 78px 40px; }
.file-row:not(.file-head) { position: relative; animation: portal-enter .23s ease-out both; }
.row-actions { min-width: 36px; min-height: 36px; padding: 0; font-size: 1.35rem; }
#file-actions { position: fixed; z-index: 5; min-width: 188px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; border: 1px solid #ddd6c8; border-radius: 14px; background: #fffdfa; padding: 5px; box-shadow: 0 10px 28px #342b242e; animation: portal-enter .15s ease-out both; }
#file-actions button, #file-actions a { display: block; width: 100%; text-align: left; padding: 10px 12px; color: inherit; text-decoration: none; border-radius: 9px; background: transparent; }
#file-actions button:hover, #file-actions a:hover { background: #eee9df; transform: none; }
#file-actions button.danger, button.danger { color: #932f25; }
.danger-fill, .danger-fill:hover { background: #932f25; }
#command-error { color: #932f25; }
#command-input, .admin-field input, .admin-field select { color: inherit; font: inherit; width: 100%; border: 1px solid #cfc9ba; border-radius: 10px; padding: 10px; background: #fffdfa; }
#command-input { margin: 8px 0; }
#admin-open { margin: 8px 0; }
#admin-panel { width: 800px; max-height: calc(100dvh - 24px); }
#admin-panel h4 { margin: 0; width: 100%; }
#admin-panel .preview-heading h3 { font-size: 1.35rem; }
#admin-tabs, .admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
#admin-tabs button[aria-pressed="true"] { background: #ddd4c3; color: #27231c; }
#admin-confirm { padding: 8px 0 12px; border-bottom: 1px solid #dedbd4; }
#admin-confirm summary, .admin-list summary { cursor: pointer; padding: 10px 12px; overflow-wrap: anywhere; }
#admin-status[data-error="true"] { color: #932f25; }
.admin-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 14px 0; }
.admin-field { display: grid; flex: 1 1 160px; gap: 5px; min-width: 0; font-size: .9rem; }
.admin-list { display: grid; gap: 8px; margin: 14px 0; }
.admin-list details { padding: 0 10px 8px; border: 1px solid #ddd6c8; border-radius: 12px; }
.admin-line { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 0; border-bottom: 1px solid #dedbd4; }
dialog[open] { animation: portal-enter .2s ease-out both; }
dialog[open]::backdrop { animation: portal-fade .2s ease-out both; }
@keyframes portal-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes portal-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 650px) {
  .file-row { grid-template-columns: minmax(0, 1fr) auto; }
  .file-name { padding-right: 42px; }
  button.file-name { padding-right: 42px; }
  .row-actions { position: absolute; top: 12px; right: 0; }
  #files aside nav { display: flex; align-items: center; gap: 8px; }
  #admin-panel { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .file-row:not(.file-head), #file-actions, dialog[open], dialog[open]::backdrop { animation: none; }
}



:root { --forest:#193b34; --paper:#fafaf7; --line:#dce1d8; --muted:#616c64; --gold:#ead4a2; }
body { background:var(--paper); color:#202c27; }
header { height:70px; gap:20px; padding:0 max(5vw,24px); border-color:var(--line); background:#fff; }
header img { width:132px; }
header .division { font-size:19px; letter-spacing:.01em; }
header #admin-open { margin:0 0 0 auto; background:transparent; color:var(--forest); font-weight:600; }
header #admin-open:not([hidden]) ~ #account { margin-left:0; }
#logout { background:#f1f3ee; border-radius:9px; font-size:.88rem; }
#files { display:block; min-height:calc(100vh - 70px); }
#files .workspace { max-width:1560px; margin:auto; padding:24px clamp(18px,5vw,90px) 64px; }
.breadcrumbs { min-height:22px; margin:0 0 16px; font-size:.85rem; }
.folder-banner { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; padding:clamp(24px,3.5vw,54px); min-height:190px; border-radius:20px; color:white; background:linear-gradient(90deg,#163530f5 1%,#1d4038e8 34%,#243b3673 74%,#1c322c73),url(cloud-front.jpg) center 55%/cover; }
.banner-content { min-width:0; }
.workspace .folder-banner h2 { margin:0 0 9px; color:#fffdf3; font:normal clamp(38px,4.6vw,73px)/1.02 Georgia,serif; letter-spacing:-.055em; }
#folder-count { color:#e1e8de; font-size:.9rem; font-variant-numeric:tabular-nums; }
.banner-actions,.file-filters { display:flex; align-items:center; gap:8px; }
.banner-actions { flex-shrink:0; }
.banner-actions button { border-radius:10px; padding:12px 17px; font-weight:600; background:#203d36; color:white; border:1px solid #9ea99e; }
.banner-actions .primary { background:var(--gold); color:#302f22; border-color:var(--gold); }
.tools { display:flex; align-items:center; margin:28px 0 16px; gap:9px; }
.file-filters { padding:3px; gap:2px; border:1px solid var(--line); background:#edf0e9; border-radius:12px; }
.file-filters button { background:transparent; border-radius:9px; font-size:.89rem; padding:9px 15px; }
.file-filters button[aria-pressed="true"] { background:white; color:var(--forest); box-shadow:0 1px 4px #35433725; font-weight:600; }
#refresh,#sort-order,#search { border:1px solid var(--line); border-radius:10px; background:#fff; color:#39483e; min-height:40px; }
#refresh { order:4; font-size:1.25rem; width:40px; padding:0; }
#sort-order { order:3; padding:0 9px; font:inherit; font-size:.88rem; }
#search { order:2; margin-left:auto; border-color:var(--line); }
.file-table { overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:15px; }
.file-row { padding:0 18px; min-height:66px; border-color:#e9ece6; }
.file-row:last-child { border-bottom:0; }
.file-head { background:#f1f4ee; color:var(--muted); min-height:39px; font-size:.78rem; }
.file-row:not(.file-head):hover { background:#f6f8f2; }
.file-name { font-weight:550; }
.document-icon { position:relative; width:36px; height:34px; margin:0; display:grid; place-items:center; font:700 8px/1 system-ui; letter-spacing:.035em; color:#34685a; border:1px solid #ccded5; border-radius:7px; background:#edf5ed; }
.file-row .folder { margin:0 3px; }
.row-actions { border-radius:8px; background:transparent; }
.download { font-size:.83rem; color:#396054; }
#listing:not(:empty) { text-align:center; padding:44px 12px; background:#fff; border:1px dashed var(--line); border-radius:14px; }
#admin-panel,#preview { margin:0 0 0 auto; height:100dvh; max-height:100dvh; max-width:100vw; border-radius:20px 0 0 20px; padding:clamp(20px,3vw,42px); background:var(--paper); }
#admin-panel .preview-heading,#preview .preview-heading { align-items:center; padding-bottom:16px; border-bottom:1px solid var(--line); }
.preview-heading h3 { margin:0; }
#admin-tabs { margin-top:18px; }
#admin-tabs button[aria-pressed="true"],dialog .primary:not(.danger-fill),.entry .primary { background:var(--forest); color:white; }
#admin-content .admin-form { padding:18px; margin:12px 0; border-radius:14px; background:white; border:1px solid var(--line); }
.admin-list details { background:white; border-color:var(--line); }
#login .art h1 { font-family:Georgia,serif; }
#login .entry h2 { font-family:Georgia,serif; }
@media(max-width:800px) {
  .folder-banner { align-items:flex-start; flex-direction:column; gap:20px; }
  .file-row { grid-template-columns:minmax(0,1fr) 110px 95px 60px 55px 36px; }
  .tools { flex-wrap:wrap; }
}
@media(max-width:650px) {
  header { padding:0 14px; gap:8px; height:60px; }
  header img { width:95px; }
  header #admin-open { font-size:.79rem; padding:8px; }
  header .division { font-size:15px; }
  #files .workspace { padding:17px 14px 35px; }
  .folder-banner { min-height:160px; border-radius:14px; }
  .banner-actions button { padding:10px 12px; font-size:.86rem; }
  #search { order:0; flex:1 0 100%; width:100%; margin:0; }
  .tools { margin:16px 0 12px; gap:6px; }
  .file-filters button { padding:7px 9px; }
  #sort-order { margin-left:auto; max-width:110px; }
  .file-row { grid-template-columns:minmax(0,1fr) auto; padding:10px 12px; }
  .row-actions { right:8px; }
  #admin-panel,#preview { width:100%; border-radius:0; }
}


#files { display:grid; grid-template-columns:220px minmax(0,1fr); }
#files .sidebar { display:flex; flex-direction:column; padding:30px 16px 18px; background:#eceee7; border-right:1px solid var(--line); }
#files .sidebar nav { display:grid; margin:18px 0; gap:4px; width:100%; }
.sidebar nav button,.sidebar nav a { text-align:left; justify-content:flex-start; padding:12px 14px; font-size:.95rem; }
#files .sidebar .selected { margin:0; background:#d8e3d6; color:#193b34; font-weight:600; }
#files .sidebar #admin-open { margin:0; background:transparent; }
.sidebar #logout { align-self:flex-start; margin:auto 0 0; position:relative; }
#files .workspace { margin:0 auto; padding:30px clamp(16px,3.2vw,52px); }
.folder-heading { display:flex; align-items:baseline; gap:16px; flex-wrap:wrap; }
.folder-heading h2 { margin:0; color:var(--forest); font:500 clamp(28px,3vw,42px)/1.14 "Segoe UI",sans-serif; letter-spacing:-.045em; }
.folder-heading #folder-count { color:var(--muted); }
.tools { flex-wrap:wrap; margin:20px 0 16px; }
.new-control .primary { background:var(--forest); border-radius:11px; padding:10px 17px; }
#new-menu { inset:auto; position:fixed; margin:0; width:202px; padding:5px; border:1px solid var(--line); border-radius:12px; background:white; box-shadow:0 8px 28px #193b3426; }
#new-menu button { display:block; width:100%; padding:11px 12px; background:transparent; text-align:left; border-radius:8px; }
#new-menu button:hover { background:#edf3ec; }
.admin-disclosure { padding:0; margin:8px 0; border:1px solid var(--line); border-radius:10px; background:white; }
.admin-disclosure > summary { padding:11px 14px; cursor:pointer; color:var(--forest); font-weight:550; }
#admin-content .admin-disclosure .admin-form { margin:0; border:none; }
@media(max-width:1050px){ #files { grid-template-columns:175px minmax(0,1fr); } .file-row{grid-template-columns:minmax(0,1fr) 100px 85px 54px 54px 36px;} }
@media(max-width:760px){
 #files { display:block; }
 #files .sidebar { border:0; border-bottom:1px solid var(--line); display:flex; flex-direction:row; align-items:center; padding:6px 14px; gap:8px; }
 #files .sidebar nav { display:flex; width:auto; margin:0; }
 #files .sidebar strong { display:none; }
 .sidebar #logout { margin:0 0 0 auto; align-self:center; }
 #files .workspace { padding:16px 14px 32px; }
}
@media(max-width:650px){ .file-row {grid-template-columns:minmax(0,1fr) auto;} }


/* The folder masthead shares the photograph used at sign-in. */
#files .folder-heading {
  position:relative; isolation:isolate; overflow:hidden; min-height:122px;
  padding:24px clamp(20px,3vw,42px); align-content:center; align-items:center;
  background:#1c3b34; color:#fffaf0; border-radius:14px;
}
.folder-heading::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(100deg,#12372ff5 4%,#29463bcd 48%,#374e403d),url(cloud-front.jpg) center 58%/cover;
}
#files .folder-heading h2 {font:normal clamp(30px,3.4vw,54px)/1.1 Georgia,serif;color:inherit;}
.folder-heading #folder-count {color:#f2ead9;}
.view-switch {display:flex; justify-content:flex-end; gap:3px; margin:0 0 12px;}
.view-switch button {font-size:.85rem; border-radius:7px; padding:7px 12px; color:var(--forest);background:transparent;}
.view-switch button[aria-pressed="true"] {background:#e2e9de;font-weight:600;}
.file-filters button[aria-pressed="true"] {background:var(--forest);color:#fff;}
.catalog-cards.file-table {border:0;background:transparent;border-radius:0;overflow:visible;}
.catalog-cards .file-row.file-head {display:none;}
.catalog-cards #items {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(228px,100%),1fr));gap:14px;}
.catalog-cards .file-row {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;align-items:center;
  min-width:0;gap:8px;padding:12px 12px 14px;background:#fffefa;border:1px solid #d7ddd1;border-radius:15px;
  box-shadow:0 2px 5px #1a362a08;
}
.catalog-cards .file-row:hover,.catalog-cards .file-row:focus-within {border-color:#99ab99;background:#fffefa;box-shadow:0 5px 18px #193b3413;}
.catalog-cards .file-name,.catalog-cards button.file-name {
  display:flex;grid-column:1/-1;align-items:flex-start;justify-content:flex-start;flex-direction:column;
  gap:12px;width:100%;padding:0;min-width:0;color:#193b34;font-size:1.06rem;line-height:1.3;
}
.catalog-cards .file-name i {
  position:relative;display:grid;place-items:center;width:100%;height:90px;box-sizing:border-box;
  border:0;border-radius:8px;margin:0;background:linear-gradient(115deg,#eae7dc,#f3f0e9);
  color:#6c6554;font:600 20px/1 Georgia,serif;letter-spacing:.05em;
}
.catalog-cards .file-name .folder {background:linear-gradient(100deg,#c8d8cecc,#e8e8dba1),url(cloud-front.jpg) center 63%/cover;}
.catalog-cards .folder::before,.catalog-cards .folder::after {
  content:"";position:absolute;left:calc(50% - 20px);top:34px;width:40px;height:26px;border-radius:4px;background:#ab9461;
}
.catalog-cards .folder::before {top:29px;width:18px;height:10px;}
.catalog-cards [data-type=image] .document-icon {background:linear-gradient(115deg,#d6e3d9,#edf1e9);color:#365c49;}
.catalog-cards .file-row > span {font-size:.78rem;}
.catalog-cards .file-size {display:block;}
.catalog-cards .download {justify-self:end;grid-column:2;}
.catalog-cards .row-actions {position:absolute;inset:18px 18px auto auto;background:#fffef5ed;min-height:32px;min-width:32px;}
@media(max-width:650px){#files .folder-heading{min-height:98px;padding:18px;} .catalog-cards #items{grid-template-columns:repeat(auto-fill,minmax(min(175px,100%),1fr));gap:9px;} .catalog-cards .file-name i{height:74px;}}

