:root {
  color-scheme: light;
  --ink: #1c2332;
  --muted: #788194;
  --line: #edf0f4;
  --blue: #5368e8;
  --blue-dark: #4357d6;
  --surface: #fff;
  --canvas: #f7f8fa;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; color: var(--ink); background: var(--canvas); font-size: 13px; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, [contenteditable="true"]:focus-visible { outline: 3px solid #aeb8ff; outline-offset: 2px; }
.app-shell { display: flex; min-height: 100vh; }

.sidebar { width: 246px; flex: 0 0 246px; background: #fff; border-right: 1px solid #edf0f4; padding: 25px 15px 14px; display: flex; flex-direction: column; min-height: 100vh; }
.brand { display: flex; align-items: center; gap: 9px; margin: 0 0 28px 8px; font: 800 14px/1.1 "Manrope", sans-serif; letter-spacing: -.35px; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #edf0ff; }
.brand-mark svg { width: 21px; fill: #596be8; stroke: #596be8; stroke-width: 1.5; stroke-linejoin: round; }
.brand-mark circle { fill: #fff; stroke: none; }
.workspace-switcher { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 9px; background: #fafbfc; border: 1px solid #eceff3; border-radius: 9px; text-align: left; cursor: pointer; }
.workspace-avatar { width: 32px; height: 32px; border-radius: 8px; background: #28334c; color: white; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.workspace-copy, .profile-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.workspace-copy strong, .profile-copy strong { font-size: 12px; font-weight: 600; }
.workspace-copy small, .profile-copy small { color: #9299a8; font-size: 10px; }
.chevron { width: 15px; fill: none; stroke: #9299a8; stroke-width: 1.5; }
.nav-label { display: flex; align-items: center; justify-content: space-between; margin: 31px 9px 10px; color: #9aa2b1; font-weight: 700; letter-spacing: .09em; font-size: 9px; }
.main-nav { display: grid; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 11px; height: 36px; border-radius: 6px; padding: 0 10px; color: #6f7889; font-size: 12px; transition: background .15s, color .15s; }
.nav-item:hover { background: #f7f8fb; color: #313a4d; }
.nav-item.active { background: #f0f2ff; color: #5064de; font-weight: 600; }
.nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.nav-count { margin-left: auto; font-size: 10px; color: #9299a8; }
.departments-label { margin-top: 30px; }
.icon-button { border: 0; background: transparent; padding: 0; display: grid; place-items: center; cursor: pointer; }
.small-icon { width: 18px; height: 18px; color: #8590a2; font-size: 20px; font-weight: 400; }
.department-nav { gap: 2px; }
.department-item { gap: 10px; }
.active-department { color: #384258; font-weight: 600; }
.department-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 8px; }
.dot-blue { background: #6879f2; }.dot-purple { background: #a279ef; }.dot-orange { background: #efa65d; }.dot-green { background: #59b895; }
.department-lock { margin-left: auto; font-size: 7px; color: #aeb5c1; }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 12px 3px 2px; background: transparent; border: 0; border-top: 1px solid #f0f1f4; text-align: left; cursor: pointer; }
.profile-avatar, .topbar-avatar { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: #f0d7c6; color: #845844; font-size: 10px; font-weight: 700; }

.main-content { min-width: 0; flex: 1; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 43px; border-bottom: 1px solid #eceff3; background: rgba(255,255,255,.78); }
.breadcrumbs, .topbar-actions { display: flex; align-items: center; }
.breadcrumbs { gap: 10px; color: #9299a8; font-size: 11px; }
.breadcrumbs strong { color: #3a4354; font-weight: 600; }
.breadcrumbs svg { width: 12px; stroke: #b1b7c1; fill: none; stroke-width: 1.6; }
.topbar-actions { gap: 20px; }
.demo-pill { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #f0e2bd; border-radius: 20px; background: #fffaf0; color: #96723a; font-size: 10px; font-weight: 600; }
.demo-pill span { width: 6px; height: 6px; background: #e6b458; border-radius: 50%; }
.notification-button { position: relative; width: 22px; height: 25px; }
.notification-button svg { width: 19px; fill: none; stroke: #788194; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.notification-button i { position: absolute; right: 0; top: 1px; width: 5px; height: 5px; border-radius: 50%; background: #ef8175; border: 1px solid white; }
.topbar-avatar { width: 29px; height: 29px; }
.page-content { max-width: 1270px; margin: 0 auto; padding: 38px 43px 22px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #818a9b; letter-spacing: .1em; font-size: 9px; font-weight: 700; }
.eyebrow .department-dot { width: 7px; height: 7px; flex-basis: 7px; }
h1, h2, p { margin-top: 0; }
h1 { margin: 10px 0 5px; font: 700 29px/1.2 "Manrope", sans-serif; letter-spacing: -.8px; }
.page-description { margin: 0; color: #828b9b; font-size: 12px; }
.welcome-people { display: flex; align-items: center; gap: 12px; padding-bottom: 1px; }
.avatar-stack { display: flex; padding-left: 4px; }
.member-avatar { width: 28px; height: 28px; margin-left: -5px; border: 2px solid #f7f8fa; border-radius: 50%; display: grid; place-items: center; color: white; font-size: 8px; font-weight: 700; }
.member-one { background: #d28f73; }.member-two { background: #7085b9; }.member-three { background: #62a78d; }.member-four { background: #e7eaf0; color: #606b7c; }
.welcome-people > div:last-child { display: grid; gap: 3px; font-size: 10px; }
.welcome-people strong { font-size: 11px; font-weight: 600; }
.welcome-people > div:last-child span { color: #8c94a3; }
.welcome-people b { color: #7584e5; font-weight: 500; }
.department-subdivision-overview { display: grid; gap: 10px; margin-top: 20px; padding: 14px 16px; border: 1px solid #e8ebf1; border-radius: 8px; background: #fff; }
.department-subdivision-overview[hidden] { display: none; }
.department-subdivision-overview-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; }
.department-subdivision-overview-heading h2 { margin: 0; color: #3d4657; font-size: 12px; font-weight: 600; }
.department-subdivision-overview-heading small { color: #969dac; font-size: 9px; }
.department-overview-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.department-overview-filter { padding: 5px 9px; border: 1px solid #e5e9ef; border-radius: 999px; background: #fff; color: #626d7e; cursor: pointer; font-size: 9px; }
.department-overview-filter[aria-pressed="true"] { border-color: #d7dcff; background: #eef0ff; color: #596be0; }
.department-overview-note { align-self: center; color: #969dac; font-size: 9px; }
.department-overview-status:empty { display: none; }
.department-overview-staff { display: grid; }
.department-overview-person { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 0; border-top: 1px solid #f0f2f5; }
.department-overview-person-copy { display: grid; gap: 3px; min-width: 0; }
.department-overview-person-copy strong { overflow: hidden; color: #3d4657; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.department-overview-person-copy small { color: #929aaa; font-size: 9px; }
.department-overview-person-copy .department-overview-subdivision { color: #596be0; }
.department-overview-person-role { margin-left: auto; color: #818a9a; font-size: 9px; white-space: nowrap; }
.department-overview-empty { margin: 8px 0; color: #8f98a6; font-size: 10px; }
.quick-actions { display: flex; gap: 9px; margin: 26px 0 32px; }
.primary-button, .secondary-button { height: 36px; border-radius: 6px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: 11px; font-weight: 600; transition: background .15s, border-color .15s; }
.primary-button { background: #586be6; color: #fff; border: 1px solid #586be6; box-shadow: 0 2px 4px #5368e81b; }
.primary-button:hover { background: #4357d6; }
.primary-button > span { font-size: 19px; line-height: 0; font-weight: 400; margin-right: 1px; }
.primary-button svg { width: 13px; fill: none; stroke: white; stroke-width: 1.5; margin-left: 4px; }
.secondary-button { background: white; border: 1px solid #e8ebf0; color: #555f70; }
.secondary-button:hover { border-color: #cdd3e0; background: #fcfcfd; }
.secondary-button svg { width: 16px; height: 16px; fill: none; stroke: #818a9b; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.section-heading h2 { margin: 0 0 4px; font: 700 15px/1.2 "Manrope", sans-serif; letter-spacing: -.2px; }
.section-subtitle { color: #969dac; font-size: 10px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; color: #6876df; background: none; border: 0; cursor: pointer; font-size: 10px; font-weight: 600; }
.text-button span { font-size: 14px; }
.folder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.folder-card { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 67px; padding: 12px; background: #fff; border: 1px solid #eaedf2; border-radius: 8px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.folder-card:hover { border-color: #cdd4f8; transform: translateY(-1px); box-shadow: 0 4px 12px #3341550b; }
.folder-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 9px; background: #f0f2ff; color: #7482e9; }
.folder-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.folder-icon.purple { background: #f5efff; color: #9b76d9; }.folder-icon.orange { background: #fff5ea; color: #dd9d5a; }.folder-icon.green { background: #eaf8f1; color: #57aa86; }.folder-icon.pink { background: #fff0f2; color: #df8390; }
.folder-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.folder-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.folder-copy span { color: #969dac; font-size: 9px; }
.folder-menu { align-self: flex-start; margin: -4px -3px 0 0; border: 0; background: none; color: #9ca4b2; cursor: pointer; font-size: 17px; }
.files-section { margin-top: 35px; }
.files-heading { align-items: center; margin-bottom: 14px; }
.file-tools { display: flex; align-items: center; gap: 8px; }
.search-box { width: 205px; height: 32px; padding: 0 8px; display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #e8ebf0; border-radius: 6px; }
.search-box svg { width: 15px; flex: 0 0 15px; fill: none; stroke: #929aaa; stroke-width: 1.5; stroke-linecap: round; }
.search-box input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #394254; font-size: 10px; background: transparent; }
.search-box input::placeholder { color: #a0a7b3; }
.search-box kbd { white-space: nowrap; padding: 2px 4px; border: 1px solid #edf0f3; border-radius: 3px; color: #a0a7b3; font: 9px "DM Sans", sans-serif; }
.filter-button { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #e8ebf0; border-radius: 6px; background: white; color: #687284; cursor: pointer; font-size: 10px; }
.filter-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.view-toggle { display: flex; height: 32px; border: 1px solid #e8ebf0; border-radius: 6px; overflow: hidden; background: white; }
.view-button { width: 31px; display: grid; place-items: center; border: 0; background: white; color: #929aaa; cursor: pointer; }
.view-button + .view-button { border-left: 1px solid #e8ebf0; }
.view-button.selected { background: #f0f2ff; color: #5e70df; }
.view-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.filter-row { display: flex; align-items: center; gap: 4px; min-height: 38px; border-bottom: 1px solid #e9edf2; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px 10px; color: #8a93a3; font-size: 10px; cursor: pointer; }
.filter-chip.active { color: #5368df; font-weight: 600; position: relative; }
.filter-chip.active::after { content: ""; height: 2px; position: absolute; bottom: -1px; left: 9px; right: 9px; background: #6375e8; border-radius: 2px; }
.filter-chip span { padding: 2px 5px; background: #f0f2ff; color: #697ae4; border-radius: 10px; font-size: 8px; }
.sort-control { display: flex; align-items: center; gap: 5px; margin-left: auto; color: #929aaa; font-size: 9px; }
.sort-control button { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border: 0; background: transparent; color: #5f6879; font-size: 9px; cursor: pointer; }
.sort-control svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.file-list { background: #fff; }
.file-row { min-height: 57px; display: grid; grid-template-columns: minmax(220px, 1.8fr) minmax(100px, .75fr) minmax(110px, .85fr) minmax(100px, .75fr) auto 32px; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid #f0f2f5; cursor: pointer; transition: background .12s; }
.file-row:hover { background: #fbfcfe; }
.file-name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.file-icon { width: 30px; height: 34px; flex: 0 0 30px; display: grid; place-items: center; position: relative; border-radius: 4px; font: 700 10px "DM Sans", sans-serif; }
.file-icon::after { content: ""; position: absolute; right: 0; top: 0; width: 7px; height: 7px; border-radius: 0 3px 0 3px; background: #fff; opacity: .8; }
.doc-icon { color: #3976c9; background: #eaf2ff; }.sheet-icon { color: #16835d; background: #e8f7f0; }.pdf-icon { color: #dc6359; background: #fff0ee; }
.file-name-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.file-name-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; color: #374153; }
.file-name-copy small { color: #a0a7b3; font-size: 9px; }
.file-location, .file-modified, .file-size { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #818a9a; font-size: 9px; }
.file-location { display: flex; align-items: center; gap: 5px; }
.file-location svg { width: 13px; height: 13px; fill: none; stroke: #a3aab6; stroke-width: 1.2; }
.file-modified { display: flex; align-items: center; gap: 7px; }
.modified-avatar { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 50%; background: #f2dfd4; color: #95664e; font-size: 7px; font-weight: 700; }
.modified-avatar.blue { background: #dce5f8; color: #526a9a; }.modified-avatar.green { background: #dff1e8; color: #498269; }.modified-avatar.purple { background: #efe3fa; color: #805ea5; }.modified-avatar.orange { background: #ffeedc; color: #a16e36; }
.row-menu { width: 26px; height: 28px; border: 0; border-radius: 5px; background: transparent; color: #a1a8b4; cursor: pointer; font-size: 17px; }
.row-menu:hover { background: #f1f3f7; }
.row-delete { min-height: 27px; padding: 0 8px; border: 1px solid #f1d8d6; border-radius: 5px; background: #fff; color: #a64943; cursor: pointer; font-size: 9px; }
.row-delete:hover { background: #fff4f2; }.row-delete:disabled { opacity: .6; cursor: wait; }
.file-list.grid-view { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 0; background: transparent; }
.grid-view .file-row { min-width: 0; grid-template-columns: 1fr 50px 24px; grid-template-rows: auto auto; gap: 11px 7px; padding: 14px; border: 1px solid #eaedf2; border-radius: 7px; background: white; }
.grid-view .file-name-cell { grid-column: 1; }
.grid-view .file-row > .file-location { display: none; }
.grid-view .file-modified { grid-column: 1; }
.grid-view .file-size { grid-column: 2; grid-row: 2; text-align: right; }
.grid-view .row-delete { grid-column: 2; grid-row: 1; justify-self: end; }
.grid-view .row-menu { grid-column: 3; grid-row: 1; justify-self: end; }
.empty-state { text-align: center; padding: 42px 12px; color: #8a93a3; }
.empty-state > span { display: block; font-size: 27px; color: #b8bfcc; }
.empty-state strong { display: block; margin: 8px 0 4px; color: #475165; }
.empty-state p { margin: 0; font-size: 11px; }
.table-footer { height: 42px; display: flex; align-items: center; justify-content: space-between; color: #9aa2af; font-size: 9px; }
.table-footer span:last-child { display: flex; align-items: center; gap: 6px; }
.table-footer i { width: 5px; height: 5px; border-radius: 50%; background: #67be91; }
.page-footer { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 15px; border-top: 1px solid #e9edf2; color: #a0a7b3; font-size: 9px; }
.page-footer > span:last-child { display: flex; gap: 18px; }
.page-footer a:hover { color: #5d6fdf; }
.page-footer b { color: #8b96ec; font-size: 12px; }

.toast { position: fixed; z-index: 20; bottom: 24px; left: 50%; transform: translate(-50%, 10px); padding: 10px 15px; border-radius: 7px; background: #263248; color: white; font-size: 11px; box-shadow: 0 8px 24px #17203330; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 24px; background: #18213580; backdrop-filter: blur(3px); }
.modal-backdrop[hidden] { display: none; }
.editor-modal { width: min(940px, 100%); height: min(760px, 100%); display: flex; flex-direction: column; background: #f6f7f9; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 80px #11182740; }
.editor-toolbar { display: flex; align-items: center; gap: 12px; min-height: 57px; padding: 0 20px; background: white; border-bottom: 1px solid #e9edf2; }
.editor-back { border: 0; background: transparent; color: #707b8e; cursor: pointer; font-size: 20px; }
.editor-toolbar .file-icon { width: 23px; height: 27px; flex-basis: 23px; font-size: 8px; }
.editor-title-input { width: min(300px, 40vw); padding: 6px; border: 1px solid transparent; border-radius: 4px; color: #30394a; font-weight: 600; }
.editor-title-input:focus { border-color: #e1e5ed; outline: none; }
.editor-save-status { margin-left: auto; color: #7e8999; font-size: 10px; }
.editor-activity { min-height: 31px; padding: 8px 14px; border-bottom: 1px solid #e9edf2; background: #fff; color: #788294; text-align: center; font-size: 10px; }
.editor-done { padding: 7px 14px; border: 0; border-radius: 5px; background: #596ce5; color: white; cursor: pointer; font-size: 10px; font-weight: 600; }
.editor-share { min-height: 30px; padding: 0 11px; border: 1px solid #e6e9f0; border-radius: 5px; background: #fff; color: #596ce5; cursor: pointer; font-size: 10px; font-weight: 600; }
.editor-share[hidden] { display: none; }
.editor-notice { display: flex; justify-content: center; gap: 7px; padding: 10px; color: #907343; background: #fff9ec; font-size: 10px; }
.editor-notice.save-error { color: #a6443e; background: #fff1ef; }
.editor-notice span { color: #d5a843; }
.editor-notice.save-error span { color: #c65a51; }
.editor-page-wrap { flex: 1; overflow: auto; padding: 35px 20px; }
.editor-page { width: min(680px, 100%); min-height: 100%; margin: 0 auto; padding: 55px 64px; background: #fff; border: 1px solid #e9edf1; box-shadow: 0 4px 15px #27334c0a; color: #40495a; font-size: 13px; line-height: 1.8; outline: none; }
.editor-page h1 { margin-bottom: 15px; color: #252e40; font-size: 25px; }
.editor-page h2 { margin: 25px 0 8px; color: #30394b; font-size: 17px; }
.editor-page p { margin-bottom: 12px; }
.editor-page table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.editor-page th, .editor-page td { border: 1px solid #dfe3ea; padding: 6px 8px; text-align: left; }
.editor-page th { background: #f6f7fa; }

@media (max-width: 1080px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  .topbar { padding: 0 28px; }.page-content { padding: 32px 28px 20px; }
  .folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file-row { grid-template-columns: minmax(190px, 1.6fr) minmax(85px, .7fr) minmax(100px, .9fr) minmax(75px, .7fr) auto 24px; }
}
@media (max-width: 760px) {
  .sidebar { width: 62px; flex-basis: 62px; padding: 18px 8px 10px; align-items: center; }
  .brand { margin: 0 0 28px; }.brand > span:last-child, .workspace-copy, .workspace-switcher .chevron, .nav-label, .nav-item > span:not(.department-dot), .profile-copy, .profile-button .chevron { display: none; }
  .workspace-switcher { width: 42px; justify-content: center; padding: 5px; }
  .workspace-avatar { width: 31px; height: 31px; }
  .main-nav { width: 100%; margin-top: 19px; }
  .nav-item { justify-content: center; padding: 0; }.nav-item svg { width: 19px; height: 19px; }
  .department-nav { margin-top: 17px; gap: 11px; }.department-item { height: 24px; }.department-dot { width: 9px; height: 9px; flex-basis: 9px; }
  .department-lock { display: none; }.profile-button { margin-top: auto; justify-content: center; width: 100%; }.profile-avatar { width: 31px; }
  .topbar { height: 56px; padding: 0 17px; }.page-content { padding: 27px 17px 18px; }
  .welcome-row { align-items: start; gap: 14px; }.welcome-people { display: none; }
  .page-description { max-width: 440px; line-height: 1.5; }
  .quick-actions { margin: 21px 0 27px; flex-wrap: wrap; }.primary-button, .secondary-button { height: 34px; }
  .files-heading { align-items: flex-start; flex-direction: column; gap: 13px; }.file-tools { width: 100%; }.search-box { flex: 1; }
  .filter-row { overflow-x: auto; }.filter-chip { white-space: nowrap; padding-left: 7px; padding-right: 7px; }
  .file-row { grid-template-columns: minmax(0, 1fr) auto 24px; min-height: 59px; gap: 4px; }
  .file-row > .file-location, .file-row > .file-modified, .file-row > .file-size { display: none; }
  .row-delete { grid-column: 2; }.row-menu { grid-column: 3; }.file-list.grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-footer { gap: 15px; }.page-footer > span:last-child { gap: 10px; }
  .editor-modal { height: min(680px, 100%); }.editor-page { padding: 35px 25px; }
}
@media (max-width: 470px) {
  .topbar-actions { gap: 12px; }.demo-pill { font-size: 9px; padding: 5px 7px; }
  h1 { font-size: 26px; }.folder-grid { grid-template-columns: 1fr; gap: 8px; }
  .folder-card { min-height: 60px; }.files-section { margin-top: 29px; }
  .filter-button { padding: 0 7px; }.view-button { width: 28px; }
  .sort-control { display: none; }.filter-row { gap: 0; }
  .file-list.grid-view { grid-template-columns: 1fr; }.grid-view .file-row { grid-template-columns: 1fr 50px 24px; }
  .page-footer { flex-direction: column; }.page-footer > span:last-child { justify-content: space-between; }
  .editor-toolbar { gap: 4px; padding: 0 7px; }.editor-save-status { display: none; }.editor-title-input { flex: 1 1 50px; min-width: 40px; width: auto; padding: 5px 3px; font-size: 10px; }.editor-share { padding: 0 5px; font-size: 8px; }.editor-done { margin-left: auto; padding: 7px; }
}

.app-shell[hidden], .auth-screen[hidden] { display: none; }
.auth-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 18px; background: radial-gradient(ellipse at 50% 25%, #f0f2ff 0, #f8f9fb 56%); }
.auth-brand { margin: 0 0 28px; }
.auth-card { width: min(440px, 100%); padding: 32px; border: 1px solid #e8ebf1; border-radius: 12px; background: #fff; box-shadow: 0 15px 50px #26334c0d; }
.auth-kicker { display: flex; align-items: center; gap: 7px; color: #858ea0; letter-spacing: .08em; font-size: 9px; font-weight: 700; }
.auth-card h1 { margin: 13px 0 5px; font-size: 26px; }
.auth-description { margin: 0 0 22px; color: #848d9c; font-size: 12px; line-height: 1.5; }
.auth-setup-notice { margin-bottom: 17px; padding: 11px 12px; border: 1px solid #f0dfb8; border-radius: 6px; background: #fffaf0; color: #806b43; font-size: 11px; line-height: 1.55; }
.auth-form { display: grid; gap: 13px; }
.auth-form[hidden], .auth-switch[hidden] { display: none; }
.auth-signout[hidden], .demo-link[hidden], .invite-form[hidden] { display: none; }
.auth-form label, .invite-form label { display: grid; gap: 6px; color: #555f70; font-size: 10px; font-weight: 600; }
.auth-form input, .invite-form input { width: 100%; height: 38px; padding: 0 11px; border: 1px solid #e5e9ef; border-radius: 6px; background: white; color: #313a4b; font-size: 11px; }
.auth-form input::placeholder, .invite-form input::placeholder { color: #a4abb7; }
.auth-submit { min-height: 37px; border: 0; border-radius: 6px; background: #586be6; color: #fff; cursor: pointer; font-size: 11px; font-weight: 600; }
.auth-submit:hover { background: #4357d6; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
.auth-footnote { margin: -2px 0 0; color: #9098a6; font-size: 10px; line-height: 1.5; }
.auth-switch { margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f2f5; color: #858d9c; text-align: center; font-size: 10px; }
.auth-switch button, .demo-link { padding: 0; border: 0; background: transparent; color: #586be6; cursor: pointer; font-size: inherit; font-weight: 600; }
.auth-status { min-height: 17px; margin: 12px 0 0; color: #b35348; text-align: center; font-size: 10px; line-height: 1.5; }
.auth-status.success { color: #3a8b68; }
.demo-link { display: block; margin: 11px auto 0; color: #969dac; font-size: 9px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.auth-signout { display: block; margin: 10px auto 0; padding: 5px 8px; border: 0; background: transparent; color: #6876df; cursor: pointer; font-size: 10px; }
.auth-footer { margin: 21px 0 0; color: #a0a7b3; font-size: 9px; }
.sign-out-label { margin-left: auto; color: #7d8798; font-size: 10px; font-weight: 500; }
.profile-button:hover .sign-out-label { color: #5165df; }
.manage-staff-link { padding: 0; border: 0; background: none; color: #8c94a3; text-align: left; font-size: 10px; cursor: pointer; }
.manage-staff-link:hover { color: #596ce5; }
.staff-modal { width: min(510px, 100%); max-height: min(660px, 100%); overflow: auto; padding: 23px; border-radius: 10px; background: white; box-shadow: 0 24px 80px #11182740; }
.staff-modal-header { display: flex; justify-content: space-between; gap: 15px; }
.staff-modal-header h2 { margin: 0 0 5px; font: 700 17px "Manrope", sans-serif; }
.staff-modal-header p { margin: 0; color: #8992a1; font-size: 10px; }
.staff-close { width: 28px; height: 28px; border: 0; border-radius: 5px; background: #f5f6f8; color: #788294; cursor: pointer; font-size: 20px; }
.staff-department-picker { display: grid; gap: 7px; margin-top: 18px; }
.staff-department-picker label { color: #555f70; font-size: 10px; font-weight: 600; }
.staff-department-picker select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #e5e9ef; border-radius: 6px; background: white; color: #313a4b; font-size: 11px; }
.staff-department-picker select:disabled { background: #f7f8fa; color: #788294; }
.staff-department-picker small { color: #969dac; font-size: 9px; }
.department-subdivision-panel { display: grid; gap: 8px; margin-top: 15px; padding: 11px; border: 1px solid #edf0f4; border-radius: 7px; background: #fafbfd; }
.department-subdivision-panel h3 { margin: 0; color: #555f70; font-size: 10px; font-weight: 600; }
.department-subdivision-list { display: flex; flex-wrap: wrap; gap: 6px; }
.department-subdivision-tag { padding: 4px 8px; border-radius: 999px; background: #eef0ff; color: #596be0; font-size: 9px; }
.department-subdivision-empty { margin: 0; color: #969dac; font-size: 9px; }
.invite-form { display: grid; gap: 8px; margin-top: 21px; padding: 14px; border: 1px solid #edf0f4; border-radius: 7px; background: #fafbfd; }
.invite-form input, .invite-form select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #e5e9ef; border-radius: 6px; background: white; color: #313a4b; font-size: 11px; }
.invite-form .auth-submit { margin-top: 4px; }
.invite-form small { color: #969dac; font-size: 9px; }
.subdivision-fieldset { display: grid; gap: 8px; min-width: 0; margin: 4px 0 0; padding: 11px; border: 1px solid #e5e9ef; border-radius: 6px; }
.subdivision-fieldset legend { padding: 0 4px; color: #555f70; font-size: 10px; font-weight: 600; }
.subdivision-fieldset legend span { margin-left: 4px; color: #969dac; font-size: 9px; font-weight: 400; }
.subdivision-fieldset > small { margin-top: -3px; }
.subdivision-list { display: grid; gap: 7px; }
.subdivision-row { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 6px; align-items: center; }
.subdivision-row input { min-width: 0; }
.remove-subdivision-button { height: 30px; border: 1px solid #e5e9ef; border-radius: 5px; background: white; color: #788294; cursor: pointer; font-size: 17px; }
.add-subdivision-button { justify-self: start; padding: 2px 0; border: 0; background: transparent; color: #586be6; cursor: pointer; font-size: 10px; font-weight: 600; }
.temporary-password-result { margin-top: 14px; padding: 13px; border: 1px solid #bfe2ce; border-radius: 7px; background: #f0fbf4; color: #355b46; font-size: 10px; line-height: 1.55; }
.temporary-password-result strong { display: block; margin: 5px 0; color: #244b34; font: 700 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; user-select: all; }
.temporary-password-result button { margin-top: 8px; padding: 6px 9px; border: 1px solid #cfe7d7; border-radius: 5px; background: white; color: #42654f; cursor: pointer; font-size: 9px; }
.staff-list { display: grid; gap: 1px; margin-top: 18px; }
.staff-person { display: flex; align-items: center; gap: 10px; min-height: 49px; border-bottom: 1px solid #f0f2f5; }
.staff-person .profile-avatar { width: 29px; height: 29px; flex: 0 0 29px; }
.staff-person-copy { display: grid; gap: 3px; min-width: 0; }
.staff-person-copy strong { overflow: hidden; color: #3d4657; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.staff-person-copy small { color: #929aaa; font-size: 9px; }
.staff-person-copy .staff-person-subdivision { color: #596be0; }
.staff-person-role { margin-left: auto; color: #818a9a; font-size: 9px; }
.remove-share-button { flex: 0 0 28px; }
.staff-empty { margin: 18px 0 0; color: #8f98a6; text-align: center; font-size: 10px; }
.staff-modal .auth-status { text-align: left; }
@media (max-width: 760px) {
  .profile-button .sign-out-label { display: none; }
  .auth-screen { justify-content: flex-start; padding-top: max(45px, 9vh); }
  .welcome-row { flex-wrap: wrap; }
  .welcome-people { display: flex; width: 100%; margin-top: 3px; padding-top: 9px; border-top: 1px solid #e9edf2; }
  .avatar-stack { display: none; }
  .departments-label { display: flex; justify-content: center; margin: 15px 0 0; font-size: 0; }
}
@media (max-width: 470px) {
  .auth-card { padding: 25px 20px; }
  .staff-modal { padding: 18px; }
}
.editor-page-wrap[hidden], .spreadsheet-editor[hidden] { display: none; }
.spreadsheet-editor { min-height: 0; flex: 1; display: flex; flex-direction: column; background: #f3f5f7; color: #24292f; font-family: "Aptos", "Segoe UI", Arial, sans-serif; }
.spreadsheet-titlebar { display: flex; align-items: center; gap: 14px; min-height: 30px; padding: 3px 14px; background: #fff; color: #53606e; font-size: 10px; }
.sheet-save-status { color: #53606e; }
.excel-autosave { display: inline-flex; align-items: center; gap: 5px; color: #697586; }
.excel-autosave > span { width: 7px; height: 7px; border-radius: 50%; background: #1a9b5b; }
.excel-ribbon { background: #fff; border-bottom: 1px solid #d5dbe2; }
.excel-ribbon-tabs { display: flex; align-items: stretch; gap: 2px; padding: 0 16px; border-bottom: 1px solid #e5e8ec; }
.excel-ribbon-tabs button { position: relative; min-width: 56px; padding: 8px 11px 9px; border: 0; background: transparent; color: #424b57; cursor: pointer; font-size: 11px; }
.excel-ribbon-tabs button:hover, .excel-ribbon-tabs button.selected { background: #f2f7f4; color: #156b3e; }
.excel-ribbon-tabs button.selected::after { position: absolute; right: 9px; bottom: -1px; left: 9px; height: 2px; background: #16834b; content: ""; }
.excel-ribbon-panel { display: flex; align-items: stretch; min-height: 77px; gap: 0; padding: 6px 12px 4px; overflow-x: auto; }
.excel-ribbon-panel[hidden] { display: none; }
.excel-ribbon-group { display: flex; min-width: max-content; flex-direction: column; justify-content: space-between; gap: 3px; padding: 0 10px; border-right: 1px solid #e4e7eb; }
.excel-ribbon-group:first-child { padding-left: 3px; }
.excel-ribbon-group:last-child { border-right: 0; }
.excel-ribbon-group > span { color: #77818e; font-size: 9px; text-align: center; }
.excel-ribbon-group-tools { display: flex; align-items: center; gap: 4px; min-height: 43px; }
.excel-ribbon-group-tools button { min-width: 28px; height: 28px; padding: 0 7px; border: 1px solid transparent; border-radius: 3px; background: #fff; color: #303945; cursor: pointer; font-size: 11px; }
.excel-ribbon-group-tools button:hover { border-color: #c5d4cb; background: #f1f7f3; }
.excel-ribbon-group-tools button:disabled { color: #a4abb4; cursor: default; }
.excel-font-tools { flex-wrap: wrap; max-width: 260px; }
.excel-font-tools select, #numberFormatSelect { height: 25px; padding: 0 5px; border: 1px solid #d5dbe2; border-radius: 3px; background: #fff; color: #303945; font: inherit; font-size: 10px; }
.excel-font-tools select:first-child { width: 105px; }
.excel-font-tools select:nth-child(2) { width: 48px; }
.excel-color-tool { position: relative; display: inline-grid; width: 26px; height: 24px; place-items: center; border-bottom: 3px solid #263142; color: #263142; cursor: pointer; font-size: 14px; font-weight: 700; }
.excel-color-tool input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fill-color-tool { border-bottom-color: #f1c232; }
.excel-calculation-note { color: #596576; font-size: 10px; white-space: nowrap; }
.excel-zoom-control { display: flex; align-items: center; gap: 7px; color: #596576; font-size: 10px; }
.excel-zoom-control input { width: 120px; }
.spreadsheet-formula-bar { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 4px 12px; border-bottom: 1px solid #d5dbe2; background: #fff; }
.spreadsheet-formula-bar #selectedCellName { width: 68px; height: 25px; padding: 0 5px; border: 1px solid #d5dbe2; border-radius: 2px; background: #fff; color: #303945; font: inherit; font-size: 10px; }
.spreadsheet-formula-bar .formula-fx { min-width: 22px; color: #65707c; font: italic 600 12px Georgia, serif; }
.spreadsheet-formula-bar #formulaInput { min-width: 0; height: 25px; flex: 1; padding: 0 7px; border: 1px solid #d5dbe2; border-radius: 2px; background: #fff; color: #303945; font: inherit; font-size: 11px; }
.spreadsheet-formula-bar input:read-only { background: #fafbfc; color: #788294; }
.spreadsheet-grid-wrap { flex: 1; overflow: auto; padding: 0; background: #f0f2f4; }
.spreadsheet-grid { width: max-content; min-width: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: #fff; border-top: 1px solid #c9cfd6; border-left: 1px solid #c9cfd6; }
.spreadsheet-grid th, .spreadsheet-grid td { height: 25px; min-width: 95px; padding: 0; border-right: 1px solid #d7dce1; border-bottom: 1px solid #d7dce1; }
.spreadsheet-grid th { position: sticky; z-index: 2; top: 0; width: 43px; min-width: 43px; background: #f0f2f4; color: #586370; text-align: center; font-size: 10px; font-weight: 500; }
.spreadsheet-grid th.sheet-label { position: sticky; z-index: 3; left: 0; width: 43px; min-width: 43px; }
.spreadsheet-grid th:not(.sheet-label) { width: auto; min-width: 48px; position: sticky; }
.spreadsheet-grid th.sheet-heading { background: #e8ebee; color: #515c68; font-weight: 600; }
.spreadsheet-grid td { min-width: 48px; background: #fff; }
.spreadsheet-grid input:disabled { background: #fafbfc; color: #788294; cursor: default; }
.spreadsheet-grid td input { display: block; width: 100%; height: 24px; padding: 0 5px; border: 0; outline: 0; background: transparent; color: #263142; font-size: 11px; }
.spreadsheet-grid td input:focus { position: relative; z-index: 1; outline: 2px solid #16834b; outline-offset: -2px; }
.sheet-column-resize-handle { position: absolute; z-index: 4; top: 0; right: -7px; bottom: 0; width: 14px; cursor: col-resize; touch-action: none; }
.sheet-column-resize-handle::after { position: absolute; top: 5px; bottom: 5px; left: 6px; width: 2px; border-radius: 2px; background: #aeb8c2; content: ""; pointer-events: none; }
.sheet-column-resize-handle:hover::after { left: 5px; width: 4px; background: #16834b; }
.column-width-tools button { white-space: nowrap; }
body.resizing-sheet-column { cursor: col-resize; user-select: none; }
.spreadsheet-grid tr:first-child td { background: #fff; }
.excel-sheetbar { display: flex; align-items: center; min-height: 30px; gap: 8px; padding: 0 11px; border-top: 1px solid #cfd5dc; background: #fff; }
.excel-sheetbar > button { width: 23px; height: 23px; border: 0; border-radius: 3px; background: #fff; color: #3e7357; cursor: pointer; font-size: 17px; }
.excel-sheetbar > button:hover { background: #edf5f0; }
#spreadsheetSheetTabs { display: flex; min-width: 0; flex: 1; align-self: stretch; align-items: stretch; gap: 1px; overflow-x: auto; }
#spreadsheetSheetTabs button { min-width: 74px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: #fff; color: #586370; cursor: pointer; font-size: 10px; }
#spreadsheetSheetTabs button:hover { background: #f4f7f5; }
#spreadsheetSheetTabs button.selected { border-bottom-color: #16834b; background: #f7faf8; color: #246846; }
#spreadsheetStatus { margin-left: auto; color: #77818e; font-size: 9px; white-space: nowrap; }
.spreadsheet-footer { display: flex; align-items: center; justify-content: space-between; min-height: 22px; padding: 0 12px; border-top: 1px solid #e5e8ec; background: #f7f8f9; color: #77818e; font-size: 9px; }
.department-assignment { margin: 6px 0 0; color: #647086; font-size: 12px; }
@media (max-width: 470px) {
  .excel-ribbon-tabs { padding: 0 6px; }
  .excel-ribbon-tabs button { min-width: 48px; padding: 8px 7px; }
  .excel-ribbon-panel { padding-right: 6px; padding-left: 6px; }
  .excel-ribbon-group { padding-right: 7px; padding-left: 7px; }
  .spreadsheet-titlebar { gap: 7px; padding-right: 8px; padding-left: 8px; }
  .spreadsheet-footer span:last-child { max-width: 58%; text-align: right; }
}
