:root {
  color-scheme: light;
  --bg: #f8fafd;
  --surface: #fff;
  --text: #1f1f1f;
  --muted: #646b72;
  --border: #e4e7eb;
  --primary: #0b57d0;
  --primary-soft: #d3e3fd;
  --primary-text: #fff;
  --ok: #137333;
  --warn: #8a5300;
  --danger: #b3261e;
  --code: #f1f3f4;
  --sidebar-width: 244px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  min-height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
  border: 0;
}
button:disabled,
.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: var(--primary);
}
button,
a {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 1px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  font-weight: 450;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  pointer-events: none;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.icon-button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: transparent;
  color: #444746;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #e4e8ed;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid #c4c7c5;
  border-radius: 22px;
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  background: #f0f5ff;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: #084ab4;
  box-shadow: 0 1px 3px #0b57d033;
}
.btn-small {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 13px;
}
.btn:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.spacer {
  flex: 1;
}
/* Application shell */
.topbar {
  height: 80px;
  padding: 12px 22px 12px 18px;
  display: grid;
  grid-template-columns:
    calc(var(--sidebar-width) - 18px) minmax(220px, 720px)
    1fr;
  gap: 0;
  align-items: center;
}
.brand-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  width: fit-content;
  color: #444746;
  font-size: 23px;
  font-weight: 450;
  text-decoration: none;
  letter-spacing: -0.7px;
  white-space: nowrap;
}
.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}
.searchbar {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 54px;
  border-radius: 28px;
  background: #e9eef6;
  padding: 0 18px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.searchbar:focus-within {
  background: #fff;
  box-shadow:
    0 1px 3px #3c40434d,
    0 2px 7px #3c404326;
}
.searchbar > .icon {
  color: #444746;
}
.searchbar input {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  outline: none;
  min-width: 0;
  width: 100%;
  height: 100%;
  font-size: 16px;
  color: var(--text);
}
.searchbar input::placeholder {
  color: #59616b;
  opacity: 1;
}
.searchbar input::-webkit-search-cancel-button {
  display: none;
}
.searchbar input:focus-visible {
  outline: none;
}
.search-hint {
  border: 1px solid #c9d0da;
  border-radius: 5px;
  line-height: 21px;
  min-width: 23px;
  text-align: center;
  color: #737b86;
  font-size: 13px;
}
.searchbar:focus-within .search-hint {
  display: none;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
  padding-left: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #9aa0a6;
  border-radius: 50%;
}
.badge-ok::before {
  background: #34a853;
  box-shadow: 0 0 0 3px #e6f4ea;
}
.badge-off::before {
  background: #df950d;
}
.badge-off {
  color: var(--warn);
}
.account {
  position: relative;
}
.account-button {
  background: #e0eaf8;
  padding: 4px;
  border-radius: 50%;
  width: 43px;
  height: 43px;
}
.account-button:hover {
  background: #cad9ef;
}
#user-avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #39604b;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.account-menu {
  position: absolute;
  top: 54px;
  right: 0;
  min-width: 280px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 24px #26344624;
  border: 1px solid var(--border);
  z-index: 40;
}
.account-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.me {
  display: block;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.account-logout {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: #444746;
  font-size: 13px;
}
.account-logout:hover {
  color: var(--primary);
}
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  align-items: start;
}
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 0 12px 20px;
  min-height: calc(100dvh - 80px);
  position: sticky;
  top: 0;
}
.new-button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px 18px 20px;
  margin: 0 0 24px 4px;
  align-self: flex-start;
  min-height: 61px;
  border-radius: 17px;
  background: #fff;
  font-weight: 550;
  font-size: 15px;
  box-shadow:
    0 1px 3px #3c40434d,
    0 2px 3px #3c40431a;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.new-button .icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.8;
}
.new-button:hover {
  background: #edf3fe;
  box-shadow: 0 3px 7px #3c40432e;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.side-nav > button {
  display: flex;
  align-items: center;
  gap: 17px;
  border-radius: 24px;
  min-height: 43px;
  padding: 10px 18px;
  background: transparent;
  text-align: left;
  font-size: 14px;
  color: #444746;
  white-space: nowrap;
}
.side-nav > button:hover {
  background: #e8edf4;
}
.side-nav > button.active {
  background: var(--primary-soft);
  color: #001d35;
  font-weight: 600;
}
.side-nav > button .icon {
  width: 20px;
  height: 20px;
}
.nav-divider {
  height: 1px;
  margin: 18px 17px;
  background: var(--border);
}
.pill {
  min-width: 21px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e8def8;
  color: #483c61;
  font-size: 11px;
  line-height: 20px;
  margin-left: auto;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 54px 18px 10px;
  color: #444746;
}
.storage-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  white-space: nowrap;
}
.storage-heading .icon {
  width: 20px;
  height: 20px;
}
.storage-summary {
  margin: 9px 0 0 32px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.privacy-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-top: 1px solid var(--border);
  margin-top: 26px;
  padding-top: 18px;
  font-size: 11px;
  line-height: 1.7;
  color: #53665a;
}
.privacy-note .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.privacy-note span span {
  color: var(--muted);
  font-size: 10px;
}
.mobile-menu,
.sidebar-overlay {
  display: none;
}
main {
  min-width: 0;
  padding: 0 18px 18px 0;
  outline: none;
}
.content-panel {
  min-height: calc(100dvh - 98px);
  background: #fff;
  border-radius: 23px;
  padding: 28px 30px;
}
.view {
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.heading-copy {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.heading-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.heading-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}
.page-description {
  color: var(--muted);
  margin-top: 7px;
  font-size: 14px;
}
.layout-switch {
  display: flex;
  height: 34px;
  border: 1px solid #aeb6bc;
  border-radius: 18px;
  overflow: hidden;
}
.layout-switch button {
  display: grid;
  place-items: center;
  background: transparent;
  width: 45px;
  color: #444746;
}
.layout-switch button + button {
  border-left: 1px solid #aeb6bc;
}
.layout-switch button.active,
.layout-switch button[aria-pressed="true"] {
  background: #d3e3fd;
  color: #174ea6;
}
.layout-switch button:hover {
  background: #e9f0fa;
}
.layout-switch button:focus-visible {
  outline-offset: -3px;
}
.layout-switch .icon {
  width: 19px;
  height: 19px;
}
/* File workspace */
.quick-access {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
  max-width: 860px;
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-radius: 13px;
  background: #f6f8fc;
  text-align: left;
  min-width: 0;
  border: 1px solid transparent;
}
.quick-card:hover {
  background: #edf2fc;
  border-color: #dbe6fa;
}
.quick-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}
.quick-icon.blue {
  background: #e0eaff;
  color: #2462bf;
}
.quick-icon.green {
  background: #e0efe7;
  color: #34815a;
}
.quick-card > span:nth-child(2) {
  min-width: 0;
}
.quick-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}
.quick-card span span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.quick-arrow {
  margin-left: auto;
  color: #737d8b;
  width: 18px;
  height: 18px;
}
.browse-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 17px;
  flex-wrap: wrap;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.breadcrumb-item {
  background: transparent;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: #444746;
  text-align: left;
  overflow-wrap: anywhere;
}
.breadcrumb-item:first-child {
  padding-left: 0;
}
.breadcrumb-item:hover {
  color: var(--primary);
  background: #f1f4f9;
}
.breadcrumb-item[aria-current] {
  color: #1f1f1f;
}
.breadcrumb-current {
  font-size: 13px;
  color: #636e7d;
}
.breadcrumb > .icon {
  width: 16px;
  height: 16px;
  color: #979da5;
}
.filter-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.select-control {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #d6dade;
  min-height: 35px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  white-space: nowrap;
}
.select-control .icon {
  width: 16px;
  height: 16px;
  color: #58626c;
}
.select-control select {
  border: 0;
  background: transparent;
  padding: 7px 1px;
  max-width: 160px;
  color: #444746;
  font-size: 12px;
}
.sort-label {
  color: var(--muted);
  font-size: 12px;
}
.file-browser {
  min-width: 0;
}
.file-table-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 140px 145px 75px 34px;
  align-items: center;
  gap: 16px;
  min-height: 41px;
  border-bottom: 1px solid #d8dce0;
  color: #636a72;
  font-size: 12px;
  padding: 0 10px;
}
.file-table-head .col-name {
  color: #30373e;
  font-weight: 600;
}
.is-list .file-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 0 10px;
  border-bottom: 1px solid #edf0f3;
  transition: background 0.12s;
}
.is-list .file-entry:hover {
  background: #f3f6fb;
  border-radius: 7px;
}
.file-open {
  display: grid;
  grid-template-columns: 36px minmax(100px, 1fr) 140px 145px 75px;
  align-items: center;
  gap: 16px;
  background: transparent;
  min-width: 0;
  text-align: left;
  padding: 12px 0;
  width: 100%;
}
.file-copy {
  display: block;
  min-width: 0;
}
.file-name {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 500;
  color: #30343b;
}
.file-subtitle {
  display: block;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}
.file-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  color: #6d7885;
  flex-shrink: 0;
}
.file-icon .icon {
  width: 25px;
  height: 25px;
}
.file-icon.type-folder {
  color: #7d91ad;
}
.file-icon.type-folder .icon {
  fill: #e1e9f5;
  stroke-width: 1.5;
  width: 28px;
  height: 28px;
}
.file-icon.type-document {
  color: #4285f4;
}
.file-icon.type-pdf {
  color: #d75555;
}
.file-icon.type-image {
  color: #a56ad0;
}
.file-icon.type-sheet {
  color: #319169;
}
.file-icon.type-audio {
  color: #d89826;
}
.file-icon.type-video {
  color: #d77562;
}
.file-location,
.file-date,
.file-size {
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-star {
  width: 33px;
  height: 33px;
  color: #a0a8b2;
  justify-self: end;
  opacity: 0;
}
.file-entry:hover .file-star,
.file-entry:focus-within .file-star,
.file-star[aria-pressed="true"] {
  opacity: 1;
}
.file-star .icon {
  width: 18px;
  height: 18px;
}
.file-star[aria-pressed="true"] {
  color: #c69424;
}
.file-star[aria-pressed="true"] .icon {
  fill: #ffe6a3;
}
.file-star:hover {
  background: #fff1c9;
  color: #a47a1b;
}
.folder-arrow {
  display: grid;
  place-items: center;
  color: #a7b0bd;
}
.folder-arrow .icon {
  width: 16px;
  height: 16px;
}
.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  align-items: start;
}
.is-grid .file-table-head {
  display: none;
}
.is-grid .file-entry {
  border: 1px solid #e5e8ed;
  border-radius: 13px;
  background: #f8fafd;
  position: relative;
  min-width: 0;
  overflow: hidden;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.is-grid .file-entry:hover {
  border-color: #bbd2f5;
  background: #edf3fd;
}
.is-grid .file-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 12px;
}
.is-grid .file-icon {
  width: 100%;
  height: 128px;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 13px;
}
.is-grid .file-icon .icon {
  width: 54px;
  height: 54px;
  stroke-width: 1.2;
}
.is-grid .file-copy {
  padding: 0 28px 1px 2px;
}
.is-grid .file-subtitle {
  margin-top: 5px;
}
.is-grid .file-location,
.is-grid .file-date,
.is-grid .file-size,
.is-grid .folder-arrow {
  display: none;
}
.is-grid .file-star {
  position: absolute;
  right: 7px;
  bottom: 14px;
  opacity: 1;
}
.is-grid .is-folder .file-open {
  flex-direction: row;
  align-items: center;
  padding: 15px 13px;
  gap: 11px;
  min-height: 76px;
}
.is-grid .is-folder .file-icon {
  width: 32px;
  height: 32px;
  margin: 0;
  background: transparent;
}
.is-grid .is-folder .file-icon .icon {
  width: 30px;
  height: 30px;
}
.is-grid .is-folder .file-copy {
  padding-right: 0;
}
.browser-empty {
  grid-column: 1/-1;
  padding: 65px 20px 75px;
  text-align: center;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 28px;
  background: #f0f5fc;
  color: #9bb4d6;
  margin: 0 auto 22px;
}
.empty-icon .icon {
  width: 43px;
  height: 43px;
  stroke-width: 1.25;
}
.browser-empty h3 {
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 8px;
}
.browser-empty p {
  color: var(--muted);
  font-size: 13px;
  max-width: 370px;
  margin: auto;
  line-height: 1.7;
}
.browse-info {
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
  min-height: 17px;
}
/* Import, notes and review */
.section-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: #f0f5ff;
  color: #5585ce;
}
.dropzone {
  text-align: center;
  background: #fafcff;
  border: 1.5px dashed #bccde5;
  border-radius: 18px;
  padding: 50px 24px 38px;
  margin-top: 6px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.dropzone.over {
  background: #edf4ff;
  border-color: var(--primary);
}
.upload-art {
  position: relative;
  width: 96px;
  height: 80px;
  margin: 0 auto 25px;
}
.upload-art > svg {
  width: 96px;
  height: 80px;
  fill: #d3e3fd;
  stroke: #7da7e5;
  stroke-width: 1.2;
}
.upload-art > span {
  display: grid;
  place-items: center;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0b57d0;
  border: 4px solid #fafcff;
  color: #fff;
}
.upload-art > span .icon {
  width: 19px;
  height: 19px;
}
.dropzone h2 {
  margin-bottom: 9px;
  font-size: 21px;
}
.dropzone > p {
  color: #727d8b;
  font-size: 13px;
}
.upload-actions {
  justify-content: center;
  margin: 26px 0 21px;
}
.dropzone .dropzone-note {
  font-size: 11px;
  color: var(--muted);
}
.upload-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 22px 0;
}
.card {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
}
.note-editor summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.note-editor summary::-webkit-details-marker {
  display: none;
}
.note-editor summary > .icon {
  color: #708299;
  width: 20px;
  height: 20px;
}
.summary-arrow {
  margin-left: auto;
}
.note-editor[open] .summary-arrow {
  transform: rotate(90deg);
}
.note-fields {
  border-top: 1px solid var(--border);
  padding: 20px;
}
.field-label {
  display: block;
  font-size: 12px;
  color: #58616b;
  margin-bottom: 7px;
  font-weight: 500;
}
input[type="text"],
input[type="password"],
input:not([type]),
textarea {
  width: 100%;
  border: 1px solid #d4d9e0;
  border-radius: 9px;
  padding: 12px 13px;
  background: #fff;
  color: var(--text);
}
textarea {
  resize: vertical;
}
.note-fields input,
.note-fields textarea {
  margin-bottom: 18px;
}
.upload-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 7px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.upload-tip .icon {
  width: 20px;
  height: 20px;
  color: #7c96ba;
  margin-top: 3px;
}
.upload-tip strong {
  color: #576477;
  font-weight: 500;
}
.list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.list li {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  padding: 15px 17px;
  border-radius: 11px;
  margin: 8px 0;
}
.list .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.list .state {
  font-size: 12px;
  color: var(--muted);
}
.list .state.ok {
  color: var(--ok);
}
.list .state.err {
  color: var(--danger);
}
progress {
  width: 85px;
  height: 5px;
  accent-color: var(--primary);
}
.review-explainer {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f5f8fd;
  border-radius: 12px;
  padding: 18px 20px;
  color: #727d8b;
  font-size: 13px;
  margin-bottom: 28px;
}
.review-explainer .icon {
  color: #8fa8cc;
}
.review-item {
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 14px;
  margin: 14px 0;
}
.review-item strong {
  font-weight: 600;
  font-size: 15px;
}
.review-item p {
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.7;
}
.review-item .reason {
  color: var(--warn);
}
.review-item label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 16px 0 7px;
}
.review-item input {
  margin-bottom: 14px;
}
/* Assistant */
.agent-view {
  max-width: 1000px;
  margin: 0 auto;
}
.chat-welcome {
  padding: 42px 16px 26px;
  text-align: center;
}
.assistant-emblem {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 21px;
  background: #edf2fe;
  color: #5784c9;
  margin: 0 auto 22px;
}
.assistant-emblem .icon {
  width: 31px;
  height: 31px;
  stroke-width: 1.5;
}
.chat-welcome h2 {
  font-size: 25px;
  font-weight: 450;
  margin-bottom: 12px;
}
.chat-welcome > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.prompt-suggestions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 26px 0 14px;
  flex-wrap: wrap;
}
.prompt-suggestions button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e1e7f0;
  padding: 13px 16px;
  background: #fff;
  border-radius: 11px;
  color: #64758b;
  font-size: 12px;
}
.prompt-suggestions button:hover {
  background: #f0f5ff;
  border-color: #baceed;
}
.prompt-suggestions .icon {
  width: 17px;
  height: 17px;
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 55dvh;
  overflow-y: auto;
  padding: 12px 8px;
}
.chat:empty {
  padding: 0;
}
.msg {
  max-width: 90%;
  padding: 17px 20px;
  border-radius: 17px;
  font-size: 14px;
  line-height: 1.75;
}
.msg.user {
  align-self: flex-end;
  background: #e9f1ff;
  color: #233c60;
  white-space: pre-wrap;
  border-bottom-right-radius: 5px;
}
.msg.assistant {
  align-self: flex-start;
  background: #f8f9fc;
  border-bottom-left-radius: 5px;
}
.msg .tool {
  color: var(--muted);
  font-size: 11px;
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.msg.error {
  color: var(--danger);
  background: #fff3f1;
}
.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  border: 1px solid #dce3ec;
  background: #f8fafd;
  border-radius: 19px;
  padding: 13px;
  margin-top: 28px;
}
.chat-form:focus-within {
  border-color: #a3bfe8;
  background: #fff;
}
.chat-form textarea {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  max-height: 180px;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  resize: none;
}
.chat-form textarea::placeholder {
  color: var(--muted);
}
.send-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}
.send-button:hover {
  background: #084ab4;
}
.chat-disclaimer {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  margin: 12px 0 4px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 12px;
  background: #fff7e7;
  color: #846932;
  font-size: 12px;
  margin: 14px 0;
}
/* Login and vault */
body:not([data-mode="app"]) .app-layout {
  display: block;
}
body:not([data-mode="app"]) .sidebar,
body:not([data-mode="app"]) .mobile-menu,
body:not([data-mode="app"]) #global-search,
body:not([data-mode="app"]) #app-main {
  display: none;
}
body:not([data-mode="app"]) .topbar {
  display: flex;
  justify-content: space-between;
  padding: 22px 32px;
  height: 86px;
}
body:not([data-mode="app"]) main {
  padding: 24px 20px 48px;
}
body[data-mode="login"] .topbar-right {
  display: none;
}
.auth-card {
  max-width: 510px;
  background: #fff;
  border-radius: 26px;
  padding: 36px 50px;
  margin: 12px auto 0;
  text-align: center;
  border: 1px solid #edf0f5;
}
.auth-card h1 {
  font-size: 33px;
  line-height: 1.3;
  font-weight: 450;
  letter-spacing: -0.9px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 1.7px;
  margin-bottom: 16px;
}
.auth-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin: 18px auto 28px;
  max-width: 330px;
}
.auth-illustration {
  position: relative;
  display: grid;
  place-items: center;
  width: 164px;
  height: 130px;
  margin: 0 auto 24px;
}
.illustration-orbit {
  width: 130px;
  height: 112px;
  border-radius: 48px;
  background: #f1f6fd;
  transform: rotate(-12deg);
  position: absolute;
}
.auth-folder {
  width: 99px;
  height: 99px;
  fill: #d3e3fd;
  stroke: #709ddc;
  stroke-width: 1;
  position: relative;
  transform: rotate(-8deg);
}
.illustration-lock {
  position: absolute;
  bottom: 8px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #e1f0e6;
  border: 4px solid #fff;
  border-radius: 15px;
  color: #53916a;
}
.google-button {
  width: 100%;
  font-weight: 500;
  color: #414a54;
  border-color: #d5dce6;
  border-radius: 24px;
  min-height: 47px;
  gap: 14px;
}
.auth-footnote {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 23px;
}
.auth-footnote .icon {
  width: 14px;
  height: 14px;
}
.form-message {
  color: #a34f40;
  font-size: 12px;
  margin-top: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.form-message:empty {
  display: none;
}
.unlock-card {
  padding-top: 36px;
}
.auth-lock-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: #edf3fd;
  color: #6a91c9;
  margin: 0 auto 23px;
}
.auth-lock-icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.4;
}
.unlock-form {
  text-align: left;
  margin-top: 4px;
}
.unlock-form input[type="password"] {
  min-height: 47px;
  border-radius: 10px;
  font-size: 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7685;
  font-size: 12px;
  margin: 17px 0 24px;
  cursor: pointer;
}
.check input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  margin: 0;
}
.unlock-button {
  width: 100%;
}
.unlock-button .icon {
  width: 18px;
  height: 18px;
}
/* Document preview */
body.preview-open {
  overflow: hidden;
}
.preview {
  position: fixed;
  inset: 0;
  padding: 28px;
  z-index: 60;
  background: #1b253bb8;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.preview-dialog {
  background: #f8fafd;
  border-radius: 19px;
  width: min(1080px, 100%);
  max-height: calc(100dvh - 56px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 70px #10182840;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.preview-file-icon {
  color: #5587d7;
}
#preview-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 550;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#preview-body {
  padding: 26px;
  min-height: 220px;
  overflow: auto;
}
#preview-body > p {
  color: var(--muted);
  font-size: 14px;
}
#preview-body iframe {
  width: 100%;
  height: 72dvh;
  border: 0;
  background: #fff;
  border-radius: 9px;
}
#preview-body img {
  display: block;
  max-width: 100%;
  max-height: 72dvh;
  object-fit: contain;
  margin: auto;
  border-radius: 9px;
}
#preview-body > pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  margin: 0;
}
#preview-body > .md {
  max-width: 850px;
  margin: auto;
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  padding: 36px;
}
.media-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 100%;
  margin: 24px auto;
}
.media-preview audio {
  width: min(100%, 500px);
}
#preview-body video {
  display: block;
  max-width: 100%;
  max-height: 72dvh;
  margin: auto;
  border-radius: 9px;
}
.md h1,
.md h2,
.md h3 {
  font-size: 1.15em;
  font-weight: 600;
  margin: 18px 0 9px;
}
.md p {
  margin: 8px 0;
}
.md ul,
.md ol {
  padding-left: 23px;
}
.md code {
  background: var(--code);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.md pre {
  background: var(--code);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
}
.md pre code {
  padding: 0;
  background: transparent;
}
.md table {
  border-collapse: collapse;
  margin: 15px 0;
  width: 100%;
  font-size: 13px;
}
.md th,
.md td {
  border: 1px solid var(--border);
  padding: 8px 11px;
  text-align: left;
}
.md blockquote {
  border-left: 3px solid #c1d5f5;
  margin: 12px 0;
  padding-left: 14px;
  color: var(--muted);
}
/* Responsive workspace */
@media (min-width: 1600px) {
  .content-panel {
    padding: 32px 40px;
  }
  .quick-access {
    max-width: 980px;
  }
}
@media (max-width: 1190px) {
  :root {
    --sidebar-width: 218px;
  }
  .topbar-right {
    gap: 12px;
    padding-left: 16px;
  }
  .content-panel {
    padding: 26px 23px;
  }
  .file-table-head {
    grid-template-columns: minmax(140px, 1fr) 105px 110px 65px 30px;
    gap: 10px;
  }
  .is-list .file-entry {
    grid-template-columns: minmax(0, 1fr) 30px;
    gap: 10px;
  }
  .file-open {
    grid-template-columns: 30px minmax(90px, 1fr) 105px 110px 65px;
    gap: 10px;
  }
  .sidebar-bottom {
    padding-left: 12px;
    padding-right: 10px;
  }
  .quick-card {
    padding: 13px;
    gap: 10px;
  }
  .quick-card span span {
    font-size: 11px;
  }
}
@media (max-width: 980px) {
  .badge {
    font-size: 0;
    gap: 0;
  }
  .badge::before {
    width: 8px;
    height: 8px;
  }
  .file-table-head {
    grid-template-columns: minmax(140px, 1fr) 105px 65px 30px;
  }
  .file-open {
    grid-template-columns: 30px minmax(90px, 1fr) 105px 65px;
  }
  .file-location,
  .col-location {
    display: none;
  }
  .quick-card span span {
    display: none;
  }
  .heading-count {
    display: none;
  }
  .upload-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sort-label {
    display: none;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 125px;
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 11px 16px 14px;
    gap: 13px;
  }
  .brand-area {
    gap: 8px;
  }
  .brand {
    font-size: 21px;
    gap: 8px;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
  }
  .mobile-menu {
    display: inline-flex;
    width: 34px;
    height: 34px;
    padding: 5px;
  }
  .searchbar {
    grid-row: 2;
    grid-column: 1/-1;
    height: 45px;
    border-radius: 24px;
    padding: 0 16px;
    gap: 12px;
  }
  .searchbar input {
    font-size: 14px;
  }
  .searchbar > .icon {
    width: 20px;
    height: 20px;
  }
  .search-hint {
    display: none;
  }
  .topbar-right {
    grid-column: 2;
    grid-row: 1;
    padding-left: 0;
    gap: 14px;
  }
  .account-button {
    width: 36px;
    height: 36px;
    padding: 3px;
  }
  #user-avatar {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .account-menu {
    top: 46px;
    min-width: 260px;
  }
  .app-layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 51;
    top: 0;
    bottom: 0;
    left: 0;
    width: 268px;
    padding-top: 28px;
    background: var(--bg);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    overflow-y: auto;
    min-height: 100dvh;
    box-shadow: 5px 0 22px #172b4b1a;
    visibility: hidden;
  }
  body.sidebar-open {
    overflow: hidden;
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: #1a2b464d;
    z-index: 50;
    display: block;
  }
  .sidebar-bottom {
    padding: 48px 18px 20px;
  }
  .badge {
    min-width: 10px;
  }
  main {
    padding: 0 10px 10px;
  }
  .content-panel {
    border-radius: 19px;
    padding: 21px 18px;
    min-height: calc(100dvh - 135px);
  }
  h1 {
    font-size: 24px;
  }
  .page-heading {
    gap: 10px;
    margin-bottom: 22px;
  }
  .heading-actions {
    gap: 5px;
  }
  .heading-actions > .icon-button {
    width: 32px;
    height: 32px;
  }
  .layout-switch {
    height: 32px;
  }
  .layout-switch button {
    width: 36px;
  }
  .quick-access {
    gap: 9px;
    margin-bottom: 22px;
  }
  .quick-card {
    padding: 12px 10px;
    gap: 9px;
    border-radius: 11px;
  }
  .quick-icon {
    width: 29px;
    height: 33px;
    border-radius: 9px;
  }
  .quick-icon .icon {
    width: 18px;
    height: 18px;
  }
  .quick-card strong {
    font-size: 11px;
    margin: 0;
  }
  .quick-arrow {
    display: none;
  }
  .browse-toolbar {
    gap: 13px;
    margin-bottom: 13px;
  }
  .breadcrumb {
    flex-basis: 100%;
  }
  .filter-controls {
    width: 100%;
    gap: 8px;
  }
  .select-control {
    font-size: 11px;
    min-height: 33px;
  }
  .select-control select {
    font-size: 11px;
  }
  .sort-control {
    margin-left: auto;
  }
  .file-table-head {
    grid-template-columns: minmax(125px, 1fr) 53px 28px;
    padding-left: 2px;
    padding-right: 2px;
    gap: 6px;
    font-size: 11px;
    min-height: 36px;
  }
  .is-list .file-entry {
    grid-template-columns: minmax(0, 1fr) 28px;
    padding-left: 2px;
    padding-right: 2px;
    gap: 6px;
    min-height: 67px;
  }
  .file-open {
    grid-template-columns: 29px minmax(60px, 1fr) 53px;
    gap: 8px;
  }
  .file-date,
  .col-date {
    display: none;
  }
  .file-name {
    font-size: 12px;
  }
  .file-subtitle {
    font-size: 10px;
  }
  .file-icon {
    width: 29px;
  }
  .file-icon .icon {
    width: 23px;
    height: 23px;
  }
  .file-size {
    font-size: 10px;
  }
  .file-star {
    width: 28px;
    height: 28px;
    padding: 6px;
    opacity: 1;
  }
  .file-star .icon {
    width: 16px;
    height: 16px;
  }
  .is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .is-grid .file-open {
    padding: 9px;
  }
  .is-grid .file-icon {
    height: 103px;
  }
  .is-grid .file-icon .icon {
    width: 40px;
    height: 40px;
  }
  .is-grid .file-copy {
    padding-right: 21px;
  }
  .is-grid .file-star {
    right: 5px;
    bottom: 10px;
  }
  .is-grid .is-folder .file-open {
    padding: 13px 10px;
    gap: 8px;
  }
  .is-grid .is-folder .file-name {
    font-size: 11px;
  }
  .is-grid .is-folder .file-subtitle {
    font-size: 10px;
  }
  .is-grid .is-folder .file-icon {
    width: 24px;
  }
  .browser-empty {
    padding: 48px 10px;
  }
  .browser-empty h3 {
    font-size: 16px;
  }
  .browser-empty p {
    font-size: 12px;
  }
  .browse-info {
    font-size: 10px;
  }
  .dropzone {
    padding: 34px 15px 27px;
  }
  .dropzone h2 {
    font-size: 19px;
  }
  .dropzone > p {
    font-size: 12px;
  }
  .upload-actions {
    gap: 10px;
  }
  .upload-actions .btn {
    width: 100%;
    font-size: 13px;
  }
  .dropzone .dropzone-note {
    font-size: 10px;
  }
  .page-description {
    font-size: 12px;
  }
  .list li {
    padding: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .list .name {
    flex-basis: 65%;
  }
  .section-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .agent-view .page-heading {
    flex-wrap: wrap;
  }
  .agent-view .page-heading .btn {
    min-height: 32px;
    font-size: 11px;
  }
  .chat-welcome {
    padding: 24px 0 16px;
  }
  .chat-welcome h2 {
    font-size: 23px;
  }
  .chat-welcome > p {
    font-size: 12px;
  }
  .prompt-suggestions {
    flex-direction: column;
    gap: 9px;
  }
  .prompt-suggestions button {
    font-size: 11px;
  }
  .chat-form {
    margin-top: 16px;
    padding: 10px;
  }
  .chat-form textarea {
    font-size: 13px;
  }
  .msg {
    max-width: 100%;
    padding: 13px 15px;
    font-size: 13px;
  }
  .review-item {
    padding: 17px;
  }
  .review-item .muted {
    display: block;
    font-size: 11px;
    margin-top: 4px;
  }
  .review-explainer {
    padding: 14px;
    font-size: 12px;
  }
  .preview {
    padding: 10px;
  }
  .preview-dialog {
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }
  .preview-bar {
    gap: 8px;
    padding: 10px 11px;
  }
  #preview-title {
    font-size: 12px;
  }
  .preview-file-icon {
    display: none;
  }
  #preview-download {
    border: 0;
    padding: 8px;
    min-width: 34px;
  }
  #preview-download span {
    display: none;
  }
  #preview-body {
    padding: 15px;
  }
  #preview-body > .md,
  #preview-body > pre {
    padding: 18px;
    font-size: 12px;
  }
  body:not([data-mode="app"]) .topbar {
    height: 74px;
    padding: 18px 22px;
  }
  body:not([data-mode="app"]) main {
    padding: 14px 16px 30px;
  }
  .auth-card {
    padding: 30px 26px;
    border-radius: 22px;
    margin-top: 6px;
  }
  .auth-card h1 {
    font-size: 29px;
  }
  .auth-description {
    font-size: 13px;
  }
  .auth-footnote {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
