:root {
  color-scheme: light;
  --primary-text: white;
  --primary-hover: #3852c5;
  --tone-263548: #263548;
  --tone-273449: #273449;
  --tone-28384e: #28384e;
  --tone-33425a: #33425a;
  --tone-35425a: #35425a;
  --tone-3852c5: #3852c5;
  --tone-46546a: #46546a;
  --tone-48576a: #48576a;
  --tone-4864db: #4864db;
  --tone-4d987c: #4d987c;
  --tone-566378: #566378;
  --tone-66758a: #66758a;
  --tone-68a48e: #68a48e;
  --tone-6c9584: #6c9584;
  --tone-70a58e: #70a58e;
  --tone-7486d2: #7486d2;
  --tone-7c889b: #7c889b;
  --tone-7d8797: #7d8797;
  --tone-8298ef: #8298ef;
  --tone-8590a1: #8590a1;
  --tone-8590a2: #8590a2;
  --tone-8795b1: #8795b1;
  --tone-8993a3: #8993a3;
  --tone-8994a5: #8994a5;
  --tone-9099a7: #9099a7;
  --tone-929cac: #929cac;
  --tone-95a0b0: #95a0b0;
  --tone-98a1af: #98a1af;
  --tone-9aa4b2: #9aa4b2;
  --tone-9caadb: #9caadb;
  --tone-a0a8b6: #a0a8b6;
  --tone-a0a9b6: #a0a9b6;
  --tone-a2adbd: #a2adbd;
  --tone-a38151: #a38151;
  --tone-a5aebc: #a5aebc;
  --tone-abb3c0: #abb3c0;
  --tone-b0b8c4: #b0b8c4;
  --tone-b9c1ce: #b9c1ce;
  --tone-bc4855: #bc4855;
  --tone-be5360: #be5360;
  --tone-c2c9d5: #c2c9d5;
  --tone-c64551: #c64551;
  --tone-c69d68: #c69d68;
  --tone-c9cfda: #c9cfda;
  --tone-d38d88: #d38d88;
  --tone-dfe4ec: #dfe4ec;
  --tone-e3ece8: #e3ece8;
  --tone-e6bc66: #e6bc66;
  --tone-e9edf3: #e9edf3;
  --tone-edf0fb: #edf0fb;
  --tone-edf7f3: #edf7f3;
  --tone-eef0f5: #eef0f5;
  --tone-eef1fd: #eef1fd;
  --tone-eef5f1: #eef5f1;
  --tone-eff2fa: #eff2fa;
  --tone-f0e9df: #f0e9df;
  --tone-f0f2f6: #f0f2f6;
  --tone-f0f2fc: #f0f2fc;
  --tone-f0f3fa: #f0f3fa;
  --tone-f0f3ff: #f0f3ff;
  --tone-f2f4fe: #f2f4fe;
  --tone-f2f5ff: #f2f5ff;
  --tone-f6f8fb: #f6f8fb;
  --tone-fafbfd: #fafbfd;
  --tone-fafbfe: #fafbfe;
  --tone-fbf4e9: #fbf4e9;
  --tone-fbfefc: #fbfefc;
  --tone-fcfdff: #fcfdff;
  --tone-fff: #fff;
  --tone-fff0ef: #fff0ef;
  --tone-fff7e5: #fff7e5;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary-text: #101722;
  --primary-hover: #a0b0ff;
  --tone-263548: #e3e9f2;
  --tone-273449: #e3e9f2;
  --tone-28384e: #293b56;
  --tone-33425a: #e2e9f4;
  --tone-35425a: #e3e9f2;
  --tone-3852c5: #536ee4;
  --tone-46546a: #d7e0ef;
  --tone-48576a: #d0d9e7;
  --tone-4864db: #879aff;
  --tone-4d987c: #98d8b9;
  --tone-566378: #c4cede;
  --tone-66758a: #c1cde0;
  --tone-68a48e: #9cdbc3;
  --tone-6c9584: #99cdb6;
  --tone-70a58e: #a0d4ba;
  --tone-7486d2: #a8b9ff;
  --tone-7c889b: #aebbd0;
  --tone-7d8797: #a7b3c5;
  --tone-8298ef: #a8b9ff;
  --tone-8590a1: #b0bdd0;
  --tone-8590a2: #b0bed3;
  --tone-8795b1: #b3c3dd;
  --tone-8993a3: #a1aec0;
  --tone-8994a5: #a9b8ce;
  --tone-9099a7: #a6b3c6;
  --tone-929cac: #aab8ce;
  --tone-95a0b0: #a8b6c9;
  --tone-98a1af: #a6b3c6;
  --tone-9aa4b2: #a7b5c9;
  --tone-9caadb: #a8b9ff;
  --tone-a0a8b6: #aab9cf;
  --tone-a0a9b6: #a3b0c2;
  --tone-a2adbd: #a8b9d1;
  --tone-a38151: #e6bd83;
  --tone-a5aebc: #a2b1c6;
  --tone-abb3c0: #9faec4;
  --tone-b0b8c4: #a1b0c6;
  --tone-b9c1ce: #899bb7;
  --tone-bc4855: #ff8994;
  --tone-be5360: #ff8994;
  --tone-c2c9d5: #7f8ea5;
  --tone-c64551: #ff8994;
  --tone-c69d68: #e5bf8d;
  --tone-c9cfda: #64748b;
  --tone-d38d88: #edada8;
  --tone-dfe4ec: #35445a;
  --tone-e3ece8: #314f45;
  --tone-e6bc66: #f1cc81;
  --tone-e9edf3: #2d3b4f;
  --tone-edf0fb: #29385c;
  --tone-edf7f3: #203d34;
  --tone-eef0f5: #35445a;
  --tone-eef1fd: #29385c;
  --tone-eef5f1: #203d34;
  --tone-eff2fa: #2b3950;
  --tone-f0e9df: #3d3329;
  --tone-f0f2f6: #2d3b4f;
  --tone-f0f2fc: #283657;
  --tone-f0f3fa: #25344b;
  --tone-f0f3ff: #29385c;
  --tone-f2f4fe: #29385c;
  --tone-f2f5ff: #243556;
  --tone-f6f8fb: #101722;
  --tone-fafbfd: #162131;
  --tone-fafbfe: #202d40;
  --tone-fbf4e9: #3c3228;
  --tone-fbfefc: #1c302b;
  --tone-fcfdff: #162131;
  --tone-fff: #1a2535;
  --tone-fff0ef: #422c32;
  --tone-fff7e5: #423624;
}
:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--tone-263548);
  background: var(--tone-f6f8fb);
  font-synthesis: none;
  --accent: var(--tone-4864db);
  --muted: var(--tone-8993a3);
  --line: var(--tone-e9edf3);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
a {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--tone-dfe4ec);
  border-radius: 8px;
  background: var(--tone-fff);
  color: var(--tone-48576a);
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
button:hover,
.button:hover {
  background: var(--tone-f0f3fa);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #adbaff;
  outline-offset: 3px;
}
.primary {
  background: var(--accent);
  color: var(--primary-text);
  border-color: var(--accent);
  box-shadow: 0 3px 6px #4864db18;
}
.primary:hover {
  background: var(--primary-hover);
}
.danger {
  color: var(--tone-c64551) !important;
}
input:not([type="checkbox"]):not([type="file"]),
select {
  border: 1px solid var(--tone-dfe4ec);
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  background: var(--tone-fff);
  color: var(--tone-263548);
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
label input {
  margin-top: 8px;
}
h1 {
  font-size: 31px;
  letter-spacing: -1px;
  margin: 9px 0 10px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
p {
  line-height: 1.6;
  color: var(--tone-7d8797);
  font-size: 13px;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 242px;
  flex-shrink: 0;
  background: var(--tone-fff);
  border-right: 1px solid var(--line);
  padding: 35px 23px 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 29px;
  letter-spacing: -1.4px;
  font-weight: 750;
  color: var(--tone-273449);
  gap: 8px;
}
.brand-dot {
  color: var(--accent);
  margin-left: -9px;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: var(--primary-text);
  width: 35px;
  height: 35px;
  font-size: 29px;
  font-weight: 700;
  border-radius: 10px;
  letter-spacing: -2px;
  font-style: italic;
  margin-right: 3px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--tone-a0a9b6);
  font-weight: 600;
  margin: 53px 12px 15px;
}
.nav-item {
  border: 0;
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  padding: 13px 14px;
  color: var(--tone-7d8797);
}
.nav-item .app-icon {
  width: 20px;
  height: 20px;
}
.nav-item.active {
  background: var(--tone-eef1fd);
  color: var(--accent);
}
.side-note {
  margin-top: auto;
  border: 1px solid var(--line);
  padding: 17px 15px;
  border-radius: 12px;
  background: var(--tone-fafbfe);
}
.note-icon {
  font-size: 26px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.side-note strong {
  font-size: 11px;
}
.side-note p {
  font-size: 11px;
  margin-bottom: 0;
}
.account {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  border-radius: 50%;
  background: var(--tone-f0e9df);
  color: var(--tone-a38151);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-weight: 600;
}
.account strong {
  font-size: 11px;
  display: block;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.icon-button {
  border: 0;
  background: transparent;
  padding: 7px;
  font-size: 21px;
}
.account .icon-button {
  margin-left: auto;
}
.quiet {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  margin-top: 9px;
}
main {
  margin-left: 242px;
  min-width: 0;
  flex: 1;
}
.topbar {
  height: 82px;
  background: var(--tone-fff);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  font-size: 11px;
}
.topbar-label {
  color: var(--tone-98a1af);
}
.topbar-label span {
  margin: 0 15px;
  color: var(--tone-c9cfda);
}
.topbar-label strong {
  color: var(--tone-566378);
  font-weight: 500;
}
.private-badge {
  border: 1px solid var(--tone-e3ece8);
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 10px;
  color: var(--tone-6c9584);
  background: var(--tone-fbfefc);
}
.content {
  max-width: 1500px;
  margin: auto;
  padding: 41px 42px 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 31px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--tone-95a0b0);
  font-weight: 650;
}
.page-heading p {
  margin: 0;
  font-size: 12px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.overview > div {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--tone-fff);
  padding: 22px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 10px;
  color: var(--tone-7486d2);
  background: var(--tone-f0f2fc);
  font-size: 23px;
}
.stat-icon.green {
  color: var(--tone-68a48e);
  background: var(--tone-edf7f3);
}
.stat-icon.orange {
  color: var(--tone-c69d68);
  background: var(--tone-fbf4e9);
}
.overview small {
  color: var(--tone-9099a7);
  font-size: 11px;
  display: block;
  margin-bottom: 6px;
}
.overview strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.files-panel {
  background: var(--tone-fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.panel-toolbar {
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
#breadcrumbs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 12px;
}
#breadcrumbs button {
  border: 0;
  padding: 4px 6px;
  font-size: 12px;
  color: var(--tone-7c889b);
}
#breadcrumbs button:last-child {
  color: var(--tone-33425a);
  font-weight: 650;
}
#breadcrumbs > span {
  color: var(--tone-c2c9d5);
}
.search {
  position: relative;
  width: 238px;
  flex-shrink: 0;
}
.search .search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  font-size: 23px;
  color: var(--tone-9aa4b2);
}
.search input {
  margin: 0 !important;
  padding: 9px 10px 9px 35px !important;
  font-size: 11px;
  background: var(--tone-fafbfd) !important;
  border-color: var(--tone-eef0f5) !important;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-weight: 500;
  background: var(--tone-fcfdff);
  font-size: 11px;
  color: var(--tone-929cac);
  height: 46px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 12px;
  padding: 15px 10px;
  border-bottom: 1px solid var(--tone-f0f2f6);
  color: var(--tone-8590a1);
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--tone-fafbfe);
}
tbody tr.selected {
  background: var(--tone-f2f4fe);
}
.check-col {
  width: 47px;
  padding-left: 20px;
}
td:first-child {
  padding-left: 20px;
}
.sort {
  border: 0;
  background: none;
  font-size: 11px;
  padding: 10px;
  color: var(--tone-8994a5);
}
.sort span {
  font-size: 13px;
  color: var(--tone-b9c1ce);
}
.file-name {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--tone-46546a);
  display: flex;
  justify-content: flex-start;
  gap: 13px;
  font-size: 12px;
  max-width: 400px;
}
.file-name .name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-icon {
  width: 31px;
  height: 35px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--tone-eff2fa);
  color: var(--tone-8795b1);
}
.file-icon.folder {
  font-size: 24px;
  background: var(--tone-fff7e5);
  color: var(--tone-e6bc66);
}
.file-icon.image {
  background: var(--tone-eef5f1);
  color: var(--tone-70a58e);
}
.file-icon.pdf {
  background: var(--tone-fff0ef);
  color: var(--tone-d38d88);
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  padding-right: 8px;
}
.row-actions button {
  border: 0;
  background: none;
  padding: 4px 7px;
  font-size: 17px;
  color: var(--tone-a2adbd);
}
.row-actions button:hover {
  color: var(--accent);
  background: var(--tone-edf0fb);
}
.panel-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 15px 23px;
  color: var(--tone-a0a8b6);
  font-size: 10px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  color: var(--tone-abb3c0);
  font-size: 10px;
  padding: 27px 0;
}
.page-footer > span:first-child {
  font-weight: 700;
  color: var(--tone-8590a2);
}
.page-footer span span {
  font-weight: 400;
  margin-left: 10px;
  color: var(--tone-b0b8c4);
}
.storage-hint {
  font-size: 10px;
  color: var(--tone-a5aebc);
}
.empty {
  text-align: center;
  padding: 70px 20px;
}
.empty > div {
  font-size: 48px;
  color: var(--tone-9caadb);
}
.empty h2 {
  font-size: 17px;
  color: var(--tone-66758a);
  font-weight: 500;
}
.empty p {
  font-size: 12px;
}
.files-panel.drag {
  outline: 3px dashed var(--tone-8298ef);
  background: var(--tone-f2f5ff);
}
#selection-bar {
  padding: 12px 20px;
  background: var(--tone-f0f3ff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#selection-bar strong {
  font-size: 12px;
  color: var(--accent);
}
#selection-bar > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#selection-bar button {
  font-size: 11px;
  padding: 7px 9px;
}
.upload-panel {
  background: var(--tone-fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 22px;
  margin-top: 20px;
}
.upload-panel h3 {
  font-size: 13px;
}
.upload-row {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 1fr 90px 36px;
  gap: 15px;
  align-items: center;
  font-size: 12px;
}
.upload-row > div {
  overflow: hidden;
}
.upload-row strong {
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-row small {
  color: var(--muted);
  font-size: 10px;
}
.upload-row progress {
  width: 100%;
  height: 5px;
  accent-color: var(--accent);
  display: block;
  margin-top: 6px;
}
.share-row {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 15px;
  align-items: center;
}
.share-row > div {
  flex: 1;
  min-width: 0;
}
.share-row strong {
  font-size: 13px;
  display: block;
  overflow-wrap: anywhere;
}
.share-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.share-row button {
  font-size: 11px;
}
.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 30px;
}
.auth-card {
  background: var(--tone-fff);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 40px;
  width: 440px;
  max-width: 100%;
  box-shadow: 0 15px 50px #28385206;
}
.auth-card h1 {
  font-size: 27px;
}
.auth-card .eyebrow {
  font-size: 11px;
  color: var(--tone-66758a);
}
.auth-card > p {
  color: var(--tone-66758a);
}
.auth-card form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.auth-card .primary {
  padding: 13px;
}
.auth-foot {
  font-size: 13px;
  color: var(--tone-566378);
}
.error {
  color: var(--tone-bc4855);
  font-size: 12px;
  white-space: pre-line;
}
.check-result {
  font-size: 12px;
  margin-top: 10px;
}
.check-result.ok {
  color: var(--tone-4d987c);
}
.check-result.bad {
  color: var(--tone-be5360);
}
dialog {
  background: var(--tone-fff);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 26px;
  max-width: calc(100vw - 32px);
  width: 460px;
  color: var(--tone-35425a);
  box-shadow: 0 20px 80px #17254530;
}
dialog::backdrop {
  background: #26364b66;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dialog-header h2 {
  margin: 0;
  overflow-wrap: anywhere;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
#dialog-fields {
  display: grid;
  gap: 15px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tone-28384e);
  color: white;
  padding: 13px 23px;
  box-shadow: 0 6px 24px #25375126;
  border-radius: 10px;
  z-index: 100;
  font-size: 13px;
  max-width: 90%;
  white-space: pre-line;
}
#preview-dialog {
  width: 900px;
}
#preview-content {
  margin: 22px 0;
  background: var(--tone-f6f8fb);
  border-radius: 8px;
  overflow: auto;
  max-height: 65vh;
  min-height: 180px;
  text-align: center;
}
#preview-content img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}
#preview-content iframe {
  width: 100%;
  height: 60vh;
  border: 0;
}
#preview-content pre {
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 20px;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 55px;
  }
  .page-heading {
    margin-bottom: 38px;
  }
  .overview {
    margin-bottom: 32px;
  }
  td {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding-left: 16px;
    padding-right: 16px;
  }
  main {
    margin-left: 205px;
  }
  .content {
    padding: 30px 24px 0;
  }
  .topbar {
    padding: 0 24px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .overview > div {
    padding: 15px;
    gap: 10px;
  }
  .overview {
    gap: 10px;
  }
  .date-col {
    min-width: 150px;
  }
  .file-name {
    max-width: 260px;
  }
  .stat-icon {
    width: 34px;
    height: 34px;
  }
  .overview strong {
    font-size: 15px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  #app button {
    min-height: 44px;
    min-width: 44px;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 17px 20px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .sidebar .brand {
    font-size: 24px;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 25px;
  }
  .nav-caption,
  .side-note,
  .account,
  .quiet {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    margin-left: auto;
  }
  .nav-item {
    font-size: 11px;
    padding: 9px;
    margin: 0;
  }
  .nav-item .app-icon {
    width: 18px;
    height: 18px;
  }
  main {
    margin-left: 0;
  }
  .topbar {
    height: 49px;
    padding: 0 20px;
  }
  .topbar-label {
    font-size: 10px;
  }
  .private-badge {
    font-size: 9px;
    padding: 5px 8px;
  }
  .content {
    padding: 26px 16px 0;
  }
  h1 {
    font-size: 28px;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions button {
    flex: 1;
  }
  .overview {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .overview > div {
    padding: 13px 9px;
    display: block;
  }
  .stat-icon {
    display: none;
  }
  .overview small {
    font-size: 9px;
  }
  .overview strong {
    font-size: 13px;
  }
  .panel-toolbar {
    padding: 13px;
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
  }
  .search input {
    font-size: 16px;
    min-height: 44px;
  }
  .check-col {
    width: 35px;
    padding-left: 10px;
  }
  td:first-child {
    padding-left: 10px;
  }
  td {
    padding: 14px 7px;
  }
  .file-name {
    max-width: 190px;
    font-size: 11px;
    gap: 8px;
  }
  .file-icon {
    width: 27px;
    height: 31px;
  }
  .date-col,
  td.date-cell {
    display: none;
  }
  .size-col {
    min-width: 75px;
  }
  .row-actions {
    gap: 0;
    padding: 0;
  }
  .row-actions button {
    padding: 4px;
  }
  .panel-footer {
    padding: 13px;
    font-size: 9px;
  }
  #drop-hint {
    display: none;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .page-footer span span {
    font-size: 9px;
    margin-left: 5px;
  }
  #selection-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }
  .auth-card {
    padding: 26px;
  }
  .auth-card input:not([type="checkbox"]):not([type="file"]),
  dialog input:not([type="checkbox"]):not([type="file"]),
  dialog select {
    font-size: 16px;
  }
  .share-row {
    padding: 16px;
    flex-wrap: wrap;
  }
  .share-row > div {
    flex-basis: 100%;
  }
  dialog {
    padding: 21px;
  }
  .upload-row {
    grid-template-columns: 1fr 60px 30px;
    gap: 8px;
  }
}
@media (max-width: 720px) {
  .sidebar .account {
    display: flex;
    flex: 1;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .sidebar .quiet {
    display: inline-flex;
    margin: 0;
    font-size: 11px;
  }
  .sidebar .account small {
    display: none;
  }
  .sidebar .account .icon-button {
    margin-left: 10px;
  }
  .sidebar nav {
    flex: 1;
    justify-content: flex-end;
  }
  .sidebar .account {
    flex-basis: 60%;
  }
}

.theme-toggle {
  min-width: 44px;
  min-height: 44px;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  box-shadow: 0 3px 15px #0002;
}
#preview-content video {
  display: block;
  width: 100%;
  max-height: 60vh;
  background: #000;
}
#drop-zone { position: relative; }
.drop-overlay { display: none; }
#drop-zone.drag .drop-overlay {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 24px;
  text-align: center;
  font-weight: 650;
  color: var(--accent);
  background: var(--tone-f2f5ff);
  pointer-events: none;
}
.heading-actions { flex-wrap: wrap; }
@media (max-width: 720px) {
  .heading-actions button { flex: 1 1 140px; }
  .page-footer { padding-bottom: 75px; }
  .auth { padding-bottom: 85px; }
}

.topbar { gap: 8px; }
.topbar .private-badge { margin-left: auto; }
.topbar .theme-toggle {
  position: static;
  flex-shrink: 0;
  box-shadow: none;
  padding: 7px 10px;
}
.topbar .theme-toggle .button-label { display: none; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.app-icon { display: block; width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-label { min-width: 0; line-height: 1.25; }
.stat-icon .app-icon, .note-icon .app-icon { width: 22px; height: 22px; }
.file-icon .app-icon { width: 19px; height: 19px; }
.empty .app-icon { width: 38px; height: 38px; margin: 0 auto; }
.private-badge { display: inline-flex; align-items: center; gap: 5px; }
.private-badge .app-icon { width: 12px; height: 12px; }
.icon-button { min-width: 44px; min-height: 44px; }
