:root {
  color-scheme: dark;
  --bg: #101112;
  --surface: #181a1b;
  --line: #2a2c2d;
  --text: #ece9e3;
  --muted: #8c9091;
  --amber: #d8ae72;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
}
button:hover:enabled {
  border-color: var(--amber);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.workspace {
  max-width: 1440px;
  padding: 32px 44px;
  margin: auto;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-weight: 850;
  font-size: 26px;
  letter-spacing: -1px;
}
.logo span {
  color: var(--amber);
}
.logo small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.3px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}
.topright {
  display: flex;
  gap: 18px;
  align-items: center;
}
.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.pill {
  font-size: 9px;
  letter-spacing: 1.4px;
  border: 1px solid #4a4033;
  border-radius: 4px;
  color: var(--amber);
  padding: 7px 9px;
  white-space: nowrap;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 36px 0 34px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--amber);
  margin: 0 0 12px;
}
h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.17;
  margin: 0;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 500;
  margin: 0 0 7px;
}
p {
  line-height: 1.6;
}
.intro-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 28px;
}
.tabs button {
  border: none;
  border-radius: 0;
  background: none;
  padding: 18px 0;
  color: var(--muted);
  font-size: 10px;
  position: relative;
}
.tabs strong {
  margin-left: 12px;
  font-size: 13px;
  font-weight: 500;
}
.tabs button.active {
  color: var(--amber);
}
.tabs button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber);
}
.tabs button span {
  font-size: 7px;
  letter-spacing: 1px;
  margin-left: 8px;
  border: 1px solid var(--line);
  padding: 3px;
}
.bodygrid {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(400px, 1.35fr);
  gap: 36px;
  padding: 30px 0;
}
.library {
  border-right: 1px solid var(--line);
  padding-right: 36px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-title > span {
  font-size: 10px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
  font-size: 11px;
  margin: 6px 0 20px;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.filters label:last-child {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
input,
select {
  display: block;
  border: 1px solid var(--line);
  background: #151718;
  color: var(--text);
  border-radius: 5px;
  padding: 11px 12px;
  width: 100%;
  margin: 5px 0 12px;
}
select {
  appearance: auto;
}
.search {
  margin-top: 18px;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0 19px;
}
.chips button {
  font-size: 10px;
  padding: 7px 11px;
  border-radius: 20px;
}
.chips .active {
  color: var(--amber);
  border-color: #796042;
  background: #28231d;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lookcard {
  padding: 0;
  text-align: left;
  overflow: hidden;
  border-radius: 7px;
  background: var(--surface);
}
.lookcard.selected {
  border-color: var(--amber);
}
.lookart {
  height: 96px;
  position: relative;
  background: linear-gradient(
    170deg,
    #202927 5%,
    #647268 49%,
    #a89471 50%,
    #272c2a 52%,
    #444c40 77%,
    #111b1d
  );
  overflow: hidden;
}
.lookart:before {
  content: "";
  position: absolute;
  inset: 28% -10% -10%;
  background: linear-gradient(140deg, #202a24, #8b8869);
  clip-path: polygon(
    0 100%,
    0 70%,
    27% 13%,
    48% 60%,
    65% 25%,
    100% 94%,
    100% 100%
  );
}
.lookart.warm {
  filter: sepia(0.5);
}
.lookart.cool {
  filter: hue-rotate(35deg) saturate(0.6);
}
.lookart.monochrome {
  filter: grayscale(1);
}
.artbadge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 7px;
  background: #111a;
  padding: 4px;
  letter-spacing: 1px;
}
.cardtext {
  padding: 11px 12px;
}
.cardtext strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 5px;
}
.cardtext small {
  display: block;
  font-size: 8px;
  color: var(--muted);
}
.footnote {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 15px;
}
.monitor {
  height: 310px;
  background: #080a0b;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.monitor-meta,
.monitor-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #697073;
  padding: 15px 18px;
}
.previewempty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.frameicon {
  font-size: 40px;
  color: #515a5e;
  margin-bottom: 12px;
}
.previewempty h3 {
  font-size: 20px;
}
.previewempty p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 16px;
}
.splitline {
  width: 34%;
  height: 2px;
  background: var(--line);
  margin-top: 4px;
}
.lookdetail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0;
}
.lookdetail .muted {
  margin: 0;
}
.lookdetail h3 {
  font-size: 19px;
}
.lookdetail .eyebrow {
  margin-bottom: 8px;
}
.adjustments {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.textbutton {
  background: none;
  border: none;
  padding: 0;
  color: var(--amber);
  font-size: 10px;
}
input[type="range"] {
  accent-color: var(--amber);
  padding: 0;
  height: 3px;
  margin: 17px 0;
  background: var(--line);
  border: none;
}
output {
  float: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.controlgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 22px;
}
.applybox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 0 0;
  gap: 15px;
}
.applybox strong {
  font-size: 11px;
}
.applybox p {
  font-size: 9px;
  color: var(--muted);
  margin: 5px 0;
}
.primary {
  background: var(--amber);
  color: #141618;
  border: none;
  font-weight: 600;
  padding: 12px 22px;
}
.primary:hover:enabled {
  background: #e5bd85;
}
footer {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #62696c;
  font-size: 8px;
  letter-spacing: 1.2px;
}
footer a {
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  width: 420px;
  padding: 32px;
}
dialog::backdrop {
  background: #000b;
}
dialog h2 {
  font-size: 23px;
  margin: 18px 0;
}
.close {
  float: right;
  font-size: 24px;
  padding: 0;
}
.admin {
  max-width: 1100px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}
.admin form,
.admin-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 22px;
}
.admin input[type="checkbox"] {
  display: inline-block;
  width: auto;
  margin: 0 8px 12px 0;
}
.admin h2 {
  margin-bottom: 20px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 10px;
  color: var(--muted);
}
.error {
  color: #e4a19c;
}
.empty {
  padding: 35px 10px;
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1;
}
.admin-status {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 12px;
  z-index: 2;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .workspace {
    padding: 24px;
  }
  .bodygrid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .library {
    border: none;
    padding: 0;
  }
  .previewarea {
    border-top: 1px solid var(--line);
    padding-top: 25px;
  }
  .intro-note {
    display: none;
  }
  .intro h1 {
    font-size: 30px;
  }
  .topright .pill {
    display: none;
  }
  .tabs {
    gap: 16px;
  }
  .tabs strong {
    font-size: 11px;
    margin-left: 5px;
  }
  .tabs button span {
    display: none;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 450px) {
  .workspace {
    padding: 18px;
  }
  .topright button {
    padding: 0;
    font-size: 10px;
  }
  .logo {
    font-size: 23px;
  }
  .tabs {
    gap: 12px;
  }
  .tabs button {
    font-size: 8px;
  }
  .tabs strong {
    font-size: 10px;
  }
  .intro {
    padding: 25px 0;
  }
  .monitor {
    height: 260px;
  }
  .applybox {
    align-items: start;
    flex-direction: column;
  }
  .applybox button {
    width: 100%;
  }
  footer {
    gap: 10px;
    flex-wrap: wrap;
  }
}
