@import url("/assets/font.css");
[hidden] {
  display: none !important;
}
:root {
  --bg: #f5f7fb;
  --panel: #fff;
  --soft: #f8fafc;
  --text: #17263c;
  --muted: #69788e;
  --line: #e6ebf2;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #edf3ff;
  --nav: #11253f;
  --nav-muted: #aabbd2;
  --good: #147754;
  --good-bg: #eaf8f1;
  --red: #b63c46;
  --red-bg: #fff0f1;
  --shadow: 0 14px 50px #10253f0d;
  --focus: #3877fb;
  --radius: 14px;
  color-scheme: light;
  font:
    14px/1.5 "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0c1421;
  --panel: #152033;
  --soft: #111b2b;
  --text: #e9eef8;
  --muted: #a6b3c7;
  --line: #2b394f;
  --primary: #6d9aff;
  --primary-hover: #91b3ff;
  --primary-soft: #223451;
  --nav: #090f1c;
  --nav-muted: #acbbd0;
  --good: #77dcaf;
  --good-bg: #163b30;
  --red: #ff9da6;
  --red-bg: #3e2431;
  --shadow: 0 14px 50px #0002;
  --focus: #91b3ff;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.25;
  font-weight: 700;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
p {
  color: var(--muted);
}
svg.icon {
  height: 20px;
  width: 20px;
  flex: none;
  vertical-align: middle;
}
small {
  color: var(--muted);
  font-size: 12px;
}
input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  min-height: 42px;
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
}
label small {
  font-weight: 400;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-stack {
  display: grid;
  gap: 19px;
}
.muted {
  color: var(--muted);
}
.skip {
  position: absolute;
  z-index: 1000;
  left: 15px;
  top: -100px;
  padding: 12px;
  background: var(--panel);
}
.skip:focus {
  top: 10px;
}
.loading-screen {
  display: grid;
  place-content: center;
  gap: 20px;
  min-height: 100vh;
  text-align: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9px;
  min-height: 42px;
  border: 1px solid transparent;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  text-decoration: none;
}
.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 8px #2563eb20;
}
.button.primary:hover {
  background: var(--primary-hover);
}
[data-theme="dark"] .button.primary {
  color: #091427;
}
.button.secondary {
  background: var(--panel);
  border-color: var(--line);
}
.button.secondary:hover,
.icon-button:hover {
  background: var(--primary-soft);
}
.button.ghost {
  background: transparent;
  color: var(--muted);
}
.button.ghost:hover {
  background: var(--soft);
  color: var(--text);
}
.button.danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 25%, transparent);
}
.button.small {
  padding: 6px 10px;
  min-height: 33px;
  font-size: 12px;
}
.button.full {
  width: 100%;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--muted);
}
.icon-button.active {
  color: var(--primary);
  background: var(--primary-soft);
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.7px;
  color: var(--muted);
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 24px;
  letter-spacing: -0.7px;
  font-weight: 750;
  color: var(--text);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  background: var(--primary);
  border-radius: 11px;
  color: white;
  font-size: 22px;
}
.brand-mark .icon {
  width: 25px;
  height: 25px;
}
.beta {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1px;
  padding: 3px 6px;
  border: 1px solid currentColor;
  border-radius: 5px;
  opacity: 0.65;
}
.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  width: 240px;
  inset: 0 auto 0 0;
  background: var(--nav);
  color: #f2f6ff;
  display: flex;
  flex-direction: column;
  padding: 30px 19px 20px;
  z-index: 30;
  overflow-y: auto;
}
.sidebar .brand {
  color: #fff;
  margin: 0 8px 36px;
  font-size: 25px;
}
.sidebar .brand-mark {
  background: #2d6cf1;
}
.nav-label {
  color: #8499b7;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.8px;
  padding: 0 15px;
  margin: 9px 0 13px;
}
.nav-items {
  display: grid;
  gap: 5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  min-height: 44px;
  color: var(--nav-muted);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
}
.nav-link .icon {
  height: 18px;
  width: 18px;
}
.nav-link:hover {
  background: #ffffff0b;
  color: #fff;
  text-decoration: none;
}
.nav-link.active {
  background: #2665e8;
  color: white;
  box-shadow: 0 3px 10px #0002;
}
.nav-link .nav-count {
  margin-left: auto;
  font-size: 10px;
  background: #ffffff20;
  padding: 1px 6px;
  border-radius: 4px;
}
.sidebar-divider {
  height: 1px;
  background: #ffffff12;
  margin: 25px 13px 18px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.storage-card {
  border: 1px solid #ffffff14;
  background: #ffffff05;
  border-radius: 10px;
  padding: 15px;
  margin: 0 5px 15px;
}
.storage-card .storage-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.storage-card p {
  color: #b0bfd4;
  font-size: 10px;
  margin-top: 8px;
}
.storage-card .icon {
  height: 16px;
  width: 16px;
}
.storage-track {
  height: 5px;
  background: var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.sidebar .storage-track {
  background: #ffffff16;
}
.storage-fill {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 20px;
  max-width: 100%;
}
.private-note {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #93a9c4;
  font-size: 10px;
  justify-content: center;
}
.private-note .icon {
  height: 13px;
  width: 13px;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 78px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.topbar-left strong {
  font-weight: 500;
  color: var(--text);
}
.topbar-left .icon {
  height: 13px;
  width: 13px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}
.user-chip strong {
  font-size: 12px;
  display: block;
}
.user-chip small {
  font-size: 10px;
}
.mobile-menu {
  display: none;
}
.main {
  padding: 34px 38px 50px;
  max-width: 1700px;
  margin: 0 auto;
  min-width: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.page-heading p {
  margin-top: 7px;
  font-size: 13px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.subtle-tag {
  color: var(--good);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.subtle-tag .icon {
  height: 14px;
  width: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px 19px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
}
.stat strong {
  display: block;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.stat small {
  font-size: 10px;
}
.content-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-heading {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.panel-heading p {
  margin-top: 3px;
  font-size: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search-field {
  position: relative;
  min-width: 200px;
  flex: 1;
  max-width: 380px;
}
.search-field .icon {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.search-field input {
  padding-left: 37px !important;
  background: var(--soft) !important;
  font-size: 12px;
}
.toolbar select {
  font-size: 12px;
  min-height: 40px;
  padding: 8px 30px 8px 10px;
  width: auto;
  max-width: 180px;
  background: var(--panel);
}
.view-toggle {
  display: flex;
  margin-left: auto;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}
.view-toggle .icon-button {
  width: 30px;
  height: 30px;
}
.view-toggle .icon-button.active {
  background: var(--panel);
  box-shadow: 0 1px 4px #0001;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 22px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs button {
  border: 0;
  padding: 3px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.breadcrumbs button:last-of-type {
  color: var(--text);
  font-weight: 600;
}
.breadcrumbs .icon {
  height: 12px;
  width: 12px;
}
.file-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}
.file-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 10px;
  padding: 13px 12px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.file-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.file-table tbody tr:last-child td {
  border-bottom: 0;
}
.file-table tbody tr:hover {
  background: var(--soft);
}
.file-table tr.selected {
  background: var(--primary-soft);
}
.check-column {
  width: 44px;
  text-align: center !important;
}
.name-column {
  width: 40%;
}
.size-column {
  width: 95px;
}
.date-column {
  width: 135px;
}
.status-column {
  width: 160px;
}
.action-column {
  width: 130px;
}
.file-name-button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  min-width: 0;
}
.file-name-button > span:last-child {
  min-width: 0;
}
.file-name-button strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-name-button small {
  font-size: 10px;
  display: block;
  margin-top: 2px;
}
.file-symbol {
  height: 38px;
  width: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex: none;
}
.file-symbol.amber {
  background: #fff4d6;
  color: #c68912;
}
.file-symbol.blue {
  background: #eaf1ff;
  color: #3977df;
}
.file-symbol.violet {
  background: #f0eaff;
  color: #8a5cd2;
}
.file-symbol.red {
  background: #ffefee;
  color: #db6660;
}
.file-symbol.rose {
  background: #fcebf3;
  color: #c9598a;
}
[data-theme="dark"] .file-symbol.amber {
  background: #41371f;
  color: #f4c45f;
}
[data-theme="dark"] .file-symbol.blue {
  background: #203655;
  color: #8ab4ff;
}
[data-theme="dark"] .file-symbol.violet {
  background: #35294d;
  color: #c4a1ff;
}
[data-theme="dark"] .file-symbol.red {
  background: #462a30;
  color: #ffb0aa;
}
[data-theme="dark"] .file-symbol.rose {
  background: #42283f;
  color: #f5a1ce;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.row-actions .icon-button {
  width: 30px;
  height: 30px;
}
.row-actions .icon {
  height: 16px;
  width: 16px;
}
.status {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 9px;
  border-radius: 5px;
  padding: 4px 6px;
  white-space: nowrap;
}
.status .icon {
  width: 11px;
  height: 11px;
}
.status.good {
  color: var(--good);
  background: var(--good-bg);
}
.status.bad {
  color: var(--red);
  background: var(--red-bg);
}
.status.waiting {
  color: var(--muted);
  background: var(--soft);
}
.share-marker {
  color: var(--primary);
  display: inline-flex;
  margin-left: 5px;
}
.share-marker .icon {
  width: 12px;
  height: 12px;
}
.menu-wrap {
  position: relative;
}
.menu-wrap > summary {
  list-style: none;
  cursor: pointer;
}
.menu-wrap > summary::-webkit-details-marker {
  display: none;
}
.menu-content {
  position: absolute;
  right: 0;
  top: 34px;
  z-index: 20;
  min-width: 190px;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px #0002;
}
.menu-content button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
}
.menu-content button:hover {
  background: var(--primary-soft);
}
.menu-content .danger-text {
  color: var(--red);
}
.menu-content .icon {
  width: 16px;
  height: 16px;
}
.empty {
  padding: 65px 25px 70px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 22px;
  transform: rotate(-5deg);
  color: var(--primary);
}
.empty-icon .icon {
  height: 35px;
  width: 35px;
  transform: rotate(5deg);
}
.empty h3 {
  font-size: 19px;
  font-weight: 650;
}
.empty p {
  max-width: 380px;
  font-size: 12px;
  line-height: 1.8;
}
.empty .heading-actions {
  margin-top: 7px;
}
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 17px;
  padding: 22px;
}
.file-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: visible;
  position: relative;
  background: var(--panel);
}
.file-card:hover {
  border-color: var(--primary);
}
.file-card.selected {
  box-shadow: 0 0 0 2px var(--primary);
}
.card-preview {
  height: 120px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  display: grid;
  place-items: center;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-preview .file-symbol {
  width: 64px;
  height: 64px;
}
.card-preview .icon {
  height: 36px;
  width: 36px;
}
.card-check {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
}
.card-details {
  padding: 13px;
}
.card-details strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.card-details small {
  font-size: 10px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 9px;
}
.selected-bar {
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.selected-bar .heading-actions {
  gap: 5px;
}
.table-footer {
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.below-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-top: 25px;
}
.tip-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: var(--panel);
}
.tip-card > .icon {
  color: var(--primary);
  margin-top: 2px;
}
.tip-card p {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 6px;
}
.tip-card h3 {
  font-size: 13px;
}
.drop-overlay {
  position: fixed;
  inset: 12px;
  border: 3px dashed var(--primary);
  background: color-mix(in srgb, var(--panel) 95%, transparent);
  color: var(--primary);
  z-index: 100;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 20px;
  border-radius: 20px;
  pointer-events: none;
}
.drop-overlay .icon {
  height: 60px;
  width: 60px;
  justify-self: center;
}
.drop-overlay h2 {
  font-size: 26px;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  width: min(540px, calc(100vw - 28px));
  max-height: 90vh;
  box-shadow: 0 25px 100px #0004;
}
dialog::backdrop {
  background: #09182e80;
  backdrop-filter: blur(4px);
}
dialog header {
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
dialog h2 {
  margin-top: 4px;
  overflow-wrap: anywhere;
}
dialog .dialog-body {
  padding: 24px 26px;
  display: grid;
  gap: 18px;
}
dialog .dialog-body p {
  font-size: 13px;
  line-height: 1.7;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 17px 26px;
}
.detail-preview {
  max-height: 240px;
  max-width: 100%;
  border-radius: 12px;
  justify-self: center;
}
.detail-icon {
  justify-self: center;
}
.detail-icon .file-symbol {
  height: 80px;
  width: 80px;
}
.detail-icon .icon {
  height: 40px;
  width: 40px;
}
.detail-meta {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  font-size: 12px;
}
.detail-meta dt {
  color: var(--muted);
}
.detail-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.hash {
  font:
    11px/1.6 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.notice {
  padding: 14px 16px;
  background: var(--primary-soft);
  color: var(--text);
  font-size: 12px;
  line-height: 1.7;
  border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
  border-radius: 10px;
}
.notice.warn {
  background: var(--red-bg);
  border-color: color-mix(in srgb, var(--red) 20%, transparent);
}
.form-error {
  color: var(--red);
  background: var(--red-bg);
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 8px;
  font-size: 12px;
}
.notifications {
  position: fixed;
  right: 24px;
  top: 20px;
  z-index: 500;
  display: grid;
  gap: 9px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 6px 30px #0002;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 12px;
  max-width: 450px;
}
.toast .icon {
  color: var(--good);
}
.toast.error .icon {
  color: var(--red);
}
.upload-tray {
  position: fixed;
  right: 25px;
  bottom: 22px;
  z-index: 35;
  width: min(380px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 12px 45px #0003;
  overflow: hidden;
}
.upload-tray[hidden] {
  display: none;
}
.upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 17px;
  background: var(--nav);
  color: #fff;
  font-size: 12px;
}
.upload-head .icon-button {
  color: #bbcce2;
}
.upload-items {
  max-height: 280px;
  overflow: auto;
}
.upload-item {
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
}
.upload-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 11px;
}
.upload-item-header strong {
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.upload-item p {
  font-size: 10px;
  margin-top: 5px;
}
.upload-item .storage-track {
  height: 3px;
}
.upload-item.error p {
  color: var(--red);
}
.upload-foot {
  padding: 10px 17px;
  color: var(--muted);
  background: var(--soft);
  font-size: 10px;
}
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.section-card {
  padding: 25px;
}
.section-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.section-card > p {
  font-size: 12px;
  margin-bottom: 21px;
}
.section-card .form-stack {
  margin-top: 20px;
}
.section-card.full-width {
  grid-column: 1/-1;
}
.setting-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.setting-line:last-child {
  border-bottom: 0;
}
.setting-line strong {
  font-size: 12px;
  display: block;
}
.setting-line p {
  font-size: 11px;
  margin-top: 3px;
}
.link-row,
.invitation-row {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.link-row:last-child,
.invitation-row:last-child {
  border-bottom: 0;
}
.link-row .link-info,
.invitation-row .link-info {
  flex: 1;
  min-width: 0;
}
.link-info strong {
  font-size: 13px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-info p {
  font-size: 11px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.badge {
  font-size: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 7px;
  color: var(--muted);
}
.tab-bar {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tab-bar button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 0 0 13px;
  font-size: 13px;
  color: var(--muted);
}
.tab-bar button.active {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}
.list-stack {
  display: grid;
  gap: 20px;
}
.session-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.session-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.session-list li:last-child {
  border-bottom: 0;
}
.session-list small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.table-scroll {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}
.admin-table th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.admin-table td small {
  display: block;
  font-size: 10px;
}
.recovery-codes {
  font-family: ui-monospace, monospace;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px;
  background: var(--soft);
  border-radius: 9px;
  font-size: 12px;
}
.secret-text {
  font:
    14px ui-monospace,
    monospace;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
  padding: 15px;
  background: var(--soft);
  border-radius: 8px;
}
.danger-card {
  border-color: color-mix(in srgb, var(--red) 30%, var(--line));
}
.pagination {
  text-align: center;
  padding: 17px;
}
.hint-line {
  font-size: 11px;
  padding: 16px 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
}
.auth-story {
  background: #10243e;
  color: #fff;
  padding: 42px 64px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story .brand {
  color: #fff;
}
.auth-story::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid #ffffff08;
  border-radius: 50%;
  right: -310px;
  bottom: -260px;
  box-shadow:
    0 0 0 90px #ffffff03,
    0 0 0 180px #ffffff02;
  pointer-events: none;
}
.auth-pitch {
  margin: auto 0;
  max-width: 510px;
  padding: 50px 0;
}
.auth-pitch .eyebrow {
  color: #95b8ee;
  font-size: 10px;
}
.auth-pitch h1 {
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1.13;
  letter-spacing: -2px;
  margin-top: 20px;
  font-weight: 650;
}
.auth-pitch h1 span {
  color: #7da7ff;
}
.auth-pitch > p {
  color: #acbfd9;
  font-size: 14px;
  line-height: 1.9;
  margin: 22px 0 32px;
  max-width: 400px;
}
.mini-workspace {
  background: #1b3452;
  border: 1px solid #38516e;
  border-radius: 13px;
  padding: 20px;
  transform: rotate(-2deg);
  margin: 35px 4px 30px;
  max-width: 420px;
  box-shadow: 0 15px 30px #0002;
}
.mini-heading {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  align-items: center;
}
.mini-dot {
  height: 5px;
  width: 5px;
  background: #6680a0;
  border-radius: 50%;
}
.mini-heading span:last-child {
  margin-left: auto;
  font-size: 9px;
  color: #94a9c5;
}
.mini-file {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #ffffff06;
  border: 1px solid #ffffff0a;
  border-radius: 8px;
  padding: 11px;
  margin: 7px 0;
}
.mini-file .file-symbol {
  height: 30px;
  width: 29px;
}
.mini-file .file-symbol .icon {
  height: 17px;
  width: 17px;
}
.mini-file strong {
  font-size: 10px;
  font-weight: 500;
}
.mini-file small {
  font-size: 8px;
  color: #92a9c8;
  display: block;
}
.mini-file > .icon {
  margin-left: auto;
  color: #6fd0b0;
  height: 14px;
  width: 14px;
}
.auth-trust {
  display: flex;
  gap: 22px;
  font-size: 10px;
  color: #a9bdd8;
  flex-wrap: wrap;
}
.auth-trust span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.auth-trust .icon {
  width: 13px;
  height: 13px;
}
.auth-footer {
  font-size: 10px;
  color: #7f98b9;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  padding: 26px 55px;
}
.auth-panel-top {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}
.auth-panel-top small {
  font-size: 10px;
}
.auth-form-wrap {
  width: 100%;
  max-width: 360px;
  margin: auto;
  padding: 50px 0;
}
.auth-form-wrap h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
}
.auth-form-wrap > p {
  font-size: 12px;
  margin: 9px 0 30px;
  line-height: 1.8;
}
.auth-form-wrap label {
  font-size: 12px;
}
.auth-form-wrap input {
  padding: 12px 14px !important;
  min-height: 46px !important;
}
.auth-form-wrap .button {
  min-height: 46px;
}
.auth-options {
  display: flex;
  justify-content: flex-end;
  font-size: 11px;
  margin-top: -6px;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--primary);
  font-size: 12px;
  padding: 2px;
  cursor: pointer;
}
.auth-divider {
  height: 1px;
  background: var(--line);
  margin: 27px 0;
}
.auth-beta-note {
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
  color: var(--muted);
}
.auth-panel-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
}
.auth-panel-bottom button {
  font-size: 10px;
  color: var(--muted);
}
.share-page {
  min-height: 100vh;
}
.share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 6vw;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.share-main {
  max-width: 850px;
  margin: 65px auto;
  padding: 0 25px;
}
.share-main > h1 {
  margin: 17px 0 10px;
  font-size: 32px;
}
.share-main > p {
  font-size: 13px;
  margin-bottom: 25px;
}
.share-lock {
  max-width: 390px;
  text-align: center;
  margin: 80px auto;
}
.share-lock .empty-icon {
  margin: 0 auto 22px;
}
.share-lock form {
  text-align: left;
  margin-top: 25px;
}
.share-foot {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
}
.share-items .file-table .name-column {
  width: 65%;
}
.public-tag {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--good);
  font-size: 11px;
}
.public-tag .icon {
  width: 15px;
  height: 15px;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 42px;
  }
  .auth-story {
    padding: 50px 80px;
  }
  .auth-pitch {
    max-width: 560px;
  }
  .auth-pitch h1 {
    font-size: 60px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 210px 1fr;
  }
  .sidebar {
    width: 210px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .main {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stat {
    padding: 15px 13px;
    gap: 9px;
  }
  .stat-icon {
    width: 32px;
    height: 32px;
  }
  .stat strong {
    font-size: 18px;
  }
  .date-column {
    display: none;
  }
  .status-column {
    width: 145px;
  }
  .name-column {
    width: 45%;
  }
  .action-column {
    width: 115px;
  }
  .auth-story {
    padding: 35px;
  }
  .auth-panel {
    padding: 25px 35px;
  }
  .below-grid {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar select {
    max-width: 145px;
  }
}
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-grid {
    grid-template-columns: 1fr;
  }
  .section-card.full-width {
    grid-column: auto;
  }
  .status-column {
    display: none;
  }
  .name-column {
    width: 60%;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    flex-wrap: wrap;
  }
  .page-heading .heading-actions {
    justify-content: flex-end;
  }
  .toolbar .search-field {
    max-width: none;
    flex-basis: 100%;
  }
  .below-grid {
    grid-template-columns: 1fr;
  }
  .auth-layout {
    grid-template-columns: 0.85fr 1fr;
  }
  .auth-story {
    padding: 30px;
  }
  .auth-pitch h1 {
    font-size: 35px;
  }
  .auth-trust {
    display: grid;
    gap: 10px;
  }
  .mini-workspace {
    padding: 13px;
  }
  .mini-file {
    gap: 8px;
  }
  .topbar-left {
    font-size: 11px;
  }
  .user-chip strong {
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 240px;
    box-shadow: 10px 0 50px #0005;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-scrim {
    position: fixed;
    inset: 0;
    background: #0005;
    z-index: 29;
  }
  .workspace {
    width: 100%;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 63px;
    padding: 0 16px;
  }
  .topbar-left > span:first-of-type {
    display: none;
  }
  .topbar-left > .icon {
    display: none;
  }
  .user-chip {
    padding-left: 10px;
    border-left: 0;
  }
  .user-chip > div:last-child {
    display: none;
  }
  .topbar-right {
    gap: 6px;
  }
  .main {
    padding: 24px 16px 40px;
  }
  h1 {
    font-size: 26px;
  }
  .page-heading {
    flex-direction: column;
    gap: 17px;
    margin-bottom: 20px;
  }
  .page-heading .heading-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .page-heading .heading-actions .button {
    flex: 1;
    font-size: 12px;
  }
  .page-heading .subtle-tag {
    display: none;
  }
  .stats {
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 13px;
  }
  .stat small {
    font-size: 9px;
  }
  .stat strong {
    font-size: 19px;
  }
  .toolbar {
    padding: 13px;
    gap: 8px;
  }
  .toolbar select {
    max-width: 130px;
    flex: 1;
    font-size: 11px;
  }
  .name-column {
    width: auto;
  }
  .size-column {
    display: none;
  }
  .action-column {
    width: 88px;
  }
  .check-column {
    width: 33px;
  }
  .file-table td {
    padding: 13px 7px;
  }
  .file-table th {
    padding: 12px 7px;
  }
  .file-name-button {
    gap: 8px;
  }
  .file-name-button strong {
    font-size: 11px;
  }
  .file-symbol {
    width: 31px;
    height: 36px;
  }
  .row-actions > .icon-button:first-child {
    display: none;
  }
  .row-actions .icon-button {
    width: 29px;
  }
  .breadcrumbs {
    padding: 11px 13px;
    font-size: 11px;
  }
  .content-panel {
    border-radius: 11px;
  }
  .below-grid {
    margin-top: 18px;
    gap: 12px;
  }
  .tip-card {
    padding: 18px;
  }
  .empty {
    padding: 45px 20px;
  }
  .empty h3 {
    font-size: 18px;
  }
  .empty .heading-actions {
    flex-direction: column;
    width: 100%;
    max-width: 250px;
  }
  .empty .button {
    width: 100%;
  }
  .file-grid {
    padding: 13px;
    gap: 11px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-preview {
    height: 110px;
  }
  .card-details {
    padding: 10px;
  }
  .card-details strong {
    font-size: 11px;
  }
  .selected-bar {
    padding: 8px 12px;
    flex-wrap: wrap;
  }
  .table-footer {
    padding: 12px 14px;
  }
  .section-card {
    padding: 20px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .link-row,
  .invitation-row {
    padding: 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .link-row > .heading-actions,
  .invitation-row > .heading-actions {
    width: 100%;
    padding-left: 45px;
  }
  .link-info strong {
    font-size: 12px;
  }
  .panel-heading {
    padding: 17px;
  }
  .notifications {
    right: 14px;
    top: 12px;
  }
  .upload-tray {
    right: 16px;
    bottom: 16px;
  }
  .auth-layout {
    display: flex;
    flex-direction: column;
  }
  .auth-story {
    padding: 26px 24px;
  }
  .auth-story .brand {
    font-size: 24px;
  }
  .auth-pitch {
    padding: 25px 0 7px;
    margin: 0;
  }
  .auth-pitch .eyebrow {
    font-size: 8px;
  }
  .auth-pitch h1 {
    font-size: 33px;
    letter-spacing: -1px;
    margin-top: 10px;
    max-width: 340px;
  }
  .auth-pitch > p {
    font-size: 12px;
    line-height: 1.7;
    margin: 12px 0 0;
  }
  .mini-workspace,
  .auth-trust,
  .auth-footer {
    display: none;
  }
  .auth-panel {
    padding: 16px 24px 25px;
    flex: 1;
  }
  .auth-form-wrap {
    padding: 18px 0 30px;
    max-width: 420px;
  }
  .auth-form-wrap h2 {
    font-size: 24px;
  }
  .auth-form-wrap > p {
    margin-bottom: 22px;
  }
  .auth-panel-top {
    position: absolute;
    right: 20px;
    top: 26px;
  }
  .auth-panel-top small {
    display: none;
  }
  .auth-panel-top .icon-button {
    color: #fff;
  }
  .auth-panel-bottom {
    font-size: 9px;
  }
  .share-header {
    padding: 20px;
  }
  .share-header .brand {
    font-size: 21px;
  }
  .share-main {
    margin: 35px auto;
    padding: 0 16px;
  }
  .share-main > h1 {
    font-size: 25px;
  }
  .share-lock {
    margin-top: 50px;
  }
  .share-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .public-tag {
    font-size: 10px;
  }
  dialog header {
    padding: 20px;
  }
  dialog .dialog-body {
    padding: 20px;
  }
  dialog footer {
    padding: 16px 20px;
  }
  .detail-meta {
    grid-template-columns: 100px 1fr;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
