/* Hallmark · macrostructure: Workbench · tone: modern-minimal · anchor hue: blue */
@import url("../tokens.css");
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V5 */
html,
body {
  overflow-x: clip;
}
h1,
h2,
h3 {
  overflow-wrap: anywhere;
  min-width: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--color-accent);
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button,
input,
select,
textarea {
  outline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--color-focus);
}
button svg {
  pointer-events: none;
}
svg.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.wordmark {
  font-family: var(--font-display);
}
h1 {
  font-size: var(--text-title);
  font-weight: 650;
  letter-spacing: -0.8px;
}
h2 {
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  font-weight: 650;
}
button,
.btn {
  transition:
    background-color var(--dur-fast),
    color var(--dur-fast);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--color-paper);
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.boot {
  display: grid;
  place-content: center;
  gap: 20px;
  justify-items: center;
  min-height: 100vh;
  color: var(--color-muted);
}
.boot-mark {
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: var(--color-paper);
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-size: 40px;
  font-weight: 700;
}
.app-shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--color-sidebar);
  border-right: 1px solid var(--color-rule);
  padding: 32px 18px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 222px;
  z-index: 25;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.brand img {
  width: 35px;
  height: 35px;
}
.wordmark {
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1.4px;
}
.workspace-switch {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  margin: 32px 0 24px;
  padding: 10px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  text-align: left;
}
.workspace-switch .workspace-avatar {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  background: var(--color-accent-soft);
  display: grid;
  place-items: center;
  color: var(--color-accent);
  font-weight: 600;
}
.workspace-switch strong {
  font-size: 11px;
  font-weight: 550;
}
.workspace-switch small {
  font-size: 10px;
  display: block;
  color: var(--color-muted);
}
.workspace-switch > .icon {
  margin-left: auto;
  width: 15px;
}
.new-button {
  height: 46px;
  width: 100%;
  border: 0;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  color: var(--color-paper);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 3px 6px oklch(54.6% 0.215 263/0.13);
}
.new-button:hover,
.btn.primary:hover {
  background: var(--color-accent-dark);
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 26px 0 16px;
}
.nav-item {
  width: 100%;
  height: 43px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 450;
}
.nav-item .icon {
  width: 19px;
  height: 19px;
}
.nav-item:hover {
  background: var(--color-hover);
}
.nav-item.active {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 550;
}
.nav-item .count {
  margin-left: auto;
  font-size: 10px;
  background: var(--color-paper);
  min-width: 21px;
  padding: 2px 5px;
  text-align: center;
  border-radius: 5px;
}
.nav-divider {
  border-top: 1px solid var(--color-rule);
  margin: 10px 12px 14px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: 500;
  color: var(--color-muted);
  padding: 8px 14px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.storage-mini {
  padding: 12px 14px 20px;
}
.storage-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
}
.storage-title .icon {
  width: 18px;
}
.storage-title .small-link {
  margin-left: auto;
}
.storage-track {
  height: 5px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-rule);
  margin: 14px 0 9px;
}
.storage-track > span {
  display: block;
  height: 100%;
  background: var(--color-accent);
  border-radius: 10px;
  min-width: 3px;
}
.storage-mini p {
  font-size: 10px;
  color: var(--color-muted);
}
.private-label {
  border-top: 1px solid var(--color-rule);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 12px 0;
  color: var(--color-muted);
  font-size: 10px;
}
.private-label .icon {
  width: 14px;
  height: 14px;
}
.main-shell {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 84px;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid var(--color-rule);
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(540px, 57%);
  background: var(--color-canvas);
  border: 1px solid var(--color-rule);
  padding: 0 16px;
  border-radius: 9px;
  height: 43px;
  color: var(--color-muted);
}
.search-wrap input {
  border: 0;
  background: transparent;
  padding: 0;
  height: 40px;
  width: 100%;
  min-width: 0;
  outline: none;
  font-size: 12px;
}
.search-wrap:focus-within {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.search-wrap .icon {
  height: 18px;
  width: 18px;
}
kbd {
  font: 10px var(--font-body);
  white-space: nowrap;
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  padding: 2px 5px;
  background: var(--color-paper);
  color: var(--color-muted);
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--color-muted);
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--color-hover);
  color: var(--color-ink);
}
.top-separator {
  height: 26px;
  border-left: 1px solid var(--color-rule);
  margin: 0 6px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 550;
  font-size: 11px;
}
.avatar.small {
  width: 26px;
  height: 26px;
  font-size: 9px;
}
.avatar.purple {
  background: var(--color-purple-soft);
  color: var(--color-purple);
}
.avatar.green {
  background: var(--color-green-soft);
  color: var(--color-green);
}
.avatar.amber {
  background: var(--color-amber-soft);
  color: var(--color-amber);
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 4px;
  text-align: left;
}
.profile-button strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.profile-button small {
  font-size: 9px;
  color: var(--color-muted);
  text-transform: capitalize;
}
.profile-button > .icon {
  width: 13px;
  margin-left: 8px;
}
.workspace-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  min-height: calc(100vh - 84px);
}
.content {
  padding: 34px 30px 40px;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.page-heading p {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 11px;
}
.heading-actions {
  display: flex;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 15px;
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: 8px;
  font-weight: 500;
  font-size: 11px;
  white-space: nowrap;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn:hover {
  background: var(--color-hover);
}
.btn.primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-paper);
}
.btn.danger {
  background: var(--color-error);
  color: var(--color-paper);
  border-color: var(--color-error);
}
.btn.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--color-muted);
}
.small-link {
  border: 0;
  background: none;
  color: var(--color-accent);
  font-size: 11px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.small-link .icon {
  width: 14px;
  height: 14px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 17px;
}
.section-heading h2 {
  font-size: 14px;
}
.section-heading h2 .icon {
  vertical-align: middle;
  margin-right: 6px;
  width: 16px;
  color: var(--color-amber);
}
.section-heading .muted {
  font-size: 10px;
}
.muted {
  color: var(--color-muted);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}
.quick-card {
  border: 1px solid var(--color-rule);
  border-radius: 11px;
  overflow: hidden;
  min-width: 0;
  cursor: pointer;
  background: var(--color-paper);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast);
}
.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px oklch(27% 0.027 264/0.07);
}
.file-preview {
  height: 140px;
  background: var(--color-canvas);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
}
.file-preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file-preview .file-symbol {
  width: 55px;
  height: 65px;
}
.file-preview .file-symbol .icon {
  width: 29px;
  height: 29px;
}
.preview-doc {
  width: 140px;
  background: var(--color-paper);
  box-shadow: 0 2px 12px oklch(27% 0.027 264/0.08);
  height: 152px;
  margin-top: 55px;
  padding: 17px 15px;
  transform: rotate(-4deg);
  border-radius: 2px;
  text-align: left;
  color: var(--color-ink);
}
.preview-doc strong {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.2;
  display: block;
  overflow: hidden;
  max-height: 35px;
}
.preview-doc .doc-rule {
  height: 3px;
  background: var(--color-rule);
  margin-top: 7px;
  width: 100%;
}
.preview-doc .doc-rule.short {
  width: 65%;
}
.doc-wordmark {
  font-size: 8px;
  color: var(--color-accent);
  font-weight: 650;
  margin-bottom: 13px;
}
.preview-doc .doc-banner {
  height: 27px;
  background: var(--color-accent-soft);
  margin: 11px 0;
  border-left: 3px solid var(--color-accent);
}
.sheet-preview {
  width: 175px;
  transform: rotate(-3deg);
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  padding: 8px;
  margin-top: 12px;
  box-shadow: 0 2px 12px oklch(27% 0.027 264/0.06);
}
.sheet-title {
  font-size: 9px;
  font-weight: 600;
  color: var(--color-green);
  margin-bottom: 8px;
}
.sheet-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1px;
  background: var(--color-rule);
}
.sheet-grid span {
  background: var(--color-paper);
  font-size: 6px;
  padding: 4px;
  text-align: left;
}
.sheet-grid span:nth-child(-n + 3) {
  background: var(--color-green-soft);
  font-weight: 600;
  color: var(--color-green);
}
.quick-meta {
  padding: 13px 13px 11px;
}
.quick-name {
  display: flex;
  gap: 8px;
  align-items: center;
}
.quick-name strong {
  font-size: 10px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-name .icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}
.quick-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 9px;
  color: var(--color-muted);
}
.quick-bottom .icon-btn {
  height: 20px;
  width: 24px;
}
.quick-bottom .icon {
  width: 16px;
  height: 16px;
}
.quick-tag {
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 5px;
  padding: 3px 6px;
  background: var(--color-paper);
  color: var(--color-muted);
  font-size: 8px;
  box-shadow: 0 1px 5px oklch(27% 0.027 264/0.06);
}
.folders-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 31px;
}
.folder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--color-rule);
  background: var(--color-paper);
  border-radius: 10px;
  padding: 16px 13px;
  text-align: left;
  gap: 9px;
  min-width: 0;
}
.folder-card:hover {
  background: var(--color-canvas);
  border-color: var(--color-accent);
}
.folder-card > svg {
  height: 29px;
  width: 34px;
  fill: var(--color-accent-soft);
  stroke: var(--color-accent);
  stroke-width: 1.3;
}
.folder-card.purple > svg {
  fill: var(--color-purple-soft);
  stroke: var(--color-purple);
}
.folder-card.green > svg {
  fill: var(--color-green-soft);
  stroke: var(--color-green);
}
.folder-card.amber > svg {
  fill: var(--color-amber-soft);
  stroke: var(--color-amber);
}
.folder-card strong {
  font-size: 10px;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.folder-card small {
  font-size: 9px;
  color: var(--color-muted);
}
.folder-card .folder-shared {
  position: absolute;
  right: 13px;
  top: 18px;
  color: var(--color-muted);
}
.folder-shared .icon {
  width: 14px;
  height: 14px;
}
.file-toolbar {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  background: var(--color-paper);
  padding: 6px 10px;
  height: 31px;
  color: var(--color-secondary);
  font-size: 10px;
}
.filter-chip .icon {
  height: 13px;
  width: 13px;
}
.filter-chip.active {
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.toolbar-right select {
  border: 0;
  background: transparent;
  font-size: 10px;
  color: var(--color-muted);
  max-width: 125px;
  padding: 4px;
}
.view-toggle {
  display: flex;
  border: 1px solid var(--color-rule);
  padding: 2px;
  border-radius: 6px;
}
.view-toggle .icon-btn {
  width: 27px;
  height: 26px;
  border-radius: 4px;
}
.view-toggle .icon-btn.active {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.view-toggle .icon {
  width: 15px;
  height: 15px;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
.file-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
.file-table th {
  height: 37px;
  background: var(--color-canvas);
  font-size: 9px;
  color: var(--color-muted);
  font-weight: 450;
  border-block: 1px solid var(--color-rule);
  padding: 0 10px;
}
.file-table td {
  height: 66px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-rule);
  font-size: 10px;
}
.file-table th:first-child,
.file-table td:first-child {
  width: 30px;
  padding-left: 6px;
  padding-right: 0;
}
.file-table th:last-child,
.file-table td:last-child {
  padding-right: 0;
  width: 32px;
}
.file-table th.name-col {
  width: 45%;
}
.file-table tr.selected td {
  background: var(--color-accent-soft);
}
.file-table tbody tr:hover td {
  background: var(--color-canvas);
}
input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.file-name {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  max-width: 100%;
  text-align: left;
}
.file-name strong {
  font-size: 10px;
  font-weight: 500;
  max-width: 195px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.file-name small {
  font-size: 9px;
  color: var(--color-muted);
  display: block;
  margin-top: 3px;
}
.file-symbol {
  width: 31px;
  height: 37px;
  border-radius: 5px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.file-symbol .icon {
  width: 18px;
  height: 18px;
}
.file-symbol.green {
  background: var(--color-green-soft);
  color: var(--color-green);
}
.file-symbol.purple {
  background: var(--color-purple-soft);
  color: var(--color-purple);
}
.file-symbol.amber {
  background: var(--color-amber-soft);
  color: var(--color-amber);
}
.file-symbol.red {
  background: var(--color-error-soft);
  color: var(--color-error);
}
.owner-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.access-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-muted);
  font-size: 9px;
}
.access-indicator .icon {
  width: 12px;
  height: 12px;
}
.inline-star {
  color: var(--color-amber);
  margin-left: 5px;
  display: inline-flex;
}
.inline-star .icon {
  width: 11px;
  height: 11px;
  fill: var(--color-amber);
}
.table-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 10px;
  color: var(--color-muted);
}
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.file-grid .quick-card.selected {
  outline: 2px solid var(--color-accent);
}
.selection-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-soft);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 11px;
}
.selection-bar .icon-btn {
  height: 28px;
  width: 30px;
}
.selection-bar > span {
  margin-right: auto;
}
.context-panel {
  border-left: 1px solid var(--color-rule);
  padding: 31px 22px 24px;
  min-width: 0;
  background: var(--color-paper);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.panel-heading h2 {
  font-size: 13px;
}
.panel-heading .icon-btn {
  width: 24px;
  height: 28px;
}
.panel-tabs {
  display: flex;
  gap: 21px;
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: 23px;
}
.panel-tabs button {
  border: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  padding: 0 2px 11px;
  font-size: 11px;
  color: var(--color-muted);
}
.panel-tabs button.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.activity-group-label {
  font-size: 10px;
  color: var(--color-muted);
  margin: 20px 0 16px;
}
.activity-entry {
  position: relative;
  display: flex;
  gap: 11px;
  padding-bottom: 26px;
}
.activity-entry:not(:last-child):before {
  content: "";
  position: absolute;
  left: 13px;
  top: 31px;
  bottom: 5px;
  border-left: 1px solid var(--color-rule);
}
.activity-entry .avatar {
  width: 28px;
  height: 28px;
  font-size: 9px;
}
.activity-entry p {
  font-size: 10px;
  line-height: 1.7;
}
.activity-entry p strong {
  font-weight: 550;
}
.activity-entry .activity-file {
  display: block;
  font-size: 10px;
  color: var(--color-ink);
  border: 0;
  background: none;
  text-align: left;
  padding: 3px 0;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-entry time {
  font-size: 9px;
  color: var(--color-muted);
}
.panel-tip {
  border: 1px solid var(--color-rule);
  background: var(--color-canvas);
  border-radius: 10px;
  padding: 18px 15px;
  margin-top: 20px;
}
.panel-tip > .icon {
  color: var(--color-accent);
  width: 22px;
  height: 22px;
  margin-bottom: 10px;
}
.panel-tip h3 {
  font-size: 11px;
  margin-bottom: 7px;
}
.panel-tip p {
  font-size: 10px;
  line-height: 1.9;
  color: var(--color-muted);
}
.panel-tip .small-link {
  font-size: 10px;
  padding: 10px 0 0;
}
.overview-list {
  margin-top: 10px;
}
.overview-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-rule);
}
.overview-item .file-symbol {
  width: 34px;
  height: 37px;
}
.overview-item strong {
  font-size: 10px;
  font-weight: 500;
}
.overview-item small {
  display: block;
  font-size: 9px;
  color: var(--color-muted);
  margin-top: 4px;
}
.overview-item > span:last-child {
  margin-left: auto;
  font-size: 10px;
}
.storage-number {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
  margin: 20px 0 4px;
}
.storage-number small {
  font: 11px var(--font-body);
  color: var(--color-muted);
}
.detail-preview {
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--color-rule);
}
.detail-name {
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
  margin-bottom: 7px;
}
.detail-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 15px 0 23px;
}
.detail-actions .btn {
  padding: 7px 10px;
  font-size: 10px;
  min-height: 34px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  padding: 9px 0;
}
.detail-row span {
  color: var(--color-muted);
}
.detail-row strong {
  font-weight: 450;
  text-align: right;
  word-break: break-word;
}
.comment-entry {
  border-bottom: 1px solid var(--color-rule);
  padding: 0 0 15px;
  margin-bottom: 15px;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.comment-header time {
  font-size: 8px;
  color: var(--color-muted);
  margin-left: auto;
}
.comment-entry p {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-entry .icon-btn {
  width: 24px;
  height: 24px;
}
.comment-entry .icon-btn svg {
  width: 13px;
  height: 13px;
}
.comment-compose {
  margin-top: 20px;
}
.comment-compose textarea {
  width: 100%;
  min-height: 100px;
  font-size: 11px;
}
.comment-compose .btn {
  width: 100%;
  margin-top: 8px;
}
.empty {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 28px;
  color: var(--color-muted);
}
.empty .empty-icon {
  height: 67px;
  width: 67px;
  display: grid;
  place-items: center;
  background: var(--color-accent-soft);
  border-radius: 20px;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.empty .empty-icon svg {
  width: 32px;
  height: 32px;
}
.empty h2 {
  font-size: 16px;
  color: var(--color-ink);
}
.empty p {
  font-size: 11px;
  line-height: 1.8;
  max-width: 280px;
}
.empty.compact {
  padding: 20px 0;
  min-height: 130px;
}
.empty.compact .empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.empty.compact .empty-icon svg {
  width: 23px;
  height: 23px;
}
.empty.compact h2 {
  font-size: 12px;
}
.empty.compact p {
  font-size: 10px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 19px;
  font-size: 11px;
}
.breadcrumbs button {
  border: 0;
  background: none;
  padding: 2px;
  color: var(--color-muted);
}
.breadcrumbs button:last-child {
  color: var(--color-ink);
}
.breadcrumbs .icon {
  width: 13px;
  height: 13px;
  color: var(--color-muted);
}
.drop-overlay {
  display: none;
  position: fixed;
  inset: 12px;
  background: var(--color-accent-soft);
  border: 2px dashed var(--color-accent);
  z-index: 100;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  color: var(--color-accent);
  pointer-events: none;
}
.drop-overlay .icon {
  width: 60px;
  height: 60px;
}
.drop-overlay.visible {
  display: flex;
}
.upload-status {
  position: fixed;
  bottom: 20px;
  right: 24px;
  background: var(--color-paper);
  box-shadow: 0 8px 35px oklch(27% 0.027 264/0.15);
  width: 330px;
  border: 1px solid var(--color-rule);
  border-radius: 12px;
  padding: 18px;
  z-index: 60;
}
.upload-status strong {
  font-size: 12px;
  display: block;
}
.upload-status p {
  font-size: 10px;
  color: var(--color-muted);
  margin: 8px 0;
}
.upload-status progress {
  width: 100%;
  height: 6px;
  accent-color: var(--color-accent);
}
.upload-status .upload-error {
  color: var(--color-error);
  max-height: 100px;
  overflow: auto;
}
.modal {
  border: 1px solid var(--color-rule);
  border-radius: 16px;
  box-shadow: 0 24px 90px oklch(27% 0.027 264/0.2);
  width: min(490px, calc(100vw - 32px));
  padding: 0;
  color: var(--color-ink);
  max-height: 88vh;
}
.modal::backdrop {
  background: oklch(20% 0.025 265/0.35);
}
.modal[open] {
  animation: modal-in var(--dur-normal) var(--ease-out);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-header {
  padding: 22px 25px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-rule);
}
.modal-header h2 {
  font-size: 17px;
}
.modal-body {
  padding: 22px 25px 25px;
  overflow: auto;
}
.modal-body > p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--color-muted);
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.modal-actions .btn {
  min-height: 40px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.form-field label {
  font-size: 11px;
  font-weight: 500;
}
.form-field small {
  font-size: 10px;
  line-height: 1.7;
  color: var(--color-muted);
}
input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  border: 1px solid var(--color-rule);
  border-radius: 7px;
  background: var(--color-paper);
  padding: 11px 12px;
  font-size: 12px;
  color: var(--color-ink);
  min-height: 42px;
}
input:hover,
select:hover,
textarea:hover {
  background: var(--color-canvas);
}
input::placeholder,
textarea::placeholder {
  color: var(--color-muted);
}
textarea {
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-error {
  color: var(--color-error);
  font-size: 11px;
  line-height: 1.8;
  margin-top: 12px;
}
.form-error:empty {
  display: none;
}
.form-note {
  font-size: 10px;
  color: var(--color-muted);
  line-height: 1.8;
}
.share-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-rule);
}
.share-person strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.share-person small {
  font-size: 10px;
  color: var(--color-muted);
}
.share-person .role-label {
  margin-left: auto;
  font-size: 10px;
  color: var(--color-muted);
}
.share-person select {
  margin-left: auto;
  font-size: 10px;
  min-height: 33px;
  padding: 5px;
  max-width: 100px;
}
.share-person .icon-btn {
  width: 28px;
}
.share-add {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
}
.share-add input {
  min-width: 0;
  flex: 1;
}
.share-add select {
  font-size: 10px;
  padding: 8px;
  max-width: 100px;
}
.share-add .btn {
  padding: 8px 12px;
}
.share-section-title {
  font-size: 12px;
  margin: 23px 0 5px;
  font-weight: 550;
}
.link-access {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
}
.link-access > .icon {
  width: 21px;
  color: var(--color-accent);
}
.link-access select {
  border: 0;
  padding: 0;
  font-size: 11px;
  min-height: 27px;
  font-weight: 500;
  background: transparent;
}
.link-access p {
  font-size: 10px;
  color: var(--color-muted);
  margin-top: 3px;
}
.link-access .permission-select {
  margin-left: auto;
  max-width: 100px;
  border: 1px solid var(--color-rule);
  padding: 5px;
  font-size: 10px;
}
.link-output {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.link-output input {
  min-width: 0;
  flex: 1;
  font-size: 10px;
}
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 13px;
  border-radius: 8px;
  text-align: left;
  font-size: 12px;
}
.menu-list button:hover {
  background: var(--color-canvas);
}
.menu-list button .icon {
  width: 19px;
  height: 19px;
  color: var(--color-muted);
}
.menu-list button.danger,
.menu-list button.danger .icon {
  color: var(--color-error);
}
.menu-divider {
  border-top: 1px solid var(--color-rule);
  margin: 5px 0;
}
.preview-modal {
  width: min(1000px, calc(100vw - 32px));
}
.preview-stage {
  background: var(--color-canvas);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-stage img,
.preview-stage video {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  margin: auto;
}
.preview-stage iframe {
  width: 100%;
  height: 65vh;
  border: 0;
  background: var(--color-paper);
}
.preview-stage pre {
  margin: 0;
  padding: 25px;
  width: 100%;
  height: 55vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}
.preview-stage audio {
  margin: 55px 25px;
  max-width: 90%;
}
.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
}
.preview-footer p {
  font-size: 11px;
  color: var(--color-muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px);
  padding: 13px 20px;
  border-radius: 10px;
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: 12px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--dur-fast),
    transform var(--dur-fast) var(--ease-out);
  display: flex;
  gap: 20px;
  align-items: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
#toast button {
  background: transparent;
  border: 0;
  color: var(--color-paper);
  text-decoration: underline;
  font-weight: 600;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  background: var(--color-accent-soft);
  padding: 48px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-art .brand {
  padding: 0;
}
.auth-art h1 {
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -1.8px;
  max-width: 430px;
  margin: 30px 0 20px;
}
.auth-art p {
  font-size: 13px;
  color: var(--color-secondary);
  line-height: 1.9;
  max-width: 350px;
}
.auth-illustration {
  position: relative;
  height: 225px;
  margin: 50px 0 20px;
}
.illustration-folder {
  width: 230px;
  height: 155px;
  background: var(--color-accent);
  border-radius: 0 16px 16px 16px;
  position: absolute;
  left: 10%;
  top: 30px;
  transform: rotate(-8deg);
  box-shadow: 12px 15px 0 oklch(54.6% 0.215 263/0.12);
}
.illustration-folder:before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  width: 93px;
  height: 22px;
  background: var(--color-accent);
  border-radius: 12px 12px 0 0;
}
.illustration-folder .icon {
  color: var(--color-paper);
  width: 52px;
  height: 52px;
  position: absolute;
  bottom: 24px;
  left: 27px;
  stroke-width: 1.2;
}
.illustration-paper {
  position: absolute;
  width: 154px;
  height: 186px;
  background: var(--color-paper);
  right: 14%;
  top: -5px;
  transform: rotate(12deg);
  border-radius: 9px;
  padding: 27px 22px;
  box-shadow: 0 8px 30px oklch(27% 0.027 264/0.1);
}
.illustration-paper .icon {
  width: 35px;
  height: 35px;
  color: var(--color-green);
  margin-bottom: 14px;
}
.illustration-paper span {
  display: block;
  height: 5px;
  background: var(--color-rule);
  margin-top: 10px;
}
.auth-art footer {
  font-size: 10px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.auth-art footer .icon {
  height: 13px;
  width: 13px;
}
.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px;
}
.auth-form {
  width: min(360px, 100%);
}
.auth-form h2 {
  font-size: 27px;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
}
.auth-form > p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--color-muted);
  margin-bottom: 30px;
}
.auth-form .btn {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  font-size: 12px;
}
.auth-form .form-field {
  margin-bottom: 20px;
}
.auth-foot {
  font-size: 10px;
  color: var(--color-muted);
  margin-top: 24px;
  text-align: center;
  line-height: 1.8;
}
.mobile-menu,
.mobile-brand {
  display: none;
}
.users-table .file-name strong {
  max-width: none;
}
.users-table td {
  font-size: 11px;
  height: 75px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 8px;
  background: var(--color-hover);
  color: var(--color-secondary);
  font-size: 9px;
  text-transform: capitalize;
}
.badge.admin {
  background: var(--color-purple-soft);
  color: var(--color-purple);
}
.badge.member {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.badge.viewer {
  background: var(--color-amber-soft);
  color: var(--color-amber);
}
.status-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--color-green);
  display: inline-block;
  margin-right: 5px;
}
.status-dot.inactive {
  background: var(--color-muted);
}
.role-guide {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.role-guide .icon {
  color: var(--color-accent);
  width: 22px;
  margin-bottom: 10px;
}
.role-guide h3 {
  font-size: 11px;
  margin-bottom: 6px;
}
.role-guide p {
  font-size: 10px;
  color: var(--color-muted);
  line-height: 1.9;
}
.settings-section {
  max-width: 550px;
  margin-top: 28px;
}
.settings-section h2 {
  font-size: 15px;
  margin-bottom: 8px;
}
.settings-section > p {
  font-size: 11px;
  color: var(--color-muted);
  margin-bottom: 25px;
}
.storage-large {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.storage-type {
  border: 1px solid var(--color-rule);
  border-radius: 12px;
  padding: 20px 15px;
}
.storage-type strong {
  display: block;
  margin-top: 15px;
  font-size: 13px;
  font-weight: 500;
}
.storage-type p {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 5px;
}
.public-shell {
  max-width: 1100px;
  margin: auto;
  padding: 0 28px 40px;
}
.public-header {
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: 35px;
}
.public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
}
.public-layout .context-panel {
  padding-top: 0;
}
.public-info {
  margin-bottom: 28px;
}
.public-info p {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 12px;
}
.public-file {
  border: 1px solid var(--color-rule);
  border-radius: 14px;
  overflow: hidden;
}
.public-file .file-preview {
  height: 320px;
}
.public-file .file-preview .file-symbol {
  width: 80px;
  height: 100px;
}
.public-file .file-preview .file-symbol .icon {
  width: 40px;
  height: 40px;
}
.public-file-actions {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.public-file-actions small {
  font-size: 11px;
  color: var(--color-muted);
}
.form-success {
  font-size: 11px;
  color: var(--color-green);
  margin-top: 15px;
}
.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  margin: 15px 0;
}
.help-item {
  border-bottom: 1px solid var(--color-rule);
  padding: 15px 0;
}
.help-item h3 {
  font-size: 12px;
  margin-bottom: 7px;
}
.help-item p {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.8;
}
@media (min-width: 1600px) {
  .content {
    padding-inline: 40px;
  }
  .workspace-body {
    grid-template-columns: minmax(0, 1fr) 305px;
  }
  .context-panel {
    padding-inline: 28px;
  }
  .file-preview {
    height: 170px;
  }
  .quick-name strong,
  .file-name strong {
    font-size: 12px;
  }
  .file-table td {
    font-size: 11px;
  }
  .folder-card strong {
    font-size: 12px;
  }
  .file-name strong {
    max-width: 280px;
  }
  .quick-bottom,
  .folder-card small {
    font-size: 10px;
  }
}
@media (max-width: 1200px) {
  .workspace-body {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .context-panel {
    padding-inline: 17px;
  }
  .content {
    padding: 28px 22px;
  }
  .app-shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    width: 195px;
    padding-inline: 13px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .quick-grid {
    gap: 10px;
  }
  .quick-meta {
    padding: 11px 9px;
  }
  .file-preview {
    height: 120px;
  }
  .file-table .access-col {
    display: none;
  }
  .file-name strong {
    max-width: 170px;
  }
  .folders-grid {
    gap: 9px;
  }
  .folder-card {
    padding: 13px 10px;
  }
  .folder-card strong {
    font-size: 9px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .heading-actions .btn {
    font-size: 10px;
    padding: 8px 11px;
  }
  .profile-button .profile-copy {
    display: none;
  }
}
@media (max-width: 1000px) {
  .workspace-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .context-panel {
    display: none;
  }
  .context-panel.has-selection {
    display: block;
    position: fixed;
    right: 0;
    top: 84px;
    bottom: 0;
    width: 310px;
    overflow-y: auto;
    z-index: 30;
    box-shadow: -8px 0 25px oklch(27% 0.027 264/0.07);
  }
  .file-table .access-col {
    display: table-cell;
  }
  .file-preview {
    height: 150px;
  }
  .folder-card strong {
    font-size: 11px;
  }
  .quick-name strong {
    font-size: 11px;
  }
  .search-wrap {
    width: 67%;
  }
  .auth-art {
    padding: 40px;
  }
  .auth-art h1 {
    font-size: 35px;
  }
  .illustration-paper {
    right: 0;
  }
  .public-layout {
    grid-template-columns: 1fr;
  }
  .public-layout .context-panel {
    display: block;
    position: static;
    width: auto;
    box-shadow: none;
    border: 0;
  }
  .storage-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--dur-normal) var(--ease-out);
    width: 222px;
    box-shadow: 6px 0 30px oklch(27% 0.027 264/0.08);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 24;
    background: oklch(20% 0.025 265/0.3);
  }
  .topbar {
    height: 72px;
    padding: 0 16px;
    gap: 10px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar-right {
    gap: 0;
  }
  .topbar-right > .icon-btn,
  .top-separator,
  .profile-copy,
  .profile-button > .icon {
    display: none;
  }
  .search-wrap {
    width: auto;
    flex: 1;
    padding: 0 10px;
    gap: 8px;
    height: 39px;
  }
  .search-wrap input {
    font-size: 11px;
    padding: 0;
    min-height: 34px;
  }
  .search-wrap kbd {
    display: none;
  }
  .content {
    padding: 26px 18px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 27px;
  }
  .page-heading h1 {
    font-size: 21px;
    letter-spacing: -0.6px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 240px;
    line-height: 1.7;
  }
  .heading-actions {
    gap: 4px;
  }
  .heading-actions .btn {
    padding: 8px 10px;
  }
  .heading-actions .btn.optional {
    display: none;
  }
  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .file-preview {
    height: 100px;
    padding: 8px;
  }
  .quick-name {
    gap: 5px;
  }
  .quick-name strong {
    font-size: 9px;
  }
  .quick-name .icon {
    width: 13px;
    height: 13px;
  }
  .quick-bottom {
    font-size: 8px;
    margin-top: 7px;
  }
  .quick-meta {
    padding: 10px 8px;
  }
  .quick-bottom .icon-btn {
    width: 18px;
  }
  .preview-doc {
    width: 105px;
    padding: 12px 10px;
    height: 135px;
  }
  .preview-doc strong {
    font-size: 10px;
  }
  .preview-doc .doc-wordmark {
    font-size: 6px;
    margin-bottom: 8px;
  }
  .sheet-preview {
    width: 130px;
    padding: 5px;
  }
  .sheet-title {
    font-size: 7px;
  }
  .sheet-grid span {
    font-size: 5px;
    padding: 3px;
  }
  .folders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .folder-card {
    padding: 13px 15px;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 4px 12px;
  }
  .folder-card > svg {
    grid-row: 1/3;
  }
  .folder-card strong {
    font-size: 11px;
  }
  .folder-card small {
    font-size: 9px;
  }
  .folder-shared {
    display: none;
  }
  .file-table .owner-col,
  .file-table .access-col {
    display: none;
  }
  .file-table td {
    height: 66px;
    font-size: 9px;
    padding-inline: 7px;
  }
  .file-name strong {
    max-width: 175px;
    font-size: 10px;
  }
  .file-symbol {
    width: 28px;
    height: 34px;
  }
  .toolbar-right select {
    max-width: 90px;
    font-size: 9px;
  }
  .filter-chip {
    font-size: 9px;
    padding: 5px 8px;
    gap: 4px;
  }
  .file-toolbar {
    gap: 5px;
  }
  .section-heading h2 {
    font-size: 13px;
  }
  .table-footer {
    font-size: 9px;
  }
  .context-panel.has-selection {
    top: 72px;
    max-width: 100vw;
  }
  .auth-page {
    display: block;
  }
  .auth-art {
    padding: 26px 28px;
    min-height: auto;
  }
  .auth-art h1 {
    font-size: 27px;
    margin: 25px 0 12px;
    max-width: 100%;
  }
  .auth-art p {
    font-size: 11px;
    max-width: 100%;
  }
  .auth-art footer,
  .auth-illustration {
    display: none;
  }
  .auth-art .brand img {
    width: 30px;
    height: 30px;
  }
  .auth-art .wordmark {
    font-size: 25px;
  }
  .auth-form-wrap {
    padding: 35px 28px;
  }
  .auth-form h2 {
    font-size: 23px;
  }
  .public-shell {
    padding-inline: 18px;
  }
  .public-header {
    height: 78px;
    margin-bottom: 25px;
  }
  .public-header .brand {
    padding: 0;
  }
  .public-info h1 {
    font-size: 24px;
  }
  .public-file .file-preview {
    height: 240px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-header {
    padding: 18px 20px;
  }
  .share-add {
    flex-wrap: wrap;
  }
  .share-add input {
    flex-basis: 100%;
  }
  .share-add select {
    flex: 1;
    max-width: none;
  }
  .share-add .btn {
    flex: 1;
  }
  .share-person strong {
    font-size: 10px;
  }
  .share-person small {
    font-size: 9px;
  }
  .share-person .avatar {
    width: 27px;
    height: 27px;
    font-size: 9px;
  }
  .users-table .email-col {
    display: none;
  }
  .users-table .file-name strong {
    max-width: 110px;
    font-size: 10px;
  }
  .users-table td {
    font-size: 9px;
  }
  .storage-type {
    padding: 16px;
  }
  .upload-status {
    max-width: calc(100vw - 32px);
    right: 16px;
  }
  .preview-footer {
    gap: 10px;
    padding: 14px;
  }
  .preview-footer p {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .quick-card:hover {
    transform: none;
  }
}

/* Refined file-card semantics and form states. */
.quick-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.quick-open:hover {
  background: var(--color-canvas);
}
.quick-open .file-preview {
  display: flex;
}
.quick-meta {
  display: block;
  padding-bottom: 0;
}
.quick-bottom {
  margin: 0;
  padding: 8px 13px 12px;
}
.quick-card:hover {
  box-shadow: none;
}
.workspace-switch strong {
  white-space: nowrap;
  font-size: 10px;
}
.workspace-switch .workspace-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.workspace-switch {
  gap: 8px;
}
.brand {
  color: var(--color-ink);
}
.topbar .search-wrap input {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  min-height: 0;
}
.topbar .search-wrap input:hover {
  background: transparent;
}
.form-field input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--color-canvas);
}
.form-field input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}
.modal .btn,
.modal .form-field input,
.modal .form-field select {
  min-height: 44px;
}
.form-error {
  min-height: 1lh;
}
.btn.primary,
.new-button {
  color: var(--color-accent-ink);
}
.heading-actions {
  align-items: center;
}
.page-heading > div:first-child {
  min-width: 0;
}
.quick-open:focus-visible {
  outline-offset: -3px;
}
.quick-bottom .icon-btn {
  min-width: 28px;
  min-height: 24px;
}
@media (max-width: 700px) {
  .quick-bottom {
    padding: 7px 8px 9px;
  }
  .quick-bottom > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .heading-actions {
    margin-top: 6px;
  }
  .icon-btn {
    min-width: 36px;
    min-height: 36px;
  }
  .quick-bottom .icon-btn {
    min-width: 24px;
    min-height: 24px;
  }
  .file-toolbar .toolbar-right {
    flex-wrap: wrap;
  }
  .workspace-switch strong {
    font-size: 11px;
  }
  .context-panel.has-selection {
    width: 320px;
  }
  .file-table .file-name strong {
    max-width: 150px;
  }
}
@media (max-width: 360px) {
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-grid .quick-card:last-child {
    display: none;
  }
  .filter-chip {
    padding-inline: 7px;
  }
  .toolbar-right {
    margin-left: 0;
  }
  .file-table .file-name strong {
    max-width: 130px;
  }
}

/* Keep navigation controls usable on short laptop screens. */
.sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--color-rule) transparent;
}
.nav-item {
  white-space: nowrap;
}
.nav-item[data-view="users"] {
  font-size: 11px;
  gap: 10px;
  padding-inline: 12px;
}
.workspace-switch small {
  white-space: nowrap;
  font-size: 9px;
}
.sidebar > * {
  flex-shrink: 0;
}
@media (min-width: 1001px) and (max-height: 850px) {
  .content {
    padding-top: 24px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .quick-grid {
    margin-bottom: 24px;
  }
  .quick-grid .file-preview {
    height: 108px;
  }
  .folders-grid {
    margin-bottom: 24px;
  }
  .folder-card {
    padding-block: 12px;
    gap: 8px;
  }
  .section-heading {
    margin-bottom: 12px;
  }
  .workspace-switch {
    margin-block: 24px 20px;
  }
  .nav-list {
    margin-top: 20px;
  }
  .sidebar-bottom {
    padding-top: 20px;
  }
}
