:root {
  --navy: #1F2555;
  --rose: #C775AB;
  --bg: #F3F3F3;
  --surface: #FFFFFF;
  --muted: #5A5F7A;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "PT Sans", system-ui, sans-serif; background: var(--bg); color: var(--navy); }
.top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 12px 16px; background: var(--surface); }
.brand { font-weight: 700; letter-spacing: .04em; }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
.notice { background: var(--surface); border-left: 4px solid var(--rose); padding: 12px 16px; border-radius: 12px; }
.muted { color: var(--muted); }
button, .button { display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; text-decoration: none; cursor: pointer; min-height: 44px; }
input, select, textarea { font-size: 16px; padding: 8px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
nav a { color: var(--navy); }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.card { background: var(--surface); border-radius: 16px; padding: 16px; }
.state, .tag { display: inline-block; font-size: 14px; padding: 2px 8px; border-radius: 999px; background: #F6E8F2; }
.link { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface); padding: 12px; border-radius: 12px; margin: 8px 0; }
.link input { flex: 1 1 220px; min-width: 0; }
.link details { flex-basis: 100%; }
.link code { word-break: break-all; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
video { width: 100%; max-height: 70vh; background: #000; border-radius: 12px; }
pre.text { white-space: pre-wrap; background: var(--surface); padding: 12px; border-radius: 12px; }
.review-form label { display: block; margin-bottom: 6px; }
.review-form input:not([type="hidden"]), .review-form select, .review-form textarea { width: 100%; max-width: 640px; }
.review-form .helptext { display: block; color: var(--muted); margin-top: 6px; }
.errorlist { color: #93273d; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--bg); }
@media (max-width: 560px) { table { display: block; overflow-x: auto; } }

.money-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; margin: 24px 0; }
.money-card { background: #fff; color: #1F2555; padding: 20px; border-radius: 16px; overflow-wrap: anywhere; }
.money-card h3 { margin-top: 0; }
.money-value { font-size: 1.7rem; font-weight: 700; }
.money-stale { color: #76500b; font-weight: 700; }
.money-history { display: grid; gap: 12px; margin-bottom: 24px; }
