@import url("reset.min.css");
@import url("bootstrap.min.css");

:root {
  color-scheme: light;
  font-family: sans-serif;
}

.ui-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  font-weight: 600;
  color: currentColor;
}

textarea {
  resize: vertical;
}

.ui-topbar {
  color: #3e3e3e;
  background: linear-gradient(to bottom, #f7f7f7, #f3f3f3);
  border-bottom: 1px solid #e8e8e8;
  padding-top: 2em;
  padding-bottom: 0.75em;
  position: relative;
}

.ui-topbar-title-logomark::after {
  content: " /";
  opacity: 0.3;
}

.ui-topbar-logout::before {
  content: "";
  border-left: 1px solid #e8e8e8;
  border-right: 1px solid white;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  margin-left: -12px;
}

.ui-topbar-logout {
  padding-left: 20px;
}

.ui-topbar p {
  margin: 0;
}

.ui-topbar-title {
  font-size: 1.5em;
}

.ui-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.ui-topbar-title:has(.ui-topbar-title-tenant-icon) {
  margin-bottom: -9.5px !important;
  margin-top: -5.5px !important;
}

.ui-topbar-title-tenant-icon {
  width: 30px;
  vertical-align: middle;
  aspect-ratio: 1;
  margin-left: 0.1em;
  margin-right: 0.3em;
  margin-bottom: 4px;
  border-radius: 3px;
  object-fit: contain;
}

.ui-topbar-profile-picture {
  width: 20px;
  aspect-ratio: 1;
  vertical-align: bottom;
  margin-left: 0.25em;
  margin-right: 0.4em;
  border-radius: 3px;
}

.ui-shell {
  display: flex;
  gap: 1.5em;
  margin-top: 2em;
}

.ui-sidebar {
  width: 200px;
}

.ui-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ui-sidebar-section {
  border-radius: 4px;
  margin-bottom: 0.5em;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.05) 0 1px 2px 0;
}

.ui-sidebar-section .ui-sidebar-section-label,
.ui-sidebar-section li a {
  display: block;
  font-size: 1.07rem;
  padding: 8px 12px;
}

.ui-sidebar-section-label {
  background: linear-gradient(to bottom, #858585, #696969);
  color: white;
  margin: 0;
}

.ui-sidebar li a {
  text-shadow: 0 1px 1px rgba(255,255,255,0.75);
  background: #f6f6f6;
  border-top: 1px solid white;
  border-left: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  transition: background .05s linear;
}

.ui-sidebar a:hover {
  text-decoration: none;
  color: currentColor;
  border-top-color: #ececec;
  background: #ececec;
}

.ui-sidebar a:focus, .ui-sidebar .active a {
  border-top-color: rgba(0,0,0,0.15);
  background: #e6e6e6;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);
  color: currentColor;
  text-decoration: none;
}

.ui-sidebar-section li:last-child a {
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  border-bottom-color: #d2d2d2;
}

.ui-main {
  width: 100%;
  position: relative;
}

.ui-listing-new {
  position: absolute;
  top: 0;
  right: 0;
  /* Ensure consistency between <button> and <a> */
  font-weight: bold;
}

.ui-entry-form,
.ui-asset-form {
  display: flex;
  gap: 1em;
}

.ui-entry-form-main,
.ui-asset-form-main {
  flex-grow: 1;
  position: relative;
}

.ui-entry-form-sidebar,
.ui-asset-form-sidebar {
  min-width: 270px;
  max-width: 270px;
}

.ui-entry-form-publish,
.ui-asset-form-publish,
.ui-entry-form-preview,
.ui-entry-form-submissions {
  width: 100%;
  margin-bottom: 0.5em;
}

.ui-main-title {
  margin-top: 0;
  font-size: 2em;
  line-height: 1.1;
}

.ui-main-title-subpath {
  font-size: 0.8em;
  opacity: 0.7;
}

textarea, input, select {
  width: 100%;
}

.tab-nav {
  position: absolute;
  top: 0;
  right: 0;
}

.tenants-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1em;
}

.tenants-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3em;
}

.tenants-list-tenant {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.tenants-list-tenant-icon {
  width: 120px;
  aspect-ratio: 1;
  object-fit: contain;
}

.ui-listing-table tr td:last-child {
  text-align: right;
}

.ui-listing-table td {
  vertical-align: middle;
}

.table tr {
  border-bottom-color: transparent;
}

.matrix-field {
  position: relative;
}

.translatable-input {
  position: relative;
  margin-bottom: 10px;
}

.translatable-expand {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 6px;
  color: #999;
}

.translatable-expand.btn svg {
  width: 18px;
  height: 18px;
}

.translatable-field.expanded .translatable-expand {
  display: none;
}

.translatable-input :is(input, textarea) {
  margin-bottom: 0;
}

.translatable-field.expanded .translatable-input:not(:last-of-type) {
  margin-bottom: 4px;
}

.translatable-field:not(.expanded) .translatable-input:not(:first-of-type) {
  display: none;
}

.flag {
  font-size: 18px;
  line-height: 20px;
  cursor: default;
}

.translatable-input .flag {
  position: absolute;
  top: 0;
  right: 10px;
  z-index: 1;
  line-height: 30px;
}

.translatable-field:not(.expanded) .flag {
  display: none;
}

.translatable-field.multilingual .translatable-input :is(input, textarea) {
  padding-right: 36px;
}

label:empty {
  display: none;
}

.translatable-field legend,
.matrix-field legend,
.asset-field legend,
.entry-field legend {
  display: block;
  margin: 5px 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 20px;
  border-bottom: none;
}

.empty {
  color: #666;
  font-style: italic;
  text-align: center;
}

.matrix-add,
.asset-add,
.entry-add {
  position: absolute;
  top: -30px;
  right: 0;
}

.matrix-row {
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
  padding: 10px;
  padding-bottom: 30px;
  position: relative;
  margin-top: 3px;
  margin-bottom: 10px;
}

.matrix-row-label {
  margin-bottom: 5px;
  font-weight: bold;
}

.matrix-row .matrix-row {
  background-color: #fff;
}

.matrix-remove,
.matrix-up,
.matrix-down {
  position: absolute;
  bottom: 0;
  margin-bottom: -1px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.matrix-up, .matrix-down {
  border-bottom-color: #d6d6d6;
}

.matrix-remove {
  right: 10px;
}

.matrix-up {
  left: 10px;
}

.matrix-down {
  left: calc(10px + 4px + 28px);
}

.ui-json-editor {
  font-family: monospace;
  font-size: 0.875em;
}

.ui-main:has(.ui-entry-form) #flash-group {
  position: absolute;
  right: 0;
  width: 270px;
  top: 46px;
}

.ui-main:has(.ui-entry-form) .alert {
  padding-left: 14px;
  padding-right: 14px;
  text-align: center;
}

.ui-dropzone {
  width: 100%;
  padding: 1em;
  margin-bottom: 1.5em;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(to bottom, #fafafa, #ececec);
  border: 2px dashed #b0b0b0;
  border-radius: 8px;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.06),
    0 1px 0 rgba(255,255,255,0.8);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.ui-main:not(:has(.ui-asset-item)) .ui-dropzone {
  height: 200px;
  flex-direction: column;
}

.ui-dropzone.dragover {
  border-color: #666;
  background: linear-gradient(to bottom, #f0f0f0, #e4e4e4);
  box-shadow:
    inset 0 3px 12px rgba(0,0,0,0.1),
    0 1px 0 rgba(255,255,255,0.8);
}

.ui-dropzone.loading {
  pointer-events: none;
}
.ui-dropzone.loading > :not(.ui-dropzone-spinner) {
  display: none;
}
.ui-dropzone-spinner {
  display: none;
  width: 28px;
  height: 28px;
  border: 3px solid #ccc;
  border-top-color: #555;
  border-radius: 50%;
}
.ui-dropzone.loading .ui-dropzone-spinner {
  display: block;
  animation: ui-spin 0.75s linear infinite;
}
@keyframes ui-spin {
  to { transform: rotate(360deg); }
}

.ui-dropzone-label {
  font-size: 0.95em;
  font-weight: 600;
  color: #555;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
}

.ui-dropzone-sublabel {
  font-size: 0.8em;
  color: #888;
}

.ui-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.ui-asset-item {
  background: linear-gradient(to bottom, #ffffff, #f5f5f5);
  border: 1px solid #c8c8c8;
  border-top-color: #d8d8d8;
  border-bottom-color: #b0b0b0;
  border-radius: 6px;
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 2px 4px rgba(0,0,0,0.12),
    0 1px 2px rgba(0,0,0,0.08);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ui-asset-item:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 4px 12px rgba(0,0,0,0.15),
    0 2px 4px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.ui-asset-item img,
.asset-selected-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.5),
    0 1px 2px rgba(0,0,0,0.1);
  background:
    linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
    linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: #f0f0f0;
}

.ui-folder-icon,
.ui-file-icon {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  background-color: #fff0bec2;
  color: #ffcb3bc1;
}

.ui-folder-icon i,
.ui-file-icon i {
  font-size: 6em;
}

.ui-file-icon {
  background-color: #bee0ffc2;
  color: #3b9dffc1;
}

.ui-asset-info {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.ui-asset-filename {
  font-size: 0.85em;
  color: #444;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.ui-asset-info .btn {
  font-size: 0.8em;
  padding: 4px 8px;
}

.ui-asset-sidebar-preview,
.ui-asset-main-preview {
  background:
    linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
    linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: #f0f0f0;
  border-radius: 6px;
  border: 1px solid #c8c8c8;
  border-top-color: #d8d8d8;
  border-bottom-color: #b0b0b0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 2px 4px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
}

.ui-asset-sidebar-preview {
  width: 100%;
  margin: 0.5em 0;
}

.ui-asset-main-preview {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: 1em auto;
  margin-bottom: 0;
}

.ui-asset-preview {
  position: relative;
}

.ui-asset-delete-btn {
  right: 10px;
  top: 10px;
  position: absolute;
  width: max-content;
  padding-left: 10px;
  padding-right: 10px;
  transition: opacity .05s linear;
}

.ui-main:has(.ui-asset-main-preview) .ui-asset-form-sidebar > :first-child {
  margin-top: 3.5em;
}

.ui-main:has(.ui-asset-main-preview) .ui-asset-form-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ui-main:has(.ui-asset-main-preview) .ui-asset-delete-btn,
.ui-main:has(.ui-asset-sidebar-preview) .ui-asset-delete-btn {
  opacity: 0;
}

.ui-main:has(.ui-asset-main-preview:hover) .ui-asset-delete-btn,
.ui-main:has(.ui-asset-sidebar-preview:hover) .ui-asset-delete-btn,
.ui-asset-delete-btn:hover {
  opacity: 1 !important;
}

.ui-asset-sidebar-meta {
  margin: 1em 0;
  font-size: 0.9em;
}

.ui-asset-sidebar-meta dt {
  font-weight: 600;
  color: #666;
  margin-top: 0.5em;
}

.ui-asset-sidebar-meta dd {
  margin: 0;
  word-break: break-all;
}

.btn svg {
  height: 1em;
  width: 1em;
  vertical-align: middle;
}

/* Launch */
.ui-launch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  margin: 40px auto;
  text-align: center;
}

.ui-launch form {
  width: 100%;
  margin: 0;
}

.ui-launch-live-icon {
  width: 72px;
  height: 72px;
  margin: 16px 0;
  color: #5bb75b;
}

.ui-launch-status,
.ui-launch-or {
  margin: 0;
  color: #888;
}

.ui-launch-or {
  margin: 1em 0;
  font-weight: bold;
}

.ui-launch-button {
  font-weight: normal;
  width: 100%;
}

.ui-launch-button svg {
  width: 1.2em;
  height: 1.2em;
  margin: -0.2em 6px 0 0;
}

.ui-launch-credentials {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
}

.ui-launch-credentials label {
  margin: 8px 0 0;
}

.ui-launch-credentials label:first-child {
  margin-top: 0;
}

input.ui-launch-credential {
  box-sizing: border-box;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #d8d2c6;
  border-radius: 6px;
  background: #efede8;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #8a5a1c;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.08em;
  text-align: center;
  cursor: copy;
  transition: background-color 0.2s, color 0.2s;
}

input.ui-launch-credential-username {
  padding-block: 8px;
  font-family: inherit;
  letter-spacing: normal;
  font-size: 15px;
  line-height: 22px;
}

input.ui-launch-credential.is-copied {
  background: #dff0d8;
  color: #3c763d;
}

/* Asset picker modal */
#asset-picker-modal {
  width: 800px;
  margin-left: -400px;
}

#asset-picker-modal .modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

/* Asset field */
.asset-field {
  position: relative;
}

.asset-selected-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 0.5em;
  margin-bottom: 0.75em;
}

.asset-selected-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.asset-remove,
.entry-remove {
  padding: 2px 6px;
  line-height: 1.2;
  padding-bottom: 3px;
  font-size: 0.9em;
}

.asset-selected-item .asset-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
}

.asset-selected-item[draggable="true"],
.entry-selected-item[draggable="true"] {
  cursor: grab;
}

.asset-selected-item.dragging,
.entry-selected-item.dragging {
  opacity: 0.4;
  cursor: grabbing;
}

.asset-selected-item.drag-over,
.entry-selected-item.drag-over {
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
}

.asset-selected-single {
  margin-bottom: 10px;
}

.asset-selected-single .asset-selected-item {
  max-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.asset-selected-actions {
  display: flex;
  gap: 0.5em;
  align-items: stretch;
}

.asset-selected-actions .btn {
  width: 100%;
}

/* Link field */
.link-field {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 0 6px;
  align-items: start;
}

.link-field > * {
  min-width: 0;
}

/* Invisible, but needed for alignment + good for screen readers */
.link-option label {
  color: transparent;
  user-select: none;
  pointer-events: none;
}

.link-option {
  display: none;
}

.link-field:has(.link-kind option[value="entry"]:checked) > .link-entry,
.link-field:has(.link-kind option[value="asset"]:checked) > .link-asset,
.link-field:has(.link-kind option[value="url"]:checked) > .link-url,
.link-field:has(.link-kind option[value="mailto"]:checked) > .link-mailto,
.link-field:has(.link-kind option[value="tel"]:checked) > .link-tel {
  display: block;
}

/* Swatch field */
.swatch-field {
  margin: 5px 0 10px;
}

.swatch-picker {
  position: relative;
  display: inline-block;
}

.swatch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  line-height: 20px;
  cursor: pointer;
}

.swatch-picker .popover {
  top: 100%;
  left: -10px;
  margin-top: 10px;
  background-clip: border-box;
}

.swatch-picker.open .popover {
  display: block;
}

.swatch-picker .popover.bottom .arrow {
  left: 21px;
}

.swatch-options {
  display: grid;
  grid-template-columns: repeat(6, 24px);
  gap: 6px;
}

.swatch {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1)), var(--swatch);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.swatch-options .swatch {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.swatch-options .swatch:hover {
  border-color: rgba(0, 0, 0, 0.5);
}

.swatch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.swatch:has(input:checked) {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #08c;
}

.swatch:has(input:focus-visible) {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(82, 168, 236, 0.8);
}

.swatch-none {
  background: linear-gradient(to top right, transparent calc(50% - 1px), #c00 50%, transparent calc(50% + 1px)), #fff;
}

/* Entry field */
.entry-field {
  position: relative;
}

.entry-selected-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.entry-selected-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 4px 4px 4px 10px;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.entry-selected-item::before {
  content: "\2261";
  color: #aaa;
}

.entry-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-add .dropdown-menu {
  max-height: 300px;
  overflow-y: auto;
}

.ui-auth {
  max-width: 350px;
  margin: 4em auto;
}

.ui-auth h1 {
  font-size: 2em;
  margin-bottom: 0.75em;
  text-align: center;
}

.ui-auth form {
  margin-bottom: 1em;
}

.ui-auth .btn {
  width: 100%;
  margin-top: 1em;
}

.ui-auth p {
  text-align: center;
}

.ui-auth-settings {
  margin-top: 2em;
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
}

.ui-auth-settings fieldset {
  flex-grow: 1;
  min-width: 250px;
}

.ui-home-link {
  font-weight: normal;
  color: currentColor !important;
  text-decoration: none !important;
}

.ui-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
}

#tenants-group {
  margin-top: 3em;
  margin-bottom: 1em;
}

.ui-main > #flash-group {
  max-width: 87%;
}

.ui-main > #flash-group > .alert {
  margin-top: -3px;
}

.dropdown-menu {
  text-align: left;
}

.dropdown-menu .danger > a {
  color: #b94a48;
}

.dropdown-menu .danger > a:hover {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
  background-repeat: repeat-x;
}

.ui-stats {
  --stats-bar: #0088cc;
  --stats-share: #e8f2f8;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.ui-stats h2 {
  font-size: 1.2em;
  margin: 0 0 0.5em;
}

.ui-stats-chart {
  display: block;
  width: 100%;
  height: 120px;
  fill: var(--stats-bar);
}

.ui-stats-chart-hover {
  fill: transparent;
}

.ui-stats-chart g:hover .ui-stats-chart-hover {
  fill: #f0f0f0;
}

.ui-stats-total-count {
  margin: 0 0 0.5em;
  color: #666;
}

.ui-stats-total-count strong {
  font-size: 2em;
  color: #333;
}

.ui-stats-pages td {
  vertical-align: middle;
}

.ui-stats-pages-path small {
  display: block;
  color: #888;
}

.ui-stats-pages-chart {
  width: 40%;
}

.ui-stats-pages-chart .ui-stats-chart {
  height: 30px;
}

.ui-stats-pages-count {
  text-align: right;
  font-weight: bold;
}

.ui-stats-breakdowns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2em;
}

.ui-stats-breakdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ui-stats-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.2em 0.4em;
  margin-bottom: 2px;
  background: linear-gradient(to right, var(--stats-share) var(--share), transparent var(--share));
}

.ui-stats-breakdown-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-stats-breakdown-share {
  color: #666;
}
