/* CLAUDE 10-05: the Presets page (presets.js): the two tabs, Clipping presets (cards and the builder with its live
   preview). Colours and sizes from DESIGN-SYSTEM.md. */
.presets-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 4px 0 18px;
  border: 1px solid #262626;
  border-radius: 999px;
  background: #111113;
}
.presets-tabs [role='tab'] {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #bdbdbd;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 150ms ease-out,
    color 150ms ease-out;
}
.presets-tabs [role='tab']:hover {
  color: #f3f3f3;
}
.presets-tabs [role='tab'][aria-selected='true'] {
  background: #53fc18;
  color: #061000;
}

/* the list */
.pc-guest {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 60ch;
}
.pc-guest .hint {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}
.pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.pc-head p {
  margin: 0;
  max-width: 60ch;
  color: #bdbdbd;
  font-size: 14px;
}
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.pc-empty {
  grid-column: 1 / -1;
}
.pc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid #262626;
  border-radius: 12px;
  background: #111113;
}
.pc-thumb {
  position: relative;
  display: grid;
  place-items: center;
  height: 96px;
  border-radius: 8px;
  background: linear-gradient(160deg, #1b221b, #0b0b0b);
  overflow: hidden;
}
.pc-thumb .sample {
  max-width: 90%;
  overflow: hidden;
  white-space: nowrap;
}
.pc-thumb .pc-hl {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: #f3f3f3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.pc-thumb .pc-logo {
  position: absolute;
  top: 8px;
  right: 8px;
  max-width: 48px;
  max-height: 18px;
}
.pc-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.pc-default {
  padding: 1px 8px;
  border-radius: 999px;
  background: #15210f;
  color: #8dff66;
  font-size: 11px;
  font-weight: 700;
}
.pc-tags {
  flex: 1;
  margin: 0;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 1.4;
}
.pc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pc-actions button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}
.pc-actions .danger {
  color: #ff6a6a;
}

/* the builder */
.pb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.pb-name {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 320px;
  min-height: 40px;
  font-size: 15px;
  font-weight: 600;
}
.pb-space {
  flex: 1;
}
.pb-undo,
.pb-redo {
  width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 18px;
}
.pb-bar .pb-def {
  gap: 8px;
}
.pb-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
  align-items: start;
}
.pb-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pb-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #262626;
  border-radius: 12px;
  background: #111113;
}
.pb-section h3 {
  margin: 0;
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pb-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pb-group + .pb-group {
  padding-top: 12px;
  border-top: 1px solid #262626;
}
.pb-group h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}
.pb-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #d0d0d0;
  font-size: 13px;
}
.pb-field select {
  width: auto;
  min-width: 160px;
}
.pb-field input[type='color'] {
  width: 44px;
  height: 32px;
  padding: 2px;
}
.pb-switch b {
  font-weight: inherit;
}
.pb-upload button {
  min-height: 40px;
}
.pb-file {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pb-looks {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
.pb-preview {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pb-phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  max-height: 72vh;
  border: 1px solid #262626;
  border-radius: 18px;
  background: #000;
  overflow: hidden;
}
.pb-phone canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.pb-netlabel {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #000a;
  color: #f3f3f3;
  font-size: 11px;
  font-weight: 700;
}
.pb-preview .hint {
  margin: 0;
  max-width: 300px;
  text-align: center;
}

/* Clip options: the account's clipping presets, marked */
.look-strip .look.is-preset .look-name::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #53fc18;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .pb-body {
    grid-template-columns: 1fr;
  }
  .pb-preview {
    position: static;
    order: -1;
  }
  .pb-phone {
    max-width: 220px;
  }
  .pc-head {
    flex-direction: column;
    align-items: stretch;
  }
}
