/* Necsal · Dev Tools (validador de Universal Links y calculadora App Store) */
.nsdt {
  --b: #1565c0; --bs: #e8f0fb; --ink: #1d2733; --mut: #5b6673; --line: #d7dee7; --bg: #f6f8fb;
  --ok: #1e7e34; --okbg: #e9f7ee; --warn: #8a5a00; --warnbg: #fff8e6; --err: #b42318; --errbg: #fdecea;
  font-size: 15px; line-height: 1.5; color: var(--ink); max-width: 820px; margin: 0 auto 2em;
}
.nsdt *, .nsdt *::before, .nsdt *::after { box-sizing: border-box; }
.nsdt [hidden] { display: none !important; }
.nsdt-loading { color: var(--mut); text-align: center; padding: 2em 0; }
.nsdt-muted { color: var(--mut); font-size: .9em; }
.nsdt-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 0 0 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.nsdt-h3 { font-size: 1em; font-weight: 700; margin: 0 0 12px; }
.nsdt-label { display: block; font-weight: 600; font-size: .9em; margin-bottom: 5px; }
.nsdt input[type=text], .nsdt select, .nsdt textarea {
  width: 100%; font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: inherit;
}
.nsdt textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; resize: vertical; }
.nsdt input:focus, .nsdt select:focus, .nsdt textarea:focus { outline: 2px solid var(--bs); border-color: var(--b); }
.nsdt input:disabled { background: var(--bg); color: var(--mut); }
.nsdt-row { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.nsdt-row input { flex: 1; min-width: 0; }
.nsdt-form .nsdt-row:first-of-type { margin-top: 0; }
.nsdt-btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.nsdt-btn:hover:not(:disabled) { border-color: var(--b); }
.nsdt-btn:disabled { opacity: .6; cursor: default; }
.nsdt-btn-primary { background: var(--b); border-color: var(--b); color: #fff !important; }
.nsdt-btn-primary:hover:not(:disabled) { background: #0f4f99; }
.nsdt-btn-small { padding: 4px 10px; font-size: .85em; }
.nsdt-status { margin: 10px 0 0; min-height: 1.4em; font-size: .92em; color: var(--err); }
.nsdt-status:empty { display: none; }

/* pestañas y segmentos */
.nsdt-tabs, .nsdt-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.nsdt-tab, .nsdt-seg-btn { font: inherit; font-size: .92em; padding: 8px 13px; border: 0; border-right: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.nsdt-tab:last-child, .nsdt-seg-btn:last-child { border-right: 0; }
.nsdt-tab.is-on, .nsdt-seg-btn.is-on { background: var(--b); color: #fff; }
.nsdt-seg { margin-bottom: 0; }

/* resultados del validador */
.nsdt-summary { border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; font-size: 1.05em; }
.nsdt-summary.is-ok { background: var(--okbg); color: var(--ok); border: 1px solid #b7e1c3; }
.nsdt-summary.is-warn { background: var(--warnbg); color: var(--warn); border: 1px solid #f3d58a; }
.nsdt-summary.is-error { background: var(--errbg); color: var(--err); border: 1px solid #f5c2bd; }
.nsdt-checks { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 7px; }
.nsdt-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 !important; }
.nsdt-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; margin-top: 1px; }
.nsdt-check.is-ok .nsdt-ico { background: var(--ok); }
.nsdt-check.is-warn .nsdt-ico { background: #d08b00; }
.nsdt-check.is-error .nsdt-ico { background: var(--err); }
.nsdt-check.is-info .nsdt-ico { background: var(--b); font-style: italic; }
.nsdt-app + .nsdt-app { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.nsdt-appid { margin: 0 0 6px; word-break: break-all; }
.nsdt-rules { margin: 6px 0 0 1.2em !important; padding: 0 !important; }
.nsdt-rules li { margin: 3px 0 !important; }
.nsdt-rules li.is-exclude code { color: var(--err); }
.nsdt code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.nsdt-testout { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.nsdt-testout:empty { display: none; }
.nsdt-testout.is-opens { background: var(--okbg); color: var(--ok); }
.nsdt-testout.is-excluded, .nsdt-testout.is-nomatch { background: var(--bg); color: var(--ink); }
.nsdt-copy { position: relative; }
.nsdt-pre { margin: 0 !important; padding: 12px 14px !important; background: #0f172a !important; color: #e2e8f0 !important; border-radius: 8px; overflow: auto; max-height: 420px; font-size: .85em; }
.nsdt-pre code { background: none !important; color: inherit; padding: 0; font-size: 1em; }
.nsdt-copy .nsdt-btn { position: absolute; top: 8px; right: 8px; background: #1e293b; color: #e2e8f0; border-color: #334155; }

/* calculadora */
.nsdt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 18px; margin-top: 12px; }
.nsdt-field { margin: 6px 0 8px; }
.nsdt-hint { display: block; margin-top: 3px; font-size: .82em; }
.nsdt-checkrow { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; font-size: .92em; cursor: pointer; }
.nsdt-checkrow input { margin-top: 4px; }
.nsdt-note { background: var(--warnbg); border: 1px solid #f3d58a; border-radius: 8px; padding: 8px 12px; margin: 12px 0 0; font-size: .88em; }
.nsdt-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 16px; }
.nsdt-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--bg); margin-bottom: 12px; }
.nsdt-bar-you { background: var(--ok); }
.nsdt-bar-apple { background: #1565c0; }
.nsdt-bar-tax { background: #c2c9d3; }
.nsdt-dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0 0 8px; }
.nsdt-dl dt { margin: 0; color: var(--mut); font-weight: 500; }
.nsdt-dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.nsdt-dl dt.is-tax::before, .nsdt-dl dt.is-apple::before, .nsdt-dl dt.is-you::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.nsdt-dl dt.is-tax::before { background: #c2c9d3; }
.nsdt-dl dt.is-apple::before { background: #1565c0; }
.nsdt-dl dt.is-you::before { background: var(--ok); }
.nsdt-dl dt.is-you { color: var(--ink); font-weight: 700; }
.nsdt-you { font-weight: 800; font-size: 1.25em; color: var(--ok); }
.nsdt-totals { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); }
.nsdt-reverse-out { margin: 8px 0 0; font-weight: 600; }
.nsdt-reverse-out:empty { display: none; }
.nsdt-disclaimer { margin: 4px 2px 0; }

@media (max-width: 520px) {
  .nsdt-card { padding: 14px 12px; }
  .nsdt-row { flex-wrap: wrap; }
  .nsdt-row .nsdt-btn { flex: 1 1 100%; }
}
