:root {
  --bg: #0b0d10;
  --panel: #13171d;
  --panel-2: #1a2029;
  --border: #262f3d;
  --text: #eef2f6;
  --muted: #9aa4b2;
  --orange: #f7931a;
  --green: #38d996;
  --red: #ff4d5a;
  --yellow: #f2c94c;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

code {
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #141a22 0%, var(--bg) 55%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(247, 147, 26, 0.35);
  display: block;
  object-fit: cover;
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  border: 1px solid rgba(247, 147, 26, 0.38);
  box-shadow: 0 0 28px rgba(247, 147, 26, 0.16);
  display: block;
  margin: 0 auto 14px;
  object-fit: cover;
}

.btc-dot {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--orange);
  color: #0b0d10;
  font-weight: 900;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 24px auto;
  padding: 0 16px;
  flex: 1;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.hero {
  text-align: center;
  padding: 36px 24px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 10px;
}

h1 {
  font-family: var(--mono);
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}

h2 {
  margin: 8px 0 12px;
  font-size: 1.5rem;
}

.accent-red {
  color: var(--red);
}
.accent-orange {
  color: var(--orange);
}

.lead {
  max-width: 600px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.08s ease, border-color 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: #0b0d10;
}

.btn-secondary {
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-safe {
  background: #143628;
  color: var(--green);
  border-color: var(--green);
  flex: 1 1 240px;
}

.btn-danger {
  background: #3a161c;
  color: #ff8e96;
  border-color: var(--red);
  flex: 1 1 240px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.btn-sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  opacity: 0.78;
}

.btn-tiny {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--orange);
  border-radius: 7px;
  padding: 6px 11px;
  font-family: var(--mono);
  font-size: 0.8rem;
  cursor: pointer;
}

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
  margin-top: 16px;
}

.mini-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.mini-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--orange);
  font-family: var(--mono);
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sponsor-wrap {
  margin-top: 16px;
}

.sponsor-list {
  display: grid;
  gap: 10px;
}

.sponsor-debrief {
  margin-top: 12px;
}

.sponsor-wrap .sponsor-bar,
.sponsor-list .sponsor-bar {
  margin-top: 0;
}

.sponsor-bar {
  margin-top: 16px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(247, 147, 26, 0.06);
  border: 1px dashed rgba(247, 147, 26, 0.45);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sponsor-bar-active {
  border-style: solid;
  border-color: rgba(247, 147, 26, 0.42);
  background: rgba(247, 147, 26, 0.08);
}

.sponsor-bar-active:hover,
.sponsor-bar-btn:hover {
  border-color: rgba(247, 147, 26, 0.78);
  background: rgba(247, 147, 26, 0.12);
}

.sponsor-meta {
  margin-top: 6px;
  padding: 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.sponsor-bar-btn {
  cursor: pointer;
  font: inherit;
}

.sponsor-pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(247, 147, 26, 0.16);
  color: var(--orange);
}

.sponsor-text {
  flex: 1 1 260px;
  font-size: 0.88rem;
  color: var(--muted);
}

.sponsor-cta {
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--orange);
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.hud-label {
  color: var(--muted);
  margin-right: 8px;
}

.stack-pill {
  background: var(--panel);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 5px 12px;
  border-radius: 999px;
}

.stack-hurt {
  border-color: var(--red);
  color: var(--red);
}

.progress-track {
  height: 6px;
  background: var(--panel-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: var(--orange);
  transition: width 0.25s ease;
}

.scenario-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.cat-badge {
  color: var(--orange);
  background: rgba(247, 147, 26, 0.14);
  padding: 3px 8px;
  border-radius: 6px;
}

.stake-badge {
  color: var(--red);
}

.brief {
  color: #cfd7e3;
  margin: 0 0 18px;
}

.evidence-box {
  background: #0d1015;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.code-field + .code-field {
  margin-top: 12px;
}

.field-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.mono-box {
  font-family: var(--mono);
  font-size: 0.92rem;
  background: #07090c;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
  color: var(--text);
}

mark.diff-bad {
  background: rgba(255, 77, 90, 0.3);
  color: #ffd5d8;
  border-radius: 3px;
  padding: 0 2px;
}

.evidence-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.hint-warn {
  color: var(--yellow);
  font-size: 0.85rem;
  margin-top: 8px;
  font-family: var(--mono);
}

.hint-ok {
  color: var(--green);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 8px;
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

.split-screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
}

.screen-mock {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #090b0f;
}

.hw-mock {
  border-color: var(--orange);
}

.hw-lit {
  box-shadow: 0 0 0 1px rgba(247, 147, 26, 0.45);
}

.mock-bar {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--orange);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mock-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 10px;
  padding: 6px 0;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mock-row span {
  color: var(--muted);
  flex-shrink: 0;
}

.mock-row code {
  font-family: var(--mono);
  text-align: right;
  margin-left: auto;
  min-width: 0;
  max-width: 100%;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.row-danger {
  color: #ff8e96;
  font-weight: 700;
}

.hw-locked {
  text-align: center;
  padding: 16px 8px;
  color: var(--muted);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.badge-muted {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.chat-bubble {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.94rem;
}

.status-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--green);
}

.utxo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.utxo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.utxo-selected {
  border-color: var(--orange);
  background: rgba(247, 147, 26, 0.08);
}

.utxo-main {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.utxo-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--panel-2);
}

.tag-suspect-dust {
  color: var(--red);
  background: rgba(255, 77, 90, 0.16);
}

.tag-private {
  color: var(--green);
  background: rgba(56, 217, 150, 0.16);
}

.tag-kyc {
  color: var(--yellow);
  background: rgba(242, 201, 76, 0.16);
}

.utxo-amt {
  font-family: var(--mono);
  font-size: 0.88rem;
  margin-left: auto;
  white-space: nowrap;
}

.inv-list {
  margin: 0;
  padding-left: 18px;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.inv-list li {
  margin: 6px 0;
}

.email-meta {
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.email-body {
  margin: 12px 0;
  color: #cfd7e3;
}

.fake-link {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: #ff8e96;
  background: rgba(255, 77, 90, 0.1);
  border: 1px solid rgba(255, 77, 90, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
}

.debrief-ok {
  border-color: var(--green);
}

.debrief-bad {
  border-color: var(--red);
}

.outcome-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: var(--panel-2);
}

.debrief-ok .outcome-pill {
  color: var(--green);
}

.debrief-bad .outcome-pill {
  color: var(--red);
}

.remedy-box {
  margin-top: 16px;
  background: #0d1015;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.remedy-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.remedy-badge {
  background: rgba(247, 147, 26, 0.16);
  color: var(--orange);
  padding: 2px 6px;
  border-radius: 4px;
}

.remedy-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.remedy-body p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.summary-card {
  text-align: center;
}

.rank-title {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  margin: 4px 0 16px;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.metric {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  min-width: 0;
}

.metric span {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.metric strong {
  font-family: var(--mono);
  font-size: clamp(0.88rem, 2.8vw, 1.05rem);
  overflow-wrap: anywhere;
}

.emoji-grid {
  font-size: 1.55rem;
  letter-spacing: 0.15em;
  margin: 12px 0 16px;
}

.canvas-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

#scorecard-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.breakdown-list {
  margin-top: 20px;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.txt-ok {
  color: var(--green);
  font-weight: 800;
}

.txt-bad {
  color: var(--red);
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.zap-cta {
  margin-top: 20px;
  padding: 16px;
  background: rgba(247, 147, 26, 0.08);
  border: 1px solid rgba(247, 147, 26, 0.4);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.zap-cta > div {
  min-width: 0;
  max-width: 100%;
}

.zap-cta p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.zap-btns {
  display: flex;
  gap: 8px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer a,
.link-btn {
  color: var(--orange);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 100;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  max-height: 90vh;
  overflow-y: auto;
  overflow-wrap: anywhere;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 9px;
  cursor: pointer;
}

.tier-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.tier-item {
  background: #0d1015;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.tier-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.tier-item p {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.panic-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}

.panic-toggle input {
  accent-color: var(--orange);
}

.hud-left,
.hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pip-row {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
}

.pip {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--panel-2);
  border: 1px solid var(--border);
}

.pip-now {
  border-color: var(--orange);
  background: rgba(247, 147, 26, 0.35);
}

.pip-ok {
  background: var(--green);
  border-color: var(--green);
}

.pip-bad {
  background: var(--red);
  border-color: var(--red);
}

.clock-pill {
  background: var(--panel);
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.clock-urgent {
  border-color: var(--red);
  color: var(--red);
  animation: pulse-warn 0.6s infinite;
}

.debrief-bad {
  animation: rekt-shake 0.36s ease;
}

.debrief-ok {
  animation: survive-pop 0.28s ease;
}

@keyframes rekt-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

@keyframes survive-pop {
  0% { transform: scale(0.98); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

@keyframes pulse-warn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.guide-section {
  margin-top: 18px;
}

.guide-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.guide-item {
  background: #0d1015;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}

.guide-item summary {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  list-style: none;
}

.guide-item summary::-webkit-details-marker {
  display: none;
}

.guide-item summary::after {
  content: "▸";
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  transition: transform 0.15s ease;
}

.guide-item[open] summary::after {
  transform: rotate(90deg);
  color: var(--orange);
}

.guide-item p {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn-endless {
  background: #1a2433;
  color: #eef2f6;
  border-color: var(--orange);
}

.btn-choice {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid #354155;
  flex: 1 1 250px;
  min-width: 0;
  max-width: 100%;
  padding: 15px 18px;
}

.btn-choice:hover {
  border-color: var(--orange);
  background: #202836;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chaos-on {
  border-color: var(--red);
  color: #ff8e96;
  background: rgba(255, 77, 90, 0.14);
}

.support-qr-wrap {
  display: inline-block;
  margin: 10px auto 14px;
  padding: 12px;
  background: #ffffff;
  border-radius: 12px;
}

.support-qr-wrap.support-qr-sm {
  margin: 4px auto 10px;
  padding: 10px;
  border-radius: 10px;
}

.support-qr-wrap img {
  display: block;
}

#modal-body {
  text-align: center;
}

#modal-body h3 {
  margin: 0 0 10px;
  padding: 0 32px;
}

#modal-body p.muted {
  margin: 12px 0 8px;
  font-size: 0.9rem;
}

#modal-body .cta-row {
  margin-top: 14px;
}

.copy-target {
  user-select: all;
}

.ln-address-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.ln-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #07090c;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(0.76rem, 2.8vw, 0.88rem);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ln-pill:hover {
  border-color: var(--orange);
  background: #0c1016;
}

.ln-pill.ln-pill-copied {
  border-color: var(--green);
}

.ln-pill-icon {
  color: var(--orange);
  flex-shrink: 0;
}

.ln-pill-addr {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.ln-domain {
  color: var(--orange);
}

.ln-pill-action {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ln-pill:hover .ln-pill-action {
  color: var(--text);
  border-color: var(--orange);
}

.ln-pill.ln-pill-copied .ln-pill-action {
  color: var(--green);
  border-color: var(--green);
  background: rgba(56, 217, 150, 0.12);
}

.ln-full-details {
  width: 100%;
}

.ln-full-details summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  padding: 2px 0;
  user-select: none;
}

.ln-full-details summary::-webkit-details-marker {
  display: none;
}

.ln-full-details summary:hover {
  color: var(--text);
}

.ln-full-box {
  margin-top: 6px;
  padding: 8px 10px;
  background: #07090c;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.ln-inline {
  white-space: nowrap;
  font-size: 0.84rem;
}

#modal-body .tier-item,
#modal-body .tier-list {
  text-align: left;
}

@media (max-width: 560px) {
  .topbar {
    padding: 10px 12px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .top-actions {
    gap: 6px;
  }

  .icon-btn {
    padding: 5px 8px;
    font-size: 0.85rem;
  }

  .container {
    margin: 16px auto;
    padding: 0 12px;
  }

  .panel {
    padding: 16px;
  }

  .hero {
    padding: 24px 16px;
  }

  .evidence-box {
    padding: 12px;
  }

  .modal-card {
    padding: 18px 14px;
  }

  .ln-pill {
    padding: 9px 10px;
    gap: 8px;
    font-size: 0.74rem;
  }

  .ln-pill-action {
    padding: 2px 8px;
    font-size: 0.7rem;
  }

  .hud {
    flex-wrap: wrap;
    gap: 8px;
  }

  .summary-metrics {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 14px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .debrief-bad,
  .debrief-ok,
  .clock-urgent {
    animation: none;
  }

  .progress-fill,
  .btn,
  .ln-pill,
  .ln-pill-action,
  .guide-item summary::after {
    transition: none;
  }
}
