* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: dark; font-family: system-ui, -apple-system, sans-serif; background: #121122; color: #f7f5ff; --muted: #c1b8d4; --border: #ffffff23; --accent: #d7c2ff; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 85% 1%, #493265 0%, transparent 45%), radial-gradient(ellipse at 0 30%, #282247, transparent 48%), #121122; }
main { width: min(52rem,100%); margin: auto; padding: max(1.25rem,env(safe-area-inset-top)) max(1.25rem,env(safe-area-inset-right)) max(6rem,env(safe-area-inset-bottom)) max(1.25rem,env(safe-area-inset-left)); }
header,.brand,.entry,.chips,.actions,.report-head,.dialog-head { display: flex; align-items: center; gap: .65rem; }
header,.report-head,.dialog-head { justify-content: space-between; }
.brand { text-decoration: none; color: inherit; font-weight: 750; }
.brand img { width: 2rem; border-radius: .65rem; }
button,.download { font: inherit; color: inherit; border: 1px solid var(--border); background: #ffffff0c; border-radius: .8rem; padding: .65rem .85rem; cursor: pointer; }
button:hover,.download:hover { background: #ffffff22; }
button:active { transform: scale(.98); }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid #e3d0ff; outline-offset: 3px; }
.languages { display: flex; align-items: center; background: #161225aa; border: 1px solid var(--border); border-radius: 2rem; padding: .2rem; }
.languages button { padding: .42rem .6rem; border: 0; background: transparent; font-size: .875rem; }
.languages [aria-pressed=true] { background: #ffffff22; color: #f2ddff; }
.hero { margin: clamp(2.5rem,8vw,5rem) 0 1.6rem; }
h1 { font-size: clamp(2rem,6vw,3.8rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -.045em; }
h2 { margin: 0; font-size: 1.45rem; }
p { line-height: 1.55; }
.hero p,.fine,footer,.samples,dt,.persona span,.mono { color: var(--muted); }
.glass,.notice { border: 1px solid var(--border); border-radius: 1.4rem; background: #ffffff0b; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.glass { padding: clamp(1rem,4vw,1.7rem); margin-top: 1rem; box-shadow: 0 15px 50px #07061050; }
label { display: block; font-weight: 650; margin-bottom: .6rem; }
input { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: .8rem; background: #100e20bc; color: white; padding: .8rem; font: 1rem ui-monospace,monospace; }
.primary { background: var(--accent); color: #241437; font-weight: 750; }
.primary:hover { background: #ebddff; }
.entry button { flex-shrink: 0; }
.samples { margin-top: 1rem; font-size: .9rem; }
.chips,.actions { flex-wrap: wrap; margin-top: .55rem; }
.chips button { font-size: .875rem; }
.notice { margin-top: 1rem; padding: .75rem 1rem; background: #211a35f2; }
.install { position: fixed; inset: auto max(1rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left)); max-width: 48rem; margin: auto; display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.mono { font: .9rem ui-monospace,monospace; }
#statusMark { display: grid; place-items: center; flex: 0 0 2.8rem; height: 2.8rem; border: 1px solid currentColor; border-radius: 1rem; color: #c9bcdd; font-weight: bold; }
[data-status=review] #statusMark { color: #ffd495; }
[data-status=standard] #statusMark { color: #82e7b9; }
#issues { padding-left: 1.3rem; color: #ffd495; line-height: 1.6; }
.persona { display: grid; gap: .25rem; padding: .85rem; border-radius: .8rem; background: #ffffff0f; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.metrics div { background: #151225; border-radius: .9rem; padding: .75rem; }
dt,.fine,footer { font-size: .875rem; }
dd { margin: .45rem 0 0; font-weight: 750; overflow-wrap: anywhere; }
.history ul { list-style: none; padding: 0; margin-bottom: 0; display: grid; gap: .5rem; }
.history button { width: 100%; display: flex; gap: .6rem; justify-content: space-between; text-align: left; }
footer { margin: 1.5rem 0; }
dialog { width: min(34rem,calc(100% - 2rem)); max-height: 90vh; max-height: 90dvh; padding: 1rem; background: #211a35; color: inherit; border: 1px solid var(--border); border-radius: 1.3rem; }
dialog::backdrop { background: #080611cc; }
dialog img { width: 100%; display: block; border-radius: .75rem; margin-bottom: .8rem; }
.download { display: inline-block; text-decoration: none; }
.poster-source { position: fixed; left: -1500px; top: 0; width: 480px; padding: 36px; color: #f7f5ff; background: linear-gradient(145deg,#543479,#151026 72%); }
.poster-source h2 { font-size: 34px; }
.poster-brand { color: #e1caff; font-weight: 750; }
.poster-metrics { display: grid; gap: 12px; margin: 28px 0; }
.poster-metrics div { padding: 15px; border: 1px solid #7c619e; border-radius: 12px; }

.wallet-balances { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.wallet-balances div { background: #151225; border-radius: .9rem; padding: .75rem; }
.wallet select { width: min(100%, 15rem); padding: .65rem; border-radius: .7rem; border: 1px solid var(--border); background: #151225; font: inherit; color: inherit; }
.wallet-table { margin-top: 1rem; overflow-x: auto; }
.wallet-table table { border-collapse: collapse; width: 100%; font-size: .875rem; }
.wallet-table th,.wallet-table td { border-bottom: 1px solid var(--border); padding: .65rem .3rem; text-align: right; overflow-wrap: anywhere; }
.wallet-table th:first-child { text-align: left; }
@media (max-width: 480px) { .entry { align-items: stretch; flex-direction: column; } .metrics { grid-template-columns: 1fr; } }

