/* Ported from Orotrueque (orotrueque.com · assets/app.css: medidores, cortes) and re-skinned black + cream for Aldo. */
.ot-scope{--gold:#000;--gold2:#000;--text:#000;--muted:rgba(0,0,0,.62);--card:#FFFDF9;--line:#E6DCCB;--red:#B3261E;--green:#1b7a3e;color:#000}
.ot-scope .btn{display:block;width:100%;background:#000;color:#FAF7F2;border:0;border-radius:999px;padding:13px;font:700 15px Raleway,Arial,sans-serif;cursor:pointer}
.ot-scope .btn.ghost{background:transparent;color:#000;border:1.5px solid #000}
.ot-scope .page-title{display:none}
.ot-scope label{display:block;font-size:13px;color:rgba(0,0,0,.62);margin:12px 0 6px}
.btn {
  display: block; width: 100%; background: var(--gold); color: #FAF7F2; border: 0;
  border-radius: 12px; padding: 14px; font-weight: 800; font-size: 16px;
}
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.wrap { padding: 16px; }
.seg { display:flex; gap:8px; }
.seg button { flex:1; padding:10px 8px; border-radius:10px; border:1px solid var(--line); background:transparent; color:var(--text); font-size:13px; }
.seg button.on { background:var(--gold); color:#FAF7F2; font-weight:700; border-color:var(--gold); }
.page-title { font-size:22px; font-weight:800; padding:8px 16px 0; }
.hint { font-size:12px; color:var(--muted); margin-top:4px; }
.seg { flex-wrap: wrap; }
.seg button { min-width: calc(33% - 8px); }
.ot-toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(90px + var(--safe)); z-index: 80; max-width: 88%;
  background: #2a1b45; color: var(--text); border: 1px solid var(--gold);
  padding: 12px 16px; border-radius: 12px; font-size: 14px; text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.ot-toast.bad { border-color: var(--red); }
.btn:disabled { opacity: .55; }
}
.mine-info { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:4px; }
.mine-info .name { font-size:15px; font-weight:700; line-height:1.25; }
.mine-info .sub { font-size:12px; color:var(--muted); }
.mine-actions { display:flex; gap:8px; margin-top:8px; }
.btn-mini {
  flex:0 0 auto; min-height:0; height:32px; padding:0 12px;
  border-radius:8px; border:1px solid var(--gold); background:transparent;
  color:var(--gold); font-size:12px; font-weight:700; line-height:30px;
}
.btn-mini.danger { border-color:#c9455f; color:#ff8098; }

/* Medidor de talla */
.ring-tool { padding-bottom: 40px; }
.card-cal-wrap { display:flex; justify-content:center; padding: 12px 0 8px; overflow:hidden; }
.card-cal {
  height: 54px; max-width: 100%;
  border: 2px dashed var(--gold);
  border-radius: 10px;
  background: rgba(90,66,30,.08);
  position: relative;
}
.card-cal::after {
  content: "Tarjeta";
  position: absolute; inset: 0;
  display:flex; align-items:center; justify-content:center;
  font-size: 12px; color: var(--gold2); font-weight: 700;
}
.ring-adj { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:12px; }
.ring-adj .btn { min-width: 52px; padding: 0 14px; }
.ring-size-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin: 8px 0; }
.ring-size-lab { font-size: 22px; font-weight: 800; text-align:center; flex:1; }
.ring-size-lab b { color: var(--gold2); }
.ring-stage {
  display:flex; flex-direction:column; align-items:center;
  padding: 28px 12px 18px;
  background: #FFFDF9;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 10px;
}
.ring-circle {
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(90,66,30,.35), inset 0 0 0 1px rgba(90,66,30,.06);
  background: transparent;
  flex: 0 0 auto;
}
.ring-tip { text-align:center; max-width: 280px; margin-top: 18px; }
.ring-picks {
  display:flex; flex-wrap:wrap; gap:8px; justify-content:center;
  margin-top: 16px;
}
.ring-picks button {
  width: 42px; height: 42px; min-height: 42px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line);
  background: rgba(90,66,30,.04); color: var(--text);
  font-weight: 700; font-size: 14px;
}
.ring-picks button.on {
  border-color: var(--gold); color: var(--gold2);
  background: rgba(90,66,30,.16);
}

.width-line-wrap {
  width: min(92%, 340px);
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.width-line { display: none; }
.width-bar-solid {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000000;
  box-shadow: none;
  outline: none;
  flex: 0 0 auto;
  min-height: 0;
  box-sizing: content-box;
}
.width-picks {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-top: 16px;
}
.width-picks button {
  width: 36px; height: 36px; min-height: 36px; padding: 0;
  border-radius: 8px; border: 1px solid var(--line);
  background: rgba(90,66,30,.04); color: var(--text);
  font-weight: 700; font-size: 12px;
}
.width-picks button.on {
  border-color: var(--gold); color: var(--gold2);
  background: rgba(90,66,30,.16);
}

.ring-tool input[type=range] {
  -webkit-appearance: none; appearance: none; height: 28px; background: transparent;
}
.ring-tool input[type=range]::-webkit-slider-runnable-track {
  height: 6px; background: rgba(90,66,30,.18); border-radius: 999px;
}
.ring-tool input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px;
  border-radius: 50%; background: var(--gold); border: 2px solid #FAF7F2;
}

.ring-stage-ref {
  position: relative;
  min-height: 280px;
  justify-content: center;
}
.ring-grid {
  position: absolute;
  inset: 16px;
  border-radius: 14px;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(90,66,30,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,66,30,.12) 1px, transparent 1px);
  background-size: 12px 12px;
}


.card-cal-short {
  height: 18px !important;
  border-radius: 6px !important;
  border-style: solid !important;
}
.card-cal-short::after {
  content: "Lado corto" !important;
  font-size: 11px !important;
}

.cal-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
  margin: 8px 0 4px;
}
.cal-visual { flex: 1; min-width: 0; }
.cal-howto {
  flex: 0 0 140px;
  text-align: center;
}
.cal-howto img {
  width: 140px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #FFFDF9;
}
.card-cal-wrap-vert {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 200px;
  overflow: visible;
  padding: 8px 0;
}
.card-cal-vert {
  width: 52px !important;
  max-width: 52px;
  height: 160px;
  border-radius: 8px !important;
  border: 2px solid var(--gold) !important;
  border-style: solid !important;
  background: rgba(90,66,30,.16) !important;
}
.card-cal-vert::after {
  content: "Altura" !important;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px !important;
}
@media (max-width: 360px) {
  .cal-howto { flex-basis: 110px; }
  .cal-howto img { width: 110px; }
}

.card-cal-wrap-coin {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  padding: 12px 0;
}
.card-cal-coin {
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: rgba(90,66,30,.12);
  box-shadow: none;
  flex: 0 0 auto;
}


.cal-howto { flex: 0 0 148px; }
.howto-card {
  background: #FFFDF9;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 8px 12px;
}
.howto-title {
  text-align: center;
  color: var(--gold2);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.howto-cols { display: flex; gap: 6px; }
.howto-col { flex: 1; text-align: center; }
.howto-label { font-size: 10px; color: var(--gold2); font-weight: 700; margin-bottom: 4px; }
.howto-phone {
  height: 88px;
  border: 1px solid rgba(90,66,30,.55);
  border-radius: 10px;
  background: #F6F1E8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.howto-coin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--gold);
  display: block;
  background: rgba(90,66,30,.12);
}
.howto-bar {
  width: 12px; height: 58px; border-radius: 3px;
  background: var(--gold);
  display: block;
}
.howto-cap {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.2;
}
@media (max-width: 360px) {
  .cal-howto { flex-basis: 120px; }
  .howto-phone { height: 76px; }
}

/* Medidor: diámetro EXACTO (border-box global no debe restar borde) */
.ring-disk, .cal-disk {
  box-sizing: content-box !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 auto;
  border-radius: 50%;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
.ring-disk {
  background: #000000;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.cal-disk {
  background: rgba(90,66,30,.2);
  box-shadow: 0 0 0 2px var(--gold);
}
.ring-circle, .ring-circle-lg {
  /* legacy — por si queda alguna referencia */
  box-sizing: content-box !important;
  border: 0 !important;
  background: #000000;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.card-cal-vert, .card-cal-coin, .width-bar-solid {
  box-sizing: content-box !important;
}
.card-cal-vert {
  border: 0 !important;
  box-shadow: 0 0 0 2px var(--gold);
  background: rgba(90,66,30,.25) !important;
}

.ring-stage-ref {
  background: #000000 !important;
  border: 1px solid rgba(0,0,0,.12);
}
.ring-stage-ref .ring-grid {
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(0,0,0,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px);
  background-size: 10px 10px;
}
.ring-stage-ref .ring-size-lab,
.ring-stage-ref .hint {
  color: #E6DCCB !important;
}

#cal-mode button { font-size: 12px; padding: 8px 4px; min-width: calc(25% - 8px); }


/* Medidor dedo: guías verticales (ancho = diámetro del dedo) */
.finger-stage {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.finger-gap-wrap {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  position: relative;
  z-index: 1;
}
.finger-rail {
  flex: 1 1 auto;
  min-width: 12px;
  background: rgba(90,66,30, 0.52);
}
.finger-rail-l { border-radius: 14px 0 0 14px; }
.finger-rail-r { border-radius: 0 14px 14px 0; }
.finger-gap {
  flex: 0 0 auto;
  box-sizing: content-box !important;
  width: 40px;
  min-height: 220px;
  background: transparent;
  border-left: 3px solid #E6DCCB;
  border-right: 3px solid #E6DCCB;
  position: relative;
}
.finger-gap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 18px;
  width: 0;
  border-left: 1px dashed rgba(90,66,30, 0.28);
  transform: translateX(-50%);
  pointer-events: none;
}
/* Guía visual: cómo poner el dedo */
.dedo-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
  margin: 0 0 4px;
}
.dedo-row .finger-stage {
  flex: 1;
  min-width: 0;
}
.dedo-howto {
  flex: 0 0 132px;
  text-align: center;
}
.dedo-howto .howto-card { padding: 10px 8px 12px; }
.dedo-howto-phone {
  height: 110px;
  max-width: 108px;
  margin: 0 auto;
  padding: 6px;
  box-sizing: border-box;
}
.dedo-illus {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #000000;
}
.dedo-illus-rail {
  flex: 1 1 auto;
  min-width: 10px;
  background: rgba(90,66,30, 0.42);
  display: block;
}
.dedo-illus-rail-l { border-radius: 4px 0 0 4px; }
.dedo-illus-rail-r { border-radius: 0 4px 4px 0; }
.dedo-illus-finger {
  flex: 0 0 22px;
  display: block;
  position: relative;
  align-self: stretch;
  margin: 2px 0;
  background:
    linear-gradient(180deg, rgba(90,66,30,.28) 0 14%, transparent 22%),
    linear-gradient(180deg, #e8b89a 0%, #d4a07a 55%, #c48a68 100%);
  border-radius: 11px 11px 7px 7px;
  border-left: 1.5px solid #E6DCCB;
  border-right: 1.5px solid #E6DCCB;
  box-sizing: border-box;
}
.dedo-illus-finger::before {
  /* uña en la punta (arriba) */
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 9px;
  border-radius: 5px 5px 3px 3px;
  background: rgba(255, 245, 235, 0.55);
  box-shadow: 0 0 0 1px rgba(90,66,30, 0.12);
}
.dedo-illus-finger::after {
  /* marca donde irá el anillo */
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: 52%;
  height: 7px;
  border-top: 1.5px dashed rgba(90,66,30, 0.85);
  border-bottom: 1.5px dashed rgba(90,66,30, 0.85);
  background: rgba(90,66,30, 0.18);
  pointer-events: none;
}
.dedo-howto-cap {
  font-size: 9px;
  line-height: 1.25;
  margin-top: 6px;
  text-align: center;
}
@media (max-width: 380px) {
  .dedo-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .dedo-howto {
    flex: 0 0 auto;
    width: 100%;
    max-width: 220px;
    margin: 0 auto 8px;
  }
  .dedo-howto-phone {
    max-width: 120px;
    height: 96px;
  }
}

.ring-tip-text { transition: opacity .18s ease; }
.tip-dim { opacity: 0.22; }

#rt-metodo button { min-width: calc(50% - 8px); }

/* Cortes y tamaño de piedra */
.cut-tool .cut-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 4px;
}
.cut-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(90,66,30,.03);
}
.cut-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--gold2);
  margin-top: 2px;
}
.cut-ico svg { display: block; }
.cut-meta { flex: 1; min-width: 0; }
.cut-name { font-size: 14px; line-height: 1.25; }
.cut-en { color: var(--muted); font-weight: 500; font-size: 12px; }
.cut-tip { margin: 3px 0 0; font-size: 12px; line-height: 1.3; }
.cut-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 0 8px;
}
.cut-picks button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 64px;
  min-height: 58px;
  padding: 6px 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(90,66,30,.04);
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
}
.cut-picks button.on {
  border-color: var(--gold);
  color: var(--gold2);
  background: rgba(90,66,30,.16);
}
.cut-pick-ico {
  width: 22px;
  height: 22px;
  color: inherit;
}
.cut-pick-ico svg { width: 22px; height: 22px; display: block; }
.cut-pick-lab { text-align: center; }
.cut-stage {
  min-height: 260px;
  justify-content: center;
}
.cut-shape-svg {
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 0.5px rgba(0,0,0,.35));
  overflow: visible;
}
.cut-shape {
  background: #000000;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
  flex: 0 0 auto;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  box-sizing: content-box !important;
}
#ct-tabs button { min-width: calc(50% - 8px); }


/* Pureza del oro — tip table */
.tip-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(90,66,30,.03);
}
.tip-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.35;
}
.tip-table th,
.tip-table td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.tip-table th {
  color: var(--gold2);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .02em;
  background: rgba(90,66,30,.10);
  white-space: nowrap;
}
.tip-table td:first-child {
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.tip-table tbody tr:last-child td { border-bottom: 0; }
.tip-table td:nth-child(4) { color: var(--muted); font-size: 12px; }
@media (max-width: 380px) {
  .tip-table { font-size: 12px; min-width: 280px; }
  .tip-table th, .tip-table td { padding: 8px 6px; }
}


/* --- pub kind + reparacion sheet --- */
.kind-cards {
  display: flex; flex-direction: column; gap: 10px;
  margin: 0 0 16px;
}
.kind-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left; width: 100%;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(90,66,30,.03);
  color: var(--text); cursor: pointer;
}
.kind-card .kind-emoji { font-size: 22px; line-height: 1; }
.kind-card .kind-title { font-size: 16px; font-weight: 800; color: var(--text); }
.kind-card .kind-sub { font-size: 13px; color: var(--muted); line-height: 1.35; }
.kind-card.on {