:root{color-scheme:dark;--bg:#101113;--panel:#18191d;--line:#33343b;--text:#f9f8fa;--muted:#b0b0bb;--accent:#f8d94d;--dark:#201b08;font:16px/1.5 system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text)}
[hidden]{display:none!important}
button,input{font:inherit}
button{cursor:pointer;border-radius:9px;padding:.6rem .9rem;font-weight:650}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
a{color:inherit;text-decoration:none}
.wrap{width:min(1120px,calc(100% - 48px));margin:auto}
.top{border-bottom:1px solid var(--line)}
.bar,.header-actions,.brand,.chain,.panel-head,.dialog-actions{display:flex;align-items:center}
.bar{min-height:74px;justify-content:space-between;gap:.8rem}
.header-actions{gap:.8rem}
.brand{font-size:1.45rem;letter-spacing:-.07em;font-weight:850;gap:.45rem}
.brand .dot{margin-left:-.42rem}
.mark,.id-icon{display:grid;place-items:center;background:var(--accent);color:var(--dark);border-radius:9px;min-width:33px;height:33px;font-weight:900}
.chain{gap:.55rem;color:var(--muted);font-size:.88rem;white-space:nowrap}
.chain span,.dot,.eyebrow{color:var(--accent)}
.hero{position:relative;overflow:hidden;margin-top:2rem;border:1px solid #48402a;border-radius:18px;background:linear-gradient(105deg,#211e17 15%,#1a1919 72%);min-height:252px;display:flex;align-items:center;padding:2.3rem 2.5rem}
.hero-content{position:relative;z-index:1;max-width:36rem}
.hero h1{font-size:clamp(2.3rem,6vw,4.25rem);letter-spacing:-.075em;line-height:1.02;margin:.35rem 0 .8rem}
.hero p{max-width:31rem}
.eyebrow{font-size:.8rem;font-weight:800;letter-spacing:.14em}
.hero-art{position:absolute;inset:0 0 0 auto;width:33%;display:grid;place-items:center;background:repeating-linear-gradient(135deg,transparent 0 17px,#f8d94d10 17px 18px);mask-image:linear-gradient(90deg,transparent,#000 25%)}
.hero-art span{border:1px solid #f8d94d80;border-radius:24px;width:115px;height:115px;display:grid;place-items:center;font-size:3.3rem;letter-spacing:-.08em;font-weight:850;transform:rotate(-10deg);color:var(--accent);background:#292315;box-shadow:14px 14px 0 #f8d94d14,28px 28px 0 #f8d94d0c}
p{color:var(--muted);margin:0}
.notice{display:flex;gap:.7rem;margin:1.15rem 0;padding:.65rem 1rem;border-left:2px solid var(--accent);background:#211e16;color:#d6cda7;font-size:.9rem}
.notice strong{color:var(--accent);white-space:nowrap}
.grid{display:grid;grid-template-columns:1.15fr 1fr;gap:1rem;padding-bottom:2rem}
.panel{border:1px solid var(--line);border-radius:15px;background:var(--panel);min-width:0;display:flex;flex-direction:column}
.panel-head{justify-content:space-between;gap:.65rem;padding:1.15rem;border-bottom:1px solid var(--line)}
h2{font-size:1.18rem;letter-spacing:-.025em;margin:0 0 .12rem}
.panel-head p,.identity p{font-size:.9rem}
.currency{color:var(--accent);font-size:.87rem;font-weight:750}
.chat,.requests{padding:1.05rem;min-height:155px;max-height:330px;overflow:auto;flex:1}
.message{max-width:90%;padding:.7rem .85rem;border-radius:10px;margin:0 0 .6rem;background:#26272e;overflow-wrap:anywhere;color:var(--text)}
.message.user{margin-left:auto;background:#373019}
.composer,.identity{margin-top:auto;padding:1rem;border-top:1px solid var(--line)}
#chat-form{display:flex;gap:.55rem;margin-top:.65rem}
input:not([type=checkbox]){min-width:0;width:100%;padding:.65rem .75rem;border:1px solid var(--line);border-radius:9px;background:#111216;color:var(--text)}
.primary{background:var(--accent);border:1px solid var(--accent);color:var(--dark)}
.secondary,.example,.quiet{background:transparent;color:var(--text);border:1px solid var(--line)}
.quiet,.example{font-size:.86rem}
.quiet{color:var(--muted)}
.identity{display:flex;gap:.65rem;align-items:flex-start}
.empty,.request,.draft{padding:.85rem;border:1px solid var(--line);border-radius:9px}
.empty{border-style:dashed}
.request{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.55rem}
.request p{font-size:.9rem}
.draft{margin:1rem 1rem 0;background:#252119;border-color:#54482a}
.draft-actions{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:.65rem}
dialog{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:14px;padding:1.25rem;width:min(420px,calc(100% - 32px))}
dialog::backdrop{background:#000a}
.checkbox{display:flex;gap:.5rem;margin:1rem 0}
.dialog-actions{justify-content:flex-end;gap:.6rem}
#payment-error{color:#ffb3ab;margin-bottom:.5rem}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:760px){.grid{grid-template-columns:1fr}.hero{padding:1.4rem;margin-top:1.25rem}.hero-art{opacity:.32;width:39%}.wrap{width:calc(100% - 28px)}}
@media(max-width:375px){.bar{min-height:64px}.chain{display:none}.notice{display:block}.notice strong{display:block}}

/* REEP dashboard */
:root{font-family:system-ui,sans-serif;--sidebar:#17171a;--hero:#25211a;--hero-end:#19191b;--subtle:#232429;--input:#111216}
:root[data-theme=light]{color-scheme:light;--bg:#f7f6f2;--panel:#fffefa;--sidebar:#fbfaf6;--line:#dfdcd0;--text:#222119;--muted:#5f594c;--accent:#eaba23;--hero:#fff5cb;--hero-end:#fffdf7;--subtle:#f2efe4;--input:#fff;--dark:#211709}
body{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}
.sidebar{min-height:100vh;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:1.55rem;padding:1.4rem 1rem;border-right:1px solid var(--line);background:var(--sidebar);overflow:auto}
.sidebar .brand{padding:0 .35rem}
.network-tag{color:var(--muted);font-size:.72rem;letter-spacing:.08em;border:1px solid var(--line);border-radius:5px;padding:.08rem .32rem}
.profile{display:flex;align-items:center;gap:.7rem;padding:.65rem;border:1px solid var(--line);border-radius:11px;font-size:.9rem}
.profile small,.sidebar-bottom label,.breadcrumb span,.summary small{display:block;color:var(--muted);font-size:.85rem}
.sidebar nav{display:grid;gap:.22rem}
.sidebar nav a{display:flex;gap:.65rem;align-items:center;border-radius:9px;padding:.6rem .7rem;font-size:.92rem;font-weight:650;color:var(--muted)}
.sidebar nav a span{width:1rem;text-align:center}
.sidebar nav a:hover,.sidebar nav a[aria-current=page],.walkthrough-link[aria-current=page]{background:var(--subtle);color:var(--text)}
.sidebar nav a[aria-current=page] span{color:var(--accent)}
.sidebar-bottom{margin-top:auto}
.help{display:block;padding:.7rem .75rem;margin-bottom:1rem;background:var(--subtle);border-radius:9px;font-size:.87rem;color:var(--muted)}
.help strong{display:block;color:var(--text)}
select{margin-top:.35rem;width:100%;padding:.45rem;border-radius:8px;background:var(--panel);color:var(--text);border:1px solid var(--line);font:inherit;font-size:.85rem}
.workspace{min-width:0}
.wrap{width:min(1150px,calc(100% - 52px))}
.bar{min-height:67px;padding:0}
.breadcrumb{display:flex;gap:.55rem;flex-wrap:wrap;align-items:center}
.breadcrumb strong{font-size:.9rem}
.walkthrough-link{border-radius:8px;padding:.5rem .65rem}
.hero{margin:1.65rem 0 1rem;min-height:310px;background:linear-gradient(106deg,var(--hero),var(--hero-end));border-color:var(--line);padding:2rem 2.35rem}
.hero h1{font-size:clamp(2.4rem,5.1vw,4.7rem);font-weight:800}
.hero h1 em{font-family:Georgia,serif;font-weight:500;color:var(--accent)}
:root[data-theme=light] .hero h1 em,:root[data-theme=light] .eyebrow,:root[data-theme=light] .currency{color:#765700}
.hero-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.2rem}
a.primary,a.secondary{display:inline-block;border-radius:9px;padding:.55rem .8rem;font-weight:650;width:max-content;max-width:100%}
.companion{position:absolute;inset:0 0 0 auto;width:34%;display:grid;place-items:center;pointer-events:none}
.orbit{position:relative;display:grid;place-items:center;width:min(230px,92%);aspect-ratio:1;border-radius:50%;background:repeating-radial-gradient(circle,#0000 0 23px,#f8d94d25 24px 25px,#0000 26px 37px)}
.robot{height:48%;width:58%;display:flex;gap:20%;align-items:center;justify-content:center;border-radius:40% 40% 35% 35%;background:#f6d45b;border:7px solid #fff0a7;box-shadow:0 12px 28px #251e0744;transform:rotate(-9deg)}
.robot i{height:22%;width:9%;border-radius:20px;background:#2a2518}
.spark,.companion-id{position:absolute;color:#c89910;font-size:1.5rem;font-weight:800}
.spark{top:13%;right:22%}.companion-id{bottom:17%;left:14%;font-size:1rem}
.summary,.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.summary a{display:grid;gap:.4rem;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:1rem}
.summary strong{font-size:1.55rem;letter-spacing:-.04em}
.summary a span{font-size:.9rem;color:var(--muted)}
.overview-bottom,.resource{padding:1.15rem;align-items:flex-start;gap:.65rem}
.overview-bottom{margin:1rem 0 2rem}
.section-heading{margin:1.6rem 0 1rem}
.section-heading h1{margin:0;font-size:clamp(2rem,4.5vw,3.3rem);letter-spacing:-.06em}
.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.resource.identity{display:flex;flex-direction:row;justify-content:flex-start;margin:0;border:1px solid var(--line)}
.resource.identity button{margin-top:.65rem}
.steps{margin:.15rem 0 .55rem;padding-left:1.3rem}
.steps li{margin:.3rem 0}
input:not([type=checkbox]){background:var(--input)}
.message{background:var(--subtle)}
:root[data-theme=light] .message.user,:root[data-theme=light] .draft,:root[data-theme=light] .notice{background:#fff4c9;color:#574400}
:root[data-theme=light] .notice strong{color:#6d5100}
:root[data-theme=light] #payment-error{color:#9f2b22}
@media(max-width:975px){.grid{grid-template-columns:1fr}.companion{opacity:.7}.hero-content{max-width:73%}}
@media(max-width:730px){body{display:block}.sidebar{min-height:0;height:auto;position:static;gap:.5rem;padding:.65rem .8rem;border-right:0;border-bottom:1px solid var(--line)}.sidebar .profile,.sidebar-bottom{display:none}.sidebar nav{display:flex;overflow:auto;gap:.15rem}.sidebar nav a{white-space:nowrap;padding:.45rem .6rem}.wrap{width:calc(100% - 28px)}.bar{min-height:56px}.breadcrumb span{display:none}.hero{padding:1.3rem;min-height:260px}.companion{opacity:.38}.summary,.resource-grid{gap:.5rem}.summary a{padding:.65rem}.summary strong{font-size:1.1rem}.walkthrough-link{display:none}}
@media(max-width:420px){.hero-content{max-width:100%}.companion{display:none}.summary{grid-template-columns:1fr}.resource-grid{grid-template-columns:1fr}}

.mini-launcher,.mini-chat{position:fixed;right:1.25rem;bottom:1.25rem;z-index:10}
.mini-launcher{background:var(--accent);color:var(--dark);border:1px solid var(--accent);border-radius:999px;padding:.65rem 1rem;box-shadow:0 5px 18px #0003}
.mini-launcher span{margin-right:.25rem}
.mini-chat{width:min(390px,calc(100vw - 2.5rem));border:1px solid var(--line);border-radius:15px;background:var(--panel);box-shadow:0 14px 45px #0004;max-height:calc(100dvh - 2.5rem);overflow:auto}
.mini-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.55rem .85rem;border-bottom:1px solid var(--line);font-size:.87rem}
.mini-toolbar a,.message-link{text-decoration:underline;text-underline-offset:3px}
.mini-chat #chat-panel{border:0;border-radius:0}
.mini-chat .chat{min-height:120px;max-height:min(265px,40dvh)}
.message-link{display:block;margin-top:.35rem}
body{padding-bottom:4rem}
@media(max-width:480px){.mini-launcher,.mini-chat{right:.75rem;bottom:.75rem}.mini-chat{width:calc(100vw - 1.5rem);max-height:calc(100dvh - 1.5rem)}}
