/* Defactor product demo. Tokens follow the Figma variables (gray/-3, gray/0 …). */
:root{
  --gray-n3:#2b2b36;   /* gray/-3: primary text */
  --gray-0:#5e5e6e;    /* gray/0: secondary text */
  --gray-p1:#8b8b9c;   /* gray/+1: inactive nav */
  --gray-p2:#a6a6b4;   /* gray/+2: disabled / footer */
  --gray-p4:#dedee7;   /* gray/+4: empty check ring, counter border */
  --gray-p5:#e9e9f0;   /* gray/+5: borders, dividers */
  --gray-p6:#efeff5;   /* gray/+6: progress track, back button */
  --gray-p7:#f6f6fa;   /* gray/+7: tiles */
  --shadow-pop:0 12px 32px rgba(30,30,69,.12),0 2px 6px rgba(30,30,69,.06);
  --ink:#1e1e45;       /* splash heading */
  --brand:#5a5beb;
  --brand-hover:#4b4cd6;
  --positive:#138c55;
  --bg:#fff;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--gray-n3)}
body{font:400 14px/20px Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
img{display:block}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
[hidden]{display:none !important}

/* ---------- Splash (Figma 130:2317) ----------
   Desktop matches the 1440 frame: copy at x 64 / y 228, showcase 696 wide inset 12. */
.splash{min-height:100vh;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) min(696px,48.4vw);gap:24px}
.splash-logo{position:absolute;left:24px;top:24px;width:48px;height:48px}
.splash-copy{align-self:start;margin-top:max(120px,calc(22.5vh));padding-left:52px;max-width:588px}
.splash h1{margin:0;max-width:10.2em;font-weight:500;font-size:clamp(40px,3.9vw,56px);line-height:1.2857;letter-spacing:-.01em;color:var(--ink)}
.splash p{margin:17px 0 0;max-width:335px;font-size:18px;line-height:28px;color:var(--gray-0)}
.btn-primary:hover{background:var(--brand-hover)}
.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--brand);color:#fff;font-weight:500;white-space:nowrap}
.splash-actions{margin-top:41px;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.splash .btn-primary{padding:12px 20px;border-radius:14px;font-size:16px;line-height:24px}
.text-link{padding:0 4px;margin-left:-4px;border-radius:6px;color:var(--brand);font-weight:500;font-size:16px;line-height:24px}
.text-link:hover{text-decoration:underline;text-underline-offset:3px}
.splash-showcase{height:calc(100vh - 24px);max-height:936px;min-height:560px;border-radius:20px;overflow:hidden;background:var(--brand)}
.splash-showcase img{width:100%;height:100%;object-fit:cover;object-position:left top}

@media (max-width:900px){
  .splash{grid-template-columns:1fr;gap:40px}
  .splash-logo{position:static;margin:12px 0 0 12px}
  .splash-copy{margin-top:24px;padding-left:12px}
  .splash-showcase{height:auto;min-height:0;aspect-ratio:696/936;max-height:none}
}

/* ---------- App shell: navigation (Figma 71:2490) ---------- */
.nav{position:sticky;top:0;z-index:10;height:72px;background:#fff;display:flex;align-items:center;padding:0 16px}
.nav-logo{width:159px;height:46px;flex:none}
.nav-right{margin-left:auto;display:flex;align-items:center;min-width:0}
.nav-links{display:flex;gap:24px;font-weight:500;margin-right:27px}
.nav-links a{color:var(--gray-p1);transition:color .15s}
.nav-links a:hover,.nav-links [aria-current="page"]{color:var(--gray-n3)}
.wallet{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:24px;background:var(--gray-p7);font-weight:500;white-space:nowrap;transition:background .15s}
.wallet:hover,.wallet[aria-expanded="true"]{background:var(--gray-p6)}
.nav .btn-primary{margin-left:16px;padding:10px 16px;border-radius:42px}
.nav-divider{width:1px;height:28px;background:var(--gray-p5);margin:0 12px 0 16px}
.account{display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:24px;background:#fff;transition:background .15s}
.account:hover,.account[aria-expanded="true"]{background:var(--gray-p7)}
.account[aria-expanded="true"] img:last-child{transform:rotate(180deg)}
.account img.avatar{width:28px;height:28px;border-radius:20px;background:#e0e0e0;object-fit:cover}
@media (max-width:900px){.wallet{display:none}}
@media (max-width:640px){
  .nav-links,.nav-divider{display:none}
  .nav-logo{width:124px;height:36px}
  .nav .btn-primary{padding:10px 12px}
}

/* ---------- Home: 6 assets, no sales module (Figma 17:1281) ---------- */
.home{width:min(960px,100% - 48px);margin:0 auto;padding:56px 0 32px}
.welcome{max-width:342px;margin:0 auto;text-align:center}
.welcome h1{margin:0;font-weight:500;font-size:24px;line-height:32px}
.welcome p{margin:8px -40px 0;color:var(--gray-0)}

.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:40px}
.stat{height:182px;padding:20px;border-radius:24px;background:var(--gray-p7);display:flex;flex-direction:column;justify-content:space-between}
.stat .label{font-size:16px;line-height:24px;color:var(--gray-0)}
.stat .value{font-weight:500;font-size:24px;line-height:32px}
.stat .sub{margin-top:8px;display:flex;align-items:center;gap:4px;color:var(--gray-0)}
.stat .up{color:var(--positive);font-weight:500}

.started{margin-top:48px;border:1px solid var(--gray-p5);border-radius:24px;padding:23px 23px 17px;min-height:240px}
.started-head{display:flex;align-items:center;min-height:24px}
.started-head h2{margin:0;font-weight:500;font-size:16px;line-height:24px}
.progress{margin-left:auto;display:flex;align-items:center;gap:12px;color:var(--gray-0)}
.progress b{font-weight:500;color:var(--gray-n3)}
.ring{position:relative;width:24px;height:24px}
.ring img{position:absolute}
.ring .arc{left:12px;top:0;width:11.99px;height:18.02px}
.toggle{margin-left:28px;flex:none;width:24px;height:24px;display:grid;place-items:center}
.toggle{border-radius:6px}
.toggle img{transform:rotate(-90deg);transition:transform .25s ease}
.started.collapsed{min-height:0;padding-bottom:23px}
.started.collapsed .steps{display:none}
.started.collapsed .toggle img{transform:rotate(90deg)}
.steps{list-style:none;margin:24px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.step{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;min-height:42px}
.step-label{display:flex;align-items:center;gap:16px;font-weight:500;font-size:16px;line-height:24px}
.check{width:24px;height:24px;border-radius:30px;border:2px solid var(--gray-p4);display:grid;place-items:center}
.step.done .check{border:0;background:var(--brand)}
.step.done .step-label{font-weight:400;color:var(--gray-p2);text-decoration:line-through}
.btn-outline{padding:10px 16px;border-radius:42px;border:1px solid var(--gray-p5);font-weight:500;white-space:nowrap;transition:background .15s}
.btn-outline:hover{background:var(--gray-p7)}

.assets{margin-top:60px}
.section-head{display:flex;align-items:center;justify-content:space-between}
.section-head h2{margin:0;display:flex;align-items:center;gap:8px;font-weight:500;font-size:20px;line-height:28px}
.counter{padding:2px 7px;border:1px solid var(--gray-p4);border-radius:13px;background:#fff;font-weight:500;font-size:14px;line-height:20px;color:var(--gray-0)}
.view-all:hover img{transform:translateX(2px)}
.view-all img{transition:transform .15s}
.view-all{display:flex;align-items:center;gap:6px;color:var(--brand);font-weight:500;font-size:16px;line-height:24px}
.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin-top:20px}
.asset-card{position:relative;display:block;height:230px;border:1px solid var(--gray-p5);border-radius:22px;background:#fff;transition:border-color .15s,box-shadow .15s}
.asset-card:hover{border-color:var(--gray-p4);box-shadow:0 6px 20px rgba(30,30,69,.06)}
.asset-card .photo{position:absolute;left:11px;right:11px;top:12px;height:104px;border-radius:9px;object-fit:cover;width:calc(100% - 22px)}
.asset-card .photo-masked{position:absolute;left:12px;right:12px;top:13px;height:104px;overflow:hidden;
  -webkit-mask:url(assets/img/lond-town-mask.png) 0 0/100% 100% no-repeat;mask:url(assets/img/lond-town-mask.png) 0 0/100% 100% no-repeat}
.asset-card .photo-masked img{width:100%;height:100%;object-fit:cover;object-position:50% 100%}
.asset-card .name{position:absolute;left:19px;top:132px;font-weight:500;font-size:16px;line-height:24px}
.asset-card .rule{position:absolute;left:-1px;right:-1px;top:172px;height:1px;background:var(--gray-p5)}
.asset-card .status{position:absolute;left:15px;top:191px;display:flex;align-items:center;gap:6px;color:var(--gray-0)}
.asset-card .supply{position:absolute;right:15px;top:191px;display:flex;gap:1px;color:var(--gray-0)}
.asset-card .supply b{font-weight:500;color:var(--gray-n3)}

.powered{margin:60px auto 0;width:max-content;display:flex;align-items:center;gap:12px;color:var(--gray-p2)}
.powered img{margin-top:2px}

/* ---------- Home: smaller windows ---------- */
@media (max-width:900px){
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .home{width:calc(100% - 32px);padding-top:32px}
  .welcome p{margin-inline:0}
  .stats{margin-top:28px;gap:12px}
  .stat{height:auto;min-height:140px;gap:24px;padding:16px;border-radius:20px}
  .started{padding:19px}
  .started-head{flex-wrap:wrap;row-gap:12px}
  .started-head h2{flex-basis:100%}
  .progress{margin-left:0}
  .toggle{margin-left:auto}
  .step{flex-wrap:wrap}
  .step .btn-outline{margin-left:40px}
  .assets{margin-top:44px}
}

/* ---------- Menus and popovers (not in Figma; built in the same language) ---------- */
.menu-wrap{position:relative}
.menu{position:absolute;top:calc(100% + 8px);right:0;z-index:30;min-width:220px;padding:6px;border-radius:16px;background:#fff;border:1px solid var(--gray-p5);box-shadow:var(--shadow-pop)}
.menu[hidden]{display:none}
.menu > button,.menu > a,.menu > label{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border-radius:10px;text-align:left;font-weight:500;cursor:pointer}
.menu > button:hover,.menu > a:hover,.menu > label:hover{background:var(--gray-p7)}
.menu hr{border:0;height:1px;background:var(--gray-p5);margin:6px 4px}
.menu-head{display:flex;align-items:center;gap:10px;padding:10px 12px 12px;margin-bottom:4px;border-bottom:1px solid var(--gray-p5)}
.menu-head b{display:block;font-weight:500}
.menu-head span{color:var(--gray-0);font-size:13px}
.menu-head .avatar{border-radius:20px;object-fit:cover;background:#e0e0e0}
.menu-create{min-width:0;width:max-content}
.menu-create > a,.menu-create > button{padding-right:20px}
.menu-create b{font-weight:500}
.menu-options{min-width:200px}
.menu-label{margin:6px 12px 4px;font-size:12px;line-height:18px;font-weight:500;color:var(--gray-0);text-transform:uppercase;letter-spacing:.02em}
.menu-options label{font-weight:400}
.menu-options input{accent-color:var(--brand);width:16px;height:16px;margin:0}
.menu-clear{color:var(--brand)}

.toast{position:fixed;left:50%;bottom:28px;z-index:60;transform:translate(-50%,8px);opacity:0;padding:10px 16px;border-radius:12px;background:var(--gray-n3);color:#fff;font-weight:500;box-shadow:var(--shadow-pop);transition:opacity .2s,transform .2s;pointer-events:none}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------- Home populated: sales module (Figma 91:4042) ---------- */
.sales{margin-top:60px}
.sales-card{margin-top:20px;height:153px;border:1px solid var(--gray-p5);border-radius:24px;padding:22px 23px 0;background:#fff}
.sales-top{display:flex;align-items:center;height:30px}
.sales-name{font-weight:500;font-size:16px;line-height:24px}
.ext{margin-left:10px;width:24px;height:24px;border-radius:30px;border:1px solid var(--gray-p5);display:grid;place-items:center;transition:background .15s}
.ext:hover{background:var(--gray-p7)}
.ext img,.sm-row img{transform:scaleX(-1)}
.pill-status{margin-left:auto;display:flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid #e4e7ec;border-radius:30px;font-weight:500;color:#101828}
.pill-status i{width:6px;height:6px;border-radius:30px;background:#41c155}
.bar{height:16px;border-radius:16px;background:var(--gray-p6);overflow:hidden}
.bar span{display:block;height:100%;border-radius:11px;background:var(--brand)}
.sales-card .bar{margin-top:14px}
.sales-bottom{margin-top:16px;display:flex;align-items:center;justify-content:space-between;font-size:16px;line-height:24px}
.sales-bottom b{font-weight:500}
.sales-bottom small{font-size:14px;color:var(--gray-0);margin-left:4px}
.sales + .assets{margin-top:60px}
.stat-link{transition:background .15s}
.stat-link:hover{background:var(--gray-p6)}
.ring .arc-2of3{left:1.67px;top:0;width:22.34px;height:24px}

/* ---------- List pages: Transactions 24:5160, Buyers 24:4843 ---------- */
.list-page{width:min(960px,100% - 48px);margin:0 auto;padding-top:56px;min-height:calc(100vh - 72px);display:flex;flex-direction:column}
.list-page h1{margin:0;font-weight:500;font-size:30px;line-height:38px}
.toolbar{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.search{display:flex;align-items:center;gap:12px;width:290px;height:40px;padding:8px 12px;border-radius:14px;background:var(--gray-p7);cursor:text}
.search input{flex:1;min-width:0;border:0;background:none;font:inherit;color:var(--gray-n3);outline:none}
.search input::placeholder{color:var(--gray-p2)}
.search:focus-within{box-shadow:0 0 0 2px var(--brand)}
.tools{display:flex;gap:8px}
.tool{display:flex;align-items:center;gap:8px;padding:10px 16px 10px 12px;border-radius:12px;font-weight:500;transition:background .15s}
.tool:hover,.tool[aria-expanded="true"]{background:var(--gray-p7)}
.badge{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--brand);color:#fff;font-size:11px;line-height:18px;text-align:center}
.badge[hidden]{display:none}

.table{margin-top:24px;border:1px solid var(--gray-p5);border-radius:12px;overflow:hidden}
.tr{display:grid;align-items:center;height:56px;border-bottom:1px solid var(--gray-p5);color:var(--gray-0)}
.tbody .tr:last-child{border-bottom:0}
.tr.th{height:48px;font-weight:500;font-size:12px;line-height:18px;text-transform:uppercase;opacity:.9}
.tr .num{text-align:right}
.tr .strong{font-weight:500;color:var(--gray-n3)}
.tbody .tr[data-buyer]{cursor:pointer;transition:background .12s}
.tbody .tr[data-buyer]:hover,.tbody .tr[data-buyer]:focus-visible{background:var(--gray-p7);outline:none}
.tr.empty{display:block;height:auto;padding:24px 16px;text-align:center}
.asset-link{color:inherit;border-radius:4px}
.asset-link:hover{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.table-tx .tr{grid-template-columns:267fr 162fr 200fr 290fr;padding:0 25px 0 14px}
.table-buyers .tr{grid-template-columns:185fr 285fr 167fr 100fr 180fr;padding:0 25px 0 16px}
.wallet-cell{display:flex;align-items:center;gap:6px;padding-left:5px;font-weight:500;color:var(--gray-n3)}
.list-page .powered{margin-top:auto;padding:60px 0 32px}

/* ---------- Buyer breakdown panel (Figma 24:6220) ---------- */
.drawer-backdrop{position:fixed;inset:0;z-index:50;background:rgba(30,30,69,0);transition:background .22s}
.drawer-backdrop.open{background:rgba(30,30,69,.28)}
.drawer{position:absolute;top:16px;right:16px;bottom:16px;width:min(567px,100% - 32px);overflow:auto;background:#fff;border-radius:20px;padding:80px 24px 32px;
  box-shadow:var(--shadow-pop);transform:translateX(calc(100% + 24px));transition:transform .22s ease}
.drawer-backdrop.open .drawer{transform:none}
.drawer-close{position:absolute;top:16px;right:16px;padding:6px;border:1px solid var(--gray-p5);border-radius:40px;transition:background .15s}
.drawer-close:hover{background:var(--gray-p7)}
.drawer h2{margin:0;text-align:center;font-weight:500;font-size:24px;line-height:32px}
.socials{margin-top:16px;display:flex;justify-content:center;gap:13px}
.drawer-stats{margin-top:64px;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.drawer-stats .stat{height:144px}
.drawer h3{margin:40px 0 0;font-weight:500;font-size:18px;line-height:28px}
.drawer .table{margin-top:20px}
.table-holdings .tr{grid-template-columns:135fr 120fr 62fr 160fr;padding:0 23px 0 16px}

/* ---------- Asset detail (Figma 17:4244, 67:1480) ---------- */
.asset-page{display:grid;grid-template-columns:minmax(0,580px) minmax(0,580px);justify-content:space-between;column-gap:40px;
  width:min(1296px,100% - 2*clamp(24px,5vw,72px));margin:0 auto;padding:56px 0 66px}
.back{display:grid;place-items:center;width:40px;height:40px;border-radius:24px;background:var(--gray-p6);transition:background .15s}
.back:hover{background:var(--gray-p5)}
.back img{transform:scaleX(-1)}
.asset-token{margin-top:32px;border-radius:32px}
.asset-info h1{margin:24px 0 0;font-weight:500;font-size:36px;line-height:44px;letter-spacing:-.36px}
.location{margin:16px 0 0;display:flex;align-items:center;gap:8px}
.kv{display:flex;flex-direction:column;gap:8px}
.kv span{color:var(--gray-0)}
.kv b{font-weight:500;font-size:16px;line-height:24px}
.kv-value{margin-top:40px}
.kv-value b{font-size:20px;line-height:28px}
.rule-560{max-width:560px}
.asset-info hr{border:0;height:1px;background:var(--gray-p5);margin:24px 0 0}
.kv-row{margin-top:24px;display:grid;grid-template-columns:156px 146px 1fr}
.copyable{display:flex;align-items:center;gap:8px}
.copyable button{display:grid;place-items:center;border-radius:4px;opacity:.85}
.copyable button:hover{opacity:1}
.sold-card{margin-top:32px;height:88px;border:1px solid var(--gray-p5);border-radius:20px;padding:18px 19px}
.sold-top{display:flex;justify-content:space-between;color:var(--gray-0)}
.sold-top b{font-weight:500;color:var(--gray-n3);margin-left:4px}
.sold-top span:last-child b{margin:0 1px 0 0}
.sold-card .bar{margin-top:12px}
.sm-row{margin-top:12px;display:flex;align-items:center;padding:12px 16px;border:1px solid var(--gray-p5);border-radius:16px;color:var(--gray-0)}
.sm-row button{margin-left:auto;display:flex;align-items:center;gap:8px;color:var(--brand);font-weight:500}
.sm-row button:hover{text-decoration:underline;text-underline-offset:3px}
.asset-info h2{margin:30px 0 0;font-weight:500;font-size:16px;line-height:24px}
.desc{margin:12px 0 0;color:var(--gray-0)}
.asset-info .desc + hr{margin-top:32px}
.btn-pill{margin-top:32px;padding:10px 16px;border:1px solid var(--gray-p5);border-radius:30px;transition:background .15s}
.btn-pill:hover{background:var(--gray-p7)}

.gallery{display:flex;flex-direction:column;gap:8px;border-radius:12px;overflow:hidden;align-self:start}
.gallery-main{position:relative;aspect-ratio:1;background:#f5f5f7}
.gallery-main img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gallery-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.gallery-thumbs button{position:relative;aspect-ratio:1;padding:0;opacity:.8;transition:opacity .15s}
.gallery-thumbs button.lit{opacity:1}
.gallery-thumbs.picking button.lit{opacity:.8}
.gallery-thumbs button:hover,.gallery-thumbs button.selected{opacity:1}
.gallery-thumbs img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* Two-column asset page: photos float under the nav while the details scroll */
@media (min-width:1001px){
  /* Width capped by window height so the whole block (square photo + 2 thumb rows, about 1.67 × width) fits below the nav */
  .asset-page .gallery{position:sticky;top:96px;justify-self:end;width:100%;max-width:min(580px,(100vh - 120px) * .6)}
}
@media (max-width:1000px){
  .asset-page{grid-template-columns:minmax(0,1fr);row-gap:40px}
  .gallery{max-width:580px}
}

/* =====================================================================
   Flows added for the full demo: onboarding, wizards, modals, pools, governance
   ===================================================================== */

/* ---------- Shared controls ---------- */
.btn-block{display:flex;width:100%;padding:12px 20px;border-radius:14px;font-size:16px;line-height:24px}
.btn-gap{margin-top:16px}
.btn-lg{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 20px;border-radius:30px;font-size:16px;line-height:24px;font-weight:500}
.btn-md{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 16px;border-radius:12px;font-weight:500}
.btn-outline.btn-lg,.btn-outline.btn-md{background:#fff}
.btn-chip{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:30px;border:1px solid var(--gray-p5);background:#fff;font-weight:500;transition:background .15s}
.btn-chip:hover{background:var(--gray-p7)}
.btn-chip.solid{border:0;background:var(--brand);color:#fff}
.btn-chip.solid:hover{background:var(--brand-hover)}
.btn-soft{height:40px;padding:0 16px;border-radius:30px;background:var(--gray-p6);font-weight:500;white-space:nowrap;transition:background .15s}
.btn-soft:hover{background:var(--gray-p5)}
.btn-soft:disabled{cursor:default;color:var(--gray-0);background:var(--gray-p7)}
.btn-icon{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--gray-p5);border-radius:12px;background:#fff;transition:background .15s}
.btn-icon:hover{background:var(--gray-p7)}
.btn-icon.sm{width:32px;height:32px;border-radius:10px}
.btn-square{flex:none;display:grid;place-items:center;width:50px;height:50px;border:1px solid var(--gray-p5);border-radius:14px;background:#fff}
.btn-square img{transform:scaleX(-1)}
.btn-square:hover{background:var(--gray-p7)}
button:disabled{cursor:default}
.btn-primary:disabled{opacity:.7}

.field{display:flex;flex-direction:column;min-width:0}
.field-label{padding-bottom:6px;font-weight:500;font-size:12px;line-height:18px;color:var(--gray-0)}
.field-label em{font-style:normal;color:#e5484d}
.field input,.field textarea{width:100%;height:48px;padding:14px 16px;border:1px solid var(--gray-p5);border-radius:14px;background:#fff;font:inherit;color:var(--gray-n3);outline:none;transition:border-color .15s,box-shadow .15s}
.field textarea{height:auto;min-height:60px;resize:vertical;line-height:20px}
.field input::placeholder,.field textarea::placeholder{color:var(--gray-p1)}
.field input:focus,.field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(90,91,235,.14)}
.field input.computed{background:var(--gray-p7);border-color:var(--gray-p7)}
.field .hint{margin-top:8px;font-size:12px;line-height:18px;color:var(--gray-0)}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.field-row.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.input-affix{position:relative;display:block}
.input-affix input{padding-right:56px}
.input-affix > span,.input-affix > img{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:var(--gray-0);pointer-events:none}
form.autofilled input,form.autofilled textarea{background:#f4f4fe;transition:background .2s}

.or{display:flex;align-items:center;gap:12px;color:var(--gray-p2)}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--gray-p4)}
.btn-google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:48px;border:1px solid var(--gray-p5);border-radius:14px;background:#fff;font-weight:500;font-size:16px;line-height:24px;transition:background .15s}
.btn-google:hover{background:var(--gray-p7)}

.icon-picker{display:flex;align-items:center;gap:12px;min-height:40px}
.icon-picker small{color:var(--gray-0);font-size:12px}
.picked{width:32px;height:32px;border-radius:50%;overflow:hidden;flex:none;background:var(--gray-p7)}
.picked img{width:100%;height:100%;object-fit:cover}
.picked-sb img{object-fit:cover;object-position:0 50%;width:157%;max-width:none}
.picked.empty{border:1px dashed var(--gray-p4);background:#fff}

.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:115px;border:1px solid var(--gray-p5);border-radius:14px;background:#fff;font-weight:500;transition:border-color .15s,box-shadow .15s}
.choice:hover{border-color:var(--gray-p4)}
.choice[aria-checked="true"]{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}

.radio-list{display:flex;flex-direction:column;gap:16px}
.radio-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border:1px solid var(--gray-p5);border-radius:14px;background:#fff;text-align:left;transition:border-color .15s}
.radio-card b{display:block;font-weight:500;font-size:16px;line-height:24px}
.radio-card small{display:block;color:var(--gray-0);font-size:14px}
.radio-card i{flex:none;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--gray-p4)}
.radio-card[aria-checked="true"]{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.radio-card[aria-checked="true"] i{border:6px solid var(--brand)}

.notice,.banner{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 16px;border-radius:14px;background:#eeeefd;font-weight:500}
.notice span,.banner span{flex:1}
.notice b{font-weight:500}
.notice{margin-bottom:56px}
.notice[hidden],.banner[hidden]{display:none}
.banner{margin-top:32px}
.banner + .sold-card{margin-top:12px}

.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:40px 0 8px}
.empty-state h2{margin:16px 0 0;font-weight:500;font-size:16px;line-height:24px}
.empty-state p{margin:8px 0 0;max-width:300px;color:var(--gray-0)}
.empty-state .btn-primary{margin-top:24px}
.empty-state.small{padding-top:24px}
.empty-box{width:48px;height:48px;border-radius:12px;background:var(--gray-p6)}
.list-page > .empty-state{margin-top:120px}
.list-page [data-full][hidden],.list-page .empty-state[hidden]{display:none}
.no-match{grid-column:1/-1;padding:24px;text-align:center;color:var(--gray-0)}

.pill-status.muted{color:var(--gray-0)}
.pill-status.muted i{background:var(--gray-p2)}
.pill-status.deny i{background:#f04438}
.sales-top .btn-chip{margin-left:8px}

/* Asset cards: a full-card link under the controls, so Mint can sit inside */
.asset-card .card-hit{position:absolute;inset:0;border-radius:inherit;z-index:1}
.asset-card .btn-chip{position:absolute;right:12px;top:184px;z-index:2}
.asset-card:hover{border-color:var(--gray-p4);box-shadow:0 6px 20px rgba(30,30,69,.06)}

/* ---------- Auth and onboarding (Figma 3:124 … 6:304) ---------- */
.auth{min-height:100vh}
.auth-top{height:72px;display:flex;align-items:center;gap:12px;padding:0 24px 0 12px}
.auth-top > :first-child{margin-right:auto}
.auth-top span{color:var(--gray-0)}
.auth-switch{padding:4px 8px;border-radius:8px;font-weight:500}
.auth-switch:hover{background:var(--gray-p7)}
.auth-body{width:min(480px,100% - 32px);margin:56px auto 64px;display:flex;flex-direction:column;gap:24px}
.auth-body h1{margin:0;font-weight:500;font-size:24px;line-height:32px}
.auth-body .lede{margin:-16px 0 16px;max-width:342px;color:var(--gray-0)}
.auth-body.center{align-items:stretch;text-align:center}
.auth-body.center .lede{margin-inline:auto}
.terms{margin:0;text-align:center;color:var(--gray-0)}
.inline-strong{font-weight:500;color:var(--gray-n3)}
.inline-strong:hover{text-decoration:underline;text-underline-offset:3px}
.feature-card{list-style:none;margin:0;padding:20px;border:1px solid var(--gray-p5);border-radius:14px;display:flex;flex-direction:column;gap:20px;text-align:left}
.feature-card li{display:flex;align-items:center;justify-content:space-between;gap:16px}
.feature-card b{display:block;font-weight:500}
.feature-card span{display:block;color:var(--gray-0);font-size:13px;line-height:20px}
.skip{align-self:center;margin-top:-8px;padding:4px 8px;border-radius:8px;font-weight:500}
.skip:hover{background:var(--gray-p7)}
.wallet-list{display:flex;flex-direction:column;gap:12px}
.wallet-option{display:flex;align-items:center;gap:12px;height:60px;padding:0 18px;border:1px solid var(--gray-p5);border-radius:14px;background:#fff;font-weight:500;text-align:left;transition:border-color .15s,background .15s}
.wallet-option:hover{border-color:var(--gray-p4);background:var(--gray-p7)}

/* ---------- Full-page wizards (Figma 6:4107, 17:3617) ---------- */
.wizard-page,.success-page{min-height:100vh}
.wz-top{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 16px}
.wz-close{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--gray-p5);border-radius:50%;transition:background .15s}
.wz-close:hover{background:var(--gray-p7)}
.wz-layout{width:min(1096px,100% - 48px);margin:56px auto 80px;display:grid;grid-template-columns:minmax(0,300px) minmax(0,640px);justify-content:space-between;gap:40px;align-items:start}
.wz-intro{position:sticky;top:56px}
.wz-intro .back img{transform:scaleX(-1)}
.wz-intro h1{margin:24px 0 0;font-weight:500;font-size:30px;line-height:38px}
.wz-intro > p{margin:12px 0 0;max-width:270px;color:var(--gray-0)}
.stepper{list-style:none;margin:40px 0 0;padding:0}
.stepper li{position:relative;display:flex;align-items:center;gap:16px;color:var(--gray-p2)}
.stepper li + li{margin-top:54px}
.stepper li + li::before{content:"";position:absolute;left:19.5px;top:-47px;width:1px;height:40px;background:var(--gray-p5)}
.stepper i{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--gray-p7);font-style:normal;font-weight:500;font-size:12px}
.stepper small{display:block;font-size:12px;line-height:18px;color:var(--gray-p1)}
.stepper span{font-size:18px;line-height:28px}
.stepper li.on{color:var(--gray-n3)}
.stepper li.on i{background:var(--brand);color:#fff}
.stepper li.on small{color:var(--gray-0)}
.stepper li.done i{background:#eeeefd;color:var(--brand)}
.wz-card{border:1px solid var(--gray-p5);border-radius:24px;background:#fff}
.wz-pane{padding:32px;display:flex;flex-direction:column;gap:24px}
.wz-pane[hidden]{display:none}
.wz-pane h2{margin:0;font-weight:500;font-size:20px;line-height:28px}
.wz-pane .pane-sub{margin:-20px 0 0;color:var(--gray-0)}
.wz-pane hr{width:100%;border:0;height:1px;background:var(--gray-p5);margin:0}
.wz-actions{display:flex;gap:12px;margin-top:8px}
.wz-actions .btn-primary{border-radius:14px;height:50px;font-size:16px}
.wz-actions.sticky{position:sticky;bottom:0;margin:0 -32px -32px;padding:16px 32px 32px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 24px);border-radius:0 0 24px 24px}

.upload-block h3{margin:0;font-weight:500;font-size:16px;line-height:24px}
.upload-block > p{margin:4px 0 16px;color:var(--gray-0)}
.dropzone{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;padding:28px 16px;border:1px dashed var(--gray-p4);border-radius:14px;background:#fff;transition:background .15s,border-color .15s}
.dropzone:hover{background:var(--gray-p7);border-color:var(--gray-p1)}
.dropzone img{margin-bottom:8px}
.dropzone b{font-weight:500}
.dropzone small{color:var(--gray-0);font-size:12px}
.photo-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.photo-row:not(:empty){margin-top:16px}
.photo-tile{position:relative;aspect-ratio:132/126;border-radius:12px;overflow:hidden;background:var(--gray-p7)}
.photo-tile > img{width:100%;height:100%;object-fit:cover}
.photo-tile .cover{position:absolute;left:8px;top:8px;padding:2px 8px;border-radius:20px;background:#fff;font-size:12px;font-weight:500}
.photo-tile .btn-icon{position:absolute;right:8px;top:8px;width:28px;height:28px;border:0;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 1px 3px rgba(30,30,69,.18)}
.photo-tile .btn-icon img{width:14px;height:14px}
.file-list{display:flex;flex-direction:column;gap:8px}
.file-list:not(:empty){margin-top:16px}
.file{display:flex;align-items:center;gap:16px;padding:10px 12px;border:1px solid var(--gray-p5);border-radius:14px}
.file > span:nth-child(2){flex:1;min-width:0}
.file b{display:block;font-weight:500}
.file small{color:var(--gray-0);font-size:12px}
.file-ic{flex:none;display:grid;place-items:center;width:40px;height:48px;border-radius:8px;background:#eeeefd;color:var(--brand);font-size:10px;font-weight:600;letter-spacing:.04em}
.review{margin:0;display:flex;flex-direction:column}
.review dt{margin-top:20px;font-weight:500;font-size:12px;line-height:18px;color:var(--gray-0)}
.review dt:first-child{margin-top:0}
.review dd{margin:8px 0 0;font-size:16px;line-height:24px}
.review dd.file-list{margin-top:8px;font-size:14px}

.link-sm{align-self:flex-start;margin:-8px 0 -8px;color:var(--brand);font-weight:500;font-size:12px}
.link-sm:hover{text-decoration:underline;text-underline-offset:3px}
.pick-list{display:flex;flex-direction:column}
.pick{display:flex;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--gray-p5);cursor:pointer}
.pick:last-child{border-bottom:0}
.pick input{width:20px;height:20px;margin:0;accent-color:var(--brand)}
.pick img{width:56px;height:56px;border-radius:10px;object-fit:cover}
.pick b{display:block;font-weight:500;font-size:16px;line-height:24px}
.pick small{color:var(--gray-0);font-size:14px}
.sub-h{margin:0;font-weight:500;font-size:16px;line-height:24px}
.group-label{margin:-8px 0 -12px;color:var(--gray-0)}
.pay-list{display:flex;flex-direction:column;gap:8px}
.pay{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px;border:1px solid var(--gray-p5);border-radius:14px;background:#fff;font-weight:500;text-align:left;transition:border-color .15s}
.pay:hover{border-color:var(--gray-p4)}
.pay[aria-pressed="true"]{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand);background:#fff url(assets/icons/check-brand.svg) right 16px center/20px no-repeat}

/* ---------- Success pages (6:4851, 17:4366) ---------- */
.success-page{position:relative;overflow:hidden}
.success-body{position:relative;z-index:1;width:min(720px,100% - 48px);margin:172px auto 80px;display:flex;flex-direction:column;align-items:center;text-align:center}
.success-body h1{margin:24px 0 0;font-weight:500;font-size:clamp(36px,4vw,56px);line-height:1.15;letter-spacing:-.02em}
.success-body p{margin:20px 0 0;color:var(--gray-0)}
.success-actions{margin-top:40px;display:flex;gap:12px}

/* ---------- Modals (53:3543, 24:6495, 24:7831, 17:3606, pool and governance wizards) ---------- */
dialog.modal{width:min(680px,100% - 32px);max-height:calc(100vh - 48px);padding:32px;border:0;border-radius:24px;background:#fff;color:var(--gray-n3);box-shadow:0 24px 64px rgba(30,30,69,.18)}
dialog.modal::backdrop{background:rgba(30,30,69,.32)}
dialog.modal[open]{animation:pop .18s ease-out}
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
.modal h2{margin:0;font-weight:500;font-size:24px;line-height:32px}
.modal-sub{margin:8px 0 0;font-size:16px;line-height:24px;color:var(--gray-0)}
.modal-x{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--gray-p5);border-radius:50%;background:#fff}
.modal-x:hover{background:var(--gray-p7)}
.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:32px}
.modal-center{text-align:center;padding:0 24px}
.modal-wide{width:min(780px,100% - 32px)}

.mint-card{margin-top:32px;display:flex;align-items:center;gap:16px;padding:12px;border:1px solid var(--gray-p5);border-radius:20px}
.mint-card img{width:64px;height:64px;border-radius:12px;object-fit:cover}
.mint-card > div{flex:1}
.mint-card b{display:block;font-weight:500;font-size:16px;line-height:24px}
.mint-card span{color:var(--gray-0)}
.mint-card span i{font-style:normal;margin:0 6px}
.mint-card dl{margin:0;display:grid;grid-template-columns:auto auto;gap:4px 16px;padding:12px 16px;border-radius:12px;background:var(--gray-p7)}
.mint-card dt{color:var(--gray-0)}
.mint-card dd{margin:0;font-weight:500}

.option-rows{margin-top:32px;display:flex;flex-direction:column;gap:16px}
.option-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;border:1px solid var(--gray-p5);border-radius:20px}
.option-row b{display:block;font-weight:500;font-size:16px;line-height:24px}
.option-row span{display:block;margin-top:4px;color:var(--gray-0)}

.embed-box{margin-top:32px;display:flex;align-items:center;gap:24px;padding:12px 12px 12px 12px;border-radius:14px;background:var(--gray-p7)}
.embed-box code{flex:1;font:400 14px/20px Inter,system-ui,sans-serif;word-break:break-all}
.embed-box button{padding:8px 12px;border-radius:10px;color:var(--brand);font-weight:500}
.embed-box button:hover{background:#eeeefd}

dialog.modal-wizard{width:min(780px,100% - 32px);padding:0;display:grid;grid-template-columns:208px 1fr}
dialog.modal-wizard:not([open]){display:none}
.mw-steps{list-style:none;margin:0;padding:24px;background:#f9f9fc;counter-reset:mw;display:flex;flex-direction:column;gap:16px}
.mw-steps li{counter-increment:mw;display:flex;align-items:center;gap:12px;font-weight:500;color:var(--gray-p2)}
.mw-steps li::before{content:counter(mw);display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--gray-p6);font-size:12px}
.mw-steps li.on{color:var(--gray-n3)}
.mw-steps li.on::before{background:var(--brand);color:#fff}
.mw-steps li.done::before{background:#eeeefd;color:var(--brand)}
.mw-main{position:relative;padding:32px 32px 32px 30px;min-width:0}
.mw-pane{display:flex;flex-direction:column;gap:24px}
.mw-pane[hidden]{display:none}
.mw-pane .modal-sub{margin-top:-16px}
.mw-pane .modal-actions{margin-top:8px}
.select{position:relative}
.select-btn{display:flex;align-items:center;justify-content:space-between;width:100%;height:48px;padding:0 16px;border:1px solid var(--gray-p5);border-radius:14px;background:#fff;text-align:left}
.select-btn[aria-expanded="true"]{border-color:var(--brand)}
.select-btn [data-select-value]{display:flex;align-items:center;gap:10px}
.select-btn .ph{color:var(--gray-p1)}
.select-list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:5;list-style:none;margin:0;padding:6px;border:1px solid var(--gray-p5);border-radius:14px;background:#fff;box-shadow:var(--shadow-pop)}
.select-list[hidden]{display:none}
.select-list li{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;cursor:pointer;font-weight:500}
.select-list li:hover,.select-list li[aria-selected="true"]{background:var(--gray-p7)}
.choices{display:flex;flex-direction:column;gap:8px}
.choices span{display:flex;align-items:center;height:40px;padding:0 12px;border-radius:12px;background:var(--gray-p6)}

/* Wallet approval window */
dialog.wallet-popup{width:360px;padding:0;border-radius:12px;overflow:hidden}
.wp-chrome{display:flex;align-items:center;gap:8px;height:32px;padding:0 12px;background:#2b2b36;color:#fff;font-size:12px}
.wp-site{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid var(--gray-p5)}
.wp-site b{display:block;font-weight:500}
.wp-site span{font-size:12px;color:var(--gray-0)}
.wp-body{padding:20px 16px;background:#f7f9fc}
.wp-body h2{font-size:22px;line-height:28px;text-align:center}
.wp-body > p{margin:4px 0 16px;text-align:center;color:var(--gray-0)}
.wp-perms{list-style:none;margin:0;padding:12px 16px;border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:16px}
.wp-perms li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.wp-perms b{display:block;font-weight:500}
.wp-perms small{color:var(--gray-0);font-size:12px}
.wp-perms em{font-style:normal;color:#0376c9;font-weight:500}
.wp-trust{margin:0;padding:24px 16px 12px;text-align:center;font-size:13px;color:var(--gray-0)}
.wp-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 16px 16px}
.wp-actions button{height:44px;border-radius:30px;font-weight:500}
.wp-cancel{border:1px solid #0376c9;color:#0376c9}
.wp-connect{background:#0376c9;color:#fff}
.wp-connect:hover{background:#0261a6}

.scenario-list{margin-top:24px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.scenario{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border:1px solid var(--gray-p5);border-radius:14px;text-align:left;transition:border-color .15s,background .15s}
.scenario:hover{border-color:var(--brand);background:#f9f9fe}
.scenario b{font-weight:500}
.scenario span{color:var(--gray-0);font-size:13px}
.menu-account small{margin-left:auto;font-weight:400;font-size:12px;color:var(--gray-0)}
.menu-account{min-width:260px}
.menu > button:disabled{color:var(--gray-p1);cursor:default}
.menu > button:disabled:hover{background:none}

.toast.good{background:var(--positive)}

/* ---------- Governance: vote cards (24:10020, 24:10272) ---------- */
.governance{margin-top:60px}
.vote-grid{margin-top:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.vote-card{display:flex;flex-direction:column;gap:16px;padding:20px 24px 16px;border:1px solid var(--gray-p5);border-radius:24px;background:#fff;transition:border-color .15s,box-shadow .15s}
.vote-card:hover{border-color:var(--gray-p4);box-shadow:0 6px 20px rgba(30,30,69,.06)}
.vc-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.vc-top b{font-weight:500;font-size:16px;line-height:24px}
.vc-meta{display:flex;align-items:center;gap:12px;color:var(--gray-0);margin-top:-4px}
.vc-meta .pill-status{margin:0}
.rb{display:flex;flex-direction:column;gap:8px}
.rb-label{display:flex;align-items:baseline;gap:6px;color:var(--gray-0)}
.rb-label b{font-weight:500;color:var(--gray-n3)}
.rb-label small{margin-left:auto;font-size:12px}
.rb-bar{height:12px;border-radius:12px;background:var(--gray-p6);overflow:hidden}
.rb-bar i{display:block;height:100%;border-radius:12px;background:var(--brand)}
.rb-bar.yes i{background:#41c155}
.vc-time{display:flex;align-items:center;justify-content:center;gap:6px;margin:4px 0 0;color:var(--gray-0)}
.vc-time b{font-weight:500;color:var(--gray-n3);margin-left:4px}
.list-page .vote-grid{margin-top:24px}

/* ---------- Asset page: pool and governance (24:8668, 24:9819) ---------- */
.asset-info .section-head.sm h2{margin:0;font-size:16px;line-height:24px}
.pool,.asset-gov{margin-top:24px}
.asset-gov h2{margin:0 0 20px}
.pool-meta{margin-top:20px;display:grid;grid-template-columns:148px 80px 94px 1fr;align-items:start}
.pool-meta .pill-status{margin:0;align-self:flex-start}
.pool-tiles{margin-top:16px;display:grid;gap:8px}
.pool-tiles.two{grid-template-columns:1fr 1fr}
.pool-tiles.three{margin-top:8px;grid-template-columns:repeat(3,1fr)}
.tile{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border:1px solid var(--gray-p5);border-radius:16px}
.tile span{color:var(--gray-0);font-size:13px}
.tile b{font-weight:500;font-size:16px;line-height:24px}

/* ---------- Vote detail (24:7052, 24:6896) ---------- */
.vote-page{width:min(960px,100% - 48px);margin:0 auto;padding:56px 0 32px}
.vote-page .back img{transform:scaleX(-1)}
.vote-token{margin:32px 0 0;display:flex;align-items:center;gap:8px;font-weight:500;color:var(--gray-0)}
.vote-page h1{margin:12px 0 0;max-width:480px;font-weight:500;font-size:36px;line-height:44px;letter-spacing:-.36px}
.vote-page .desc{max-width:480px;margin-top:16px}
.vote-meta{margin-top:40px;display:flex;gap:44px}
.how-to{margin-top:40px;width:min(480px,100%);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;border-radius:16px;background:var(--gray-p7);color:var(--gray-n3);transition:background .15s}
.how-to:hover{background:var(--gray-p6)}
.how-to small{display:block;margin-bottom:4px;font-size:14px;color:var(--gray-0)}
.how-to b{font-weight:400;color:var(--brand)}
.results-card{margin-top:40px;padding:24px;border:1px solid var(--gray-p5);border-radius:24px;display:flex;flex-direction:column;gap:20px}
.results-card h3{margin:0;font-weight:500;font-size:16px;line-height:24px}
.results-card .vc-time{justify-content:flex-start}
.vote-h2{margin:48px 0 0;font-weight:500;font-size:20px;line-height:28px}
.vote-page .table{margin-top:20px}
.table-voters .tr{grid-template-columns:2fr 1fr 2fr;padding:0 16px 0 24px}
.table-voters .pill-status{display:inline-flex;margin:0}

/* ---------- Narrow windows for the new screens ---------- */
@media (max-width:900px){
  .wz-layout{grid-template-columns:minmax(0,1fr)}
  .wz-intro{position:static}
  .stepper{display:flex;gap:24px;margin-top:24px}
  .stepper li + li{margin-top:0}
  .stepper li + li::before{display:none}
  .vote-grid,.scenario-list{grid-template-columns:minmax(0,1fr)}
  dialog.modal-wizard{grid-template-columns:1fr}
  .mw-steps{flex-direction:row;flex-wrap:wrap}
}
@media (max-width:640px){
  .field-row,.field-row.three{grid-template-columns:1fr}
  .photo-row{grid-template-columns:repeat(2,1fr)}
  .pool-meta{grid-template-columns:1fr 1fr;row-gap:16px}
  .pool-tiles.three{grid-template-columns:1fr 1fr}
  .success-actions{flex-direction:column;width:100%}
  .mint-card{flex-wrap:wrap}
}

/* ---------- Splash account picker (option A, explorations/splash-options) ---------- */
.splash .splash-copy{margin-top:max(96px,15vh)}
.splash .splash-copy > p{max-width:400px}
/* Extra-large screens: keep the 1440 composition and centre it (the showcase image is 696px, so it can't grow) */
@media (min-width:1441px){
  .splash{position:relative;max-width:1440px;margin-inline:auto}
}
@media (min-width:901px) and (min-height:961px){
  .splash{align-items:center}
  .splash .splash-copy{align-self:center;margin-top:0}
}
.account-pick{margin-top:40px;display:flex;flex-direction:column;gap:12px;max-width:480px}
.account-row{display:flex;align-items:center;gap:16px;padding:16px 16px 16px 20px;border:1px solid var(--gray-p5);border-radius:16px;background:#fff;text-align:left;transition:border-color .15s,box-shadow .15s}
.account-row:hover{border-color:var(--brand);box-shadow:0 6px 20px rgba(30,30,69,.06)}
.account-row > span{flex:1}
.account-row b{display:block;font-weight:500;font-size:16px;line-height:24px}
.account-row small{display:block;margin-top:2px;color:var(--gray-0);font-size:14px;line-height:20px}
.account-row img{opacity:.7;transition:transform .15s}
.account-row:hover img{transform:translateX(2px)}
.tag{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:2px 8px;border:1px solid var(--gray-p5);border-radius:30px;font-size:12px;line-height:18px;font-weight:500;color:var(--gray-0);background:#fff;white-space:nowrap}
.tag i{width:6px;height:6px;border-radius:50%;background:var(--brand)}

/* ---------- Feedback round 1 ---------- */

/* #2 Back buttons on nested pages (Governance, All assets, Sales module) */
.list-page > .back,.detail-page > .back{align-self:flex-start;margin-bottom:24px}
.list-page > .back img,.detail-page > .back img{transform:scaleX(-1)}

/* #4 All assets */
.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.page-head h1{display:flex;align-items:center;gap:10px}
.page-head .counter{font-size:16px;line-height:22px;padding:2px 9px}
.page-head .btn-primary{border-radius:42px;gap:6px;padding-left:12px}
.asset-grid.wide{margin-top:24px;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.asset-grid.wide .empty-state,.asset-grid.wide .no-match{grid-column:1/-1}

/* #3 Sales module details */
.detail-page{width:min(960px,100% - 48px);margin:0 auto;padding:56px 0 32px;display:flex;flex-direction:column}
.dp-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.eyebrow{margin:0;font-weight:500;color:var(--gray-0)}
.dp-head h1{margin:6px 0 0;display:flex;align-items:center;gap:12px;font-weight:500;font-size:30px;line-height:38px}
.dp-head .desc{margin:8px 0 0;color:var(--gray-0)}
.dp-actions{display:flex;align-items:center;gap:8px}
.dp-actions .btn-outline{gap:8px}
.status-pill{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:42px;font-weight:500;white-space:nowrap}
.status-pill i{width:7px;height:7px;border-radius:50%}
.status-pill.live{background:#1f9d5a;color:#fff}
.status-pill.live i{background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.25)}
.status-pill.off{background:var(--gray-p6);color:var(--gray-0)}
.status-pill.off i{background:var(--gray-p1)}
.dp-actions .btn-primary{border-radius:42px}
.dp-actions .btn-outline{border-radius:42px}
.dp-progress{margin-top:32px;height:auto;padding:22px 23px;display:flex;flex-direction:column;gap:14px}
.dp-progress .bar{margin:0}
.dp-progress .sales-bottom{margin:0}
.dp-progress .sales-bottom small{margin:0;font-size:14px;color:var(--gray-0)}
.dp-stats{margin-top:16px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dp-stats .tile{border:0;background:var(--gray-p7);border-radius:20px;padding:18px 20px}
.dp-stats .tile b{font-size:20px;line-height:28px}
.dp-cols{margin-top:32px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:16px;align-items:start}
.dp-panel{border:1px solid var(--gray-p5);border-radius:24px;padding:22px 23px}
.dp-panel h2{margin:0;display:flex;align-items:center;gap:8px;font-weight:500;font-size:16px;line-height:24px}
.dp-panel .table{margin-top:16px}
.table-sm-assets .tr{grid-template-columns:2fr 1fr 1fr;padding:0 16px;height:52px}
.table-sm-assets a.tr{color:var(--gray-0);transition:background .12s}
.table-sm-assets a.tr:hover{background:var(--gray-p7)}
.asset-cell{display:flex;align-items:center;gap:10px}
.asset-cell img{width:32px;height:32px;border-radius:8px;object-fit:cover}
.dp-kv{margin:16px 0 20px;display:flex;flex-direction:column}
.dp-kv dt{margin-top:16px;font-size:12px;line-height:18px;font-weight:500;color:var(--gray-0)}
.dp-kv dt:first-child{margin-top:0}
.dp-kv dd{margin:4px 0 0;font-weight:500}
.dp-kv .chips{display:flex;flex-wrap:wrap;gap:6px}
.dp-kv .chips span{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid var(--gray-p5);border-radius:30px;font-size:13px}
.dp-h2{margin:40px 0 0;font-weight:500;font-size:20px;line-height:28px}
.detail-page .table-tx{margin-top:20px}
.detail-page > .powered{margin-top:auto;padding-top:60px}
@media (max-width:900px){.dp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dp-cols{grid-template-columns:minmax(0,1fr)}}

/* #5, #7 "Populate demo" on every form with demo data */
.wz-pane,.mw-pane,.auth-body{position:relative}
.btn-demo{position:absolute;top:40px;right:44px;z-index:2;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:1px dashed #b9b9f5;border-radius:30px;background:#f6f6fe;color:var(--brand);font-weight:500;font-size:13px;transition:background .15s,border-color .15s}
.btn-demo:hover{background:#eeeefd;border-color:var(--brand)}
.btn-demo i{font-style:normal;font-size:12px}
.mw-pane .btn-demo{top:10px;right:56px}
.auth-body .btn-demo{top:8px;right:12px}
.auth-body.center .btn-demo{top:-44px}

/* #6 Success: the tick draws itself, a soft glow blooms, the copy rises in (replaces confetti) */
.success-glow{position:absolute;left:50%;top:150px;width:760px;height:760px;margin-left:-380px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(90,91,235,.16) 0%,rgba(90,91,235,.06) 35%,rgba(90,91,235,0) 68%);opacity:0;transform:scale(.6)}
.success-tick{display:block;overflow:visible}
.st-draw{stroke-dasharray:1;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:40px 40px}
.st-check{stroke-dasharray:1;stroke-dashoffset:0}
.success-body > *{opacity:1}
.success-page.play .success-glow{animation:sg-bloom 1.4s cubic-bezier(.2,.8,.2,1) forwards}
.success-page.play .st-ring{animation:st-pop .5s cubic-bezier(.3,1.6,.5,1) both}
.success-page.play .st-draw{animation:st-stroke .6s cubic-bezier(.65,0,.35,1) .1s both}
.success-page.play .st-check{animation:st-stroke .4s cubic-bezier(.65,0,.35,1) .55s both}
.success-page.play .success-body > :not(svg){animation:sb-rise .6s cubic-bezier(.2,.8,.2,1) both}
.success-page.play .success-body h1{animation-delay:.45s}
.success-page.play .success-body p{animation-delay:.6s}
.success-page.play .success-actions{animation-delay:.75s}
@keyframes sg-bloom{to{opacity:1;transform:scale(1)}}
@keyframes st-pop{from{transform:scale(.4);opacity:0}}
@keyframes st-stroke{from{stroke-dashoffset:1}}
@keyframes sb-rise{from{opacity:0;transform:translateY(14px)}}
.st-ring{transform-origin:40px 40px}
@media (prefers-reduced-motion:reduce){
  .success-page.play *,.success-page.play .success-glow{animation:none !important}
  .success-glow{opacity:1;transform:none}
}

/* ---------- Settings and Help and support (not in Figma; same tokens as the detail pages) ---------- */
.page-title{margin:0;font-weight:500;font-size:30px;line-height:38px}
.page-lede{margin:8px 0 0;color:var(--gray-0)}
.set-layout{margin-top:32px;display:grid;grid-template-columns:200px minmax(0,1fr);gap:32px;align-items:start}
.set-nav{position:sticky;top:96px;display:flex;flex-direction:column;gap:2px}
.set-nav a{padding:10px 14px;border-radius:12px;font-weight:500;color:var(--gray-0);transition:background .15s,color .15s}
.set-nav a:hover{background:var(--gray-p7);color:var(--gray-n3)}
.set-nav a[aria-current]{background:var(--gray-p6);color:var(--gray-n3)}
.set-panel{border:1px solid var(--gray-p5);border-radius:24px;padding:28px;display:flex;flex-direction:column;gap:20px}
.set-panel header h2{margin:0;font-weight:500;font-size:20px;line-height:28px}
.set-panel header p{margin:4px 0 0;color:var(--gray-0)}
.set-panel h3{margin:8px 0 -8px;font-size:12px;line-height:18px;font-weight:500;color:var(--gray-0);text-transform:uppercase;letter-spacing:.02em}
.set-panel footer{display:flex;justify-content:flex-end;padding-top:20px;border-top:1px solid var(--gray-p5)}
.set-panel footer .btn-primary{border-radius:42px}
.set-panel footer .btn-primary:disabled{opacity:.45;cursor:default}
.set-photo,.set-row{display:flex;align-items:center;gap:16px;padding:16px;border-radius:20px;background:var(--gray-p7)}
.set-photo .avatar{border-radius:32px;object-fit:cover}
.set-photo > div,.set-row > div{flex:1;min-width:0}
.set-photo b,.set-row b{display:block;font-weight:500}
.set-photo span,.set-row span{display:block;margin-top:2px;font-size:13px;color:var(--gray-0)}
.set-row .btn-outline{display:inline-flex;align-items:center;gap:8px}
.set-logo{height:35px;width:auto}
.set-list,.set-devices{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.set-list li,.set-devices li{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--gray-p5)}
.set-list li:last-child,.set-devices li:last-child{border-bottom:0}
.set-list b,.set-devices b{display:block;font-weight:500}
.set-list span,.set-devices li > div span{display:block;margin-top:2px;color:var(--gray-0)}
.status-pill.sm{height:32px;padding:0 12px;font-size:13px}
.switch{appearance:none;flex:none;margin:0;width:40px;height:24px;border-radius:12px;background:var(--gray-p4);position:relative;cursor:pointer;transition:background .2s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(30,30,69,.25);transition:transform .2s var(--st-ease,ease)}
.switch:checked{background:var(--brand)}
.switch:checked::after{transform:translateX(16px)}

.help-search{margin-top:28px;width:100%;height:48px;border-radius:16px}
.help-topics{margin-top:20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.help-topic{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:20px;border:1px solid var(--gray-p5);border-radius:20px;text-align:left;transition:background .15s,border-color .15s}
.help-topic img{margin-bottom:10px}
.help-topic b{font-weight:500;font-size:16px;line-height:24px}
.help-topic span{color:var(--gray-0)}
.help-topic:hover{background:var(--gray-p7)}
.help-topic[aria-pressed="true"]{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand);background:#f4f4fe}
.help-faq-head{display:flex;align-items:baseline;justify-content:space-between}
.help-faq-head .menu-clear{font-weight:500}
.help-faq{margin-top:16px;border:1px solid var(--gray-p5);border-radius:24px;padding:4px 24px}
.help-faq details{border-bottom:1px solid var(--gray-p5)}
.help-faq details.last{border-bottom:0}
.help-faq summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;font-weight:500;font-size:16px;line-height:24px;cursor:pointer}
.help-faq summary::-webkit-details-marker{display:none}
.help-faq summary::after{content:"";flex:none;width:20px;height:20px;background:url(assets/icons/chevron-down.svg) center/16px no-repeat;transition:transform .2s}
.help-faq details[open] summary::after{transform:rotate(180deg)}
.help-faq details p{margin:-6px 0 18px;max-width:680px;color:var(--gray-0)}
.help-none{margin:0;padding:24px 0;color:var(--gray-0)}
.help-contact{margin-top:16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.help-contact .dp-panel{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.help-contact .dp-panel img:first-child{margin-bottom:10px}
.help-contact b{font-weight:500;font-size:16px;line-height:24px}
.help-contact span{color:var(--gray-0);margin-bottom:16px}
.help-contact .btn-outline{margin-top:auto;display:inline-flex;align-items:center;gap:8px}
@media (max-width:760px){
  .set-layout{grid-template-columns:1fr}
  .set-nav{position:static;flex-direction:row;overflow-x:auto}
  .help-topics,.help-contact{grid-template-columns:1fr}
}

/* ================= Phones (≤640px). Desktop rules above are untouched; this only adapts them. ================= */
@media (max-width:640px){
  /* Things wider than the screen make phones zoom the whole page out, so clip or let them shrink */
  .success-page{overflow:clip}
  .success-glow{width:520px;height:520px;margin-left:-260px;top:110px}
  .set-layout{grid-template-columns:minmax(0,1fr)}

  /* Top bar: logo, Create, account. Home / Transactions / Buyers become a tab bar along the bottom */
  .nav{height:60px;padding:0 12px}
  .nav-logo{width:112px;height:32px}
  .nav .btn-primary{margin-left:0;height:40px;padding:0 14px}
  .nav-links{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:20;margin:0;gap:0;justify-content:space-around;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.94);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--gray-p5)}
  .nav-links a{flex:1;display:grid;place-items:center;height:40px;border-radius:12px;font-size:14px}
  .nav-links [aria-current="page"]{background:var(--gray-p6)}
  body:has(#appnav:not([hidden])){padding-bottom:calc(64px + env(safe-area-inset-bottom))}
  body:has(#appnav:not([hidden])) .toast{bottom:84px}
  .nav .menu{position:fixed;top:64px;left:12px;right:12px;min-width:0;width:auto}

  /* Page gutters and titles */
  .home,.list-page,.detail-page,.vote-page{width:calc(100% - 32px);padding-top:28px}
  .list-page > .back,.detail-page > .back{margin-bottom:16px}
  .list-page{min-height:calc(100dvh - 60px - 64px - env(safe-area-inset-bottom))}
  .list-page .powered{padding:40px 0 24px}
  .list-page h1,.page-title,.dp-head h1,.wz-intro h1{font-size:26px;line-height:34px}
  .home > h1,.welcome h1{font-size:24px;line-height:32px}

  /* Home */
  .stats{gap:10px;margin-top:28px}
  .stat{height:auto;min-height:128px;padding:16px;border-radius:20px;gap:16px}
  .stat .label{font-size:14px;line-height:20px}
  .stat .value{font-size:20px;line-height:28px}
  .stat .sub{flex-wrap:wrap;font-size:13px;line-height:18px}
  .asset-grid,.asset-grid.wide{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .sales-bottom{font-size:14px;flex-wrap:wrap;gap:4px}

  /* Search and tools share a row */
  .toolbar{gap:8px}
  .search{width:auto;flex:1;min-width:0}

  /* Tables become two-line rows: main detail on the left, amount and date on the right */
  .table .tr.th{display:none}
  .table .tr{height:auto;min-height:56px;padding:12px 16px;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:2px}
  .table .tr > :nth-child(1){grid-area:1/1}
  .table .tr > :nth-child(2){grid-area:2/1;font-size:13px}
  .table .tr > :nth-child(3){grid-area:1/2;text-align:right}
  .table .tr > :nth-child(4){grid-area:2/2;text-align:right;font-size:13px}
  .table .tr > *{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .table .tr.empty{display:block;white-space:normal}
  /* Buyers: name and assets on top, email and last active below; the wallet column drops */
  .table-buyers .tr > :nth-child(3){display:none}
  .table-buyers .tr > :nth-child(4){grid-area:1/2}
  .table-buyers .tr > :nth-child(5){grid-area:2/2;text-align:right;font-size:13px}
  .table-buyers .tr > :nth-child(4)::after{content:" assets";font-weight:400;color:var(--gray-0)}
  .table-holdings .tr > :nth-child(3)::after{content:" tokens"}
  .table-voters .tr > :nth-child(2)::before{content:"Power ";font-weight:400;color:var(--gray-0)}
  .table-sm-assets .tr{height:auto}

  /* Buyer drawer fills the screen */
  .drawer{top:8px;right:8px;bottom:8px;width:calc(100% - 16px);padding:64px 16px 24px}
  .drawer-stats{margin-top:32px;gap:10px}
  .drawer-stats .stat{min-height:112px}

  /* Asset page: photos first, Back floats on the photo */
  .asset-page{position:relative;width:calc(100% - 32px);padding-top:16px}
  .asset-page .gallery{order:-1;max-width:none}
  .asset-page .gallery-main{aspect-ratio:4/3}
  .asset-page .gallery-thumbs{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
  .asset-info > .back{position:absolute;top:28px;left:12px;z-index:3;background:rgba(255,255,255,.92);box-shadow:0 2px 8px rgba(30,30,69,.16)}
  .asset-info > .asset-token{margin-top:4px}
  .asset-info h1,.vote-page h1{font-size:28px;line-height:36px}
  .kv-row{grid-template-columns:1fr 1fr;row-gap:20px;column-gap:16px}
  .kv-row > .kv:nth-child(3){grid-column:1/-1}
  .rule-560{width:100%}

  /* Sales module details */
  .dp-head{align-items:flex-start}
  .dp-actions{width:100%;flex-wrap:wrap}
  .dp-stats{gap:10px}
  .dp-stats .tile{padding:14px 16px}
  .dp-stats .tile b{font-size:17px;line-height:24px}
  .dp-panel{padding:18px 16px}

  /* Wizards: one column, compact stepper (only the current step keeps its label) */
  .wz-layout{width:calc(100% - 32px);margin:20px auto 48px;gap:24px}
  .wz-intro > p{max-width:none}
  .stepper{gap:8px;align-items:center}
  .stepper li{gap:8px}
  .stepper li:not(.on) span{display:none}
  .stepper li.on{flex:1;min-width:0}
  .stepper span{font-size:15px;line-height:20px}
  .stepper i{width:32px;height:32px}
  .wz-pane{padding:20px 16px}
  .wz-actions.sticky{margin:0 -16px -20px;padding:16px 16px 20px}

  /* Populate demo sits above the form instead of over its heading */
  .btn-demo,.mw-pane .btn-demo,.auth-body .btn-demo,.auth-body.center .btn-demo{position:static;align-self:flex-start;margin-bottom:-8px}

  /* Dialogs: sheets with comfortable padding */
  dialog.modal{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:24px 16px}
  dialog.modal-wizard{padding:0;grid-template-columns:1fr}
  .mw-steps{padding:16px;gap:12px}
  .mw-main{padding:20px 16px}
  .modal h2{font-size:20px;line-height:28px;padding-right:36px}
  .modal-actions{flex-wrap:wrap}
  dialog.wallet-popup{width:calc(100% - 32px)}

  /* Votes */
  .vc-time{display:block;text-align:center;font-size:13px}
  .vc-time img{display:inline-block;vertical-align:-5px;margin-right:4px}
  .vc-time b{margin-left:2px}
  .results-card .vc-time{text-align:left}

  /* Settings */
  .set-nav{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .set-nav a{text-align:center;background:var(--gray-p7)}
  .set-layout{margin-top:20px;gap:20px}
  .set-panel{padding:20px 16px;border-radius:20px}
  .set-photo,.set-row{flex-wrap:wrap}
  .set-photo .btn-outline,.set-row .btn-outline{width:100%;justify-content:center}
  .set-devices li{flex-wrap:wrap;gap:10px}

  /* Help */
  .help-topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .help-topic{padding:16px}
  .help-topic span{font-size:13px;line-height:18px}
  .help-faq{padding:0 16px}
  .help-faq summary{font-size:15px;line-height:22px}

  /* Success pages */
  .success-body{margin-top:96px}
  .success-body h1{font-size:30px;line-height:38px}

  .powered{margin-top:40px}
}
