dialog.looks-dialog[open] {
  --looks-border: #353539;
  --looks-soft: #aeacb3;
  position: fixed;
  inset: 0;
  width: min(1210px, calc(100vw - 52px));
  height: min(810px, calc(100dvh - 56px));
  max-width: 100vw;
  max-height: 100dvh;
  padding: 0;
  margin: auto;
  overflow: hidden;
  color: #f8f6f0;
  background: #161616;
  border: 1px solid #4b4b4d;
  border-radius: 13px;
  box-shadow: 0 25px 95px #0009;
}
.looks-dialog::backdrop {
  background: #030304c9;
}
.looks-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.looks-head,
.looks-foot,
.look-stack-head,
.look-row-head,
.look-preview-tools,
.look-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.looks-head {
  padding: 17px 22px;
  justify-content: space-between;
  border-bottom: 1px solid var(--looks-border);
}
.looks-dialog label {
  margin: 0;
}
.looks-head h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.looks-head [data-dismiss] {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 23px;
  line-height: 1;
}
.looks-main {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(294px, 1fr);
  flex: 1;
  min-height: 0;
}
.looks-catalog,
.look-inspect {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.looks-catalog {
  padding: 18px 17px 0;
}
.looks-filters,
.look-save {
  display: flex;
  gap: 8px;
}
.look-find {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #101012;
  border: 1px solid var(--looks-border);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--looks-soft);
}
.look-find:focus-within {
  outline: 2px solid #f5d94e;
}
.look-find input {
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: transparent;
}
.look-find input:focus-visible {
  outline: none;
}
.looks-filters select {
  width: min(42%, 190px);
}
.look-tabs {
  margin: 12px 0;
}
.look-tabs button,
.look-preview-tools button,
.look-stack-head button {
  font-size: 12px;
  padding: 4px 9px;
}
.look-tabs button {
  background: transparent;
  border-color: transparent;
  color: var(--looks-soft);
}
.look-tabs [aria-pressed='true'],
.look-mobile [aria-pressed='true'] {
  background: #343337;
  color: #faf8f4;
  border-color: #49474c;
}
.look-tabs small {
  margin-left: auto;
  color: #afadb1;
  font-size: 11px;
}
.look-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(136px, 100%), 1fr));
  align-content: start;
  align-items: start;
  gap: 15px 10px;
  padding: 2px 3px 18px;
  scrollbar-gutter: stable;
}
.look-tile {
  position: relative;
  min-width: 0;
}
.look-choice {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: left;
  background: #212124;
  padding: 0 0 7px;
  overflow: hidden;
  border-radius: 6px;
}
.look-choice:hover {
  border-color: #dbbe50;
}
.look-choice canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1.75;
  object-fit: contain;
  background: #0b0b0c;
}
.look-choice strong,
.look-choice small {
  display: block;
  margin: 5px 8px 0;
  line-height: 1.22;
}
.look-choice strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.look-choice small {
  color: var(--looks-soft);
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
}
.look-star,
.look-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 27px;
  height: 27px;
  padding: 0;
  color: #fff;
  background: #101012d9;
  border: 1px solid #ffffff45;
  border-radius: 5px;
}
.look-star[aria-pressed='true'] {
  color: #ffe176;
  background: #17160e;
}
.look-star[aria-pressed='true'] svg {
  fill: currentColor;
}
.look-delete {
  right: 37px;
}
.look-inspect {
  padding: 18px;
  background: #202023;
  border-left: 1px solid var(--looks-border);
}
.look-monitor {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  max-height: 32dvh;
  aspect-ratio: 16/9;
  background: #0c0c0d;
  border-radius: 5px;
  overflow: hidden;
}
.look-monitor canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.look-preview-tools {
  margin: 8px 0 13px;
}
.look-preview-tools span {
  margin-right: auto;
  font-size: 11px;
  color: var(--looks-soft);
}
.look-preview-tools [aria-pressed='true'] {
  border-color: #e5cd56;
  color: #ffe176;
}
.look-stack-head {
  border-top: 1px solid var(--looks-border);
  padding-top: 12px;
  justify-content: space-between;
}
.look-stack-head h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.look-stack {
  flex: 1;
  overflow-y: auto;
  min-height: 38px;
  padding: 2px 2px 2px 0;
  margin: 8px 0;
  list-style: none;
}
.look-stack li[data-row] {
  padding: 8px;
  border: 1px solid #3d3d40;
  border-radius: 5px;
  margin-bottom: 6px;
  background: #19191b;
}
.look-row-head {
  justify-content: space-between;
}
.look-row-head label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.look-row-head label input {
  width: 14px;
  height: 14px;
  flex: none;
  margin: 0;
  accent-color: #d62828;
}
.look-row-head > div {
  display: flex;
  flex: none;
  gap: 3px;
}
.look-row-tool {
  width: 26px;
  height: 25px;
  padding: 0;
}
.bypassed .look-strength,
.bypassed .look-row-head span {
  opacity: 0.55;
}
.look-strength {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: var(--looks-soft);
  font-size: 11px;
}
.look-strength input {
  flex: 1;
  width: 40px;
  min-width: 0;
  accent-color: #d62828;
}
.look-strength output {
  min-width: 31px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.look-save {
  margin-top: auto;
}
.look-save input {
  width: 0;
  min-width: 0;
  flex: 1;
}
.look-save button {
  flex-shrink: 0;
}
.look-empty {
  grid-column: 1/-1;
  margin: 10px 0;
  color: var(--looks-soft);
  font-size: 13px;
}
.looks-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--looks-border);
  background: #171719;
}
.looks-foot [data-message] {
  margin-right: auto;
  color: var(--looks-soft);
  font-size: 12px;
}
.looks-foot [data-apply] {
  background: #ebcb52;
  color: #17150c;
  border-color: #ebcb52;
}
.look-mobile {
  display: none;
}
@media (max-width: 710px) {
  dialog.looks-dialog[open] {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .looks-head,
  .looks-foot {
    padding: 10px 13px;
  }
  .looks-head h2 {
    font-size: 21px;
  }
  .look-mobile {
    display: flex;
    gap: 7px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--looks-border);
  }
  .look-mobile button {
    flex: 1;
    padding: 6px;
    font-size: 12px;
    color: var(--looks-soft);
    background: transparent;
  }
  .looks-main {
    display: flex;
    flex-direction: column;
  }
  .looks-catalog,
  .look-inspect {
    flex: 1;
    padding: 12px;
  }
  .look-inspect {
    border-left: none;
  }
  .looks-dialog[data-pane='library'] .look-inspect,
  .looks-dialog[data-pane='stack'] .looks-catalog {
    display: none;
  }
  .look-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(138px, 100%), 1fr));
  }
  .look-tabs {
    margin: 8px 0;
  }
  .look-monitor {
    width: 100%;
  }
  .looks-foot button {
    flex-shrink: 0;
  }
}

.looks-head {
  background: #0a0a0a;
}
.looks-head h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.looks-head h2:before {
  content: '';
  width: 0.3rem;
  height: 1em;
  background: #d62828;
  border-radius: 0.1rem;
}
.looks-dialog .looks-foot [data-apply] {
  background: #d62828;
  border-color: #d62828;
  color: white;
}
.looks-dialog .looks-foot [data-apply]:hover:enabled {
  background: #bd2020;
}
.looks-dialog .looks-foot [data-apply]:disabled {
  background: #444045;
  color: #d0cad0;
  border-color: #514d51;
}
.look-tabs [aria-pressed='true'],
.look-mobile [aria-pressed='true'] {
  background: #372124;
  border-color: #984344;
}
.look-tile.in-stack .look-choice {
  box-shadow: inset 0 -2px 0 #d62828;
}
.look-tile.in-stack small {
  color: #f0a3a3;
}
@media (prefers-reduced-motion: no-preference) {
  .look-choice {
    transition:
      transform 0.15s ease,
      box-shadow 0.15s ease;
  }
  .look-choice:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 710px) {
  .looks-dialog .look-mobile button,
  .looks-dialog .look-tabs button {
    min-height: 36px;
  }
  .looks-dialog .look-star,
  .looks-dialog .look-delete {
    width: 34px;
    height: 34px;
  }
  .looks-dialog .look-delete {
    right: 43px;
  }
  .looks-dialog .look-row-tool {
    width: 34px;
    height: 34px;
  }
  .looks-dialog .look-preview-tools button {
    min-height: 34px;
  }
  .looks-dialog .look-find input,
  .looks-dialog .look-save input {
    font-size: 16px;
  }
  .looks-dialog .looks-foot button {
    min-height: 40px;
  }
}
