:root {
  color-scheme: light;
  --ink: #17251e;
  --muted: #53635b;
  --line: #cdd7cf;
  --paper: #f5f7f2;
  --leaf: #c2f587;
  --green: #31573b;
  --white: #fff;
  font-family: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #387e56; outline-offset: 3px; }
.skip-link { position: absolute; left: -100vw; top: 1rem; z-index: 5; padding: .7rem; background: white; color: var(--ink); }
.skip-link:focus { left: 1rem; }
.masthead { color: white; background: var(--ink); }
.masthead-inner { max-width: 86rem; min-height: 4.6rem; display: flex; align-items: center; padding: .8rem clamp(1.2rem, 5vw, 4rem); gap: 1.2rem; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 650; font-size: 1.15rem; letter-spacing: -.05em; white-space: nowrap; }
.brand-mark { width: 1.7rem; height: 1.45rem; background: var(--leaf); clip-path: polygon(34% 0, 66% 0, 100% 100%, 68% 100%, 50% 45%, 32% 100%, 0 100%); }
.product-name { border-left: 1px solid #607066; padding-left: 1.15rem; color: #d6ded8; font-size: .875rem; }
.account { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; min-width: 0; }
#account-email { font-size: .86rem; overflow-wrap: anywhere; color: #d6ded8; }
.header-button { border: 1px solid #63746a; color: white; background: transparent; border-radius: 5px; padding: .5rem .8rem; font-size: .875rem; white-space: nowrap; }
.header-button:hover { background: #314238; }
main { outline: 0; }
h1,h2,h3,p,dl,dd { margin: 0; }
h1,h2,h3 { letter-spacing: -.05em; line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 580; }
h3 { font-size: 1.3rem; font-weight: 620; }
.startup { margin: 8vh auto; text-align: center; color: var(--muted); }
#login { max-width: 80rem; margin: clamp(2.5rem, 8vh, 6rem) auto; padding: 0 clamp(1.2rem, 5vw, 4rem); }
.login-frame { display: grid; grid-template-columns: 1fr .94fr; min-height: clamp(31.5rem, 68vh, 41rem); background: white; border: 1px solid var(--line); border-radius: 1.1rem; overflow: hidden; }
.cover { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; color: #f8fff5; background: radial-gradient(ellipse at 80% 100%, #496d49, #294737 46%, #1d3529 85%); }
.cover::before { position: absolute; inset: 0; z-index: -1; content: ""; background: repeating-linear-gradient(0deg, transparent 0 34px, #e3fad80c 34px 35px), repeating-linear-gradient(90deg, transparent 0 34px, #e3fad80c 34px 35px); }
.cover-heading, .cover-network { position: relative; z-index: 1; }
.cover h1 { font-size: clamp(3.9rem, 7vw, 6.8rem); line-height: .91; letter-spacing: -.08em; font-weight: 575; }
.cover h1 span { color: var(--leaf); }
.cover-network, .network { display: flex; align-items: center; gap: .62rem; font: 500 .875rem/1.3 "IBM Plex Mono", ui-monospace, monospace; }
.network-mark { display: inline-block; height: .75rem; width: .75rem; border: 2px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 1px transparent; }
.cover-network { color: #e9f5e2; }
.coin-art { position: absolute; top: 46%; left: 38%; width: 80%; aspect-ratio: 1; transform: rotate(-13deg); z-index: 0; }
.orbit { position: absolute; inset: 2%; border-radius: 50%; border: 1px solid #c6efb147; }
.orbit-inner { inset: 12%; border-style: dashed; }
.coin { display: grid; place-items: center; position: absolute; inset: 23%; border-radius: 50%; background: linear-gradient(130deg, #dcffab, #adda85 58%, #8bb671); box-shadow: inset 0 0 0 2px #d1f4a8, inset 0 0 0 9px #b7dd93, inset 0 0 0 10px #638963, 4px 7px 0 #68875d, 8px 14px 0 #405d46, 12px 23px 35px #14271c88; }
.coin b { color: #344f39; font: 750 clamp(4rem, 8vw, 7.5rem)/1 "Inter", sans-serif; transform: rotate(6deg); }
.login-content { align-self: center; padding: 3rem clamp(1.8rem, 4.5vw, 4rem); }
.login-inner { max-width: 26rem; margin: 0 auto; }
.login-content h2 { font-size: clamp(2.2rem, 4vw, 3.1rem); }
.intro { color: var(--muted); line-height: 1.5; margin-top: .65rem; }
.intro strong { overflow-wrap: anywhere; font-weight: 550; color: var(--ink); }
.login-content form .intro { margin-bottom: 1.8rem; }
#email-actions { border: 0; margin: 0; padding: 0; }
label { display: block; font-size: .9rem; font-weight: 620; margin: 0 0 .5rem; }
input, textarea { width: 100%; color: var(--ink); background: white; border: 1px solid #9eafa2; border-radius: .38rem; padding: .75rem .85rem; min-height: 2.85rem; }
input::placeholder { color: #6a786d; }
.primary, .secondary, .quiet, .text-button { border: 1px solid transparent; border-radius: .38rem; padding: .68rem 1rem; min-height: 2.55rem; font-weight: 600; font-size: .9rem; line-height: 1.22; }
.primary { background: var(--leaf); color: #1c3823; border-color: #9dc96c; }
.primary:hover { background: #b2e47b; }
.secondary, .quiet { background: white; color: var(--ink); border-color: #a4b3a7; }
.secondary:hover, .quiet:hover { background: #eff5eb; }
.quiet { min-height: 2.25rem; padding: .45rem .8rem; }
.text-button { color: var(--green); background: transparent; padding-inline: 0; text-decoration: underline; text-underline-offset: .2rem; }
.text-button:hover { color: #142b19; }
.wide { width: 100%; margin-top: 1rem; }
.inline-actions, .operations { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.15rem; }
.inline-actions { margin-top: .45rem; }
.message { font-size: .88rem; line-height: 1.45; color: var(--green); overflow-wrap: anywhere; }
.message:not(:empty) { padding-block: .7rem .15rem; }
.message[data-error] { color: #983623; }
.workspace { max-width: 86rem; margin: 0 auto; padding: clamp(1.8rem, 5vw, 4rem) clamp(1.2rem, 5vw, 4rem) 5rem; }
.workspace-head, .section-line, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: .9rem; }
.workspace-head h1 { font-size: clamp(2.7rem, 5.3vw, 4.6rem); line-height: 1; font-weight: 580; letter-spacing: -.075em; }
.workspace-head h1 span { color: #6e9348; }
.network { border: 1px solid #b8cab9; padding: .55rem .8rem; border-radius: 3rem; color: #36563d; white-space: nowrap; }
.view-nav { border-bottom: 1px solid var(--line); display: flex; gap: 1.65rem; margin-top: 2rem; }
.view-nav button { color: var(--muted); background: transparent; padding: .85rem .1rem; font-weight: 600; border: 0; border-bottom: 3px solid transparent; }
.view-nav button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--green); }
.section-line { margin: 1.8rem 0 1rem; }
.section-line h2 { font-size: clamp(1.65rem, 3vw, 2rem); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.metrics > div, .panel { border: 1px solid var(--line); background: white; border-radius: .6rem; }
.metrics > div { padding: 1.15rem 1.35rem; }
.metrics > .available { background: #eaf4dd; border-color: #c2d3b5; }
.metrics dt, .fields dt, .balances dt { color: var(--muted); font-size: .875rem; }
.metrics dd { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 550; letter-spacing: -.065em; line-height: 1; margin-top: .65rem; }
.wallet-grid { margin-top: 1.25rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.05rem; align-items: start; }
.panel { padding: 1.35rem; min-width: 0; }
.panel-head p { color: var(--muted); margin-top: .4rem; line-height: 1.45; }
.operations, .lookup-form { margin-top: 1.1rem; }
.lookup-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; }
.lookup-form label { grid-column: 1 / -1; margin: 0; }
.records { padding: 0; margin: 1rem 0 0; list-style: none; }
.records li { display: flex; justify-content: space-between; gap: .9rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--line); }
.record-info { display: grid; gap: .35rem; min-width: 0; }
.mono, textarea { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.record-title { font-size: .9rem; font-weight: 600; }
.record-sub { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
#details { width: min(32rem, calc(100% - 2rem)); max-height: 85vh; padding: clamp(1.3rem, 4vw, 2rem); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: .8rem; box-shadow: 0 1.5rem 5rem #14291b39; }
#details::backdrop { background: #11231bc2; }
#details h2 { font-size: 1.65rem; }
#details .fields { margin: 1.4rem 0; }
.dialog-section { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1rem; }
.dialog-section h3 { font-size: 1.05rem; }
#history-list:empty { margin: 0; }
#history-list li { display: grid; gap: .3rem; }
#release-form p { margin: .6rem 0 1rem; line-height: 1.45; }
.danger { background: #883724; color: white; border: 1px solid #723021; font-size: .9rem; font-weight: 600; padding: .68rem 1rem; border-radius: .38rem; }
.fields { display: grid; gap: .9rem; }
.fields dd, .balances dd { margin-top: .25rem; color: var(--ink); font-size: .9rem; overflow-wrap: anywhere; }
.balances { margin-top: 1rem; }
.balances div { display: flex; gap: 1rem; justify-content: space-between; border-top: 1px solid var(--line); padding-block: .55rem; }
.balances dd { text-align: right; margin: 0; font-variant-numeric: tabular-nums; }
.more { margin-top: .8rem; }
.claim-note { margin-top: .85rem; padding: .8rem; border: 1px solid var(--line); background: var(--paper); border-radius: .4rem; }
.claim-note p { font-size: .875rem; font-weight: 600; }
.claim-note code { display: block; margin-top: .3rem; overflow-wrap: anywhere; }
.claim-note small { display: block; color: var(--muted); margin-top: .3rem; }
#latest-claim { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; }
#detail-claim { border-top: 1px solid var(--line); padding-top: .85rem; }
#copy-claim-id { min-height: 2rem; padding-block: .35rem; }
.reveal { padding: 1rem; margin: 1rem 0; background: #eff5e8; border-radius: .4rem; }
.reveal textarea { display: block; resize: vertical; font-size: .875rem; }
.token-panel .record-info { gap: .45rem; }
@media (max-width: 760px) {
  .wallet-grid { grid-template-columns: 1fr; }
  .product-name { display: none; }
  #login { margin: 1.6rem auto; }
  .login-frame { grid-template-columns: 1fr; min-height: auto; }
  .cover { min-height: 14rem; padding: 1.7rem; }
  .cover h1 { font-size: 3.6rem; margin-top: .8rem; }
  .cover-network { margin-top: 1.1rem; font-size: .8rem; }
  .coin-art { width: 21rem; max-width: 72%; top: -1.5rem; left: 47%; }
  .login-inner { max-width: none; }
  .login-content { padding: 1.8rem; }
}
@media (max-width: 510px) {
  .masthead-inner { min-height: 3.8rem; gap: .5rem; flex-wrap: wrap; }
  .account { gap: .45rem; }
  #account-email { max-width: 8rem; font-size: .75rem; }
  .workspace-head { align-items: flex-start; flex-direction: column; }
  .view-nav { margin-top: 1.1rem; }
  .metrics { gap: .35rem; }
  .metrics > div { padding: .85rem .6rem; }
  .metrics dt { font-size: .8rem; }
  .panel { padding: 1rem; }
  .section-line { align-items: flex-start; flex-wrap: wrap; }
  .records li { gap: .55rem; }
}
