:root {
  --ink: #17312c;
  --muted: #687b76;
  --cream: #f4f0e6;
  --paper: #fbfaf5;
  --line: #dcded5;
  --accent: #dc6b45;
  --green: #789b83;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.account-actions { display:flex; align-items:center; gap:16px; }
.logout-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 14px; border:1px solid var(--line); border-radius:10px; background:var(--paper); color:var(--ink); text-decoration:none; font-size:14px; white-space:nowrap; }
.logout-button:hover { background:var(--cream); border-color:var(--muted); }
.logout-button:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
.topbar { height: 82px; padding: 0 max(24px, 5vw); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(23,49,44,.12); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50% 50% 48% 35%; color: var(--cream); background: var(--ink); font: 700 24px Georgia, serif; }.brand-crest { width:60px; height:54px; object-fit:contain; border-radius:9px; background:white; box-shadow:0 4px 13px rgba(23,49,44,.13); }
.brand strong, .brand small { display: block; }.brand strong { letter-spacing: .16em; }.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.connection { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #d2a64b; box-shadow: 0 0 0 4px rgba(210,166,75,.15); }
.status-dot.ready { background: #669676; box-shadow: 0 0 0 4px rgba(102,150,118,.15); }
.heritage-banner { height:clamp(54px,8vw,94px); display:flex; align-items:center; justify-content:center; overflow:hidden; background:linear-gradient(90deg,#10231f,var(--ink),#10231f); border-bottom:3px solid #c9a146; }.heritage-banner img { width:min(1280px,92vw); height:76%; object-fit:contain; filter:drop-shadow(0 3px 7px rgba(0,0,0,.22)); }
main { width: min(1160px, calc(100% - 48px)); margin: auto; }
.hero { min-height: 430px; display: grid; grid-template-columns: 1fr; align-items: center; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 15px 0; font: 500 clamp(46px, 7vw, 83px)/.96 Georgia, serif; letter-spacing: -.04em; }
h1 em { color: var(--accent); font-weight: 400; }
.intro { max-width: 540px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.shape { justify-self: center; width: min(330px, 28vw); aspect-ratio: 1; display: grid; place-items: center; border-radius: 63% 37% 55% 45% / 42% 58% 42% 58%; background: var(--ink); transform: rotate(7deg); box-shadow: 28px 28px 0 #e6bba9; }
.shape span { color: var(--cream); font: 500 clamp(24px,4vw,48px) Georgia, serif; letter-spacing: .15em; transform: rotate(-7deg); }
.dashboard { display:grid; grid-template-columns:1fr; margin-bottom:85px; }
.card { border-radius: 18px; min-height: 215px; padding: 27px; box-shadow: 0 14px 40px rgba(31,48,43,.07); }
.event-card { color: white; background: var(--ink); }.card-heading { display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: #bdcbc6; }
.live-pill { background: rgba(255,255,255,.1); padding: 6px 10px; border-radius: 99px; }
.event { display: grid; grid-template-columns: 82px 1fr; gap: 24px; align-items: center; margin-top: 25px; }
.date-block { border-right: 1px solid rgba(255,255,255,.2); }.date-block strong { display: block; font: 52px/.9 Georgia,serif; }.date-block span { color: #bdcbc6; font-size: 12px; text-transform: uppercase; }
.event h3 { font: 400 25px Georgia, serif; margin: 0 0 12px; }.event p { margin: 5px 0; color: #c6d0cd; font-size: 14px; }
.stats-card { background: var(--paper); display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; text-align: center; }.stats-card div { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }.stats-card .divider { height: 80px; background: var(--line); }.big-number { color: var(--accent); font: 54px Georgia,serif; }
.calendar-section { margin-bottom:85px; }.calendar-title-row { align-items:center; }.calendar-settings label { color:var(--muted); font-size:13px; }.calendar-settings select { margin-left:8px; padding:10px 32px 10px 11px; border:1px solid var(--line); border-radius:9px; background:var(--paper); color:var(--ink); }.calendar-panel { border:1px solid var(--line); border-radius:16px; background:var(--paper); overflow:hidden; box-shadow:0 14px 40px rgba(31,48,43,.05); }.calendar-toolbar { min-height:66px; padding:12px 18px; display:flex; align-items:center; justify-content:space-between; gap:15px; border-bottom:1px solid var(--line); }.view-tabs { display:flex; padding:3px; border-radius:10px; background:#e9e8df; }.view-tab { border:0; background:transparent; padding:8px 13px; }.view-tab.active { background:var(--paper); box-shadow:0 2px 7px rgba(23,49,44,.1); }.calendar-navigation { display:flex; gap:6px; }.calendar-navigation button { padding:8px 12px; }.calendar-period { padding:18px 22px 9px; font:25px Georgia,serif; }.calendar-content { padding:12px 22px 22px; min-height:180px; }.agenda-item { display:grid; grid-template-columns:64px 1fr auto; gap:18px; align-items:center; min-height:82px; border-bottom:1px solid #e5e5dd; }.agenda-item:last-child { border:0; }.agenda-date { text-align:center; color:var(--muted); font-size:11px; text-transform:uppercase; }.agenda-date strong { display:block; color:var(--accent); font:31px Georgia,serif; }.agenda-item h3 { margin:0 0 5px; font:19px Georgia,serif; }.agenda-item p { margin:0; color:var(--muted); font-size:13px; }.agenda-time { color:var(--ink); font-weight:650; font-size:13px; }.calendar-grid { display:grid; border-top:1px solid var(--line); border-left:1px solid var(--line); }.calendar-grid.month-grid { grid-template-columns:repeat(7,1fr); }.calendar-grid.week-grid { grid-template-columns:repeat(7,1fr); }.calendar-weekday { padding:8px 5px; text-align:center; color:var(--muted); font-size:11px; font-weight:700; text-transform:uppercase; background:#f0efe8; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }.calendar-day { min-height:112px; padding:8px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); overflow:hidden; }.calendar-day.outside { background:#f2f1eb; color:#a5aea9; }.calendar-day.today { box-shadow:inset 0 0 0 2px var(--accent); }.day-number { display:block; margin-bottom:7px; font-size:12px; font-weight:700; }.calendar-chip { display:block; width:100%; margin:3px 0; padding:5px 6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; border-radius:5px; color:white; background:var(--ink); font-size:10px; }.day-view { display:grid; gap:10px; }.day-event { padding:17px 18px; border-left:4px solid var(--accent); border-radius:8px; background:#f0efe8; }.day-event strong { display:block; margin-bottom:5px; }.empty-calendar { padding:35px 0; text-align:center; color:var(--muted); }
.documents { margin-bottom: 80px; }.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }.section-title h2 { font: 48px Georgia,serif; margin: 0; }.section-title .eyebrow { margin-bottom: 7px; }
button { border: 1px solid var(--line); border-radius: 10px; padding: 11px 15px; background: var(--paper); color: var(--ink); cursor: pointer; } button:hover { border-color: var(--green); }
.file-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 14px 40px rgba(31,48,43,.05); }.breadcrumb { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; display:flex; align-items:center; gap:3px; overflow-x:auto; }.crumb { border:0; background:transparent; padding:6px; white-space:nowrap; color:var(--muted); }.crumb:hover { color:var(--accent); }.crumb-separator { color:#adb6b2; }
.file-row { min-height:66px; display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:12px; padding:10px 22px; border-bottom:1px solid #e6e7e0; }.file-row:last-child { border:0; }.file-row.folder-row,.file-row.preview-file-row { cursor:pointer; }.file-row.folder-row:hover,.file-row.preview-file-row:hover { background:#f7f5ed; }.file-icon { width:38px; height:38px; display:block; background-repeat:no-repeat; background-position:center; background-size:contain; }.icon-folder { background-image:url('/assets/file-icons/folder.png?v=3'); }.icon-pdf { background-image:url('/assets/file-icons/pdf.png?v=3'); }.icon-word { background-image:url('/assets/file-icons/word.png?v=3'); }.icon-excel { background-image:url('/assets/file-icons/excel.png?v=3'); }.icon-image { background-image:url('/assets/file-icons/image.png?v=3'); }.icon-archive { background-image:url('/assets/file-icons/archive.png?v=3'); }.icon-video { background-image:url('/assets/file-icons/video.png?v=3'); }.icon-audio { background-image:url('/assets/file-icons/audio.png?v=3'); }.icon-presentation { background-image:url('/assets/file-icons/presentation.png?v=3'); }.file-name { font-weight:650; }.file-meta { color:var(--muted); font-size:12px; margin-top:3px; }.file-kind { color:var(--muted); font-size:12px; text-transform:uppercase; }.file-actions { display:flex; gap:7px; align-items:center; }.download-link,.preview-button,.office-button { text-decoration:none; border:1px solid var(--line); border-radius:8px; padding:8px 10px; color:var(--ink); background:transparent; font-size:12px; white-space:nowrap; }.download-link:hover,.preview-button:hover,.office-button:hover { border-color:var(--green); }
.preview-dialog { width:min(1100px,calc(100% - 30px)); height:min(820px,calc(100% - 30px)); border:0; border-radius:18px; padding:0; background:var(--paper); box-shadow:0 30px 90px rgba(0,0,0,.35); }.preview-dialog::backdrop { background:rgba(12,27,24,.72); }.preview-header { min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 18px 10px 24px; border-bottom:1px solid var(--line); }.preview-header > div { display:flex; gap:9px; align-items:center; }.preview-header #closePreview { font-size:23px; padding:4px 11px; }.preview-body { height:calc(100% - 64px); display:grid; place-items:center; background:#dedfd8; }.preview-body iframe,.preview-body img,.preview-body video { width:100%; height:100%; border:0; object-fit:contain; }.preview-body audio { width:min(680px,calc(100% - 40px)); }
.loading, .error { padding: 28px 0; color: #bdcbc6; }.file-list > .loading, .file-list > .error { color: var(--muted); padding: 28px 22px; }.error { color: #a84f38 !important; }
footer { width: min(1160px, calc(100% - 48px)); margin: auto; padding: 28px 0 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.login-page { display:grid; place-items:center; background:var(--ink); padding:24px; }.login-shell { width:min(920px,100%); }.login-card { background:var(--cream); padding:clamp(35px,7vw,80px); border-radius:28px; box-shadow:24px 24px 0 var(--accent); }.login-crest { display:block; width:84px; height:76px; object-fit:contain; margin-bottom:18px; border-radius:11px; background:white; box-shadow:0 5px 16px rgba(23,49,44,.14); }.login-card h1 { font-size:clamp(48px,8vw,80px); }.login-card .intro { margin-bottom:36px; }.login-button { display:inline-block; background:var(--ink); color:white; text-decoration:none; padding:15px 20px; border-radius:10px; font-weight:700; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding: 65px 0; }.shape { display:none; }.dashboard { grid-template-columns: 1fr; margin-bottom: 60px; }.topbar { padding:0 15px; }.brand-crest { width:50px; height:46px; }.connection span:last-child { display:none; } main, footer { width: min(100% - 30px, 1160px); }.stats-card { min-height: 170px; }.calendar-title-row { align-items:flex-end; }.calendar-settings label { font-size:0; }.calendar-settings select { margin:0; font-size:13px; }.calendar-toolbar { align-items:stretch; flex-direction:column; }.view-tabs { justify-content:space-between; }.view-tab { flex:1; padding:8px 5px; }.calendar-navigation { justify-content:center; }.calendar-content { padding:8px 10px 16px; overflow-x:auto; }.calendar-grid { min-width:700px; }.agenda-item { grid-template-columns:52px 1fr; padding:10px 0; }.agenda-time { grid-column:2; }.file-kind { display:none; }.file-row { grid-template-columns:42px 1fr; }.file-actions { grid-column:2; }.file-actions .download-link { display:none; }.preview-dialog { width:100%; height:100%; max-width:none; max-height:none; border-radius:0; }.preview-header { align-items:flex-start; padding:10px 12px; }.preview-header strong { max-width:38%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.preview-header > div { gap:6px; }.preview-header .download-link,.preview-header .office-button { padding:7px 8px; font-size:11px; } }


.file-name-button { border:0; padding:0; background:transparent; text-align:left; font:inherit; font-weight:650; }
.file-name-button:hover { text-decoration:underline; }

/* Small usability improvements within the existing layout. */
.signed-in-user { font-size:13px; max-width:260px; overflow-wrap:anywhere; }
.document-tools { display:flex; flex-wrap:wrap; align-items:end; gap:16px; padding:18px 22px; border-bottom:1px solid var(--line); }
.document-tools label { display:grid; gap:6px; font-size:12px; color:var(--muted); }
.document-tools label:first-child { flex:1; min-width:180px; }
.document-tools input,.document-tools select { font:inherit; font-size:14px; color:var(--ink); padding:11px 12px; min-height:44px; border:1px solid var(--line); border-radius:9px; background:var(--paper); max-width:100%; }
#fileCount { font-size:12px; color:var(--muted); padding-bottom:12px; }
button,a,input,select { touch-action:manipulation; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.file-row > div { min-width:0; }.file-name-button,.file-name { overflow-wrap:anywhere; }.breadcrumb { flex-wrap:wrap; }
.file-list > .logout-button,.file-list > button { margin:0 22px 22px; }
.preview-header strong { overflow-wrap:anywhere; }
@media(max-width:760px) {
  .topbar { height:auto; min-height:82px; gap:12px; padding-top:12px; padding-bottom:12px; }
  .account-actions { flex-wrap:wrap; justify-content:flex-end; gap:8px; max-width:60%; }
  .signed-in-user { flex-basis:100%; text-align:right; font-size:12px; }
  .account-actions .connection { display:none; }
  .file-actions { flex-wrap:wrap; }.file-actions .download-link { display:inline-flex; }
  .file-actions a,.file-actions button,.crumb { min-height:44px; }
  .document-tools { padding:16px; gap:12px; }.document-tools label:first-child { flex-basis:100%; }
  .preview-header strong { max-width:calc(100% - 54px); white-space:normal; }
  .hero h1 { font-size:clamp(35px,8vw,60px); }
}
