/*! XRPL Explained — tools.css
 * Built by STEDAS · © 2026 STEDAS. All rights reserved.
 * Property of STEDAS (https://stedas.hr). No copying, modification,
 * redistribution or resale of any part without written permission.
 */
/* XRPL Explained – Live Ledger + XRPL Daily (V1.25). Uses the variables from playground.css. */

/* ---------- header pill ---------- */
.tl-net { background: #E3F6EE; color: #077A55; border-color: #9ED9BF; }

/* ---------- Live Ledger ---------- */
.tl-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.tl-top h1 { margin: 0; font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.tl-top h1 span { color: var(--teal); }
.tl-live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #077A55; background: #E3F6EE; border-radius: 999px; padding: 5px 13px; }
.tl-live i { width: 9px; height: 9px; border-radius: 50%; background: #C3CAD6; }
.tl-live i.on { background: #16A34A; box-shadow: 0 0 0 4px rgba(22, 163, 74, .2); }
.tl-pause { margin-left: auto; }
.tl-pause.on { background: var(--blue); color: #fff; }

.tl-hint { margin: 14px 0; padding: 12px 18px; border-radius: 14px; background: #E6F6F2; border: 2px solid var(--teal); font-size: 18px; }
.tl-hint b { color: #077A55; }

.tl-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 16px; padding: 10px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; font-size: 14px; font-weight: 700; color: #334155; }
.tl-leg b { color: var(--ink); margin-right: 4px; }
.tl-leg span { display: inline-flex; align-items: center; gap: 7px; }
.tl-leg .tl-d { width: 15px; height: 15px; }
.tl-leg-ring { color: #16A34A; margin-left: 8px; }
.tl-leg-ring { font-weight: 800; }

.tl-d { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; flex: none; }
.tl-d.pay { background: #16A34A; }
.tl-d.dex { background: #2F7BFF; }
.tl-d.nft { background: #7C2FE0; }
.tl-d.acc { background: #E11D74; }
.tl-d.oth { background: #94A3B8; }
.tl-d.ring { background: transparent; border: 3px solid currentColor; }

.tl-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.tl-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tl-lg { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 12px 14px; min-height: 290px; }
.tl-lg.tl-new { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 154, 132, .15); }
.tl-lg h4 { margin: 0; font-size: 17px; font-weight: 800; color: var(--teal); text-align: center; }
.tl-t { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.tl-lg dl { display: flex; justify-content: space-between; margin: 10px 2px; font-size: 12.5px; }
.tl-lg dt { color: var(--muted); font-weight: 700; }
.tl-lg dd { margin: 0; font-weight: 800; }
.tl-g { display: grid; grid-template-columns: repeat(7, 21px); justify-content: space-between; gap: 9px 3px; }
.tl-g .tl-d { width: 21px; height: 21px; cursor: pointer; transition: box-shadow .15s; }
.tl-g .tl-d:hover { box-shadow: 0 0 0 3px rgba(15, 23, 42, .18); }
.tl-g .tl-d.sel { outline: 3px solid var(--ink); outline-offset: 2px; }
.tl-g .tl-d:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.tl-more { margin-top: 10px; text-align: center; font-size: 12px; font-weight: 700; color: #94A3B8; }
.tl-empty { grid-column: 1 / -1; margin: 30px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.tl-wait { display: grid; place-items: center; align-content: center; gap: 10px; color: #94A3B8; font-size: 13px; font-weight: 700; text-align: center; }
.tl-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--teal); animation: tlspin 1s linear infinite; }
@keyframes tlspin { to { transform: rotate(360deg); } }

.tl-ex { background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 20px 22px; min-height: 290px; }
.tl-ex-empty { margin: 100px 0 0; text-align: center; font-size: 16px; font-weight: 700; color: var(--muted); }
.tl-ex-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tl-ex-h .tl-d { width: 18px; height: 18px; }
.tl-ex-h b { font-size: 24px; }
.tl-tag { font-size: 12.5px; font-weight: 800; color: #fff; background: #16A34A; border-radius: 999px; padding: 3px 11px; }
.tl-tag-bad { background: var(--red); }
.tl-plain { margin: 12px 0 0; padding: 13px 15px; border-radius: 12px; background: #F0FAF5; font-size: 19px; line-height: 1.45; font-weight: 600; }
.tl-plain.bad { background: #FFF3F5; }
.tl-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tl-f { background: #F6F8FC; border-radius: 12px; padding: 10px 12px; min-width: 0; }
.tl-f span { display: block; font-size: 12.5px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.tl-f b { display: block; font-size: 19px; overflow-wrap: anywhere; }
.tl-f b.ok { color: #077A55; }
.tl-f b.bad { color: var(--red); font-size: 15px; }
.tl-tip { margin: 14px 0 0; font-size: 15px; color: #475569; }
.tl-learn { display: inline-block; margin-top: 10px; font-size: 16px; font-weight: 800; color: var(--blue); }
.tl-learn:hover { color: var(--purple); }
.tl-meta { margin: 12px 0 0; font-size: 12.5px; color: #94A3B8; font-weight: 600; }
.tl-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 1000px) {
  .tl-main { grid-template-columns: 1fr; }
  .tl-lg, .tl-ex { min-height: 0; }
  .tl-ex-empty { margin: 20px 0; }
}
@media (max-width: 760px) {
  .tl-top h1 { font-size: 30px; }
  .tl-cols { grid-template-columns: 1fr; }
  .tl-lg.tl-wait { min-height: 120px; }
  .tl-row3 { grid-template-columns: 1fr; }
  .tl-hint { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .tl-spin { animation: none; } }

/* ---------- XRPL Daily ---------- */
.dy-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 26px; align-items: start; }
.dy-k { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--blue); }
.dy-left h1 { margin: 6px 0 4px; font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.dy-left h1 span { background: linear-gradient(90deg, var(--blue), var(--teal) 55%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dy-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.dy-pill { font-size: 13px; font-weight: 800; border-radius: 999px; padding: 5px 12px; background: #fff; border: 1.5px solid var(--line); }
.dy-fire { background: #FFF1DE; border-color: #F7C98B; color: #B45309; }

.dy-q { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 22px 24px; box-shadow: 0 20px 40px -26px rgba(15, 23, 42, .35); }
.dy-n { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .08em; }
.dy-q h2 { margin: 8px 0 16px; font-size: 26px; line-height: 1.25; }
.dy-o { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 2px solid var(--line); border-radius: 14px; padding: 13px 16px; margin-top: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.dy-o b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #EEF2FA; display: grid; place-items: center; font-size: 14px; }
.dy-o:hover:not(:disabled) { border-color: var(--blue); background: #F5F8FF; }
.dy-o:disabled { cursor: default; }
.dy-o.ok { border-color: var(--green); background: #F0FAF5; color: #077A55; }
.dy-o.ok b { background: var(--green); color: #fff; }
.dy-o.no { border-color: #F3B8C3; background: #FFF3F5; color: var(--red); }
.dy-o.no b { background: var(--red); color: #fff; }
.dy-ex { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 16px; line-height: 1.5; color: #334155; background: #F6F8FC; }
.dy-ex.ok b { color: #077A55; }
.dy-ex.no b { color: var(--red); }
.dy-ex a { font-weight: 800; }
.dy-nextq { margin-top: 14px; font-size: 16px; padding: 11px 20px; }

.dy-review { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dy-review li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); }
.dy-review li > span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--green); }
.dy-review li.no > span { background: var(--red); }
.dy-review b { font-size: 16px; }
.dy-review p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.dy-done-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.dy-side { display: grid; gap: 16px; }
.dy-box { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.dy-box h3 { margin: 0 0 10px; font-size: 17px; }
.dy-res { font-size: 30px; letter-spacing: 4px; }
.dy-stats { display: flex; gap: 22px; margin-top: 10px; }
.dy-stats div { text-align: center; }
.dy-stats b { display: block; font-size: 30px; color: #E8590C; }
.dy-stats span { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .06em; }
.dy-week { display: flex; gap: 6px; margin-top: 12px; }
.dy-week i { flex: 1; height: 34px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; }
.dy-week .g { background: var(--green); }
.dy-week .r { background: var(--red); }
.dy-week .e { background: #E2E8F0; color: #94A3B8; }
.dy-week .today { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue); }
.dy-share { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px; font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid var(--ink); transition: background .15s; }
.dy-share svg { width: 17px; height: 17px; fill: currentColor; }
.dy-share:hover { background: #1E293B; }
.dy-share.off { background: #E2E8F0; border-color: #E2E8F0; color: #94A3B8; cursor: not-allowed; }
.dy-next { margin: 10px 0 0; font-size: 14px; color: var(--muted); font-weight: 700; }
.dy-tw-box { background: none; border: 0; padding: 0; }
.dy-tw-box h3 { margin-left: 4px; }
.dy-tw { background: var(--ink); color: #E2E8F0; border-radius: 18px; padding: 16px 18px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.dy-tw-h { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.dy-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); }
.dy-tw .l { color: #60A5FA; }

@media (max-width: 1000px) { .dy-wrap { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .dy-left h1 { font-size: 32px; }
  .dy-q { padding: 18px; }
  .dy-q h2 { font-size: 22px; }
  .dy-o { font-size: 16px; }
}

/* V1.26 – Live Ledger: 1600 px wide, green badge, more air */
.tl-body .pg-top, .tl-body .pg, .tl-body .pg-footer-in { max-width: 1600px; }
.tl-body .pg-top { padding: 22px 28px; }
.tl-body .pg { padding: 40px 28px 0; }
.tl-body .pg-footer { margin-top: 60px; }
.tl-body .pg-badge-name { background: #0B9A6B; }
.tl-top h1 { font-size: 46px; }
.tl-live { font-size: 15px; padding: 7px 15px; }
.tl-hint { margin: 30px 0 24px; padding: 18px 24px; font-size: 20px; }
.tl-leg { margin-bottom: 34px; padding: 16px 24px; gap: 10px 26px; font-size: 16px; }
.tl-leg .tl-d { width: 17px; height: 17px; }
.tl-main { gap: 34px; }
.tl-cols { gap: 20px; }
.tl-lg { padding: 20px 18px 22px; border-radius: 20px; min-height: 360px; }
.tl-lg h4 { font-size: 20px; }
.tl-t { font-size: 13.5px; margin-top: 4px; }
.tl-lg dl { margin: 16px 2px 16px; font-size: 14px; }
.tl-g { grid-template-columns: repeat(7, 25px); gap: 12px 4px; }
.tl-g .tl-d { width: 25px; height: 25px; }
.tl-more { margin-top: 16px; font-size: 13px; }
.tl-ex { padding: 28px 30px; border-radius: 22px; min-height: 360px; }
.tl-ex-h b { font-size: 28px; }
.tl-ex-h .tl-d { width: 20px; height: 20px; }
.tl-plain { margin-top: 20px; padding: 18px 20px; font-size: 21px; }
.tl-row3 { gap: 14px; margin-top: 20px; }
.tl-f { padding: 14px 16px; }
.tl-f b { font-size: 21px; margin-top: 4px; }
.tl-tip { margin-top: 22px; font-size: 16.5px; }
.tl-learn { margin-top: 14px; font-size: 17px; }
.tl-meta { margin-top: 18px; }
.tl-note { margin-top: 36px; font-size: 14px; }
@media (max-width: 1000px) { .tl-lg, .tl-ex { min-height: 0; } }
@media (max-width: 760px) {
  .tl-body .pg { padding: 24px 16px 0; }
  .tl-top h1 { font-size: 32px; }
  .tl-hint { font-size: 17px; margin: 20px 0 16px; }
  .tl-plain { font-size: 18px; }
}

/* V1.27 – XRPL Daily: 1600 px wide, bigger text, more air */
.dy-body .pg-top, .dy-body .pg, .dy-body .pg-footer-in { max-width: 1600px; }
.dy-body .pg-top { padding: 22px 28px; }
.dy-body .pg { padding: 40px 28px 0; }
.dy-body .pg-footer { margin-top: 60px; }
.dy-body .pg-badge-name { background: #E8590C; }
.dy-wrap { grid-template-columns: minmax(0, 1fr) 500px; gap: 40px; }
.dy-k { font-size: 15px; }
.dy-left h1 { margin: 10px 0 8px; font-size: 50px; }
.dy-meta { gap: 12px; margin: 16px 0 30px; }
.dy-pill { font-size: 15px; padding: 7px 15px; }
.dy-q { padding: 32px 36px; border-radius: 26px; }
.dy-n { font-size: 15px; }
.dy-q h2 { margin: 12px 0 22px; font-size: 32px; }
.dy-o { margin-top: 14px; padding: 18px 22px; font-size: 21px; border-radius: 16px; gap: 16px; }
.dy-o b { width: 36px; height: 36px; font-size: 16px; }
.dy-ex { margin-top: 22px; padding: 18px 20px; font-size: 18px; }
.dy-nextq { margin-top: 22px; font-size: 18px; padding: 14px 26px; }
.dy-review { gap: 14px; }
.dy-review li { padding: 16px 18px; gap: 16px; }
.dy-review li > span { width: 34px; height: 34px; }
.dy-review b { font-size: 18px; }
.dy-review p { font-size: 16px; margin-top: 6px; }
.dy-done-cta { margin-top: 26px; gap: 14px; }
.dy-done-cta .pg-btn { font-size: 17px; padding: 13px 22px; }
.dy-side { gap: 30px; }
.dy-box { padding: 26px 28px; border-radius: 24px; }
.dy-box h3 { margin-bottom: 14px; font-size: 20px; }
.dy-res { font-size: 38px; letter-spacing: 6px; }
.dy-stats { gap: 34px; margin-top: 16px; }
.dy-stats b { font-size: 38px; }
.dy-stats span { font-size: 13px; }
.dy-week { gap: 8px; margin-top: 20px; }
.dy-week i { height: 42px; font-size: 14px; border-radius: 11px; }
.dy-share { margin-top: 20px; padding: 15px; font-size: 18px; border-radius: 14px; }
.dy-share svg { width: 19px; height: 19px; }
.dy-next { margin-top: 14px; font-size: 16px; }
.dy-tw { padding: 22px 24px; font-size: 17px; border-radius: 20px; }
.dy-tw-h { margin-bottom: 10px; }
.dy-av { width: 36px; height: 36px; }
@media (max-width: 1000px) { .dy-wrap { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .dy-body .pg { padding: 24px 16px 0; }
  .dy-left h1 { font-size: 34px; }
  .dy-q { padding: 20px; }
  .dy-q h2 { font-size: 24px; }
  .dy-o { font-size: 17px; padding: 14px 16px; }
}
.dy-tw-box { padding: 0; }
.dy-tw-box h3 { margin-left: 4px; }

/* V1.32 – XRPL Daily: ✓/✕ result tiles and a clear "Last 7 days" row */
.dy-res { display: flex; gap: 12px; font-size: 0; letter-spacing: 0; }
.dy-res i { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-style: normal; font-size: 28px; font-weight: 900; color: #fff; }
.dy-res i.ok { background: var(--green); }
.dy-res i.no { background: var(--red); }
.dy-res i.em { background: #fff; border: 2.5px dashed #C3CAD6; color: #94A3B8; font-size: 20px; }
.dy-res span { display: block; margin-top: 6px; text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); }
.dy-wk-t { margin: 24px 0 10px; font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.dy-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin-top: 0; }
.dy-d { border-radius: 12px; padding: 7px 2px 8px; text-align: center; background: #F1F4FA; color: #94A3B8; font-weight: 800; }
.dy-d small { display: block; font-size: 12px; }
.dy-d em { display: block; margin-top: 1px; font-style: normal; font-size: 11px; font-weight: 700; }
.dy-d b { display: grid; place-items: center; width: 28px; height: 28px; margin: 6px auto 0; border-radius: 50%; font-size: 14px; }
.dy-d.pre { opacity: .45; }
.dy-d.miss b { background: #E2E8F0; color: #94A3B8; }
.dy-d.win { background: #E3F6EE; color: #077A55; }
.dy-d.win b { background: var(--green); color: #fff; }
.dy-d.today { box-shadow: inset 0 0 0 2.5px var(--blue); }
.dy-d.today small { color: var(--blue); }
.dy-leg { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
@media (max-width: 760px) { .dy-res i { width: 50px; height: 50px; } .dy-d small { font-size: 10.5px; } .dy-d em { font-size: 9.5px; } }

/* V1.34 – Live Ledger: dots always fit inside the ledger card */
.tl-g { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px 5px; justify-items: center; }
.tl-g .tl-d { width: 100%; max-width: 25px; height: auto; aspect-ratio: 1; }

/* V1.37 – XRPL Daily: clear "Next questions in" countdown, smaller links after the result */
.dy-cd { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 14px 18px; border-radius: 16px; background: #FFF4E6; border: 2px solid #F7C98B; }
.dy-cd-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; font-size: 24px; }
.dy-cd small { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: #B45309; }
.dy-cd b { display: block; font-size: 26px; font-weight: 800; color: #0F172A; line-height: 1.2; }
.dy-cd p { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: #7C4A0E; }
.dy-cd-big { margin: 4px 0 22px; padding: 18px 22px; }
.dy-cd-big .dy-cd-ic { width: 56px; height: 56px; font-size: 30px; }
.dy-cd-big b { font-size: 34px; }
.dy-more { margin: 20px 0 0; font-size: 15.5px; color: var(--muted); font-weight: 600; }
.dy-more a { font-weight: 800; }

/* V1.38 – XRPL Daily: wider right column, small ✓/✕ tiles with the stats beside them, medium buttons */
.dy-wrap { grid-template-columns: minmax(0, 1fr) 560px; }
.dy-resrow { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.dy-res { gap: 8px; }
.dy-res i { width: 40px; height: 40px; border-radius: 11px; font-size: 20px; }
.dy-res i.em { font-size: 16px; }
.dy-res span { margin-top: 4px; font-size: 11px; }
.dy-stats { margin-top: 0; gap: 24px; padding-left: 24px; border-left: 2px solid #E2E8F0; }
.dy-stats b { font-size: 32px; line-height: 1.1; }
.dy-stats span { font-size: 12px; }
.dy-done-cta { margin-top: 22px; gap: 12px; }
.dy-done-cta .dy-cta { font-size: 15.5px; padding: 10px 18px; border-radius: 11px; }
@media (max-width: 760px) { .dy-stats { padding-left: 0; border-left: 0; } }

/* V1.39 – "While you wait:" before the two buttons */
.dy-done-cta { align-items: center; }
.dy-wait { font-size: 15.5px; font-weight: 700; color: var(--muted); margin-right: 2px; }

/* V1.42 – translated titles: only the second part of the title is coloured */
.tl-top h1 .tl-h1a { color: var(--ink); }
.dy-left h1 .dy-h1a { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }

/* V1.44 – Explain this transaction (Live Ledger) */
.tl-x { margin-top: 44px; padding: 34px 36px; background: #fff; border: 2px solid var(--line); border-radius: 24px; box-shadow: 0 24px 48px -30px rgba(15, 23, 42, .35); }
.tl-x h2 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.01em; }
.tl-x-sub { margin: 8px 0 22px; font-size: 18px; color: #475569; }
.tl-x-form { display: flex; gap: 12px; }
.tl-x-form input { flex: 1; min-width: 0; font: inherit; font-size: 19px; padding: 18px 22px; border: 2px solid var(--line); border-radius: 16px; background: #F8FAFE; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; transition: border-color .15s, background .15s; }
.tl-x-form input:focus { outline: none; border-color: var(--blue); background: #fff; }
.tl-x-form .pg-btn { font-size: 18px; padding: 0 30px; border-radius: 16px; }
.tl-x-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; font-size: 15px; color: #475569; }
.tl-x-try-l { font-weight: 800; color: var(--ink); }
.tl-x-try code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14.5px; padding: 5px 10px; border-radius: 8px; background: #F1F5FD; color: #334155; }
.tl-x-try small { font-size: 13.5px; color: var(--muted); }
.tl-x-mini { font: inherit; font-size: 14px; font-weight: 800; padding: 6px 13px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.tl-x-mini:hover { border-color: var(--blue); color: var(--blue); }
.tl-x-mini-go { background: #0B9A6B; border-color: #0B9A6B; color: #fff; }
.tl-x-mini-go:hover { background: #077A55; border-color: #077A55; color: #fff; }
.tl-x-out { margin-top: 24px; }
.tl-x-msg { margin: 0; padding: 16px 20px; border-radius: 14px; background: #F1F5FD; font-size: 17px; font-weight: 600; color: #334155; }
.tl-x-msg.bad { background: #FFF3F5; color: var(--red); }
.tl-x-card { min-height: 0; }
.tl-tag-wait { background: #E8590C; }
.tl-row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.tl-x-rec { margin: 26px 0 6px; font-size: 18px; }
.tl-x-wait { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.tl-x-list { display: grid; gap: 8px; }
.tl-x-row { display: grid; grid-template-columns: 20px minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.tl-x-row:hover { border-color: var(--blue); background: #F5F8FF; }
.tl-x-row .tl-d { width: 16px; height: 16px; }
.tl-x-row b { font-size: 16px; }
.tl-x-row span { font-size: 15px; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-x-row em { font-style: normal; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .tl-x { padding: 22px 18px; }
  .tl-x h2 { font-size: 26px; }
  .tl-x-form { flex-direction: column; }
  .tl-x-form input { font-size: 15px; padding: 14px 16px; }
  .tl-x-form .pg-btn { padding: 14px; }
  .tl-row4 { grid-template-columns: 1fr 1fr; }
  .tl-x-row { grid-template-columns: 16px minmax(0, 1fr) auto; }
  .tl-x-row span { display: none; }
}

/* V1.47 – footer copyright notice */
.pg-notice { margin: 8px 0 0; max-width: 680px; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* V1.48 – "Copyright notice" with the full text in a hover tooltip */
.cn-tip { position: relative; display: inline-block; cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; outline: none; }
.cn-tip::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 60; width: 440px; max-width: 80vw; padding: 12px 14px; border-radius: 10px; background: #1E1036; color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal; box-shadow: 0 14px 30px -10px rgba(30,16,54,.55); opacity: 0; visibility: hidden; transition: opacity .15s; pointer-events: none; }
.cn-tip:hover::after, .cn-tip:focus::after { opacity: 1; visibility: visible; }
/* V1.48 – "Copyright notice" looks like a link; full text only in the tooltip */
.cn-tip { color: #155EE0; font-weight: 700; text-decoration: underline; text-decoration-style: solid; text-underline-offset: 3px; cursor: help; }
.cn-tip:hover, .cn-tip:focus { text-decoration: none; }
/* V1.49 – footer: normal-weight "Copyright notice", soft blue dates, thin vertical separators */
.cn-tip { font-weight: 400; }
.rel-d { color: #4A78D6; font-weight: 400; }
.rel-sep { display: inline-block; width: 1px; height: 12px; margin: 0 12px; background: #C3CAD6; vertical-align: -1px; }

/* ---------- V1.79 – Consensus Simulator (consensus.html) ---------- */
.ks-body .pg-top, .ks-body .pg, .ks-body .pg-footer-in { max-width: 1600px; }
.ks-body .pg-top { padding: 22px 28px; }
.ks-body .pg { padding: 40px 28px 0; }
.ks-body .pg-footer { margin-top: 60px; }
.ks-body .pg-badge-name { background: var(--blue); }
.ks-h1 { margin: 8px 0 0; font-size: 52px; line-height: 1.08; letter-spacing: -.02em; }
.ks-h1b { background: linear-gradient(90deg, var(--blue), var(--teal) 55%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ks-lead { margin: 14px 0 0; max-width: 1100px; font-size: 20px; line-height: 1.5; color: #334155; }
.ks-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 32px; margin-top: 28px; align-items: start; }
.ks-net { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 22px 26px 24px; box-shadow: 0 20px 40px -26px rgba(15, 23, 42, .35); }
.ks-hint { padding: 12px 18px; border-radius: 14px; background: #EEF3FF; border: 2px solid var(--blue); font-size: 17px; }
.ks-stage { position: relative; max-width: 600px; margin: 10px auto 0; }
.ks-svg { display: block; width: 100%; height: auto; }
.ks-line { stroke: #E2E8F0; stroke-width: 2; transition: stroke .3s; }
.ks-line.on { stroke: var(--blue); stroke-opacity: .55; stroke-dasharray: 6 8; animation: ksdash .8s linear infinite; }
.ks-line.on.diff { stroke: var(--purple); }
.ks-line.on.bad { stroke: var(--red); }
@keyframes ksdash { to { stroke-dashoffset: -28; } }
.ks-v { cursor: pointer; outline: none; }
.ks-c { fill: var(--blue); stroke: #fff; stroke-width: 3; transition: fill .3s; }
.ks-halo { fill: none; stroke: transparent; stroke-width: 3; transition: stroke .2s; }
.ks-v:hover .ks-halo, .ks-v:focus-visible .ks-halo { stroke: var(--ink); }
.ks-t { fill: #fff; font-size: 11.5px; font-weight: 800; pointer-events: none; }
.ks-v.diff .ks-c { fill: var(--purple); }
.ks-v.off .ks-c { fill: #CBD5E1; }
.ks-v.off .ks-t { fill: #64748B; }
.ks-v.bad .ks-c { fill: var(--red); }
.ks-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 38%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; transition: border-color .3s, background .3s; }
.ks-core.is-run { border-color: var(--blue); }
.ks-core.is-ok { border-color: var(--green); background: #E9F8F1; }
.ks-core.is-wait { border-color: #E8590C; background: #FFF4E8; }
.ks-core-k { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.ks-core-n { font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.ks-core-ph { margin-top: 4px; font-size: 15px; font-weight: 800; color: var(--blue); min-height: 2.6em; }
.ks-core.is-ok .ks-core-ph { color: var(--green); }
.ks-core.is-wait .ks-core-ph { color: #C2410C; }
.ks-txs { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 120px; min-height: 22px; margin-top: 6px; }
.ks-txs i { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.ks-meter { max-width: 640px; margin: 18px auto 0; }
.ks-cells { display: grid; grid-template-columns: repeat(35, 1fr); gap: 3px; }
.ks-cells i { position: relative; height: 16px; border-radius: 4px; background: #E2E8F0; transition: background .3s; }
.ks-cells i.on { background: var(--green); }
.ks-cells i.low { background: #F59E0B; }
.ks-cells i.q::after { content: ""; position: absolute; right: -3px; top: -7px; bottom: -7px; width: 3px; border-radius: 2px; background: var(--ink); }
.ks-count { margin: 10px 0 0; text-align: center; font-size: 17px; font-weight: 700; color: #334155; }
.ks-count b { font-size: 20px; color: var(--ink); }
.ks-ctrl { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.ks-ctrl .pg-btn { font-size: 16px; padding: 11px 18px; }
.ks-go { min-width: 150px; }
.ks-ctrl .pg-btn:disabled { opacity: .45; cursor: default; }
.ks-leg { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 16px; font-size: 14px; font-weight: 700; color: #334155; }
.ks-leg > span { display: inline-flex; align-items: center; gap: 6px; }
.ks-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; background: var(--blue); }
.ks-dot.diff { background: var(--purple); }
.ks-dot.off { background: #CBD5E1; }
.ks-dot.bad { background: var(--red); }
.ks-side { display: flex; flex-direction: column; gap: 18px; }
.ks-box { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 20px 24px; }
.ks-box h2 { margin: 0 0 10px; font-size: 20px; }
.ks-box h3 { margin: 18px 0 8px; font-size: 16px; }
.ks-now { border-color: var(--ink); }
.ks-now p { margin: 0; font-size: 17px; line-height: 1.5; }
.ks-now .ks-neg { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #FFF4E8; font-size: 15px; }
.ks-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: ks; }
.ks-steps li { counter-increment: ks; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid transparent; transition: background .3s, border-color .3s; }
.ks-steps li::before { content: counter(ks); grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #E2E8F0; color: var(--ink); font-weight: 800; }
.ks-steps li b { font-size: 16px; }
.ks-steps li span { font-size: 15px; color: #475569; }
.ks-steps li.on { background: #EEF3FF; border-color: var(--blue); }
.ks-steps li.on::before { background: var(--blue); color: #fff; }
.ks-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.ks-stats b { display: block; font-size: 28px; font-weight: 800; color: var(--ink); }
.ks-stats span { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.ks-log { list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 700; }
.ks-log li { padding: 7px 0; border-top: 1px solid #EEF2F7; }
.ks-log li:first-child { border-top: 0; }
.ks-log li.ok { color: var(--green); }
.ks-log li.wait { color: #C2410C; }
.ks-log-empty { color: var(--muted); font-weight: 600; }
.ks-learn { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1.5px solid #EEF2F7; }
.ks-learn .pg-btn { font-size: 16px; padding: 11px 18px; }
@media (max-width: 1100px) { .ks-wrap { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .ks-h1 { font-size: 34px; }
  .ks-lead { font-size: 17px; }
  .ks-net { padding: 16px; }
  .ks-core-n { font-size: 26px; }
  .ks-core-ph { font-size: 12px; }
  .ks-core-k { font-size: 10px; }
  .ks-txs { display: none; }
  .ks-core-k { display: none; }
  .ks-core-ph { min-height: 0; }
  .ks-core { padding: 4px; }
}
@media (prefers-reduced-motion: reduce) { .ks-line.on { animation: none; } }
@media (max-width: 760px) { .ks-t { display: none; } .ks-cells { gap: 2px; } .ks-cells i { height: 12px; } }
