/* Interface fragments shared by the page variations. Fragments carry data-ui. */
:root {
  --panel: #101010; --panel-ink: #f4f4f4; --panel-muted: #9a9a9a; --panel-edge: #2c2c2c;
  --ok: #4ade80; --hot: #ff6b61; --ease: cubic-bezier(.2, .7, .2, 1);
}
[data-ui] {
  background: var(--panel); color: var(--panel-ink);
  border: 1px solid var(--panel-edge); border-radius: var(--ui-radius, 4px); /* taste-skill-ignore */
  font-size: 13px; line-height: 1.4; overflow: hidden;
}
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--panel-edge); } /* taste-skill-ignore */
.ui-head b { font-weight: 600; font-size: 14px; }
.ui-head span { color: var(--panel-muted); }
.ui-body { padding: 8px 16px 12px; }
.ui-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 16px; border-top: 1px solid var(--panel-edge); flex-wrap: wrap; } /* taste-skill-ignore */
.ui-foot span { color: var(--panel-muted); }

.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--panel-edge); } /* taste-skill-ignore */
.step:last-child { border-bottom: 0; }
.step small { color: var(--panel-muted); font-size: 13px; display: block; }
.step__name { font-weight: 600; font-size: 14px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #555; justify-self: center; } /* taste-skill-ignore */
.step[data-state="done"] .dot { background: var(--ok); border-color: var(--ok); }
.step[data-state="run"] .dot { border-color: #fff #fff #fff transparent; animation: spin .8s linear infinite; }
.step[data-state="wait"] .dot { border-style: dashed; }
.step__time { color: var(--panel-muted); font-variant-numeric: tabular-nums; }
.step[data-state="run"] .step__time, .step[data-state="wait"] .step__time { color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

pre.code { margin: 0; padding: 12px 16px; overflow: hidden; }
pre.code code { font: 400 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--panel-ink); }
.tok-k { color: var(--panel-muted); } .tok-v { color: #fff; } .tok-s { color: var(--hot); }
.status { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--panel-edge); font-variant-numeric: tabular-nums; } /* taste-skill-ignore */
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

.rev__title { font-weight: 600; font-size: 16px; padding-top: 10px; }
.rev__body { color: var(--panel-muted); margin-top: 6px; font-size: 14px; }
.rev__actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.rev__state { color: var(--panel-muted); font-size: 13px; margin-left: 4px; }
.rev__state.is-ok { color: var(--ok); }
.ui-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--btn-radius, 4px); background: #fff; color: #000; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.ui-btn:hover { background: #dcdcdc; transform: translateY(-2px); }
.ui-btn:active { transform: scale(.97); }
.ui-btn--alt { background: #1f1f1f; color: #fff; }
.ui-btn--alt:hover { background: #303030; }
[data-ui] :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.slugui .ui-body { padding: 18px 16px 8px; }
.field { display: flex; align-items: center; background: #1c1c1c; border: 1px solid var(--panel-edge); border-radius: 4px; height: 56px; padding: 0 16px; transition: border-color .2s; } /* taste-skill-ignore */
.field:focus-within { border-color: #fff; }
.field label { color: var(--panel-muted); font-size: 14px; margin-right: 12px; white-space: nowrap; }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font: inherit; color: inherit; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; height: 100%; }
.slug-note { min-height: 40px; padding-top: 10px; color: var(--panel-muted); }
.slug-note.is-bad { color: #ff8b84; } .slug-note.is-ok { color: var(--ok); }
.addr { list-style: none; margin: 4px 0 0; padding: 0; }
.addr li { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--panel-edge); } /* taste-skill-ignore */
.addr span:first-child { color: var(--panel-muted); }
.addr b { font-weight: 600; font-size: clamp(15px, 1.6vw, 20px); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.addr .slug { color: var(--hot); display: inline-block; }
.addr .slug.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: translateY(-3px); } }
@media (max-width: 560px) { .addr li { grid-template-columns: 1fr; gap: 2px; } }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .step[data-state="run"] .dot { animation: none; }
  * { transition-duration: .01ms !important; }
}
