@charset "UTF-8";
:root {
  --bg: #fff;
  --sidebar: #f6f8f8;
  --ink: #263633;
  --muted: #75817e;
  --line: #e6ebe9;
  --primary: oklch(0.46 0.078 172);
  --primary-hover: oklch(0.39 0.075 172);
  --tint: #e8f2ed;
  --danger: #be4141;
  --radius: 9px;
  --font:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button,
a,
summary,
input,
select {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
}
svg {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 16px;
  font-weight: 650;
}
small {
  font-size: 12px;
}
input:not([type="checkbox"]),
textarea {
  border: 1px solid #dce3df;
  border-radius: 7px;
  padding: 10px 12px;
  width: 100%;
  background: white;
  color: var(--ink);
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
select {
  border: 0;
  border-radius: 6px;
  padding: 7px 22px 7px 8px;
  background: transparent;
  color: #63706a;
  cursor: pointer;
  max-width: 100%;
}
select:hover {
  background: #f4f7f5;
}
.primary,
.secondary,
.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  min-height: 38px;
  padding: 9px 14px;
  line-height: 20px;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition: background 0.15s;
}
.primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
}
.primary:hover {
  background: var(--primary-hover);
}
.secondary {
  background: white;
  border: 1px solid #dce3df;
  box-shadow: 0 1px 2px #18312505;
}
.secondary:hover {
  background: #f6f8f7;
}
.quiet {
  padding: 8px 10px;
  color: #62716b;
}
.quiet:hover {
  background: #f2f6f3;
}
.icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 7px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #edf2ef;
}
.text-button {
  font-size: 12px;
  color: var(--primary);
  padding: 7px;
  cursor: pointer;
}
.danger {
  color: var(--danger) !important;
}
.primary.danger {
  background: var(--danger);
  color: white !important;
}
.muted,
.hint {
  color: var(--muted);
  font-size: 12px;
}
.hint {
  line-height: 1.7;
}
.error {
  color: var(--danger);
  font-size: 13px;
  white-space: pre-line;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mobile-only {
  display: none;
}
.brand-symbol {
  width: 35px;
  height: 35px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: 29px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -2px;
  padding-right: 3px;
}
.splash {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 216px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 28px 14px 0;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 31px;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: 0.8px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #7e8984;
  letter-spacing: 2px;
  margin-top: 1px;
}
.space-label {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e0e7e2;
  background: #fff;
  padding: 11px 9px;
  border-radius: 9px;
  margin: 0 2px 26px;
  font-size: 12px;
  font-weight: 600;
}
.space-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 30px;
  border-radius: 7px;
  background: #edf3ef;
  color: #4b7866;
}
.space-label small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #89938e;
  margin-top: 2px;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: #73a48a;
  border-radius: 50%;
  margin-left: auto;
}
.nav-label {
  font-size: 10px;
  color: #89938e;
  letter-spacing: 1.5px;
  padding: 0 14px;
  margin-bottom: 9px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 13px;
  color: #75817a;
  margin: 4px 0;
  min-height: 42px;
}
.nav:hover {
  background: #edf1ef;
  color: var(--ink);
}
.nav.active {
  background: #e5efea;
  color: #276649;
  font-weight: 600;
}
.nav svg {
  width: 18px;
  height: 18px;
}
.sidebar-bottom {
  margin-top: auto;
}
.storage-summary {
  margin: 25px 13px 18px;
  display: flex;
  gap: 10px;
  color: #839087;
  font-size: 11px;
}
.storage-summary > svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.storage-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #53675b;
  font-weight: 600;
}
.storage-summary small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.account {
  border-top: 1px solid var(--line);
  width: 100%;
  padding: 18px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.account > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.account strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.account small {
  display: block;
  font-size: 10px;
  color: #8a948e;
  margin-top: 2px;
}
.account > span:last-child {
  color: #8e9a92;
}
.avatar {
  display: inline-grid;
  place-items: center;
  background: #e6eee9;
  color: #4e765e;
  border: 1px solid #d6e4d9;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 650;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.main-shell {
  margin-left: 216px;
  min-height: 100vh;
}
.topbar {
  height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
}
.topbar-label {
  font-size: 11px;
  color: #8a958f;
  white-space: nowrap;
  flex: 1;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f5f7f6;
  border: 1px solid #edf0ee;
  border-radius: 7px;
  padding: 0 12px;
  width: min(38vw, 400px);
  height: 35px;
  color: #9aa69f;
  margin-right: auto;
}
.global-search input {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  outline: none;
  min-width: 0;
}
.global-search:focus-within {
  border-color: #85ad96;
  box-shadow: 0 0 0 2px #e7f2ea;
}
.global-search input:focus-visible {
  outline: none;
}
.global-search kbd {
  font: 10px var(--font);
  white-space: nowrap;
  color: #94a098;
  border: 1px solid #e0e6e2;
  background: #fff;
  border-radius: 4px;
  padding: 1px 4px;
}
.global-search svg {
  width: 16px;
  height: 16px;
}
#queue-count {
  font-size: 10px;
  border-radius: 8px;
  padding: 0 5px;
  background: #dcece2;
  color: #377455;
}
#main-content {
  padding: 27px 32px 0;
  max-width: 1900px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.page-heading p {
  font-size: 11px;
  color: #8a958f;
  margin-top: 6px;
}
.heading-actions {
  display: flex;
  gap: 9px;
}
.dropdown {
  position: relative;
}
.dropdown summary {
  list-style: none;
  cursor: pointer;
}
.dropdown summary::-webkit-details-marker {
  display: none;
}
.dropdown summary svg:last-child {
  width: 13px;
  height: 13px;
  margin-left: 4px;
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 166px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px;
  box-shadow: 0 10px 30px #22332916;
  z-index: 10;
}
.dropdown-panel button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  width: 100%;
  text-align: left;
  font-size: 12px;
  border-radius: 5px;
}
.dropdown-panel button:hover {
  background: #f2f6f3;
}
.location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--line);
  min-height: 45px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: auto;
  white-space: nowrap;
  font-size: 12px;
  color: #85928a;
}
.breadcrumbs a {
  padding: 4px 0;
}
.breadcrumbs a:hover {
  color: var(--primary);
}
.breadcrumbs svg {
  width: 12px;
  height: 12px;
  color: #aeb8b1;
}
.breadcrumbs a:last-child {
  color: #40554a;
  font-weight: 550;
}
.breadcrumbs a:first-child > svg {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  color: #72947f;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.filters,
.view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.filters select,
.view-controls select {
  font-size: 11px;
}
.filters label:first-child select {
  padding-left: 0;
}
.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.view-toggle button {
  width: 29px;
  height: 26px;
  border-radius: 4px;
}
.view-toggle svg {
  width: 15px;
  height: 15px;
}
.view-toggle .selected {
  background: #e9f0ec;
  color: #427052;
}
.selection-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #edf5ef;
  border-radius: 6px;
  margin: 5px 0 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: #427052;
}
.selection-bar button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 5px;
}
.selection-bar button svg {
  width: 15px;
  height: 15px;
}
.selection-bar #clear-selection {
  margin-left: auto;
}
.file-list {
  position: relative;
  min-height: 100px;
}
.file-list.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
.file-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}
.file-table th {
  height: 38px;
  font-size: 11px;
  font-weight: 400;
  color: #8a978e;
  background: #f8faf9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
}
.file-table th button {
  padding: 7px 0;
  font-size: inherit;
  color: inherit;
}
.file-table .check-col {
  width: 38px;
  text-align: center;
  padding: 0 8px;
}
.file-table .size-col {
  width: 95px;
}
.file-table .date-col {
  width: 156px;
}
.file-table .user-col {
  width: 110px;
}
.file-table .action-col {
  width: 75px;
  text-align: right;
}
.file-table td {
  height: 62px;
  border-bottom: 1px solid #eff2f0;
  padding: 9px 12px;
  color: #7f8b83;
  font-size: 11px;
}
.file-table tbody tr:hover {
  background: #f8faf8;
}
.file-table tbody tr.selected {
  background: #f0f7f2;
}
.file-name-button {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 0;
  text-align: left;
  min-height: 42px;
}
.file-name-button > span:last-child {
  min-width: 0;
}
.file-name {
  font-size: 12px;
  color: #3c4e43;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-path {
  font-size: 10px;
  color: #96a299;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}
.type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 37px;
  border-radius: 7px;
  background: #f1f4f6;
  color: #7898ad;
  flex-shrink: 0;
}
.type-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}
.type-icon.folder {
  background: #fff8e8;
  color: #cca24e;
}
.type-icon.folder svg {
  fill: #f6d98c;
  stroke: #d5ad57;
}
.type-icon.image {
  background: #eff4fa;
  color: #739ed0;
}
.type-icon.video {
  background: #f3eff9;
  color: #a18ac5;
}
.type-icon.audio {
  background: #fbedf2;
  color: #c286a0;
}
.type-icon.archive {
  background: #faf3ec;
  color: #bd9876;
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0;
}
.row-actions .icon-button {
  width: 28px;
  height: 29px;
  color: #91a097;
}
.row-actions svg {
  width: 16px;
  height: 16px;
}
.row-actions .download-action {
  opacity: 0;
}
.file-table tr:hover .download-action,
.file-table tr:focus-within .download-action {
  opacity: 1;
}
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 16px;
  padding: 8px 0 12px;
}
.file-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  position: relative;
  padding: 11px;
  background: #fff;
  min-width: 0;
}
.file-card:hover {
  border-color: #b9cbbf;
}
.file-card.selected {
  background: #f3f8f4;
  border-color: #96b69f;
}
.file-card > input {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
}
.file-card > .icon-button {
  position: absolute;
  right: 4px;
  top: 5px;
  z-index: 1;
}
.card-preview {
  width: 100%;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 11px;
}
.card-preview .type-icon {
  width: 65px;
  height: 65px;
  background: transparent;
}
.card-preview .type-icon svg {
  width: 49px;
  height: 49px;
  stroke-width: 1.2;
}
.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.file-card .file-name-button {
  min-height: 0;
  display: block;
  width: 100%;
}
.file-card .file-name {
  font-size: 12px;
}
.card-meta {
  font-size: 10px;
  color: #9ba69e;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.grid-select {
  padding: 0 3px 8px;
  font-size: 11px;
  color: #89968d;
  display: flex;
  align-items: center;
  gap: 7px;
}
.list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  font-size: 10px;
  color: #97a39b;
}
#pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 390px;
  text-align: center;
  padding: 32px 20px;
}
.empty-illustration {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 23px;
  background: #f4f7f4;
  color: #9fb3a5;
  margin-bottom: 20px;
  border: 1px solid #e9eeea;
}
.empty-illustration svg {
  width: 39px;
  height: 39px;
  stroke-width: 1.2;
}
.empty h2 {
  font-size: 15px;
  font-weight: 550;
  margin-bottom: 9px;
}
.empty p {
  font-size: 12px;
  color: #8a978e;
  margin-bottom: 20px;
  max-width: 440px;
}
.empty .secondary {
  font-size: 12px;
}
.empty .text-button {
  margin-top: 7px;
}
.detail-panel {
  position: fixed;
  right: 0;
  top: 64px;
  bottom: 0;
  width: 320px;
  background: white;
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 24px #25352b08;
  z-index: 25;
  overflow: auto;
}
.detail-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 20px;
  border-bottom: 1px solid var(--line);
}
.detail-panel > header h2 {
  font-size: 14px;
}
#detail-content {
  padding: 24px;
}
.detail-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.detail-icon .type-icon {
  width: 70px;
  height: 76px;
}
.detail-icon svg {
  width: 40px;
  height: 40px;
}
.detail-title {
  text-align: center;
  overflow-wrap: anywhere;
  font-size: 14px;
  margin-bottom: 25px;
}
.detail-panel dl {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 13px;
  font-size: 11px;
  margin: 0;
}
.detail-panel dt {
  color: #97a097;
}
.detail-panel dd {
  margin: 0;
  color: #657468;
  overflow-wrap: anywhere;
}
.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.detail-section h3 {
  font-size: 12px;
  margin-bottom: 12px;
}
.activity-item {
  font-size: 11px;
  color: #7c897f;
  padding: 8px 0;
}
.activity-item small {
  display: block;
  font-size: 10px;
  color: #9ca69f;
  margin-top: 3px;
}
.transfer-panel {
  position: fixed;
  right: 24px;
  bottom: 20px;
  width: 440px;
  max-height: 75vh;
  background: white;
  border: 1px solid #dce5df;
  border-radius: 12px;
  box-shadow: 0 12px 60px #1b322323;
  z-index: 45;
  display: flex;
  flex-direction: column;
}
.transfer-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.transfer-panel h2 {
  font-size: 14px;
}
.transfer-panel h2 span {
  font-size: 11px;
  color: #99a499;
  font-weight: 400;
  margin-left: 7px;
}
.transfer-panel header p {
  font-size: 10px;
  color: #94a094;
  margin-top: 4px;
}
.transfer-panel > footer {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #8e9a90;
}
#queue-list {
  overflow: auto;
  max-height: 52vh;
  min-height: 100px;
}
.queue-empty {
  padding: 44px 20px;
  text-align: center;
  color: #94a195;
  font-size: 12px;
}
.queue-item {
  padding: 15px 18px;
  border-bottom: 1px solid #f0f3f0;
}
.queue-top {
  display: flex;
  gap: 10px;
  align-items: center;
}
.queue-top > div {
  flex: 1;
  min-width: 0;
}
.queue-top strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-top small {
  display: block;
  color: #96a094;
  font-size: 10px;
  margin-top: 3px;
}
.queue-progress {
  height: 3px;
  background: #edf2ed;
  border-radius: 3px;
  margin: 10px 0 7px;
  overflow: hidden;
}
.queue-progress > span {
  display: block;
  height: 100%;
  background: #77a28a;
  transition: width 0.15s;
}
.queue-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #859183;
}
.queue-bottom > .error {
  font-size: 10px;
  max-width: 260px;
}
.queue-buttons {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.queue-buttons button {
  font-size: 10px;
  color: var(--primary);
  padding: 3px;
}
.done-mark {
  color: #68a17c;
}
.queue-top .type-icon {
  width: 28px;
  height: 32px;
}
.queue-top svg {
  width: 18px;
  height: 18px;
}
#drop-overlay {
  position: fixed;
  inset: 12px;
  background: #f0f8f2f5;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px dashed #79a887;
  border-radius: 16px;
  pointer-events: none;
  color: #4c805b;
}
#drop-overlay > svg {
  width: 55px;
  height: 55px;
  margin-bottom: 20px;
}
#drop-overlay p {
  font-size: 13px;
  color: #8a9f8d;
  margin-top: 12px;
}
.context-menu {
  position: fixed;
  z-index: 90;
  min-width: 165px;
  background: white;
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 9px;
  box-shadow: 0 8px 28px #21372822;
}
.context-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-size: 12px;
  padding: 9px 11px;
  border-radius: 5px;
}
.context-menu button:hover {
  background: #f1f6f2;
}
.context-menu svg {
  width: 16px;
  height: 16px;
}
.context-menu hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 6px;
}
dialog {
  color: var(--ink);
  width: min(460px, calc(100vw - 32px));
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 100px #16271e30;
}
dialog::backdrop {
  background: #17291e55;
  backdrop-filter: blur(2px);
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
dialog header h2 {
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
dialog header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
#form-fields label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  margin: 16px 0;
}
#form-fields > p {
  color: #7c897f;
  line-height: 1.8;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#form-fields select {
  border: 1px solid #dce3df;
  padding: 10px;
  background: white;
}
#form-fields textarea {
  min-height: 90px;
  resize: vertical;
  font-size: 12px;
}
#form-error {
  margin-top: 12px;
}
.preview-dialog {
  width: min(1040px, 94vw);
}
#preview-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: #f5f7f5;
  border-radius: 7px;
  overflow: auto;
}
#preview-content img,
#preview-content video {
  max-width: 100%;
  max-height: 68vh;
}
#preview-content audio {
  width: min(450px, 90%);
}
#preview-content iframe {
  border: 0;
  width: 100%;
  height: 65vh;
}
#preview-content pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  align-self: stretch;
  text-align: left;
  margin: 0;
  padding: 22px;
  width: 100%;
  max-height: 65vh;
  overflow: auto;
  font:
    13px/1.8 ui-monospace,
    monospace;
}
#preview-content .hint {
  padding: 24px;
}
#preview-meta {
  margin-top: 12px;
}
.folder-picker {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-top: 14px;
  max-height: 320px;
  overflow: auto;
}
.picker-path {
  padding: 10px 12px;
  background: #f6f8f6;
  font-size: 11px;
  color: #7e8c80;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}
.picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid #f2f4f2;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
.picker-row:hover {
  background: #f1f6f2;
}
.picker-row > span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.picker-empty {
  font-size: 11px;
  padding: 20px;
  color: #8b968d;
}
.member-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.member-table th {
  background: #f7f9f7;
  color: #91a093;
  font-size: 11px;
  font-weight: 400;
  padding: 12px;
}
.member-table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 12px;
  font-size: 12px;
}
.member-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-person strong {
  font-size: 12px;
  font-weight: 550;
}
.member-person small {
  display: block;
  font-size: 10px;
  color: #95a096;
  margin-top: 3px;
}
.badge {
  font-size: 10px;
  border-radius: 5px;
  padding: 4px 7px;
  background: #eef6f0;
  color: #65886a;
}
.badge.off {
  background: #f5f5f3;
  color: #9a9c94;
}
.member-table select {
  border: 1px solid var(--line);
  font-size: 11px;
}
.member-table button {
  font-size: 11px;
}
.role-note {
  font-size: 11px;
  color: #8e9b8f;
  margin-bottom: 16px;
}
#toasts {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  z-index: 200;
  max-width: 90vw;
  pointer-events: none;
}
.toast {
  font-size: 12px;
  background: #2f4938;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 5px 25px #1e332726;
  white-space: pre-line;
}
.toast.error {
  background: #a94f4f;
  color: white;
}
#auth {
  min-height: 100vh;
  background: #f6f8f6;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 65px 0 38px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}
.auth-brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #8d998f;
}
.auth-form {
  width: min(400px, calc(100vw - 36px));
  padding: 32px;
  border: 1px solid #e1e9e2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 50px #304c3705;
}
.auth-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #edf4ef;
  color: #6a9676;
  margin-bottom: 18px;
}
.auth-form h1 {
  font-size: 22px;
}
.auth-form > p:not(.error) {
  font-size: 12px;
  color: #929c93;
  margin-top: 9px;
  margin-bottom: 24px;
}
.auth-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #637568;
  margin: 18px 0;
}
.auth-form input {
  padding: 11px 12px;
}
.auth-form .wide {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}
.auth-form .error {
  margin: 10px 0;
}
.auth-form #login-hint {
  font-size: 11px;
  margin: 20px 0 0;
  line-height: 1.8;
}
.auth-footer {
  font-size: 10px;
  color: #a6aea7;
  margin: 30px 0;
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: #142a1d44;
  z-index: 29;
}
@media (min-width: 1200px) {
  body.has-detail #main-content {
    margin-right: 320px;
  }
  .has-detail .user-col {
    display: none;
  }
}
@media (max-width: 1100px) {
  .topbar-label {
    display: none;
  }
  .global-search {
    width: min(50vw, 420px);
  }
  .file-table .user-col {
    display: none;
  }
  .topbar {
    padding: 0 24px;
  }
  #main-content {
    padding: 24px 24px 0;
  }
  .file-table .date-col {
    width: 137px;
  }
  .file-table .size-col {
    width: 75px;
  }
}
@media (max-width: 767px) {
  .mobile-only {
    display: inline-flex;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: none;
  }
  .main-shell {
    margin-left: 0;
  }
  .topbar {
    height: 58px;
    padding: 0 14px;
    gap: 8px;
  }
  .global-search {
    width: auto;
    flex: 1;
    height: 33px;
    padding: 0 9px;
  }
  .global-search input {
    font-size: 11px;
  }
  .global-search kbd {
    display: none;
  }
  .topbar .quiet {
    padding: 6px;
  }
  .topbar .quiet > span:not([data-icon]) {
    display: none;
  }
  .topbar > #top-avatar {
    display: none;
  }
  #main-content {
    padding: 23px 16px 0;
  }
  .page-heading {
    margin-bottom: 20px;
    gap: 10px;
  }
  h1 {
    font-size: 22px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .heading-actions {
    gap: 6px;
  }
  .heading-actions .secondary {
    font-size: 0;
    width: 35px;
    padding: 7px;
    min-height: 35px;
  }
  .heading-actions .primary {
    font-size: 12px;
    padding: 7px 10px;
    min-height: 35px;
  }
  .heading-actions svg {
    width: 16px;
    height: 16px;
  }
  .location-row {
    padding-bottom: 12px;
  }
  .breadcrumbs {
    font-size: 11px;
    gap: 4px;
  }
  #result-count {
    font-size: 10px;
    white-space: nowrap;
  }
  .toolbar {
    gap: 5px;
    flex-wrap: wrap;
    padding: 9px 0;
  }
  .filters {
    gap: 2px;
  }
  .view-controls {
    gap: 2px;
  }
  .filters select,
  .view-controls select {
    font-size: 10px;
    padding-right: 16px;
    padding-left: 5px;
  }
  .view-controls select {
    max-width: 96px;
  }
  .view-toggle button {
    width: 26px;
    height: 25px;
  }
  .file-table .date-col,
  .file-table .user-col {
    display: none;
  }
  .file-table .size-col {
    width: 68px;
  }
  .file-table .action-col {
    width: 35px;
    padding: 4px;
  }
  .file-table .check-col {
    width: 26px;
    padding: 0 3px;
  }
  .file-table td,
  .file-table th {
    padding: 8px 6px;
  }
  .file-table td {
    height: 64px;
  }
  .file-name-button {
    gap: 8px;
  }
  .file-name {
    font-size: 12px;
  }
  .type-icon {
    width: 28px;
    height: 32px;
  }
  .type-icon svg {
    width: 21px;
    height: 21px;
  }
  .row-actions .download-action {
    display: none;
  }
  .row-actions .icon-button {
    width: 26px;
  }
  .file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .file-card {
    padding: 10px;
  }
  .selection-bar {
    padding: 7px 8px;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .selection-bar button {
    font-size: 11px;
    gap: 3px;
  }
  .selection-bar button svg {
    width: 13px;
    height: 13px;
  }
  .empty {
    min-height: 370px;
  }
  .detail-panel {
    top: 0;
    width: 100%;
    z-index: 70;
  }
  .transfer-panel {
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
    max-height: 78vh;
  }
  .transfer-panel footer {
    font-size: 9px;
  }
  .context-menu {
    max-width: calc(100vw - 20px);
  }
  dialog {
    padding: 20px;
  }
  .preview-dialog {
    width: calc(100vw - 16px);
    padding: 15px;
  }
  .preview-dialog header {
    gap: 5px;
  }
  .preview-dialog header h2 {
    font-size: 13px;
  }
  .preview-dialog header .secondary {
    font-size: 11px;
    padding: 6px 9px;
  }
  .preview-dialog header > div {
    gap: 3px;
  }
  #preview-content {
    min-height: 250px;
  }
  .member-table th,
  .member-table td {
    padding: 12px 5px;
    font-size: 11px;
  }
  .member-table th:nth-child(3),
  .member-table td:nth-child(3) {
    display: none;
  }
  .member-person {
    gap: 7px;
  }
  .member-person .avatar {
    display: none;
  }
  .member-person small {
    font-size: 9px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .member-table select {
    font-size: 10px;
    max-width: 90px;
  }
  .role-note {
    font-size: 10px;
  }
  .list-footer {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
