.cloud-body {
  margin: 0;
  min-height: 100vh;
  background: #131313;
  color: #e5e2e1;
  font-family: Inter, system-ui, sans-serif;
}
.cloud-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 3rem;
}
.cloud-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(90, 76, 48, 0.35);
}
.cloud-logo {
  color: #e9c349;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.95rem;
}
.cloud-back {
  margin-left: 0.85rem;
  color: #a89870;
  font-size: 0.85rem;
  text-decoration: none;
}
.cloud-header__user {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  font-size: 0.85rem;
}
.cloud-header__user a { color: #e9c349; }
.cloud-user { color: #d9c9a0; }
.cloud-title {
  margin: 0 0 1rem;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 1.35rem;
  color: #e9c349;
}
.cloud-flash {
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
  border-radius: 4px;
  font-size: 0.9rem;
}
.cloud-flash.ok { background: #1e3a28; color: #b6f0c4; }
.cloud-flash.err { background: #3a1e1e; color: #f0b4b4; }
.cloud-card {
  background: #1a1917;
  border: 1px solid rgba(90, 76, 48, 0.35);
  border-left: 3px solid #5a4c30;
  padding: 1rem 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.cloud-card label {
  display: block;
  margin: 0.65rem 0 0.25rem;
  font-size: 0.82rem;
  color: #d9c9a0;
}
.cloud-card input[type="email"],
.cloud-card input[type="password"],
.cloud-card input[type="text"],
.cloud-card select {
  width: 100%;
  max-width: 420px;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(90, 76, 48, 0.45);
  background: #131313;
  color: #e5e2e1;
  font: inherit;
}
.cloud-file-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: 0.15rem;
}
.cloud-file-picker__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cloud-file-picker__btn {
  margin-top: 0;
}
.cloud-file-picker__name {
  font-size: 0.82rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cloud-file-picker__name.is-selected {
  color: #e5e2e1;
}
.cloud-btn {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  background: #e9c349;
  color: #3c2f00;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}
.cloud-btn.secondary {
  background: transparent;
  color: #e9c349;
  border: 1px solid #e9c349;
}
.cloud-btn.danger {
  background: #8b2e2e;
  color: #fff;
}
.cloud-muted { color: #a89870; font-size: 0.85rem; }
.cloud-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  margin: 0 0 1rem;
  font-size: 0.85rem;
}
.cloud-breadcrumbs a { color: #e9c349; text-decoration: none; }
.cloud-breadcrumbs span { color: #a89870; }
.cloud-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.cloud-table th,
.cloud-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(90, 76, 48, 0.28);
  vertical-align: middle;
}
.cloud-table th { color: #a89870; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cloud-table a { color: #e5e2e1; text-decoration: none; }
.cloud-table a:hover { color: #e9c349; }
.cloud-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
}
.cloud-icon {
  color: #e9c349;
  font-size: 1.25rem;
  line-height: 1;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  flex-shrink: 0;
}
.cloud-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cloud-actions form { display: inline; margin: 0; }
.cloud-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.cloud-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  margin: -0.35rem 0 1rem;
}
.cloud-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.85rem;
  color: #d9c9a0;
  cursor: pointer;
  user-select: none;
}
.cloud-view-toggle input {
  width: auto;
  max-width: none;
  accent-color: #e9c349;
}
.cloud-btn--tiny {
  margin-top: 0;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
}
.cloud-btn--micro {
  margin-top: 0;
  padding: 0.18rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
}
.cloud-btn--micro:hover { opacity: 1; }
.cloud-delete-form { display: inline; margin: 0; }
.cloud-item-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.cloud-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(90, 76, 48, 0.28);
}
.cloud-bulk-bar__left {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  min-height: 2rem;
}
.cloud-card .cloud-bulk-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1;
  color: #d9c9a0;
  cursor: pointer;
  user-select: none;
}
.cloud-bulk-check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  max-width: none;
  accent-color: #e9c349;
  flex-shrink: 0;
}
.cloud-bulk-count {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1;
  color: #a89870;
  min-height: 1rem;
}
.cloud-bulk-bar__download {
  margin-top: 0;
  margin-left: auto;
}
.cloud-row--dir {
  background: rgba(233, 195, 73, 0.09);
}
.cloud-row--dir td {
  border-bottom-color: rgba(233, 195, 73, 0.22);
}
.cloud-row--dir .cloud-name a {
  color: #e9c349;
  font-weight: 600;
}
.cloud-row--dir .cloud-icon {
  color: #e9c349;
}
.cloud-tile--dir {
  border-color: rgba(233, 195, 73, 0.45);
  background: rgba(233, 195, 73, 0.07);
}
.cloud-tile--dir .cloud-tile__name {
  color: #e9c349;
  font-weight: 600;
}
.cloud-table .col-check {
  width: 2rem;
  padding-right: 0;
}
.cloud-table .col-check input,
.cloud-tile__check input {
  width: auto;
  max-width: none;
  accent-color: #e9c349;
  cursor: pointer;
}
.cloud-tile {
  position: relative;
}
.cloud-tile__check {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  margin: 0;
  padding: 0.15rem;
  background: rgba(19, 19, 19, 0.72);
  border-radius: 3px;
  cursor: pointer;
}

#cloud-browser[data-view="list"] .cloud-view-grid { display: none !important; }
#cloud-browser[data-view="grid"] .cloud-view-list { display: none !important; }
#cloud-browser[data-view="grid"] .cloud-view-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.85rem;
}
.cloud-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #131313;
  border: 1px solid rgba(90, 76, 48, 0.35);
}
.cloud-tile__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: #0e0e0e;
  overflow: hidden;
  text-decoration: none;
}
.cloud-tile__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cloud-tile__icon {
  font-size: 3rem;
  color: #e9c349;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}
.cloud-tile--dir .cloud-tile__icon { color: #e9c349; }
.cloud-tile__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem 0.6rem 0.65rem;
}
.cloud-tile__name {
  color: #e5e2e1;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cloud-tile__name:hover { color: #e9c349; }
.cloud-tile__info {
  color: #a89870;
  font-size: 0.75rem;
}
.cloud-tile .cloud-item-actions { margin-top: 0.25rem; }

@media (max-width: 640px) {
  .cloud-table .col-size,
  .cloud-table .col-date { display: none; }
  #cloud-browser[data-view="grid"] .cloud-view-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
