/* Shared dark palette for the login, file browser, accounts, and dialogs. */
:root {
  color-scheme: dark;
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-synthesis: none;
  font-size: 15px;
  color: var(--text);
  background: var(--canvas);
  --canvas: #10151e;
  --surface: #19212d;
  --surface-subtle: #141b25;
  --surface-raised: #233044;
  --input: #111923;
  --hover: #26364b;
  --selected: #203858;
  --selection-border: #42659a;
  --text: #e7edf7;
  --muted: #b2bfd2;
  --disabled: #7e8da4;
  --line: #354258;
  --control-border: #60748f;
  --blue: #9cbbff;
  --blue-dark: #4266ce;
  --accent: #345ac5;
  --focus: #9cbbff;
  --navy: var(--text);
  --error: #ffadb8;
  --error-surface: #3a222a;
  --error-border: #71404b;
  --danger: #a72f43;
  --danger-hover: #be3e53;
  --shadow: #00000040;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  line-height: 1.5;
}

button,input {
  font: inherit;
}

button,a,input {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button {
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: var(--disabled);
}

button:focus-visible,a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

input:focus-visible {
  outline: 3px solid var(--focus);
  border-color: var(--blue);
}

[hidden] {
  display: none!important;
}

h1,h2,p {
  margin-top: 0;
}

h1 {
  color: var(--text);
  font-size: 31px;
  letter-spacing: -1.1px;
  font-weight: 650;
  margin-bottom: 10px;
}

h2 {
  font-size: 18px;
  letter-spacing: -.3px;
  font-weight: 650;
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-bottom: 13px;
}

.button {
  border: 1px solid var(--control-border);
  background: var(--surface);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
}

.button:hover:enabled {
  background: var(--hover);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 3px var(--shadow);
}

.button.primary:hover:enabled {
  background: var(--blue-dark);
}

.button.primary>span {
  font-size: 18px;
  line-height: 1;
}

.button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.button.danger:hover:enabled {
  background: var(--danger-hover);
}

.icon-button {
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  flex-shrink: 0;
  color: var(--muted);
}

.icon-button:hover:enabled {
  background: var(--hover);
  color: var(--navy);
}

.text-button {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px;
  white-space: nowrap;
}

.text-button:hover {
  text-decoration: underline;
}

.danger-text {
  color: var(--error)!important;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  width: 33px;
  height: 33px;
  border-radius: 8px;
  color: white;
  font-size: 27px;
  line-height: 1;
  font-weight: 600;
  box-shadow: 0 3px 6px var(--shadow);
}

.boot {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--muted);
}

.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  background: radial-gradient(ellipse at 50% 25%,#1e2c44 0,var(--canvas) 70%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.5px;
  position: absolute;
  top: 32px;
  left: 38px;
}

.login-card {
  width: 100%;
  max-width: 425px;
  padding: 42px 40px 31px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 60px var(--shadow);
}

.login-folder {
  width: 57px;
  height: 57px;
  border-radius: 14px;
  background: var(--selected);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 28px;
}

.login-card h1 {
  font-size: 28px;
}

.login-card .eyebrow {
  font-size: 13px;
  margin-bottom: 10px;
}

.login-intro {
  font-size: 13px;
  margin-bottom: 29px;
}

.login-card label,dialog label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.login-card input,dialog input {
  width: 100%;
  height: 43px;
  border: 1px solid var(--control-border);
  border-radius: 7px;
  background: var(--input);
  padding: 10px 12px;
  transition: border-color .15s;
  color: var(--text);
  font-size: 16px;
}

.login-card form>input,dialog form>input {
  margin-bottom: 20px;
}

.password-input {
  display: flex;
  border: 1px solid var(--control-border);
  border-radius: 7px;
  background: var(--input);
  align-items: center;
}

.password-input input {
  border: 0;
  min-width: 0;
  flex: 1;
}

.password-input .text-button {
  margin-right: 5px;
}

.password-input:focus-within {
  outline: 3px solid var(--focus);
  border-color: var(--blue);
}

.password-input input:focus-visible {
  outline: none;
}

.login-submit {
  margin-top: 24px;
  width: 100%;
  height: 43px;
  justify-content: space-between;
  padding-inline: 16px;
}

.login-help {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.login-footer {
  color: var(--muted);
  font-size: 13px;
  margin: 24px 0 0;
  text-align: center;
}

.form-error {
  color: var(--error);
  background: var(--error-surface);
  font-size: 13px;
  line-height: 1.5;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 14px;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  background: var(--surface);
  width: 226px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 30px 19px 19px;
  z-index: 2;
}

.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -.5px;
  margin: 0 8px 48px;
  white-space: nowrap;
}

.nav-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin: 0 13px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  height: 43px;
  border: 0;
  background: none;
  border-radius: 7px;
  padding: 10px 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  margin: 3px 0;
  text-align: left;
}

.nav-item>span {
  font-size: 21px;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  background: var(--hover);
}

.nav-item.active {
  background: var(--selected);
  color: var(--blue);
  font-weight: 650;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}

.account-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 20px 8px 12px;
}

.avatar {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  font-size: 13px;
  flex-shrink: 0;
}

.profile-copy {
  min-width: 0;
}

.profile-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.profile-copy>span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.logout-button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--muted);
}

.logout-button:hover {
  color: var(--blue);
}

.logout-button span {
  font-size: 16px;
}

.workspace {
  margin-left: 226px;
  min-width: 0;
  width: calc(100% - 226px);
}

.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  color: var(--muted);
  font-size: 13px;
}

.topbar-account {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view {
  padding: 36px 38px 50px;
  max-width: 1700px;
  margin: 0 auto;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 29px;
  flex-wrap: wrap;
}

.page-heading .muted {
  font-size: 13px;
  margin-bottom: 0;
}

.page-heading .eyebrow {
  margin-bottom: 12px;
  font-size: 13px;
}

.page-heading h1 {
  font-size: 29px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.upload-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.explorer {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 3px 8px var(--shadow);
  overflow: hidden;
}

.location-bar {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}

.location-nav {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  overflow: auto;
  white-space: nowrap;
  min-width: 50px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.breadcrumbs button {
  background: none;
  border: 0;
  padding: 5px 3px;
  color: var(--muted);
  font-size: 13px;
  border-radius: 3px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumbs button:hover {
  color: var(--blue);
  background: var(--hover);
}

.breadcrumbs button:last-of-type {
  color: var(--text);
  font-weight: 600;
}

.breadcrumbs>span {
  color: var(--muted);
  font-size: 13px;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  padding: 0 10px;
  gap: 7px;
  max-width: 260px;
  background: var(--input);
  flex-shrink: 0;
}

.search-box>span {
  font-size: 22px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  height: 38px;
  background: transparent;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

.search-box:focus-within {
  outline: 2px solid var(--focus);
}

.search-box input::placeholder {
  color: var(--muted);
}

.toolbar {
  min-height: 58px;
  height: auto;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  gap: 10px;
  align-items: flex-start;
}

.toolbar-group {
  display: flex;
  gap: 4px;
  align-items: center;
  overflow: visible;
  white-space: nowrap;
  flex-wrap: wrap;
  min-width: 0;
}

.tool-button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  border-radius: 5px;
  min-height: 36px;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.tool-button>span {
  font-size: 16px;
  line-height: 1;
}

.tool-button:hover:enabled {
  background: var(--hover);
  color: var(--blue);
}

.toolbar-separator {
  height: 17px;
  width: 1px;
  background: var(--line);
  margin: 0 9px;
  flex-shrink: 0;
}

.file-area {
  position: relative;
  min-height: 390px;
}

.file-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.file-table th {
  text-align: left;
  font-weight: 500;
  background: var(--surface-subtle);
  height: 41px;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
  color: var(--muted);
  font-size: 13px;
}

.file-table th.select-cell,.file-table td.select-cell {
  width: 45px;
  padding-left: 20px;
  padding-right: 9px;
}

.file-table td {
  height: 57px;
  border-bottom: 1px solid var(--line);
  padding: 8px 15px;
  font-size: 13px;
  color: var(--muted);
}

.file-table tbody tr:last-child td {
  border-bottom: 0;
}

.file-table .modified-cell {
  width: 190px;
}

.file-table .type-cell {
  width: 115px;
}

.file-table .size-cell {
  width: 105px;
  text-align: right;
  padding-right: 24px;
}

.file-table th.size-cell .sort-button {
  justify-content: flex-end;
  width: 100%;
}

.sort-button {
  border: 0;
  padding: 5px 0;
  background: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.sort-indicator {
  color: var(--muted);
}

.file-table input[type=checkbox] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}

.file-row {
  cursor: default;
}

.file-row:hover {
  background: var(--hover);
}

.file-row.selected {
  background: var(--selected);
  box-shadow: inset 3px 0 var(--blue);
}

.filename-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.file-icon {
  width: 29px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--blue);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  font-size: 10px;
  line-height: 1;
  font-weight: 650;
  text-transform: uppercase;
}

.file-icon.folder-icon {
  border: 0;
  position: relative;
  width: 29px;
  height: 23px;
  border-radius: 3px;
  background: #efc467;
  box-shadow: inset 0 3px 0 #f6d58a;
}

.folder-icon:before {
  content: "";
  position: absolute;
  width: 13px;
  height: 5px;
  top: -3px;
  left: 0;
  background: #e4b75f;
  border-radius: 3px 3px 0 0;
}

.filename {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
}

.filename-button {
  border: 0;
  background: transparent;
  padding: 6px 0;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  max-width: 100%;
}

.filename-button:hover {
  color: var(--blue);
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  padding: 64px 24px 66px;
  color: var(--muted);
}

.empty-folder {
  margin: 0 auto 21px;
  width: 59px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-subtle);
  color: var(--blue);
  font-size: 44px;
  line-height: 1;
}

.empty-state h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 9px;
}

.empty-state p {
  font-size: 13px;
  margin-bottom: 19px;
  line-height: 1.6;
}

.empty-state .button {
  font-size: 13px;
  min-height: 34px;
  padding: 7px 12px;
}

.loading-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.list-error {
  margin: 20px;
  padding: 14px 18px;
  background: var(--error-surface);
  color: var(--error);
  border: 1px solid var(--error-border);
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.explorer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  background: var(--surface-subtle);
  border-top: 1px solid var(--line);
  padding: 10px 22px;
  font-size: 13px;
  color: var(--muted);
}

.drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #203858f5;
  border: 2px dashed var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--blue);
  pointer-events: none;
}

.drop-overlay>span:first-child {
  font-size: 40px;
}

.drop-overlay>span:last-child {
  font-size: 13px;
}

.admin-banner {
  padding: 11px 14px;
  border: 1px solid var(--selection-border);
  border-radius: 7px;
  background: var(--selected);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}

.admin-banner .text-button {
  font-size: 13px;
}

.accounts-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  overflow: hidden;
}

.accounts-card-heading {
  padding: 16px 23px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accounts-card-heading h2 {
  font-size: 13px;
  font-weight: 600;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
}

.account-row:last-child {
  border-bottom: 0;
}

.account-row .avatar {
  height: 40px;
  width: 40px;
  font-size: 14px;
  border-radius: 11px;
}

.account-information {
  flex: 1;
  min-width: 0;
}

.account-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}

.account-username {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  padding: 3px 6px;
  background: var(--hover);
  color: var(--muted);
  white-space: nowrap;
}

.badge.disabled {
  background: var(--error-surface);
  color: var(--error);
}

.account-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.account-actions .button {
  font-size: 13px;
  min-height: 33px;
  padding: 7px 11px;
}

.account-actions .text-button {
  font-size: 13px;
}

.accounts-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 19px 5px;
}

.transfer-panel {
  position: fixed;
  bottom: 23px;
  right: 25px;
  width: 380px;
  max-width: calc(100vw - 30px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 50px var(--shadow);
  z-index: 10;
  overflow: hidden;
}

.transfer-panel>header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}

.transfer-panel>header strong {
  font-size: 13px;
  font-weight: 600;
}

.transfer-panel>header .muted {
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.transfer-list {
  max-height: 260px;
  overflow: auto;
}

.transfer-item {
  padding: 14px 19px;
  border-bottom: 1px solid var(--line);
}

.transfer-item-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.transfer-item-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
}

.transfer-item-status {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.transfer-item progress {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  appearance: none;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface-raised);
  accent-color: var(--blue);
}

.transfer-item progress::-webkit-progress-bar {
  background: var(--surface-raised);
}

.transfer-item progress::-webkit-progress-value {
  background: var(--blue);
}

.transfer-item progress::-moz-progress-bar {
  background: var(--blue);
}

.transfer-error {
  font-size: 13px;
  color: var(--error);
  line-height: 1.5;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.transfer-panel>footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 17px;
  background: var(--surface-subtle);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.transfer-panel>footer .text-button {
  font-size: 13px;
}

.toast-region {
  position: fixed;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

.toast {
  background: var(--surface-raised);
  color: var(--text);
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 18px var(--shadow);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.toast.error {
  background: var(--danger);
}

dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 25px 27px;
  width: 440px;
  max-width: calc(100vw - 30px);
  box-shadow: 0 18px 80px #00000070;
  color: var(--text);
  background: var(--surface);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

dialog::backdrop {
  background: #03070db8;
  backdrop-filter: blur(2px);
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}

.dialog-heading h2 {
  font-size: 19px;
  color: var(--text);
}

.dialog-heading>.icon-button {
  margin-right: -7px;
}

.dialog-heading+.muted {
  font-size: 13px;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.dialog-actions .button {
  font-size: 13px;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field-help {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 10px 0 0;
}

.credentials {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin: 0;
}

.credentials dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 0 7px;
}

.credentials dd {
  font-size: 13px;
  color: var(--text);
  margin: 0 0 18px;
  overflow-wrap: anywhere;
  font-family: Consolas,monospace;
  user-select: all;
}

.credentials dd:last-child {
  margin-bottom: 0;
}

.conflict-actions {
  flex-wrap: wrap;
}

@media(min-width:1500px) {
  .file-area {
    min-height: 490px;
  }
  .view {
    padding-top: 44px;
  }
  .page-heading {
    margin-bottom: 34px;
    flex-wrap: wrap;
  }
}

@media(max-width:1100px) {
  .sidebar {
    width: 193px;
    padding-inline: 13px;
  }
  .brand {
    font-size: 15px;
    gap: 9px;
  }
  .workspace {
    margin-left: 193px;
    width: calc(100% - 193px);
  }
  .view {
    padding: 29px 24px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .file-table .modified-cell {
    width: 160px;
  }
  .file-table .type-cell {
    width: 85px;
  }
  .file-table .size-cell {
    width: 85px;
    padding-right: 15px;
  }
  .file-table th,.file-table td {
    padding-inline: 10px;
  }
  .search-box {
    max-width: 180px;
  }
  .account-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .account-actions {
    width: 100%;
    padding-left: 52px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .upload-buttons {
    flex-direction: column;
    flex-wrap: wrap;
  }
  .upload-buttons .button {
    min-height: 34px;
    font-size: 13px;
  }
  .toast-region {
    left: 50%;
  }
}

@media(max-width:780px) {
  .sidebar {
    width: 164px;
    padding-inline: 10px;
  }
  .brand {
    font-size: 13px;
    margin-inline: 4px;
    gap: 7px;
  }
  .brand-mark {
    width: 29px;
    height: 29px;
    font-size: 24px;
  }
  .workspace {
    margin-left: 164px;
    width: calc(100% - 164px);
  }
  .view {
    padding: 26px 17px;
  }
  .topbar {
    height: 62px;
    padding-inline: 20px;
  }
  .file-table .type-cell {
    display: none;
  }
  .file-table .modified-cell {
    display: none;
  }
  .file-table .size-cell {
    width: 80px;
  }
  .location-bar {
    flex-wrap: wrap;
    gap: 5px 9px;
    padding: 9px 12px;
  }
  .breadcrumbs {
    flex-basis: calc(100% - 85px);
    overflow-wrap: anywhere;
  }
  .search-box {
    max-width: none;
    width: 100%;
    margin-top: 3px;
  }
  .search-box input {
    height: 38px;
  }
  .toolbar {
    padding: 0 8px;
    align-items: flex-start;
  }
  .toolbar-group {
    gap: 0;
    flex-wrap: wrap;
    min-width: 0;
  }
  .tool-button {
    padding: 6px;
    font-size: 13px;
  }
  .toolbar-separator {
    margin: 0 4px;
  }
  .page-heading h1 {
    font-size: 25px;
    overflow-wrap: anywhere;
  }
  .page-heading .eyebrow {
    font-size: 13px;
  }
  .page-heading .muted {
    font-size: 13px;
  }
  .admin-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    overflow-wrap: anywhere;
  }
  .explorer-footer {
    font-size: 13px;
    padding-inline: 14px;
  }
  .account-row {
    padding: 18px 16px;
  }
  .account-actions {
    padding-left: 0;
    flex-wrap: wrap;
  }
}

@media(max-width:540px) {
  .app {
    flex-direction: column;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 13px 16px 9px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand {
    margin: 0;
    font-size: 15px;
  }
  .nav-label,.account-profile {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }
  .nav-item {
    width: auto;
    margin: 0;
    min-height: 33px;
    height: 33px;
    font-size: 13px;
    padding: 5px 12px;
  }
  .nav-item>span {
    font-size: 18px;
  }
  .sidebar-bottom {
    margin: 0;
    padding: 0;
  }
  .logout-button {
    padding: 7px 3px;
    gap: 10px;
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 40px;
    padding-inline: 18px;
    font-size: 13px;
  }
  .view {
    padding: 24px 14px;
  }
  .page-heading {
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 25px;
    overflow-wrap: anywhere;
  }
  .page-heading .muted {
    font-size: 13px;
    max-width: none;
  }
  .page-heading .eyebrow {
    font-size: 13px;
    letter-spacing: 1.2px;
  }
  .upload-buttons .button {
    font-size: 13px;
    flex: 1;
    min-height: 40px;
    padding: 9px 12px;
  }
  .toolbar .icon-button {
    width: 32px;
    min-height: 36px;
  }
  .tool-button {
    font-size: 13px;
    padding-inline: 5px;
    gap: 4px;
  }
  .tool-button>span {
    font-size: 14px;
  }
  .toolbar-separator {
    margin-inline: 3px;
    display: none;
  }
  .file-table th.select-cell,.file-table td.select-cell {
    width: 34px;
    padding-left: 12px;
    padding-right: 7px;
  }
  .file-table .size-cell {
    font-size: 13px;
    width: 82px;
  }
  .filename-content {
    gap: 9px;
  }
  .filename {
    font-size: 15px;
  }
  .file-icon {
    width: 24px;
    height: 28px;
    font-size: 10px;
  }
  .file-icon.folder-icon {
    width: 25px;
    height: 20px;
  }
  .file-table td {
    height: 53px;
  }
  .explorer-footer>span:last-child {
    max-width: 100%;
    text-align: left;
  }
  .file-area {
    min-height: 330px;
  }
  .empty-state {
    padding: 49px 15px;
  }
  .empty-state p {
    font-size: 13px;
  }
  .transfer-panel {
    bottom: 14px;
    right: 15px;
  }
  .toast-region {
    bottom: 17px;
  }
  .login-screen {
    padding: 90px 20px 35px;
  }
  .login-brand {
    top: 25px;
    left: 24px;
  }
  .login-card {
    padding: 34px 27px 26px;
  }
  .login-card h1 {
    font-size: 26px;
  }
  dialog {
    padding: 21px;
    background: var(--surface);
    max-height: calc(100dvh - 32px);
    overflow: auto;
  }
  .account-actions .button {
    font-size: 13px;
  }
  .accounts-card-heading {
    padding: 14px 17px;
  }
  .account-information {
    min-width: 150px;
  }
  .upload-buttons {
    flex-direction: row;
    width: 100%;
  }
  .explorer-footer {
    flex-wrap: wrap;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
    scroll-behavior: auto!important;
  }
}

.button:disabled {
  background: var(--surface-raised);
  border-color: var(--line);
  color: var(--disabled);
  box-shadow: none;
}

.danger-text:disabled {
  color: var(--disabled)!important;
}

input::placeholder {
  color: var(--muted);
  opacity: 1;
}

input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px var(--input) inset;
  caret-color: var(--text);
}

::selection {
  background: #355a8e;
  color: #ffffff;
}
