* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #202124;
  background: #eef2f7;
}

.page {
  width: min(1320px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px;
}

.topbar,
.skin-section,
.activity {
  background: #fff;
  border: 1px solid #d9dee8;
  box-shadow: 0 10px 30px rgba(32, 33, 36, 0.12);
}

.topbar {
  padding: 24px;
  margin-bottom: 24px;
}

.skin-section {
  margin-bottom: 28px;
  padding: 24px;
}

.material-section {
  border-color: #c5cae9;
}

.skin-switcher-section {
  border-color: #99f6e4;
}

.theme-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.theme-buttons button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-weight: 700;
  text-transform: capitalize;
}

.theme-buttons button.active {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.custom-skin-sample {
  --stackline-ms-primary: #b45309;
  --stackline-ms-primary-soft: rgba(180, 83, 9, 0.14);
  --stackline-ms-surface: #fffaf0;
  --stackline-ms-surface-soft: #fffbeb;
  --stackline-ms-surface-muted: #fef3c7;
  --stackline-ms-outline: #fcd34d;
  --stackline-ms-outline-strong: #b45309;
  --stackline-ms-on-surface: #2f1b05;
  --stackline-ms-on-surface-muted: #7c5b2e;
  --stackline-ms-chip-bg: #fef3c7;
  --stackline-ms-chip-text: #92400e;
  --stackline-ms-chip-remove: #92400e;
  --stackline-ms-divider: rgba(180, 83, 9, 0.18);
  --stackline-ms-section-bg: #fffbeb;
}

.custom-skin-sample .stackline-dropdown.theme-brand {
  --stackline-ms-primary: #7c3aed;
  --stackline-ms-primary-soft: rgba(124, 58, 237, 0.14);
  --stackline-ms-surface: #ffffff;
  --stackline-ms-surface-soft: #f5f3ff;
  --stackline-ms-surface-muted: #ede9fe;
  --stackline-ms-outline: #c4b5fd;
  --stackline-ms-outline-strong: #7c3aed;
  --stackline-ms-on-surface: #22183f;
  --stackline-ms-on-surface-muted: #6b5d80;
  --stackline-ms-chip-bg: #ede9fe;
  --stackline-ms-chip-text: #5b21b6;
  --stackline-ms-chip-remove: #5b21b6;
  --stackline-ms-divider: rgba(124, 58, 237, 0.16);
  --stackline-ms-section-bg: #faf5ff;
}

.settings-preview {
  margin: 12px 0 0;
  color: #475569;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.section-heading {
  margin-bottom: 20px;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
}

h2 {
  margin-top: 4px;
  font-size: 22px;
}

h3 {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.3;
}

.eyebrow {
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-list {
  display: grid;
  gap: 18px;
}

.example-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  background: #fafafa;
}

.demo-cell,
.code-cell {
  min-width: 0;
}

.demo-cell angular-multiselect,
.demo-cell angular2-multiselect {
  display: block;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.code-card {
  min-width: 0;
}

.code-card strong {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 12px;
  text-transform: uppercase;
}

.code-card pre {
  min-height: 180px;
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid #1f334a;
  background: #13263a;
  color: #edf4fb;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.option-row,
.swatch-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.option-row small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}

.swatch {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.activity {
  padding: 20px 24px;
}

.activity h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.activity p {
  margin: 0 0 8px;
  color: #475569;
}

.boot-error {
  padding: 24px;
  background: #1f2937;
  color: #fff;
}

@media (max-width: 1120px) {
  .example-row,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .code-card pre {
    min-height: 150px;
  }
}

@media (max-width: 860px) {
  .page {
    padding: 16px;
  }

  .skin-section {
    padding: 16px;
  }
}


.selected-list .clear-all {
  font-size: 12pt;
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.stackline-dropdown.theme-material .selected-list .clear-all,
.stackline-dropdown.theme-dark .selected-list .clear-all,
.stackline-dropdown.theme-custom .selected-list .clear-all {
  position: absolute;
  top: 50%;
  right: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--ms-on-surface-muted);
  cursor: pointer;
}
