:root {
  --workspace-bg: #eff3f8;
  --workspace-card: #fff;
  --workspace-control: #edf2f9;
  --workspace-text: #17243b;
  --workspace-subtle: #4b607c;
  --workspace-line: #c2cee0;
  --workspace-accent: #303f91;
  --workspace-on-accent: #fff;
  color-scheme: light;
}
:root[data-avb-theme="dark"] {
  --workspace-bg: #0c1422;
  --workspace-card: #152236;
  --workspace-control: #202f47;
  --workspace-text: #f2f5fc;
  --workspace-subtle: #bac8de;
  --workspace-line: #41546f;
  --workspace-accent: #b7c6ff;
  --workspace-on-accent: #122047;
  color-scheme: dark;
}
.customer-shell { background: var(--workspace-bg); color: var(--workspace-text); }
.customer-shell [hidden] { display: none !important; }
.customer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  border-bottom: 1px solid var(--workspace-line);
  padding: .8rem clamp(1rem, 4vw, 3rem);
  background: var(--workspace-card);
}
.customer-top strong { letter-spacing: .08em; }
.customer-top nav, .workspace-heading, .workspace-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
}
.customer-top nav { gap: .9rem; }
.customer-top label { color: var(--workspace-subtle); }
.customer-shell a { color: var(--workspace-accent); }
.customer-shell :is(.mc-card, .customer-workspace-panel, #media-upload, .customer-app-card, .mc-create-panel) {
  background: var(--workspace-card);
  border-color: var(--workspace-line);
  color: var(--workspace-text);
}
.customer-media > .mc-card { border: 0; background: transparent; padding-inline: 0; }
.customer-shell :is(h1, h2, h3, strong) { color: inherit; }
.customer-shell h1 { font-size: clamp(1.75rem, 4vw, 2.7rem); overflow-wrap: anywhere; }
.customer-shell :is(.mc-eyebrow, .mc-note, .workspace-row-status) { color: var(--workspace-subtle); }
.customer-shell :is(input:not([type="checkbox"]), select, .mc-customer-button, .mc-shortcut) {
  border: 1px solid var(--workspace-line);
  border-radius: .5rem;
  background: var(--workspace-control);
  color: var(--workspace-text);
  font: inherit;
  padding: .55rem .75rem;
}
.customer-shell :is(.mc-customer-button, .mc-shortcut) { display: inline-block; text-decoration: none; font-weight: 650; }
.customer-shell .mc-customer-button.primary { background: var(--workspace-accent); color: var(--workspace-on-accent); }
.customer-shell :focus-visible { outline: 2px solid var(--workspace-accent); outline-offset: 3px; }
.customer-shell #media-upload {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(12rem, 1fr) auto;
  align-items: end;
  gap: .8rem 1rem;
}
.customer-shell #media-upload :is(h2, p, .mc-customer-actions) { margin: 0; }
.customer-shell #media-upload-list { grid-column: 1 / -1; margin: 0; }
.customer-shell #media-upload-list:empty { display: none; }
.workspace-heading { justify-content: space-between; }
.workspace-heading h2 { margin: 0; }
.customer-shell :is(#media-library, #media-playlists, #playlist-items, #customer-apps-list) { padding: 0; list-style: none; }
.customer-shell :is(#media-library, #media-playlists, #playlist-items) > li {
  padding: .75rem 0;
  border-block-start: 1px solid var(--workspace-line);
}
.workspace-row-title { display: block; font-weight: 650; overflow-wrap: anywhere; }
.workspace-row-status { display: block; font-size: .9rem; margin-top: .15rem; }
.workspace-row-actions { margin-top: .55rem; }
.customer-shell .mc-create-form { gap: .7rem; }
.customer-shell #playlist-form { max-width: none; }
.customer-shell #playlist-items:empty { display: none; }
.customer-shell #playlist-drop-end { border-color: var(--workspace-line); color: var(--workspace-subtle); }
.customer-shell #playlist-drop-end.drop-target { background: var(--workspace-control); }
.customer-app-card { border: 1px solid var(--workspace-line); border-radius: .75rem; padding: 1.1rem; margin-block: 1rem; }
.customer-shell .customer-privacy .mc-card { margin-block: 1rem; }
.customer-shell .file-manager .folder-layout:not([hidden]) {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) minmax(15rem, 22rem);
  background: var(--workspace-card);
  border: 1px solid var(--workspace-line);
  border-radius: .8rem;
  gap: 0;
  align-items: stretch;
}
.customer-shell .file-navigation {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem .75rem;
  background: var(--workspace-control);
  border-radius: .8rem 0 0 .8rem;
}
.customer-shell .file-navigation a {
  padding: .6rem .7rem;
  border-radius: .45rem;
  text-decoration: none;
}
.customer-shell .file-navigation a:first-child { background: var(--workspace-card); font-weight: 700; }
.customer-shell :is(.file-list-panel, .file-details-panel) {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 1rem clamp(.75rem, 2vw, 1.4rem);
}
.customer-shell .file-details-panel { border-inline-start: 1px solid var(--workspace-line); border-radius: 0 .8rem .8rem 0; }
.customer-shell .file-list-heading {
  padding: .65rem .5rem;
  background: var(--workspace-control);
  color: var(--workspace-subtle);
  font-weight: 650;
}
.customer-shell .file-list-panel :is(.folder-tiles, .folder-file-list) { display: block; margin: 0; }
.customer-shell .file-list-panel :is(#folder-list, #folder-files) li {
  border-bottom: 1px solid var(--workspace-line);
  padding: .35rem .5rem;
  min-width: 0;
}
.customer-shell .file-list-panel :is(#folder-list, #folder-files) button {
  background: transparent;
  border: 0;
  text-align: start;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.customer-shell .file-list-panel :is(#folder-list, #folder-files) button:is(:hover,[aria-pressed="true"]) {
  background: var(--workspace-control);
}
.customer-shell #file-selection-count:empty, .customer-shell #folder-status:empty { display: none; }
@media (max-width: 62rem) {
  .customer-shell #media-upload { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .customer-shell .file-manager .folder-layout:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .customer-shell .file-navigation { flex-direction: row; flex-wrap: wrap; border-radius: .8rem .8rem 0 0; }
  .customer-shell .file-details-panel { border-inline-start: 0; border-block-start: 1px solid var(--workspace-line); }
}
.customer-shell #folder-grants {
  width: min(34rem, calc(100% - 2rem));
  max-height: 85vh;
  padding: 1.25rem;
  border: 1px solid var(--workspace-line);
  border-radius: .8rem;
  background: var(--workspace-card);
  color: var(--workspace-text);
}
.customer-shell #folder-grants::backdrop { background: #08122199; }
.customer-shell #folder-grants-list li { margin-block: .5rem; overflow-wrap: anywhere; }
.customer-shell #folder-grants-form { margin-block: 1rem; }
