/* 4LifeTags lineup-builder usability improvements. */

/* Simple, quiet finished-size labels. */
.board-dimension {
  position: absolute;
  z-index: 30;
  color: rgba(225, 244, 251, 0.58);
  pointer-events: none;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px #000;
}
.board-dimension span {
  position: absolute;
  white-space: nowrap;
}
.dimension-width {
  top: -28px;
  left: 0;
  right: 0;
  height: 20px;
}
.dimension-width span {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.dimension-height {
  top: 0;
  left: -40px;
  right: auto;
  bottom: 0;
  width: 30px;
}
.dimension-height span {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
}

/* Keep the board openings clear. Show the included hardware as a lightweight,
   free-floating annotation rather than a card or simulated mounting. */
.preview > .carabiner,
.carabiner-front { display: none !important; }

.carabiner-kit-callout {
  width: min(100%, 390px);
  height: 90px;
  margin-top: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  display: block;
  position: relative;
  z-index: 10;
  animation: carabinerCalloutIn .35s ease-out both;
}
.carabiner-kit-photos {
  width: 114px;
  height: 72px;
  display: block;
  position: absolute;
  top: 0;
  left: 2px;
}
.carabiner-kit-photo {
  width: 70px;
  height: 64px;
  background: url('/carabiner-photo-threaded-v3-optimized.webp?v=8.9.0') center / contain no-repeat;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.72));
  display: block;
  position: absolute;
  top: 0;
  transform-origin: 50% 50%;
}
.carabiner-kit-photo.first {
  left: 0;
  transform: rotate(52deg);
}
.carabiner-kit-photo.second {
  left: 42px;
  transform: rotate(52deg);
}
.carabiner-kit-arrow {
  width: 140px;
  height: 88px;
  overflow: visible;
  position: absolute;
  top: 43px;
  left: 13px;
}
.carabiner-kit-arrow path {
  fill: none;
  stroke: #27c9ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(39,201,255,.42));
}
.carabiner-kit-arrow .arrow-line { stroke-width: 2; }
.carabiner-kit-arrow .arrow-head { stroke-width: 2.4; }
.carabiner-kit-callout > strong {
  color: #edf9fd;
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
  font: 18px/1 "Bebas Neue", sans-serif;
  text-shadow: 0 2px 5px #000;
  position: absolute;
  top: 11px;
  left: 120px;
}
.board {
  z-index: 6;
  isolation: isolate;
  margin-top: 8px;
}
@keyframes carabinerCalloutIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.hole {
  z-index: 8;
  overflow: hidden;
  isolation: isolate;
  background: #020609;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 2px 5px #000, 0 1px 0 rgba(255,255,255,.12);
}
.hole::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 68%, #111a20 0 20%, #020609 55%, #000 100%);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .95);
}
.hole::after { display: none; }

/* Make every position card obviously editable as well as draggable. */
.position.position-editable {
  overflow: visible;
  outline: 1px dashed rgba(39, 201, 255, 0.82);
  outline-offset: 2px;
  animation: positionCoach 1.15s ease-in-out 4;
}
.position.position-editable:focus-within {
  outline: 3px solid #27c9ff;
  outline-offset: 3px;
  box-shadow: 0 0 20px rgba(39, 201, 255, 0.85);
}
.position.position-editable input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  padding: 0 13px 0 11px;
  text-align: center;
  text-transform: uppercase;
  font: inherit;
  cursor: text;
}
@keyframes positionCoach {
  0%, 100% { outline-color: rgba(39, 201, 255, .42); }
  50% {
    outline-color: #fff;
    box-shadow: 0 0 18px rgba(39, 201, 255, .8);
  }
}

/* Clear, low-friction upload / replace / delete controls. */
.logo-file-card {
  border: 1px solid #2f7796;
  border-radius: 10px;
  background: #061a28;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
}
.logo-file-card img {
  width: 62px;
  height: 56px;
  border: 1px solid #315369;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}
.logo-file-card > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.logo-file-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.logo-file-card small {
  color: #9eb1bd;
  font-size: 9px;
}
.logo-file-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-change,
.logo-delete {
  border: 1px solid #27c9ff;
  border-radius: 7px;
  background: #0a2d42;
  color: #dff7ff;
  min-height: 38px;
  padding: 7px 9px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.logo-delete {
  border-color: #ff6d7e;
  background: #36131a;
  color: #ffb5bf;
  font-size: 17px;
  line-height: 1;
}
.logo-production-preview {
  width: 68px;
  height: 55px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 15px 15px;
  display: grid;
  place-items: center;
  font: 31px/1 "Bebas Neue", sans-serif;
  -webkit-mask-image: linear-gradient(#000, #000);
}
.board-top .one-color-title {
  font-size: 15px;
  letter-spacing: .08em;
}
.board-top .one-color-note {
  max-width: 190px;
  text-align: center;
  line-height: 1.3;
}
.proof-note.proof-approval {
  border-color: #72e7a3;
  background: #09271d;
  color: #d9ffea;
  line-height: 1.5;
}

/* Keep the regular preview helper short; first-time help is the guided tour. */
.preview-guide {
  min-height: 66px;
}
.preview-guide small {
  max-width: 250px;
  line-height: 1.35;
}
.physical-note.quick-tutorial {
  gap: 7px;
}
.physical-note.quick-tutorial span {
  display: block;
}

@media (max-width: 1100px) {
  .dimension-height { left: -36px; }
  .carabiner-kit-callout { width: 360px; }
}
@media (max-width: 840px) {
  .board-dimension { display: block; }
  .dimension-height { left: -34px; }
  .preview-guide { margin-bottom: 14px; }
  .carabiner-kit-callout { width: min(100%, 360px); margin-top: 0; }
}
@media (max-width: 480px) {
  .dimension-width { top: -25px; }
  .board { width: min(calc(100% - 38px), 350px); }
  .dimension-height { left: -29px; }
  .board-dimension { font-size: 10px; }
  .carabiner-kit-callout {
    width: min(calc(100% - 38px), 350px);
    height: 84px;
    padding: 0;
  }
  .carabiner-kit-photos { width: 100px; height: 60px; left: 1px; }
  .carabiner-kit-photo { width: 61px; height: 55px; }
  .carabiner-kit-photo.first { left: 0; }
  .carabiner-kit-photo.second { left: 38px; }
  .carabiner-kit-callout > strong { top: 8px; left: 107px; font-size: 15.5px; }
  /* The mobile endpoint is aligned to the left hole after the narrower board
     is centered inside the preview column. */
  .carabiner-kit-arrow { width: 120px; height: 75px; top: 49px; left: 16px; }
  .board { margin-top: 7px; }
  .logo-file-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }
  .logo-file-card img { width: 54px; height: 50px; }
  .logo-file-actions { grid-column: 1 / -1; }
  .logo-change { flex: 1; }
}

@media (max-width: 360px) {
  .carabiner-kit-callout { width: min(calc(100% - 38px), 350px); height: 84px; }
  .carabiner-kit-photos { left: 0; width: 82px; height: 52px; }
  .carabiner-kit-photo { width: 51px; height: 48px; }
  .carabiner-kit-photo.first { left: 0; }
  .carabiner-kit-photo.second { left: 31px; }
  .carabiner-kit-callout > strong {
    top: 8px;
    left: 88px;
    font-size: 13.5px;
    letter-spacing: .2px;
  }
  .carabiner-kit-arrow { width: 110px; height: 68px; top: 55px; left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .position.position-editable { animation: none; }
  .carabiner-kit-callout { animation: none; }
}

/* Familiar paid custom-color swatch and full-screen picker. */
.palette .custom-color-swatch {
  position: relative;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 0;
  padding: 3px;
  background: conic-gradient(
    #ff294d, #ff9f1c, #ffe600, #31df70,
    #1fd6ff, #365cff, #9b42e6, #ff3aa7, #ff294d
  );
  box-shadow: 0 0 0 2px #9fb2bd;
}
.palette .custom-color-swatch span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.palette .custom-color-swatch b {
  color: #071522;
  font: 900 19px/1 Inter, system-ui, sans-serif;
  transform: translateY(-1px);
}
.palette .custom-color-swatch:hover,
.palette .custom-color-swatch:focus-visible {
  transform: scale(1.08);
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.custom-color-inline {
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 207px;
  border: 1px solid #315c72;
  border-radius: 11px;
  background: #04111c;
  padding: 12px;
  box-shadow: inset 0 0 24px rgba(39, 201, 255, .04);
}
.custom-color-inline > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.custom-color-inline header div { display: grid; gap: 2px; }
.custom-color-inline header span {
  color: #ffc247;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.custom-color-inline h3 {
  margin: 0;
  font: 25px/1 "Bebas Neue", sans-serif;
  text-transform: uppercase;
}
.custom-color-inline-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #416274;
  border-radius: 50%;
  background: transparent;
  color: #dcecf3;
  font-size: 19px;
}
.custom-color-inline-controls {
  display: grid;
  grid-template-columns: 58px 58px minmax(0, 1fr);
  align-items: end;
  gap: 9px;
}
.custom-color-inline-wheel {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 9px;
  background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  cursor: pointer;
}
.custom-color-inline-wheel input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.custom-color-inline-wheel span {
  pointer-events: none;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff;
  color: #071522;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
}
.custom-color-inline-preview {
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  border-radius: 9px;
}
.custom-color-inline-hex { display: grid; gap: 4px; }
.custom-color-inline-hex span {
  color: #9fb8c5;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.custom-color-inline-hex input {
  width: 100%;
  height: 40px;
  border: 1px solid #42677a;
  border-radius: 7px;
  background: #020c14;
  color: #fff;
  padding: 0 9px;
  font: 800 14px/1 monospace;
  text-transform: uppercase;
}
.custom-color-inline-warning {
  margin: 0 !important;
  border-left: 3px solid #ffc247;
  background: rgba(255, 194, 71, .08);
  color: #d7cba9 !important;
  padding: 7px 8px;
  font-size: 8px !important;
  line-height: 1.4;
}
.custom-color-inline-warning strong { color: #ffc247; }
.custom-color-inline > footer {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
}
.custom-color-inline footer button {
  min-height: 36px;
  border-radius: 7px;
  padding: 6px;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 900;
}
.custom-color-cancel {
  border: 1px solid #426174;
  background: transparent;
}
.custom-color-apply {
  border: 0;
  background: #27c9ff;
  color: #03141d;
}
.custom-color-apply:disabled { opacity: .45; }
.custom-color-active {
  display: grid !important;
  gap: 2px;
  margin-top: 8px !important;
  border-left: 3px solid #ffc247;
  background: rgba(255, 194, 71, .1);
  color: #fff1c8 !important;
  padding: 8px 10px;
  font-size: 10px !important;
}
.custom-color-active strong { color: #ffc247; }
.price-custom-color {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #274357;
  padding-top: 9px;
  color: #ffc247;
}
.price-custom-color span { display: grid; gap: 2px; }
.price-custom-color small { color: #b7cbd4; font-size: 9px; }

@media (max-width: 560px) {
  .palette .custom-color-swatch { width: 32px; height: 32px; }
  .palette .custom-color-swatch span { width: 21px; height: 21px; }
  .custom-color-inline { padding: 10px; }
  .custom-color-inline-controls { grid-template-columns: 52px 52px minmax(0, 1fr); }
  .custom-color-inline-wheel,
  .custom-color-inline-preview { width: 52px; height: 52px; }
}

/* First-visit guided tour: points to the real interface, then gets out of the way. */
.builder-tour-launch {
  border: 1px solid #315369;
  border-radius: 7px;
  background: #0a2d42;
  color: #dff7ff;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.builder-tour-backdrop {
  position: fixed;
  z-index: 6000;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.builder-tour-backdrop.has-target {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.builder-tour-ring {
  position: fixed;
  z-index: 6001;
  border: 3px solid #27c9ff;
  border-radius: 12px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, .84),
    0 0 0 6px rgba(39, 201, 255, 0.23),
    0 0 30px rgba(39, 201, 255, 0.9);
  pointer-events: none;
  transition: top .22s ease, left .22s ease, width .22s ease, height .22s ease;
}
.builder-tour-card {
  position: fixed;
  z-index: 6002;
  width: min(390px, calc(100vw - 28px));
  border: 1px solid #2f83a7;
  border-radius: 15px;
  background: #071a28;
  color: #f5f8fa;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.78);
}
.builder-tour-card.is-centered {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.builder-tour-card.is-welcome {
  width: min(590px, calc(100vw - 28px));
  border-radius: 20px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .9), 0 0 0 1px rgba(39, 201, 255, .18);
}
.builder-tour-welcome-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border: 2px solid #27c9ff;
  border-radius: 50%;
  background: #0a3046;
  color: #27c9ff;
  font: 48px/1 "Bebas Neue", sans-serif;
  box-shadow: 0 0 30px rgba(39, 201, 255, .35);
}
.builder-tour-card.is-welcome h2 {
  margin-top: 10px;
  font-size: 55px;
}
.builder-tour-card.is-welcome > p {
  max-width: 470px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
}
.builder-tour-choice-actions {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 11px;
  margin-top: 24px;
}
.builder-tour-choice-actions button {
  min-height: 56px;
  border-radius: 9px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.builder-tour-choice-actions .builder-tour-skip {
  border: 1px solid #426174;
  background: transparent;
  color: #c2d4dc;
}
.builder-tour-choice-actions .builder-tour-next {
  border: 0;
  background: #27c9ff;
  color: #03141d;
}
.builder-tour-reopen {
  display: block;
  margin-top: 13px;
  color: #7f99a6;
  font-size: 10px;
}
.builder-tour-count {
  color: #27c9ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.builder-tour-card h2 {
  margin: 6px 0 7px;
  font: 34px/1 "Bebas Neue", sans-serif;
  text-transform: uppercase;
}
.builder-tour-card p {
  margin: 0;
  color: #b7cbd4;
  font-size: 13px;
  line-height: 1.5;
}
.builder-tour-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
}
.builder-tour-actions button {
  min-height: 42px;
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.builder-tour-skip,
.builder-tour-back {
  border: 1px solid #315369;
  background: transparent;
  color: #b7cbd4;
}
.builder-tour-next {
  border: 0;
  background: #27c9ff;
  color: #03141d;
}
.builder-tour-back:disabled { visibility: hidden; }
body.builder-tour-open { overscroll-behavior: none; }

@media (max-width: 640px) {
  .builder-tour-card {
    left: 14px !important;
    right: 14px !important;
    width: auto;
    transform: none !important;
    max-height: calc(100vh - 28px);
    overflow: auto;
  }
  .builder-tour-card.is-centered {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }
  .builder-tour-card h2 { font-size: 29px; }
  .builder-tour-card.is-welcome { padding: 25px 19px; }
  .builder-tour-card.is-welcome h2 { font-size: 42px; }
  .builder-tour-card.is-welcome > p { font-size: 13px; }
  .builder-tour-choice-actions { grid-template-columns: 1fr; }
  .builder-tour-choice-actions .builder-tour-next { grid-row: 1; }
  .builder-tour-ring { border-radius: 9px; }
}
