body,html{padding:0;margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f8fafc;color:#1e293b;min-height:100vh}*,:after,:before{box-sizing:border-box}.nav{position:-webkit-sticky;position:sticky;top:0;z-index:10;background:rgba(255,255,255,.85);border-bottom:1px solid #e2e8f0;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.nav__inner{max-width:1200px;margin:0 auto;padding:.75rem 1rem;display:flex;align-items:center;justify-content:space-between;gap:1.5rem}.nav__left{gap:.6rem;min-width:0}.env-badge,.nav__left{display:inline-flex;align-items:center}.env-badge{border-radius:999px;border:1px solid #ddd6fe;padding:.15rem .55rem;font-size:.72rem;color:#7c3aed;background:#ede9fe;white-space:nowrap}.nav__brand{font-weight:700;letter-spacing:.04em;text-decoration:none;color:#1e293b}.nav__links{display:flex;gap:1rem;font-size:.9rem}.nav__links a{color:#475569;text-decoration:none}.nav__links a:hover{color:#7c3aed}.wallet-button{border-radius:999px;border:1px solid #ddd6fe;padding:.3rem .9rem;background:#ede9fe;color:#5b21b6;font-size:.8rem;cursor:pointer}.wallet-button:hover:not(:disabled){background:#ddd6fe;border-color:#c4b5fd}.wallet-button:disabled{opacity:.6;cursor:default}.wallet-status{font-size:.8rem;color:#475569}.wallet-status--connected{border-radius:999px;border:1px solid #86efac;padding:.2rem .7rem;background:#dcfce7;color:#166534}.page{max-width:1200px;margin:0 auto;padding:2.5rem 1rem}.hero{padding:4rem 0}.hero__inner{text-align:center;max-width:640px;margin:0 auto}.hero__title{font-size:2.25rem;margin-bottom:1rem;color:#0f172a}.hero__subtitle{color:#64748b;font-size:.95rem}.hero__actions{margin-top:1.75rem;display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem}.card{border:1px solid #e2e8f0;background:#ffffff;border-radius:16px;padding:1.25rem;box-shadow:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);transition:border-color .2s,box-shadow .2s}.card:hover{border-color:#c4b5fd;box-shadow:0 4px 12px rgba(124,58,237,.08)}.card__title{margin:0 0 .5rem;font-size:1.25rem;color:#0f172a}.card__hint{margin:0 0 1rem;color:#64748b;font-size:.9rem;line-height:1.4}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:.75rem;gap:.75rem}@media (max-width:720px){.grid{grid-template-columns:1fr}.nav__links{display:none}}.field{display:flex;flex-direction:column;gap:.35rem}.field__label{font-size:.8rem;color:#64748b}.field__input{border-radius:12px;border:1px solid #e2e8f0;background:#ffffff;color:#1e293b;padding:.55rem .75rem}.field__input:focus{outline:none;border-color:#a78bfa;box-shadow:0 0 0 3px rgba(139,92,246,.15)}.field__input::placeholder{color:#94a3b8}.actions{margin-top:1rem;display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.btn{border-radius:12px;border:1px solid #e2e8f0;padding:.55rem .9rem;background:#ffffff;color:#374151;cursor:pointer;transition:background .15s,border-color .15s;font-weight:500}.btn:hover:not(:disabled){background:#f5f3ff;border-color:#c4b5fd}.btn:disabled{opacity:.5;cursor:default}.btn--primary{border-color:#8b5cf6;background:#7c3aed;color:#ffffff}.btn--primary:hover:not(:disabled){background:#6d28d9;border-color:#7c3aed}.btn--secondary{border-color:#e2e8f0;background:#f8fafc;color:#475569}.btn--secondary:hover:not(:disabled){background:#f1f5f9;border-color:#cbd5e1}.divider{height:1px;background:#e2e8f0;margin:1.25rem 0}.quote{margin-top:1rem;border-radius:12px;border:1px solid #e2e8f0;padding:.75rem;background:#f8fafc}.quote__row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.4rem 0}.alert{margin-top:1rem;border-radius:12px;padding:.75rem .9rem;border:1px solid #e2e8f0;background:#f8fafc;color:#475569}.alert--error{border-color:#fca5a5;background:#fef2f2;color:#991b1b}.alert--warn{border-color:#fcd34d;background:#fffbeb;color:#92400e}.alert--ok{border-color:#86efac;background:#f0fdf4;color:#166534}.muted{color:#64748b;font-size:.9rem}.danger{color:#dc2626}.success{color:#16a34a}.toast-viewport{position:fixed;top:1rem;right:1rem;display:flex;flex-direction:column;gap:.5rem;z-index:50}.toast{min-width:220px;max-width:320px;border-radius:12px;padding:.6rem .9rem;font-size:.85rem;border:1px solid #e2e8f0;background:#ffffff;color:#1e293b;box-shadow:0 10px 30px rgba(0,0,0,.12)}.toast--info{border-color:#a78bfa;background:#f5f3ff}.toast--success{border-color:#86efac;background:#f0fdf4}.toast--error{border-color:#fca5a5;background:#fef2f2}.link{color:#7c3aed;text-decoration:none}.link:hover{color:#6d28d9;text-decoration:underline}.status-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;margin-top:.5rem;margin-bottom:1.5rem}.status-header__meta{display:flex;gap:1.5rem;font-size:.85rem}.status-header__meta-label{color:#94a3b8;text-transform:uppercase;letter-spacing:.06em;font-size:.7rem;margin-bottom:.15rem}.status-header__meta-value{font-weight:500;color:#1e293b}.status-badge{display:inline-flex;align-items:center;padding:.2rem .6rem;border-radius:999px;border:1px solid #c4b5fd;background:#ede9fe;margin-bottom:.35rem}.status-badge__label{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#5b21b6}.status-stepper{margin-top:1.25rem;padding:1rem .25rem .75rem;border-radius:16px;border:1px solid #e2e8f0;background:#f8fafc;display:flex;gap:.75rem;overflow-x:auto}.status-stepper__item{display:flex;align-items:center;gap:.5rem;min-width:180px}.status-step{display:flex;align-items:center;gap:.6rem;padding:.55rem .75rem;border-radius:12px;border:1px solid #e2e8f0;background:#ffffff}.status-step--done{border-color:#86efac;background:#f0fdf4}.status-step--current{border-color:#a78bfa;box-shadow:0 0 0 2px rgba(139,92,246,.15)}.status-step--pending{opacity:.6}.status-step--failure{border-color:#fca5a5;background:#fef2f2}.status-step__icon{width:16px;height:16px;border-radius:999px;border:2px solid #cbd5e1;background:#f1f5f9}.status-step--done .status-step__icon{border-color:#22c55e;background:#22c55e}.status-step--current .status-step__icon{border-color:#7c3aed;background:#7c3aed}.status-step--failure .status-step__icon{border-color:#ef4444;background:#ef4444}.status-step__content{display:flex;flex-direction:column;gap:.15rem}.status-step__title{font-size:.8rem;color:#1e293b}.status-step__subtitle{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8}.status-stepper__connector{flex:1 1}.status-stepper__line{height:2px;border-radius:999px;background:#e2e8f0}.status-stepper__line--done{background:linear-gradient(90deg,#22c55e,#7c3aed)}.status-stepper__line--current{background:linear-gradient(90deg,#a78bfa,#e2e8f0)}.status-section{margin-top:1.25rem}.status-section__title{margin:0 0 .5rem;font-size:1rem;color:#0f172a}.status-table{margin-top:.35rem;border-radius:12px;border:1px solid #e2e8f0;overflow:hidden;font-size:.85rem}.status-table__header,.status-table__row{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.6fr;grid-gap:.5rem;gap:.5rem;padding:.45rem .75rem}.status-table__header{background:#f1f5f9;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b}.status-table__row:nth-child(odd){background:#fafafa}.status-table__row:nth-child(2n){background:#ffffff}.state-badge{display:inline-flex;align-items:center;padding:.1rem .45rem;border-radius:999px;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;border:1px solid #e2e8f0}.state-badge--paying{border-color:#fcd34d;background:#fffbeb;color:#92400e}.state-badge--completed,.state-badge--confirmed,.state-badge--delegating,.state-badge--matched,.state-badge--paid,.state-badge--reclaiming{border-color:#86efac;background:#f0fdf4;color:#166534}.state-badge--expired,.state-badge--failed,.state-badge--refunded,.state-badge--refunding{border-color:#fca5a5;background:#fef2f2;color:#991b1b}.auto-buy-rules{display:flex;flex-direction:column;gap:1rem;margin-top:.5rem}.auto-buy-rule-card{padding:1rem 1rem .9rem}.auto-buy-rule-card__header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.75rem}.auto-buy-rule-card__title{font-size:1rem;font-weight:600;margin-bottom:.25rem;color:#0f172a}.auto-buy-rule-card__meta{display:flex;flex-wrap:wrap;gap:.5rem 1rem;font-size:.8rem;color:#64748b}.auto-buy-progress{margin-top:.25rem}.auto-buy-progress__label{font-size:.85rem;margin-bottom:.35rem;color:#374151}.auto-buy-progress__bar{position:relative;width:100%;height:6px;border-radius:999px;background:#e2e8f0;overflow:hidden}.auto-buy-progress__bar-fill{position:absolute;top:0;left:0;bottom:0;border-radius:999px;background:linear-gradient(90deg,#7c3aed,#06b6d4);transition:width .25s ease-out}.auto-buy-progress__hint{margin-top:.2rem;font-size:.7rem;color:#94a3b8}@media (max-width:720px){.status-header{flex-direction:column;align-items:flex-start}.status-header__meta{width:100%;justify-content:space-between}.status-table__header,.status-table__row{grid-template-columns:1.3fr 1fr 1fr 1.5fr;font-size:.8rem}}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:.75rem;gap:.75rem}.form-field{display:flex;flex-direction:column;gap:.35rem}@media (max-width:720px){.form-grid{grid-template-columns:1fr}}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:.75rem;gap:.75rem}.stats-grid__item{border:1px solid #e2e8f0;background:#ffffff;border-radius:12px;padding:1rem;text-align:center;box-shadow:0 1px 2px rgba(0,0,0,.04)}.stats-grid__label{font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;margin-bottom:.3rem}.stats-grid__value{font-size:1.25rem;font-weight:600;color:#0f172a}@media (max-width:720px){.stats-grid{grid-template-columns:repeat(2,1fr)}}.fee-breakdown{margin-top:.5rem;border-radius:12px;border:1px solid #e2e8f0;padding:.75rem;background:#f8fafc}.fee-breakdown__row{display:flex;justify-content:space-between;align-items:center;padding:.3rem 0;font-size:.9rem}.fee-breakdown__row--total{border-top:1px solid #e2e8f0;margin-top:.25rem;padding-top:.5rem;font-weight:600;color:#0f172a}.duration-presets{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.35rem}.duration-presets__btn{border-radius:8px;border:1px solid #e2e8f0;padding:.3rem .65rem;background:#ffffff;color:#475569;font-size:.78rem;cursor:pointer;transition:border-color .15s,background .15s}.duration-presets__btn:hover{border-color:#c4b5fd;background:#f5f3ff}.duration-presets__btn--active{border-color:#7c3aed;background:#ede9fe;color:#5b21b6;font-weight:500}.input{border-radius:12px;border:1px solid #e2e8f0;background:#ffffff;color:#1e293b;padding:.55rem .75rem}.input:focus{outline:none;border-color:#a78bfa;box-shadow:0 0 0 3px rgba(139,92,246,.15)}.input::placeholder{color:#94a3b8}.stats-row{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:.75rem;gap:.75rem}@media (max-width:720px){.stats-row{grid-template-columns:repeat(2,1fr)}}.status-table{display:grid;grid-gap:0;gap:0}.status-table__cell{padding:.45rem .75rem;font-size:.85rem;border-bottom:1px solid #f1f5f9;display:flex;align-items:center}.status-table__cell:nth-child(odd){background:#fafafa}.delegation-card{border:1px solid #e2e8f0;background:#ffffff;border-radius:12px;padding:1rem;display:flex;flex-direction:column;gap:.5rem;transition:border-color .2s,box-shadow .2s;box-shadow:0 1px 2px rgba(0,0,0,.04)}.delegation-card:hover{border-color:#c4b5fd;box-shadow:0 2px 8px rgba(124,58,237,.08)}.delegation-card__header{display:flex;justify-content:space-between;align-items:center}.delegation-card__seller{font-family:monospace;font-size:.8rem;color:#7c3aed}.delegation-card__details{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:.5rem;gap:.5rem;font-size:.8rem}.delegation-card__detail-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;margin-bottom:.15rem}.delegation-card__detail-value{font-weight:500;color:#1e293b}.fill-progress{margin-top:.75rem}.fill-progress__bar{position:relative;width:100%;height:8px;border-radius:8px;background:#e2e8f0;overflow:hidden}.fill-progress__bar-fill{position:absolute;top:0;left:0;bottom:0;border-radius:8px;background:linear-gradient(90deg,#8b5cf6,#3b82f6);transition:width .5s ease}.fill-progress__label{display:flex;justify-content:space-between;font-size:.75rem;color:#94a3b8;margin-bottom:.25rem}.payment-ledger{display:grid;grid-gap:0;gap:0;border-radius:12px;border:1px solid #e2e8f0;overflow:hidden;font-size:.85rem}.payment-ledger__header{background:#f1f5f9;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b}.payment-ledger__header,.payment-ledger__row{display:grid;grid-template-columns:.8fr 1fr 1fr 1fr .8fr .6fr;grid-gap:.5rem;gap:.5rem;padding:.45rem .75rem}.payment-ledger__row{border-bottom:1px solid #f1f5f9;align-items:center}.payment-ledger__row:nth-child(odd){background:#fafafa}.payment-ledger__row:nth-child(2n){background:#ffffff}.earnings-chart{display:flex;align-items:flex-end;gap:4px;height:120px;padding:.5rem 0}.earnings-bar{flex:1 1;min-width:0;border-radius:4px 4px 0 0;background:linear-gradient(180deg,#8b5cf6,#a78bfa);transition:height .3s ease;position:relative}.earnings-bar:hover{opacity:.85}.earnings-bar__tooltip{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:#ffffff;border:1px solid #e2e8f0;border-radius:6px;padding:.25rem .5rem;font-size:.7rem;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .15s;color:#1e293b;box-shadow:0 2px 8px rgba(0,0,0,.1)}.earnings-bar:hover .earnings-bar__tooltip{opacity:1}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}