/* Hairiel admin — Look screen. */

.ha-lk-undo { align-items: center; }
.ha-lk-undo form { flex: none; }
.ha-lk-looks { margin-bottom: 20px; }

/* Look cards */
.ha-lk-looks__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.ha-lk-look { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); min-width: 0; }
.ha-lk-look.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ha-lk-look__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ha-lk-look__text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ha-lk-look__dots { display: flex; gap: 4px; }
.ha-lk-look__dots span { width: 18px; height: 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.ha-lk-look__dots .ha-lk-look__dot-accent { background: var(--pv-accent); }
.ha-lk-switch { flex: 1 1 100%; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (min-width: 900px) { .ha-lk-switch { flex: 0 1 auto; } }
.ha-lk-confirm { align-self: stretch; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-tint); color: var(--ink); font-size: 13px; }
.ha-lk-confirm[hidden] { display: none; }
.ha-lk-switch .ha-lk-confirm { max-width: 420px; }
@media (prefers-reduced-motion: no-preference) { .ha-lk-confirm:not([hidden]) { animation: ha-in .2s var(--ease); } }

/* Mini preview, drawn with the look's own tokens (--pv-*) */
.ha-lk-pv { border-radius: 10px; overflow: hidden; border: 1px solid var(--pv-line); background: var(--pv-bg); color: var(--pv-ink); font-family: var(--pv-body-font), system-ui, sans-serif; line-height: 1.2; }
.ha-lk-pv__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--pv-surface); border-bottom: 1px solid var(--pv-line); }
.ha-lk-pv--barber .ha-lk-pv__bar { background: var(--pv-bg); }
.ha-lk-pv__brand { display: flex; flex-direction: column; line-height: 1; min-width: 0; max-width: 40%; }
.ha-lk-pv__top { font-size: 6px; letter-spacing: .32em; font-weight: 600; white-space: nowrap; }
.ha-lk-pv__name { font-family: var(--pv-head), system-ui, sans-serif; font-size: 15px; font-weight: var(--pv-logo-weight); letter-spacing: var(--pv-logo-track); text-transform: var(--pv-logo-case); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-lk-pv__nav { display: flex; gap: 10px; margin-left: auto; font-size: 9px; color: var(--pv-body); }
.ha-lk-pv__btn, .ha-lk-pv__cta { flex: none; padding: 5px 10px; border-radius: var(--pv-r-btn); background: var(--pv-btn); color: var(--pv-btn-ink); font-size: 9px; font-weight: 500; white-space: nowrap; }
.ha-lk-pv--barber .ha-lk-pv__btn, .ha-lk-pv--barber .ha-lk-pv__cta { font-family: var(--pv-head), system-ui, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ha-lk-pv__hero { padding: 22px 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--pv-hero) 88%, #fff) 0%, var(--pv-hero) 60%); color: #fff; display: flex; flex-direction: column; gap: 8px; }
.ha-lk-pv--barber .ha-lk-pv__hero { color: var(--pv-ink); }
.ha-lk-pv__open { font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--pv-inv-accent); }
.ha-lk-pv--barber .ha-lk-pv__open { color: var(--pv-accent); }
.ha-lk-pv__title { max-width: 12ch; font-family: var(--pv-head), system-ui, sans-serif; font-size: 20px; font-weight: var(--pv-head-weight); letter-spacing: var(--pv-head-track); text-transform: var(--pv-head-case); line-height: 1.1; }
.ha-lk-pv--barber .ha-lk-pv__title { font-size: 22px; line-height: 1; }
.ha-lk-pv__cta { align-self: flex-start; padding: 6px 12px; background: var(--pv-hero-btn); color: var(--pv-hero-btn-ink); }
.ha-lk-pv__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 14px; }
.ha-lk-pv__card { border-radius: var(--pv-r-sm); background: var(--pv-surface); border: 1px solid var(--pv-line); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ha-lk-pv__ph { height: 34px; border-radius: calc(var(--pv-r-sm) - 4px); background: var(--pv-ph); }
.ha-lk-pv__ph--2 { background: var(--pv-ph-2); }
.ha-lk-pv__svc, .ha-lk-pv__price { font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-lk-pv__price { font-weight: 600; color: var(--pv-accent); }
@media (max-width: 480px) { .ha-lk-pv__nav { display: none; } .ha-lk-pv__brand { max-width: 60%; } }

/* Brand colour */
.ha-lk-swatches { margin: 0; padding: 0; border: 0; min-width: 0; }
.ha-lk-swatches__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ha-lk-swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-size: 12px; color: var(--ink); text-align: center; }
.ha-lk-swatch > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ha-lk-swatch:hover { border-color: var(--line); }
.ha-lk-swatch:has(> input:checked) { border-color: var(--accent); background: var(--soft); }
.ha-lk-swatch:has(> input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ha-lk-swatch__dot { width: 36px; height: 36px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); display: flex; align-items: center; justify-content: center; }
.ha-lk-swatch__dot svg { opacity: 0; }
.ha-lk-swatch:has(> input:checked) .ha-lk-swatch__dot svg { opacity: 1; }
.ha-lk-swatch__name { font-weight: 600; }
.ha-lk-hex { font-variant-numeric: tabular-nums; }

.ha-lk-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.ha-lk-custom__field { flex: 0 1 220px; }
.ha-lk-custom__row { display: flex; align-items: center; gap: 8px; }
.ha-app input.ha-lk-picker { flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; box-shadow: none; }
.ha-app input.ha-lk-picker::-webkit-color-swatch-wrapper { padding: 0; }
.ha-app input.ha-lk-picker::-webkit-color-swatch { border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ha-app input.ha-lk-picker::-moz-color-swatch { border: 0; border-radius: 8px; }
.ha-app input.ha-lk-picker:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ha-lk-contrast { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--soft); }
.ha-lk-sample { flex: none; height: 32px; padding: 0 14px; display: inline-flex; align-items: center; font-weight: 600; font-size: 13px; }
.ha-lk-contrast__text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.ha-lk-contrast__line { font-weight: 600; color: var(--ok); }
.ha-lk-contrast__line.is-bad { color: var(--warn); }
.ha-lk-colour__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ha-lk-colour__foot .ha-help { flex: 1 1 240px; }

/* Logo */
.ha-lk-logo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ha-lk-logo__box { height: 104px; padding: 12px; border-radius: 10px; background: var(--lk-logo-bg); color: var(--lk-logo-ink); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ha-lk-logo__box.is-dark { border-color: #3d3a36; }
.ha-lk-logo__box img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.ha-lk-logo__box [hidden] { display: none !important; }
.ha-lk-logo__text { display: flex; flex-direction: column; align-items: center; line-height: 1; max-width: 100%; }
.ha-lk-logo__top { font-size: 8px; letter-spacing: .32em; font-weight: 600; }
.ha-lk-logo__name { max-width: 100%; font-family: var(--lk-logo-font), system-ui, sans-serif; font-weight: var(--lk-logo-weight); font-size: 26px; letter-spacing: var(--lk-logo-track); text-transform: var(--lk-logo-case); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-lk-logo__drop { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #cfc6bf; }
.ha-lk-logo__box.is-dark:has(.ha-lk-logo__drop:not([hidden])) { border: 1px dashed #5c554c; }
.ha-lk-logo .ha-btn[hidden] { display: none; }

/* Aside */
.ha-lk-fine { gap: 0; }
.ha-lk-fine > .ha-h2 { margin-bottom: 8px; }
.ha-lk-fine__row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.ha-lk-fine__row:last-child { padding-bottom: 0; }
.ha-lk-fine__text { display: flex; flex-direction: column; gap: 2px; }
.ha-lk-what li { display: flex; gap: 10px; padding: 6px 0; font-size: 13px; }
.ha-lk-what__mark { flex: none; width: 20px; height: 20px; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.ha-lk-what .is-keep .ha-lk-what__mark { background: var(--ok); }
