/* Owed / SOCIAL EDITION — local assets, expressive without sacrificing payment clarity */
:root{
  --bg:#fff9f2;--paper:#fffdfa;--ink:#203c32;--muted:#6d7970;--line:#eadfd1;
  --green:#d8f3e6;--green-dark:#245744;--red:#d0524e;
  --coral:#ff8377;--peach:#ffd1b5;--butter:#ffe4a4;--lavender:#eadbff;--blue:#d9eaff;
  --soft-shadow:0 10px 25px rgba(65,53,43,.075);
  color:var(--ink);background:var(--bg);
  font-family:"Aptos","Segoe UI",Inter,system-ui,sans-serif;
}
html{scroll-behavior:smooth}
body{background:radial-gradient(ellipse at 3% 3%,#ffe9d7 0,transparent 28%),linear-gradient(135deg,#fffbf5 0%,#fbf7ef 55%,#f8f4ec 100%);color:var(--ink)}
.app-shell{max-width:1550px;margin:0 auto;background:transparent}
.topbar{height:82px;padding:0 clamp(24px,4vw,68px);border-bottom:1px solid #e8e0d5;background:#fffbf8d9;backdrop-filter:blur(12px)}
.logo{font-family:Georgia,serif;font-size:34px;letter-spacing:-2.8px;color:#183e33}
.logo-glyph{display:none}.logo .brand-period{color:var(--coral)}
.brand-spark{font-family:system-ui,sans-serif;color:var(--coral);font-size:18px;align-self:flex-start;margin-left:-7px;margin-top:1px;transform:rotate(24deg)}
.header-center{font-size:12px;letter-spacing:normal;display:flex;gap:27px;align-items:center}
.header-center a{text-decoration:none;color:#566e61;font-weight:750;position:relative;transition:color .18s}
.header-center a:hover{color:#eb7061}.nav-heart{color:var(--coral);font-size:18px;transform:rotate(-14deg)}
.head-actions{gap:15px}.network{display:inline-flex;align-items:center;gap:7px;background:#e9f4ea;color:#336a4b;border-radius:100px;padding:9px 11px;font-size:10px;letter-spacing:.5px}
.network-dot{width:7px;height:7px;background:#4d9968;border-radius:50%;box-shadow:0 0 0 3px #cbecd4}
.wallet-btn{border:1.5px solid #2d5c48;border-radius:100px;padding:11px 15px;gap:12px;font-size:12px;color:#2b5a46;transition:transform .15s,background .15s}
.wallet-btn:hover{background:#2b5a46;color:white;transform:translateY(-2px)}
.workspace{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);min-height:calc(100vh - 130px);align-items:stretch}
.left-panel{padding:43px clamp(24px,4vw,65px) 44px;border-right:1px solid #ebded1;background:radial-gradient(circle at 82% 17%,#ffefdf 0,transparent 34%),#fff8f2;min-width:0;display:block}
.right-panel{padding:47px clamp(24px,3.7vw,64px) 38px;background:#fffdfa;min-width:0}
.hero-top{display:flex;align-items:center;justify-content:space-between}
.eyebrow{font-size:10px;letter-spacing:1.8px;color:#597563}
.eyebrow-dot{background:var(--coral);box-shadow:0 0 0 4px #ffdbd2}
.hero-doodle{font-size:22px;color:#fb907e;letter-spacing:4px;transform:rotate(12deg)}
h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(42px,4.1vw,67px);letter-spacing:-.055em;line-height:1.09;font-weight:700;margin:19px 0 15px;color:#183c30}
h1 em{font-family:Georgia,serif;color:#ee776b;font-style:italic;letter-spacing:-.055em}
.hero-dot{font:30px system-ui,sans-serif;color:#f4bb49;margin-left:9px;vertical-align:top;display:inline-block;transform:rotate(-20deg)}
.intro{font-size:14px;line-height:1.65;color:#69796f;max-width:500px;margin:0 0 18px}
.intro strong{font-weight:720;color:#305b48}
.friend-stage{height:180px;position:relative;isolation:isolate;margin:7px 0 0;max-width:550px}
.friend-blob{position:absolute;border-radius:60% 45% 35% 42%;transform:rotate(-7deg);filter:blur(.3px);z-index:-1}
.blob-one{width:78%;height:150px;background:linear-gradient(130deg,#ffe0cf,#ffc3ad);left:4%;top:10px}
.blob-two{background:#e7d8ff;width:39%;height:117px;right:3%;top:21px;transform:rotate(15deg)}
.friend-cast{height:100%;display:flex;align-items:end;padding:0 23px 3px 28px}
.cast-member{width:clamp(89px,8vw,124px);height:clamp(89px,8vw,124px);margin-left:-22px;border-radius:50%;border:5px solid #fff9f2;box-shadow:0 10px 16px #aa79602c;animation:friend-float 5s ease-in-out infinite;overflow:hidden;flex-shrink:0;transform-origin:bottom center}
.cast-0{margin-left:0;z-index:3;animation-delay:-.5s;transform:rotate(-7deg)}
.cast-1{z-index:5;animation-delay:-1.7s;margin-bottom:19px;transform:rotate(8deg)}
.cast-2{z-index:4;animation-delay:-2.3s;margin-bottom:6px;transform:rotate(-5deg)}
.cast-3{z-index:2;animation-delay:-3.4s;margin-bottom:19px;transform:rotate(7deg)}
.avatar-art{width:100%;height:100%;display:block}
.scene-sticker{position:absolute;font-family:system-ui,sans-serif;font-weight:850;z-index:6;pointer-events:none;animation:sticker-sway 4s ease-in-out infinite}
.scene-sticker-heart{color:#ff776c;font-size:37px;left:1%;top:7px;transform:rotate(-20deg)}
.scene-sticker-star{color:#f3ad31;font-size:36px;right:5%;top:-6px;animation-delay:-1s}
.scene-sticker-spark{color:#ff8d7b;font-size:26px;right:0;bottom:41px;animation-delay:-2s}
.scene-mini-note{font-size:11px;letter-spacing:.2px;font-weight:800;position:absolute;right:8%;top:49px;z-index:6;color:#497a61;transform:rotate(8deg);background:#fffaf0b8;padding:5px 9px;border-radius:11px}
.scene-mini-note span{color:#f47a68}
.scene-quote{position:absolute;right:1%;bottom:0;z-index:7;background:#fffdf9;border:1px solid #eadbc8;padding:8px 12px;border-radius:13px 13px 13px 3px;font-size:11px;font-weight:750;box-shadow:0 6px 13px #66563c1b;transform:rotate(3deg)}
.scene-quote span{font-size:15px}
.stage-note{display:flex;align-items:center;gap:12px;margin:3px 0 26px;padding:0 8px;font-size:12px;line-height:1.48;color:#5c7365;transform:rotate(-1deg)}
.stage-note strong{color:#20513c;font-family:Georgia,serif;font-size:17px;font-style:italic}
.hand-heart{font-size:37px;line-height:1;color:#fc8b7c;transform:rotate(-13deg)}
.stage-smile{margin-left:auto;color:#e5a737;font-size:27px}
.capture{border:1px solid #e3d8ca;background:white;border-radius:22px;box-shadow:0 9px 0 #e9e0d5,0 19px 30px #89715b16;overflow:hidden}
.capture-heading{padding:18px 21px;background:#fff8ed;border-bottom:1px solid #ecdfcf;color:#355b46;font-size:11px}
.capture-sub{color:#8c978b;font-size:9px}
.capture-tabs{border-bottom:1px solid #eee7df;padding:9px 11px 8px;gap:8px;display:grid;grid-template-columns:repeat(3,1fr)}
.tab{border:0;border-radius:11px;padding:12px 5px;color:#748277;font-size:12px;transition:background .2s,transform .2s}
.tab:last-child{border:0}
.tab.active{background:#daf1e0;color:#2a6145;box-shadow:inset 0 0 0 1px #bde2ca}
.tab:hover{transform:translateY(-1px);background:#f4f6eb}
.tab.active:hover{background:#d2ebda}
.tab-icon{font-size:15px;margin-right:6px}
.capture-body{padding:17px 19px 19px}
.field-label{font-size:10px;letter-spacing:1.1px;color:#64796a}
textarea{border:1px solid #e7dfd6;border-radius:12px;background:#fffcf8;min-height:108px;padding:13px 14px;color:#334d3d;font-size:13px}
textarea:focus{outline:2px solid #b7dbc5;outline-offset:1px}
.input-foot{margin:9px 0 14px}
.action-btn{border:0;border-radius:12px;background:#245944;color:#fff;padding:15px 18px;box-shadow:0 4px 0 #143e30;transition:transform .15s,box-shadow .15s,background .15s}
.action-btn:hover:not(:disabled){background:#337359;transform:translateY(-2px);box-shadow:0 6px 0 #173e2e}
.action-btn:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #173e2e}
.action-btn span{color:#ffd590;font-size:20px}
.notice{border-radius:12px;margin:2px 18px 18px;background:#e4f6e5;border:1px solid #b8e0bf;color:#2d684d;font-weight:630}
.notice.error{background:#ffe7e0;border-color:#f8c5b8;color:#a65142}
.lower-left{display:flex;gap:14px;margin:38px 0 0;padding:19px 2px 0;border-top:1px dashed #dcd1c6}
.privacy-icon{width:38px;height:38px;border-radius:13px;background:#e6e0fb;color:#8071b1;display:grid;place-items:center;flex-shrink:0}
.lower-left span{font-size:10px;letter-spacing:1px;font-weight:800;color:#45644d}
.lower-left p{margin:5px 0 3px;max-width:none}
.link-btn{text-align:left;color:#d06d59;text-decoration:none;font-weight:800;padding:7px 0;transition:transform .15s}
.link-btn:hover{transform:translateX(3px)}
.inbox-head{align-items:start}
.section-number{color:#54745f;font-size:10px}
.inbox-star{color:#f4ae4c;font-size:17px}
h2{font-family:Georgia,serif;font-size:clamp(32px,3.1vw,46px);letter-spacing:-.055em;margin:7px 0 0}
h2 em{font-weight:500;color:#ee8476}
.inbox-subtitle{margin:11px 0 0;font-size:13px;color:#808b7c;line-height:1.5}
.clear-btn{background:#f2efe9;border:1px solid #e6ded2;border-radius:100px;padding:9px 13px;text-decoration:none;font-weight:750}
.clear-btn:hover{background:#ffebe0;color:#ca675a}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:0;margin:28px 0 29px}
.metric{border:1px solid #e9e4dc;border-radius:16px;padding:17px 15px 16px!important;gap:10px;min-width:0;min-height:110px;position:relative;overflow:hidden;transition:transform .18s}
.metric:hover{transform:translateY(-3px)}
.metric:not(:first-child){padding-left:15px!important}.metric:last-child{border:1px solid #e9e4dc}
.metric-open{background:#ffe7df}.metric-money{background:#fff0bf}.metric-done{background:#e1f3df}
.metric>span{font-size:9px;letter-spacing:.85px;color:#636e60;display:flex;align-items:center;justify-content:space-between}
.metric>span i{font-style:normal;font-size:19px;color:#f18e7d}
.metric-money>span i{color:#dda740}.metric-done>span i{color:#6aa77a}
.metric strong{font-size:clamp(25px,2.7vw,37px);color:#214234}
.metric small{font-size:10px;color:#8b9485}
.inbox-controls{border:0;padding-bottom:14px;flex-wrap:wrap}
.inbox-controls>span{font-size:11px;color:#355743}
.inbox-count-label{margin-left:5px;color:#95a092;font-size:9px;font-weight:650;letter-spacing:0}
.filters{gap:5px;flex-wrap:wrap}
.filter{border:1px solid transparent;border-radius:100px;padding:9px 11px;font-size:11px;text-decoration:none!important;transition:background .16s,color .16s}
.filter.active{background:#285c46;color:white}
.filter:hover:not(.active){background:#edf4eb;color:#38694b}
.inbox{gap:15px;display:flex;flex-direction:column;padding:4px 0 18px}
.obligation{background:white;border:1px solid #ebe5dc;border-radius:19px;padding:17px 18px 15px;box-shadow:0 6px 15px #5446350b;transition:transform .22s,box-shadow .22s;animation:card-enter .42s cubic-bezier(.22,.8,.22,1) both;animation-delay:calc(min(var(--i),8)*45ms)}
.obligation:hover{transform:translateY(-3px);box-shadow:0 13px 27px #54463518}
.obligation.status-verified{border-color:#c6e6cf;background:#f9fffa}
.obligation.status-dismissed{background:#faf9f6;opacity:.86}
.card-top{display:flex;align-items:center;gap:12px;min-width:0}
.item-icon{width:46px;height:46px;display:grid;place-items:center;flex-shrink:0;border-radius:14px;background:#fff1de;font-size:24px;border:1px solid #f4e7d6}
.card-titles{flex:1;min-width:0}
.item-title{font-size:15px;line-height:1.28;color:#273e31;font-weight:800;margin:0 0 6px;overflow-wrap:anywhere}
.card-meta{font-size:10px;color:#909990;overflow-wrap:anywhere;line-height:1.5}
.card-amount{display:flex;flex-direction:column;align-items:flex-end;gap:5px;min-width:70px}
.item-price{font-size:22px;line-height:1.1;letter-spacing:-.05em}
.state-pill{display:inline-flex;align-items:center;font-size:9px;font-weight:850;border-radius:100px;padding:6px 9px;white-space:nowrap}
.state-pill.open{background:#ffe0d9;color:#b85f50}
.state-pill.verified{background:#d8efde;color:#2c7852}
.state-pill.pending,.state-pill.review{background:#fff0c8;color:#99742e}
.state-pill.dismissed{background:#eaeae6;color:#6b746d}
.state-pill.completed{background:#e3e5ff;color:#6166a1}
.card-story{margin:14px 0 11px;padding:12px 12px 12px 9px;border-radius:13px;display:flex;align-items:center;gap:10px;background:#f8f7f4;position:relative;min-width:0}
.small-avatar{width:37px;height:37px;border:3px solid white;border-radius:50%;box-shadow:0 2px 6px #3d332124;flex-shrink:0;overflow:hidden}
.story-copy{flex:1;min-width:0}
.story-label{font-size:8px;letter-spacing:1px;color:#9aa095;font-weight:800}
.item-evidence{font-family:"Aptos","Segoe UI",system-ui,sans-serif;font-style:normal;font-size:12px;font-weight:590;line-height:1.55;color:#526558;margin:5px 0 0;overflow-wrap:anywhere}
.story-spark{position:absolute;right:10px;top:7px;color:#efb65f;font-size:16px}
.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:13px;flex-wrap:wrap}
.item-category{font-size:10px;text-transform:none;letter-spacing:0;color:#748b78;font-weight:750;display:flex;align-items:center;gap:6px}
.kind-dot{width:7px;height:7px;border-radius:50%;background:#fba47c}
.item-actions{justify-content:flex-end;gap:7px;flex-wrap:wrap;max-width:100%}
.small-btn{border:1px solid #d8e1d8;border-radius:10px;padding:10px 11px;font-size:11px;font-weight:750;background:#fffcf9;color:#335947;transition:background .16s,transform .16s}
.small-btn.solid{border-color:#285d48;color:#fff;background:#285d48}
.small-btn:hover,.small-btn.solid:hover{background:#dcf1dc;color:#24543f;transform:translateY(-1px)}
.small-btn.ghost{color:#92948c;border:0;text-decoration:underline;text-underline-offset:3px;background:transparent;padding-inline:4px}
.small-btn.ghost:hover{color:#aa675b;background:transparent}
.sample-tag{border-radius:20px;background:#fff1bd;color:#876b3b;padding:4px 7px;font-size:9px}
.outcome-note{margin:12px 0 0;color:#95988f;font-size:10px}
.status-text{font-size:10px;letter-spacing:0;text-transform:none;color:#738777}
.empty{padding:37px 24px 47px;border:2px dashed #eedfd4;border-radius:21px;background:#fff8f3;margin-top:5px;min-height:320px}
.empty-art{height:107px;position:relative;display:flex;align-items:center;justify-content:center}
.empty-face{display:block;width:89px;height:89px;border-radius:50%;border:5px solid white;box-shadow:0 8px 17px #c69a8c42;overflow:hidden;transform:rotate(-8deg)}
.empty-confetti,.empty-heart{position:absolute;font-size:32px;color:#edb35c}
.empty-confetti{left:calc(50% - 90px);top:10px;animation:sticker-sway 3s ease-in-out infinite}
.empty-heart{right:calc(50% - 94px);top:50px;color:#f18d80;animation:sticker-sway 4s ease-in-out infinite reverse}
.empty h3{font-family:Georgia,serif;font-size:27px;margin:13px 0 5px}
.empty p{max-width:320px;font-size:12px}
.empty-cta{text-decoration:none;background:#275b45;color:#fff;border-radius:10px;padding:11px 18px;font-size:11px;font-weight:800;margin:11px 0 0;display:inline-block}
.empty-cta:hover{background:#3b7a5e}
.inbox-footer{border-top:1px dashed #dfd8cc;margin-top:17px;padding-top:17px;line-height:1.6;letter-spacing:0;text-transform:none}
.page-footer{background:#fffaf5;border-top:1px solid #ede3d7;padding:17px clamp(24px,4vw,65px);font-size:10px;letter-spacing:0;text-transform:none}
.page-footer span span{color:#ef8b7f}
.pay-dialog,.receipt-dialog{border-radius:22px;box-shadow:0 18px 64px #14291b40;overflow:auto}
.pay-dialog{border:1px solid #d6e5d7;background:#fffdf9}
.pay-dialog::backdrop,.receipt-dialog::backdrop{background:#1d3125a8;backdrop-filter:blur(7px)}
.pay-dialog h3,.receipt-heading{font-family:Georgia,serif;letter-spacing:-.045em}
.pay-dialog input[type=text]{border-radius:11px}
.pay-dialog .action-btn{margin-top:12px}
.receipt-dialog{border:1px solid #d4e3d2}
.receipt-modal-head{background:#f3f9f0}
.receipt-paper{background:#fffefa}
.receipt-seal.verified{animation:verify-pop .55s cubic-bezier(.17,.86,.27,1.3)}
.receipt-state{letter-spacing:1px}
@keyframes card-enter{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes friend-float{0%,100%{translate:0 0}50%{translate:0 -5px}}
@keyframes sticker-sway{0%,100%{rotate:-8deg}50%{rotate:8deg}}
@keyframes verify-pop{0%{transform:scale(.3) rotate(-25deg)}72%{transform:scale(1.17) rotate(6deg)}100%{transform:scale(1) rotate(0)}}
@media(max-width:1150px){.workspace{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)}.left-panel{padding-inline:28px}.right-panel{padding-inline:28px}.friend-stage{height:160px}.cast-member{width:91px;height:91px}.friend-cast{padding-left:18px}.scene-mini-note{right:1%}}
@media(max-width:960px){.workspace{grid-template-columns:1fr}.left-panel{border-right:0;border-bottom:1px solid #e8dbcc;padding:33px clamp(22px,7vw,65px)}.right-panel{padding:38px clamp(22px,7vw,65px)}.left-panel .capture{max-width:650px}.friend-stage{max-width:530px}.friend-cast{padding-left:30px}.cast-member{width:115px;height:115px}.header-center{display:flex}}
@media(max-width:640px){
 .topbar{height:70px;padding:0 18px}.logo{font-size:29px}.header-center{display:none}.network{display:none}
 .wallet-btn{font-size:11px;padding:9px 12px}
 .left-panel{padding:31px 19px 28px}.right-panel{padding:32px 19px}
 h1{font-size:clamp(41px,11vw,57px)}.intro{font-size:13px}
 .friend-stage{height:155px}.friend-cast{padding-left:19px}.cast-member{width:clamp(85px,23vw,104px);height:clamp(85px,23vw,104px);margin-left:-17px}
 .stage-note{margin-bottom:24px}.stage-note strong{font-size:15px}
 .metrics{gap:7px;margin:23px 0}.metric{padding:12px 10px!important;min-height:97px}.metric:not(:first-child){padding-left:10px!important}
 .metric>span{font-size:8px;letter-spacing:0}.metric strong{font-size:25px}.metric small{font-size:9px}
 .inbox-head{display:flex;align-items:flex-start;gap:10px}.inbox-head h2{font-size:32px}
 .clear-btn{font-size:10px;padding:8px 10px}.inbox-subtitle{font-size:12px}
 .inbox-controls{align-items:flex-start}.filters{gap:3px}.filter{font-size:10px;padding:7px 9px}
 .obligation{padding:14px 13px}.item-icon{width:41px;height:41px;font-size:21px}.item-title{font-size:14px}
 .item-price{font-size:19px}.state-pill{font-size:8px;padding:5px 7px}
 .card-bottom{align-items:start}.item-actions{justify-content:flex-start}
 .small-btn{font-size:10px;padding:9px 10px}
 .lower-left{margin-top:30px}.page-footer{padding:16px 19px}.capture-body{padding:16px}
 .pay-dialog{box-shadow:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.obligation,.cast-member,.scene-sticker,.empty-confetti,.empty-heart,.receipt-seal.verified{animation:none!important;transition:none!important;translate:none!important}.obligation:hover,.metric:hover{transform:none}}

/* The little moment when a real on-chain payment gets its matching receipt */
.settlement-moment{position:fixed;right:25px;bottom:24px;z-index:100;background:#fffef9;border:1px solid #a5d5b5;border-radius:20px;padding:17px 16px;display:flex;align-items:center;gap:12px;width:min(420px,calc(100% - 30px));box-shadow:0 14px 48px #163b2b30;animation:moment-in .5s cubic-bezier(.18,.88,.23,1.3) both}
.settlement-moment::before,.settlement-moment::after{content:"✦";position:absolute;font-size:20px;color:#f9b952;pointer-events:none;animation:sticker-sway 2.3s infinite}
.settlement-moment::before{top:-19px;left:15px}.settlement-moment::after{top:-16px;right:48px;color:#f58d83;animation-delay:-1s}
.settlement-stamp{background:#2d7452;color:white;width:45px;height:45px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-weight:900;font-size:23px;box-shadow:0 0 0 6px #ddf2e2}
.settlement-words{flex:1;min-width:0}.settlement-words strong{font-family:Georgia,serif;font-size:21px;letter-spacing:-.04em}.settlement-words p{margin:4px 0 0;font-size:11px;line-height:1.5;color:#748475}
.settlement-receipt-button{border:0;border-radius:10px;background:#e2f4e4;padding:10px 11px;font-size:11px;font-weight:800;color:#285d45}.settlement-receipt-button:hover{background:#c7eacb}
.settlement-dismiss{border:0;background:transparent;position:absolute;right:8px;top:3px;color:#879b89;font-size:20px}
@keyframes moment-in{from{opacity:0;transform:translateY(30px) scale(.86)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:640px){.settlement-moment{right:15px;bottom:17px;padding:15px 12px}.settlement-words strong{font-size:19px}}
@media(prefers-reduced-motion:reduce){.settlement-moment,.settlement-moment::before,.settlement-moment::after{animation:none}}

/* Discovery moment · expressive, brief, tied to real extraction results */
.discovery-moment{position:fixed;z-index:90;right:24px;bottom:26px;display:flex;align-items:center;gap:14px;width:min(460px,calc(100vw - 32px));padding:16px 17px;background:#fffdf7;border:1px solid #e6d8c8;border-radius:20px;box-shadow:0 13px 0 #274d3b1c,0 28px 60px #293e2b2a;animation:discovery-enter .5s cubic-bezier(.2,1.25,.35,1) both}
.discovery-faces{width:52px;height:52px;position:relative;flex:none}
.discovery-faces svg{border-radius:50%;border:3px solid #fff;box-shadow:0 3px 12px #594e4730}
.discovery-spark{position:absolute;right:-10px;top:-10px;color:#f4a43e;font-size:26px;animation:discovery-pop .55s .22s both}
.discovery-copy{min-width:0;flex:1;color:#214534}
.discovery-copy strong{display:block;font-family:Georgia,serif;font-size:18px;letter-spacing:-.035em}
.discovery-copy p{margin:4px 0 0;color:#748378;font-size:11px;line-height:1.45}
.discovery-view{flex:none;border:none;border-radius:100px;background:#255842;color:#fff;padding:10px 12px;font-size:11px;font-weight:800}
.discovery-view:hover{background:#317855;transform:translateY(-2px)}
.discovery-close{position:absolute;right:9px;top:5px;border:0;background:transparent;color:#8a9187;font-size:19px;padding:2px 5px}
@keyframes discovery-enter{from{opacity:0;transform:translateY(34px) rotate(2deg) scale(.94)}to{opacity:1;transform:translateY(0) rotate(0) scale(1)}}
@keyframes discovery-pop{from{opacity:0;transform:scale(.4) rotate(-40deg)}to{opacity:1;transform:scale(1) rotate(14deg)}}
.receipt-seal.verified{animation:discovery-pop .46s cubic-bezier(.15,1.3,.35,1) both}
@media(max-width:600px){.discovery-moment{right:16px;bottom:16px;padding:13px 15px;gap:10px}.discovery-faces{width:43px;height:43px}.discovery-copy strong{font-size:16px}.discovery-view{padding:9px 10px}}
@media(prefers-reduced-motion:reduce){.discovery-moment,.discovery-spark,.receipt-seal.verified{animation:none!important}}

/* Owed — motion pass / social gestures, not decorative activity for its own sake */
:root{
  --motion-snap:cubic-bezier(.2,.85,.27,1);
  --motion-spring:cubic-bezier(.17,1.28,.36,1);
  --motion-quick:170ms;
  --motion-reveal:430ms;
}
.analysis-stage{margin:4px 18px 14px;padding:15px 14px;background:linear-gradient(112deg,#e8f4e7,#fff4df 70%,#f9eafe);border:1px solid #dcebd5;border-radius:17px;display:flex;align-items:center;gap:14px;position:relative;overflow:hidden;animation:moment-in var(--motion-reveal) var(--motion-spring) both}
.analysis-avatar{width:54px;height:54px;border-radius:50%;overflow:hidden;background:#e4ddf4;border:3px solid white;box-shadow:0 7px 14px #60462a16;flex-shrink:0;animation:analysis-bob 1.5s ease-in-out infinite}
.analysis-copy{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.analysis-copy strong{font-size:13px;color:#295841;font-weight:850}
.analysis-copy>span{font-size:10px;line-height:1.5;color:#748276}
.analysis-motion{display:flex;align-items:center;gap:4px;margin-top:1px;height:9px}
.analysis-motion span{height:6px;width:6px;background:#ff8c76;border-radius:100px;animation:analysis-dots 1.05s infinite ease-in-out}
.analysis-motion span:nth-child(2){animation-delay:.14s;background:#f7c45c}
.analysis-motion span:nth-child(3){animation-delay:.28s;background:#7cbd9a}
.analysis-star{position:absolute;right:10px;top:2px;color:#f3ab45;font-size:24px;animation:sticker-sway 2s infinite}
@keyframes analysis-bob{50%{transform:translateY(-5px) rotate(3deg)}}
@keyframes analysis-dots{0%,70%,100%{transform:translateY(0);opacity:.55}35%{transform:translateY(-5px);opacity:1}}
.obligation.is-exiting{pointer-events:none;animation:card-fold .23s cubic-bezier(.55,.08,.8,.27) both;transform-origin:70% 50%}
@keyframes card-fold{0%{opacity:1;transform:translateY(0) rotate(0) scale(1)}100%{opacity:0;transform:translateX(32px) translateY(-8px) rotate(3deg) scale(.96)}}
.action-moment{z-index:95;position:fixed;right:24px;bottom:25px;display:flex;align-items:center;gap:13px;width:min(460px,calc(100vw - 30px));padding:16px 17px;background:#fffef9;border:1px solid #d5e4d7;border-radius:19px;box-shadow:0 16px 56px #213f3132,0 6px 0 #b7e1c023;animation:moment-in .42s var(--motion-spring) both}
.action-moment.action-dismissed{background:#fffaf3;border-color:#e8d8c9;box-shadow:0 16px 56px #213f3125,0 6px 0 #efdacb40}
.action-face{width:48px;height:48px;position:relative;flex:none;border:3px solid #fff;border-radius:50%;overflow:visible}
.action-face svg{border-radius:50%;overflow:hidden;box-shadow:0 3px 12px #5c4f3730}
.action-face-mark{position:absolute;right:-8px;top:-9px;font-size:21px;color:#f7ad45;text-shadow:0 2px 0 #fff;animation:action-spark .46s .12s var(--motion-spring) both}
.action-dismissed .action-face-mark{color:#b48b76;font-size:19px}
.action-message{flex:1;min-width:0}
.action-message strong{display:block;font-family:Georgia,serif;font-size:18px;letter-spacing:-.035em;color:#234b3a}
.action-message p{margin:5px 0 0;font-size:11px;line-height:1.45;color:#728579}
.action-undo{flex:none;border:0;border-radius:100px;background:#ddf2df;padding:11px 13px;color:#285943;font-weight:850;font-size:11px;transition:background var(--motion-quick),transform var(--motion-quick)}
.action-dismissed .action-undo{background:#f8e4d4;color:#8f5847}
.action-undo:hover{transform:translateY(-2px);background:#c6ebca}
.action-close{position:absolute;right:7px;top:2px;padding:2px 6px;background:none;border:0;font-size:18px;color:#93a094}
@keyframes action-spark{from{opacity:0;transform:scale(.2) rotate(-30deg)}to{opacity:1;transform:scale(1) rotate(14deg)}}
@media(hover:hover) and (pointer:fine){
  .card-story .small-avatar{transition:transform .26s var(--motion-spring),box-shadow .2s}
  .obligation:hover .small-avatar{transform:rotate(-8deg) scale(1.12);box-shadow:0 5px 13px #b48b7040}
  .obligation:hover .story-spark{animation:action-spark .42s var(--motion-spring)}
  .friend-stage:hover .scene-quote{transform:translateY(-5px) rotate(-2deg);transition:transform .35s var(--motion-spring)}
}
@media(max-width:600px){
  .analysis-stage{padding:12px;margin:4px 13px 13px;gap:10px}
  .analysis-avatar{width:44px;height:44px}
  .action-moment{right:15px;bottom:16px;padding:13px 11px;gap:10px}
  .action-face{width:39px;height:39px}
  .action-message strong{font-size:16px}
  .action-message p{font-size:10px}
  .action-undo{padding:9px 10px}
}
@media(prefers-reduced-motion:reduce){
  .analysis-stage,.analysis-avatar,.analysis-motion span,.analysis-star,.obligation.is-exiting,.action-moment,.action-face-mark,.obligation:hover .story-spark,.obligation:hover .small-avatar{animation:none!important;transform:none!important;transition:none!important}
}

/* Count changes identify progress without spinning dashboards */
.metric.is-counting strong{animation:count-gentle .4s cubic-bezier(.15,1.35,.35,1)}
@keyframes count-gentle{0%{transform:scale(1);opacity:.85}48%{transform:scale(1.13);opacity:1}100%{transform:scale(1)}}
.settlement-stamp{position:relative}
.settlement-friends{position:absolute;display:flex;align-items:center;bottom:-13px;right:-20px;width:53px;height:28px;pointer-events:none}
.settlement-friends svg{width:29px;height:29px;border-radius:50%;border:2px solid white;box-shadow:0 2px 6px #28543644;animation:friend-cheer .5s .16s cubic-bezier(.15,1.4,.4,1) both}
.settlement-friends svg+svg{margin-left:-12px;animation-delay:.27s}
.settlement-confetti{position:absolute;left:30px;top:-22px;font-size:20px;letter-spacing:9px;color:#ff917a;pointer-events:none;white-space:nowrap;animation:celebrate-once .68s ease-out both}
@keyframes friend-cheer{from{opacity:0;transform:translateY(13px) rotate(-15deg) scale(.7)}to{opacity:1;transform:translateY(0) rotate(6deg) scale(1)}}
@keyframes celebrate-once{from{opacity:0;transform:translateY(24px) scale(.6)}45%{opacity:1}to{opacity:1;transform:translateY(-5px) scale(1)}}
@media(prefers-reduced-motion:reduce){.metric.is-counting strong,.settlement-confetti,.settlement-friends svg{animation:none!important}}

/* Journey continuity: discovery points to the exact card, not a generic section */
.obligation[data-item-id]{scroll-margin-block:100px;outline-offset:3px}
.obligation.is-spotlight{outline:3px solid #f2b767;box-shadow:0 0 0 9px #ffdfac70,0 15px 32px #af80552b;animation:journey-arrive .52s cubic-bezier(.16,1.2,.28,1) both}
@keyframes journey-arrive{0%{transform:translateY(14px) scale(.98);filter:saturate(.85)}65%{transform:translateY(-3px) scale(1.012);filter:saturate(1.05)}100%{transform:translateY(0) scale(1);filter:none}}
.obligation:focus-visible{outline:3px solid #5a9d76;outline-offset:4px}
.moment-bridge{display:flex;align-items:center;gap:11px;background:#fff6e9;border:1px solid #ecdcc7;border-radius:15px;padding:10px 12px;min-width:0}
.moment-bridge-icon{height:43px;width:43px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:#ffe6ca;border:1px solid #f2d9b8;font-size:22px}
.moment-bridge>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.moment-bridge-eyebrow{color:#9d8e76;font-weight:850;font-size:9px;letter-spacing:1px}
.moment-bridge strong{font-size:12px;font-weight:750;line-height:1.3;color:#3c5a46;overflow-wrap:anywhere}
.payment-bridge{margin:16px 0 5px;background:#fff9ed}
.receipt-bridge{margin:2px 0 20px;background:#faf4ec}
.receipt-bridge .moment-bridge-icon{background:#eef3d9;border-color:#dce6c8}
.receipt-bridge strong{font-size:11px}
@media(prefers-reduced-motion:reduce){.obligation.is-spotlight{animation:none!important;transform:none!important;filter:none!important}}

/* Phase 3 — crew interaction and a genuinely useful small-screen dock. */
.friend-stage .cast-member{appearance:none;background:transparent;padding:0;cursor:pointer;transition:filter .2s,box-shadow .2s,scale .2s;touch-action:manipulation}
.friend-stage .cast-member:hover{filter:saturate(1.1);box-shadow:0 12px 24px #a66c4950}
.friend-stage .cast-member.cast-selected{box-shadow:0 0 0 4px #ffd29d,0 10px 18px #a66c493a;filter:saturate(1.09)}
.friend-stage .cast-member:focus-visible{outline:3px solid #31785f;outline-offset:4px}
.scene-quote{max-width:min(68%,320px);text-align:center;line-height:1.5}
.scene-quote.quote-reaction{animation:crew-quote-pop .42s cubic-bezier(.17,1.24,.34,1) both}
@keyframes crew-quote-pop{0%{opacity:.55;scale:.88;translate:0 10px}65%{opacity:1;scale:1.05;translate:0 -4px}100%{opacity:1;scale:1;translate:0 0}}
.mobile-dock{display:none}
@media(max-width:640px){
  /* Fixed thumb-friendly controls reduce long scrolls without obscuring feedback. */
  .mobile-dock{position:fixed;z-index:75;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;align-items:stretch;padding:7px;border:1px solid #e1e8d9;border-radius:22px;background:#fffdf8f5;box-shadow:0 7px 30px #244b3e28;backdrop-filter:blur(16px);max-width:510px;margin-inline:auto}
  .dock-link{min-width:0;position:relative;appearance:none;border:0;border-radius:16px;background:transparent;color:#708477;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 4px 7px;font:750 10px "Aptos","Segoe UI",system-ui,sans-serif;text-decoration:none;line-height:1.25;cursor:pointer;min-height:51px;touch-action:manipulation;transition:background .16s,color .16s,transform .16s}
  .dock-link .dock-icon{font-size:20px;line-height:1}
  .dock-link.active{color:#265945;background:#dff1e2}
  .dock-link:not(.active):active{transform:scale(.97)}
  .dock-link:focus-visible{outline:3px solid #379c74;outline-offset:1px}
  .dock-count{position:absolute;right:calc(50% - 30px);top:4px;background:#ffcfba;color:#975342;display:grid;place-items:center;border-radius:100px;min-width:17px;height:17px;padding:0 4px;font-size:9px;font-weight:900;box-shadow:0 0 0 2px #fffdf8}
  .page-footer{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
  .action-moment,.discovery-moment,.settlement-moment{bottom:calc(88px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 190px);overflow:auto}
  .friend-stage .cast-member{width:clamp(64px,23vw,104px);height:clamp(64px,23vw,104px);min-width:0;min-height:0}
  .scene-quote{max-width:55%;right:0;bottom:-5px;font-size:10px}
  #capture,#my-inbox{scroll-margin-top:15px}
  body:has(#conversation:focus) .mobile-dock,body:has(#recipientAddress:focus) .mobile-dock{display:none}
}
@media(prefers-reduced-motion:reduce){
  .scene-quote.quote-reaction,.friend-stage .cast-member{animation:none!important;transition:none!important;transform:none!important;translate:none!important;scale:1!important}
  .dock-link{transition:none!important}
}

/* Capture responds to modality, with a tiny live recording indicator. */
.capture-body:not(.hidden){animation:capture-appear .28s cubic-bezier(.2,.85,.3,1) both}
@keyframes capture-appear{from{opacity:.55;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.record-waves{display:flex;align-items:center;justify-content:center;gap:3px;height:25px;min-width:36px;margin-left:auto}
.record-waves i{display:block;width:3px;height:6px;border-radius:5px;background:#b6c9b8;transform-origin:center;transition:background .2s}
.recorder.is-recording .record-waves i{background:#ee8475;animation:record-wave .85s ease-in-out infinite alternate}
.recorder.is-recording .record-waves i:nth-child(2){animation-delay:-.22s}
.recorder.is-recording .record-waves i:nth-child(3){animation-delay:-.56s}
.recorder.is-recording .record-waves i:nth-child(4){animation-delay:-.14s}
.recorder.is-recording .record-waves i:nth-child(5){animation-delay:-.43s}
@keyframes record-wave{0%{height:5px}100%{height:21px}}
@media(prefers-reduced-motion:reduce){.capture-body:not(.hidden),.recorder.is-recording .record-waves i{animation:none!important;transform:none!important}}

/* Keep the actual speech visible and correctable, rather than claiming no obligations. */
.speaker-select{display:block;width:100%;margin:8px 0 17px;padding:12px 13px;border:1px solid #e4dacf;background:#fffaf4;border-radius:12px;color:#2b5441;font:750 12px "Segoe UI",system-ui,sans-serif;min-height:45px}
.speaker-select:focus-visible{outline:3px solid #85bea2;outline-offset:2px}
.transcript-review{margin:4px 18px 18px;padding:15px;background:#f9f4ff;border:1px solid #e5d9f4;border-radius:16px;color:#3e4e47}
.transcript-heading{display:flex;gap:10px;align-items:center;margin:0 0 14px}
.transcript-heading>span{font-size:23px;display:grid;place-items:center;background:#eaddf7;border-radius:12px;min-width:39px;height:39px;color:#8263a6}
.transcript-heading>div{display:flex;flex-direction:column;gap:4px}
.transcript-heading strong{color:#3d544a;font:700 19px Georgia,serif;letter-spacing:-.035em}
.transcript-heading div>span{font-size:11px;color:#798478;line-height:1.45}
.transcript-review textarea{display:block;margin:8px 0 10px;min-height:125px;width:100%;font-size:12px;line-height:1.65;background:#fffefa;border-color:#ded8e5}
.transcript-review p{font-size:11px;line-height:1.5;color:#7e807f;margin:0 0 12px}
.transcript-review .secondary-btn{width:100%;border-radius:12px;background:#e5f1e6;color:#315f48;border:1px solid #c5dfca;min-height:44px;font-weight:800}
.transcript-review .secondary-btn:hover{background:#d4ead7}
@media (max-width:640px){.transcript-review{margin:4px 13px 16px;padding:14px}}

.transcript-heard{background:#fffdf9;border:1px solid #e4dce9;border-left:3px solid #9673bc;border-radius:13px;margin:10px 0 16px;padding:12px 14px}
.transcript-heard .field-label{display:block;font-size:10px;letter-spacing:1.2px;color:#8b779d;font-weight:900}
.transcript-visible{white-space:pre-wrap;overflow-wrap:anywhere;color:#273f35;font-size:13px;line-height:1.7;margin:9px 0 1px;font-weight:600;max-height:240px;overflow-y:auto}

/* Wallet details found in the original conversation, never generated by AI. */
.source-address-panel{padding:13px;margin:12px 0 10px;background:#f0f4e9;border:1px solid #d2e3ce;border-radius:16px}
.source-address-heading{display:flex;gap:10px;align-items:center;margin-bottom:11px}
.source-address-heading>span{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#d3e9d6;color:#315d45;font-size:24px;font-weight:800}
.source-address-heading>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.source-address-heading strong{font-size:12px;color:#2d563d}
.source-address-heading small{font-size:10px;line-height:1.5;color:#687b6c}
.source-address-list{display:flex;flex-direction:column;gap:8px}
.source-address-choice{width:100%;display:flex;flex-direction:column;gap:6px;text-align:left;border:1px solid #d7e0d1;background:#fffefb;border-radius:12px;padding:10px 11px;color:#2f4f3b;transition:border-color .15s,background .15s}
.source-address-choice:hover{background:#f9ffec;border-color:#7daa7a}
.source-address-choice.chosen{border:2px solid #448e59;background:#edfaed;padding:9px 10px}
.source-address-choice:focus-visible{outline:3px solid #5a9f65;outline-offset:2px}
.source-address-choice-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.source-address-choice-top strong{font-size:10px;line-height:1.4}
.source-address-choice-top>span{color:#307047;font-weight:800;font-size:10px;white-space:nowrap}
.source-address-choice code{font-size:11px;font-family:ui-monospace,Consolas,monospace;overflow-wrap:anywhere;font-weight:700}
.source-address-choice small{font-size:10px;color:#697d70;line-height:1.5;overflow-wrap:anywhere}
.source-address-help,.source-address-extra{font-size:10px;line-height:1.5;color:#6c7d6c;margin:11px 1px 0}
.source-address-extra{background:#fff0d9;border-radius:8px;padding:8px 10px;color:#8b5f34}
@media(prefers-reduced-motion:reduce){.source-address-choice{transition:none!important}}

/* Keep payment verification and source candidates accessible on short screens. */
.pay-dialog{max-height:92dvh;overflow-y:auto;overscroll-behavior:contain}
.source-address-list{max-height:230px;overflow-y:auto}
@media(max-width:600px){.pay-dialog{max-height:92dvh}.source-address-list{max-height:165px}}

/* Context is inline with the source quote; no new type or inbox filter. */
.financial-context-note{font-size:11px;line-height:1.6;color:#5f755e;background:#edf4e5;border:1px solid #d7e7cf;border-radius:11px;padding:9px 12px;margin:9px 0 0}
.obligation.status-review .financial-context-note{color:#805a33;background:#fdf0df;border-color:#ead7ba}
