/* ============================================================
   TRC Member Home — ported "Member Home" dashboard.
   Everything is scoped under `.th` (present on the home root AND
   the overlay sheet body) or `.th-*` (overlay chrome), so nothing
   here collides with the base app's styles. Design tokens, device
   shell, status bar, scroll region and tab bar are supplied by the
   base app (styles.css) and are deliberately NOT redefined here.
   ============================================================ */

/* ===== Header ===== */
.th .header{padding:8px 22px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.th .brand{display:flex;align-items:center;gap:12px;min-width:0;}
.th .brandmark{width:52px;height:52px;border-radius:50%;border:1.5px solid var(--brass);display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 30% 25%,#fff,#f6efe3);flex:none;}
.th .brandmark span{font-family:var(--serif);font-weight:600;font-size:19px;color:var(--forest);letter-spacing:1px;}
.th .wordmark{font-family:var(--serif);line-height:1.06;min-width:0;}
.th .wordmark .l1{font-size:15.5px;color:var(--ink);font-weight:600;}
.th .wordmark .l2{font-size:15.5px;color:var(--ink);font-weight:600;}
.th .wordmark .l3{font-size:13px;color:var(--brass);font-style:italic;font-weight:500;margin-top:1px;}
.th .header-actions{display:flex;align-items:center;gap:14px;flex:none;}
.th .icon-btn{position:relative;width:44px;height:44px;border-radius:50%;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--ink);}
.th .icon-btn:active{background:rgba(176,141,87,.12);}
.th .badge{position:absolute;top:2px;right:1px;box-sizing:border-box;min-width:19px;height:19px;padding:0 5px;background:var(--brass);color:#fff;border-radius:999px;font-size:10.5px;font-weight:700;line-height:1;letter-spacing:.2px;font-variant-numeric:tabular-nums;display:flex;align-items:center;justify-content:center;border:2px solid var(--bg);box-shadow:0 1px 3px rgba(16,43,35,.22);}
.th .avatar-btn{width:50px;height:50px;border-radius:50%;padding:0;border:1.5px solid var(--border);overflow:hidden;cursor:pointer;background:none;flex:none;}
.th .avatar-btn:focus-visible{outline:2px solid var(--brass);outline-offset:2px;}

/* ===== Greeting ===== */
.th .greeting{padding:10px 24px 6px;}
.th .greeting h1{font-family:var(--serif);font-weight:600;font-size:30px;line-height:1.08;color:var(--ink);margin:0;letter-spacing:-.3px;white-space:nowrap;}
.th .greeting h1 .name{color:var(--brass);}
.th .greeting p{margin:8px 0 0;color:var(--muted);font-size:15.5px;}

/* ===== Section spacing ===== */
.th .section{padding:18px 20px 0;}

/* ===== Event hero card ===== */
.th .event-card{position:relative;border-radius:var(--radius-card);overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow-card);min-height:414px;background:var(--forest-deep);display:flex;flex-direction:column;}
.th .event-photo{position:absolute;inset:0;z-index:0;background:url(assets/event.webp) 60% center / cover no-repeat;}
.th .event-photo .veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,43,35,.9) 0%,rgba(16,43,35,.62) 24%,rgba(16,43,35,.24) 40%,rgba(16,43,35,.05) 54%,rgba(16,43,35,.08) 62%,rgba(16,43,35,.52) 77%,rgba(16,43,35,.82) 100%);}
.th .event-body{position:relative;z-index:2;padding:22px 22px 20px;flex:1;display:flex;flex-direction:column;}
.th .kicker{font-size:12px;letter-spacing:2.4px;font-weight:700;color:#E5C89A;text-transform:uppercase;text-shadow:0 1px 3px rgba(16,43,35,.9),0 0 12px rgba(16,43,35,.7);}
.th .event-title{font-family:var(--serif);font-weight:600;font-size:30px;line-height:1.04;color:#fff;margin:10px 0 16px;letter-spacing:-.4px;text-shadow:0 2px 12px rgba(16,43,35,.5);}
.th .event-meta{display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.94);font-size:15.5px;margin:9px 0;text-shadow:0 1px 8px rgba(16,43,35,.55);}
.th .event-meta svg{color:var(--brass);flex:none;}
.th .btn{font-family:var(--sans);font-size:15px;font-weight:600;cursor:pointer;border:none;border-radius:13px;min-height:48px;padding:0 22px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .18s ease,transform .12s ease,box-shadow .18s ease;}
.th .btn-primary{background:var(--forest);color:#fff;box-shadow:0 6px 16px rgba(16,43,35,.22);}
.th .btn-primary:hover{background:var(--forest-hover);}
.th .btn-primary:active{transform:translateY(1px);}
.th .btn-primary:focus-visible{outline:2px solid var(--brass);outline-offset:3px;}
.th .event-body .btn-primary{margin-top:0;align-self:flex-start;background:var(--brass);color:var(--forest-deep);box-shadow:0 6px 18px rgba(16,43,35,.34);}
.th .event-body .btn-primary:hover{background:#9c7a48;transform:translateY(-1px);box-shadow:0 8px 22px rgba(16,43,35,.4);}
.th .event-body .btn-primary:active{transform:translateY(1px);}
.th .hero-all{display:flex;align-items:center;gap:5px;margin-top:12px;background:none;border:none;padding:2px 0;cursor:pointer;font-family:var(--sans);font-size:14px;font-weight:600;color:var(--forest);text-shadow:0 1px 3px rgba(250,247,242,.9);}
.th .hero-all svg{transition:transform .15s ease;}
.th .hero-all:hover svg{transform:translateX(3px);}
.th .hero-all:focus-visible{outline:2px solid var(--brass);outline-offset:3px;border-radius:6px;}
.th .event-going{display:flex;align-items:center;gap:11px;margin:auto 0 15px;}
.th .going-faces{display:flex;flex:none;}
.th .going-faces .gf{width:28px;height:28px;border-radius:50%;border:2px solid rgba(255,255,255,.85);margin-left:-9px;box-shadow:0 1px 4px rgba(16,43,35,.4);}
.th .going-faces .gf:first-child{margin-left:0;}
.th .going-text{font-size:14px;color:rgba(255,255,255,.9);line-height:1.35;text-shadow:0 1px 6px rgba(16,43,35,.55);}
.th .going-text b{color:#fff;font-weight:600;}
.th .going-text .seats{color:#E5C89A;font-weight:600;white-space:nowrap;}

/* events list cards (used inside the Events sheet) */
.th .ev-card{position:relative;height:190px;border-radius:18px;overflow:hidden;margin:14px 0;border:1px solid var(--border);box-shadow:0 8px 22px rgba(16,43,35,.16);background:var(--forest-deep);}
.th .ev-photo{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform .5s ease;}
.th .ev-card:hover .ev-photo{transform:scale(1.05);}
.th .ev-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,43,35,.86) 0%,rgba(16,43,35,.64) 24%,rgba(16,43,35,.3) 42%,rgba(16,43,35,.08) 56%,rgba(16,43,35,.04) 70%,rgba(16,43,35,.5) 100%);}
.th .ev-clickable{cursor:pointer;}
.th .ev-head{position:absolute;top:16px;left:18px;right:16px;z-index:3;}
.th .ev-kicker{font-size:11px;letter-spacing:2px;font-weight:700;color:#E5C89A;text-transform:uppercase;text-shadow:0 1px 3px rgba(16,43,35,.9),0 0 10px rgba(16,43,35,.6);}
.th .ev-title{color:#fff;font-family:var(--serif);font-weight:600;font-size:21px;line-height:1.06;letter-spacing:-.2px;margin:6px 0 7px;text-shadow:0 2px 10px rgba(16,43,35,.5);}
.th .ev-meta{color:rgba(255,255,255,.94);font-size:13.5px;text-shadow:0 1px 6px rgba(16,43,35,.55);}
.th .ev-chip{position:absolute;top:14px;right:12px;z-index:3;display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:999px;font-size:12px;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.16);}
.th .ev-chip svg{width:13px;height:13px;flex:none;}
.th .ev-chip-reserved{background:rgba(46,89,73,.94);color:#fff;}
.th .ev-chip-seats{background:rgba(255,255,255,.94);color:var(--brass);}
.th .ev-body{position:absolute;left:18px;right:16px;bottom:15px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:10px;}
.th .ev-act{flex:none;border:none;border-radius:999px;padding:10px 20px;font-family:var(--sans);font-size:13.5px;font-weight:700;cursor:pointer;background:#fff;color:var(--forest-deep);box-shadow:0 4px 14px rgba(16,43,35,.3);transition:background .15s ease,transform .12s ease,box-shadow .18s ease;}
.th .ev-act:hover{background:#fff;transform:translateY(-1px);box-shadow:0 6px 18px rgba(16,43,35,.36);}
.th .ev-act:active{transform:translateY(1px);}
.th .ev-reserved{flex:none;display:inline-flex;align-items:center;gap:6px;color:#fff;font-size:13.5px;font-weight:700;text-shadow:0 1px 6px rgba(16,43,35,.55);}
.th .ev-reserved svg{width:16px;height:16px;color:#E5C89A;}
.th .ev-status{display:inline-flex;align-items:center;gap:6px;color:#fff;font-size:13px;font-weight:600;letter-spacing:.2px;text-shadow:0 1px 6px rgba(16,43,35,.55);}
.th .ev-status svg{width:15px;height:15px;flex:none;color:#E5C89A;}
.th .ev-seats{display:inline-flex;align-items:center;color:#E5C89A;font-size:13px;font-weight:700;letter-spacing:.2px;text-shadow:0 1px 6px rgba(16,43,35,.55);white-space:nowrap;}

/* ===== Generic panel ===== */
.th .panel{background:#fffdf9;border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow-soft);padding:20px;}
.th .panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.th .panel-title{font-family:var(--serif);font-weight:600;font-size:21px;color:var(--ink);margin:0;letter-spacing:-.2px;display:flex;align-items:center;gap:7px;}
.th .panel-sub{color:var(--muted);font-size:14px;margin:4px 0 0;line-height:1.45;}
.th .link-btn{background:none;border:none;cursor:pointer;color:var(--forest);font-family:var(--sans);font-weight:600;font-size:14.5px;display:inline-flex;align-items:center;gap:5px;padding:8px 4px;min-height:40px;white-space:nowrap;border-radius:8px;}
.th .link-btn:hover{color:var(--forest-hover);}
.th .link-btn:focus-visible{outline:2px solid var(--brass);outline-offset:2px;}
.th .link-btn svg{transition:transform .15s ease;}
.th .link-btn:hover svg{transform:translateX(2px);}

/* ===== New members ===== */
.th .members-row{display:flex;gap:14px;margin-top:18px;}
.th .member{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;}
.th .portrait{width:64px;height:64px;border-radius:50%;overflow:hidden;border:2px solid #fff;box-shadow:0 2px 8px rgba(28,24,16,.12),0 0 0 1px var(--border);background-color:var(--surface);}
.th .member .portrait{border:3px solid #fff;box-shadow:0 6px 16px rgba(28,24,16,.15),0 0 0 1.5px rgba(176,141,87,.32);}
.th .member .nm{font-size:14px;color:var(--ink);font-weight:600;letter-spacing:.1px;}
.th .pw{position:relative;display:inline-block;flex:none;line-height:0;}
.th .vb{position:absolute;right:-1px;bottom:-1px;width:20px;height:20px;border-radius:50%;background:var(--forest);border:2.5px solid var(--bg);display:flex;align-items:center;justify-content:center;color:#fff;box-sizing:border-box;}
.th .vb svg{width:11px;height:11px;display:block;}
.th .vb-host{background:var(--brass);}
.th .vb-team{background:var(--forest-deep);}
.th .vb-guest{background:#B7AC97;}
.th .vbi{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:var(--forest);color:#fff;vertical-align:-3px;margin-left:5px;}
.th .vbi svg{width:9px;height:9px;}
.th .vbi.vb-host{background:var(--brass);}
.th .vbi.vb-team{background:var(--forest-deep);}
.th .guest-pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:#8A7C63;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:2px 9px;margin-left:8px;vertical-align:2px;}
.th .guest-pill svg{width:11px;height:11px;}
.th .vb-legend{margin-top:18px;border-top:1px solid var(--border);padding-top:14px;}
.th .vb-legend-h{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--brass);font-weight:600;margin-bottom:11px;}
.th .vb-leg{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--body);line-height:1.35;margin:9px 0;}
.th .vb-chip{width:20px;height:20px;border-radius:50%;background:var(--forest);display:flex;align-items:center;justify-content:center;color:#fff;flex:none;}
.th .vb-chip.vb-host{background:var(--brass);}
.th .vb-chip.vb-team{background:var(--forest-deep);}
.th .vb-chip.vb-guest{background:#B7AC97;}
.th .vb-chip svg{width:11px;height:11px;}
.th .vb-leg b{font-weight:600;color:var(--ink);}
.th .members-cta{margin-top:20px;display:flex;justify-content:center;}
.th .btn-outline{background:var(--surface);color:var(--forest);border:1px solid var(--border);font-weight:600;font-size:14.5px;min-height:46px;border-radius:12px;padding:0 26px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;width:100%;transition:background .16s ease;}
.th .btn-outline:hover{background:#ece4d6;}
.th .btn-outline:active{transform:translateY(1px);}
.th .btn-outline:focus-visible{outline:2px solid var(--brass);outline-offset:2px;}

/* ===== Trusted network ===== */
.th .tn-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;}
.th .tn-stat{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:12px 13px;}
.th .tn-stat > *{position:relative;z-index:1;}
.th .tn-stat::before{content:"";position:absolute;inset:0;z-index:0;background:radial-gradient(120% 90% at 100% 100%,rgba(46,89,73,.06),rgba(46,89,73,0) 60%);}
.th .tn-stat::after{display:none;}
.th .tn-stat.s-connect::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%232E5949' stroke-width='1.4' opacity='.55'%3E%3Cpath d='M18 96 L50 68 L84 82 L100 44'/%3E%3Cpath d='M50 68 L62 32'/%3E%3C/g%3E%3Cg fill='%232E5949' opacity='.6'%3E%3Ccircle cx='18' cy='96' r='3'/%3E%3Ccircle cx='84' cy='82' r='3'/%3E%3Ccircle cx='62' cy='32' r='3'/%3E%3C/g%3E%3Cg fill='%23B08D57'%3E%3Ccircle cx='50' cy='68' r='4'/%3E%3Ccircle cx='100' cy='44' r='3'/%3E%3C/g%3E%3C/svg%3E");}
.th .tn-stat.s-grow::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%232E5949' stroke-width='1.4' opacity='.55'%3E%3Ccircle cx='98' cy='98' r='20'/%3E%3Ccircle cx='98' cy='98' r='38'/%3E%3Ccircle cx='98' cy='98' r='56'/%3E%3C/g%3E%3Ccircle cx='98' cy='98' r='5' fill='%23B08D57'/%3E%3C/svg%3E");}
.th .tn-stat.s-pending::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M30 96 C48 92 60 82 68 70' fill='none' stroke='%232E5949' stroke-width='1.3' stroke-dasharray='2 4' opacity='.45'/%3E%3Cg fill='none' stroke='%232E5949' stroke-width='1.4' opacity='.5'%3E%3Crect x='60' y='60' width='52' height='38' rx='5'/%3E%3Cpath d='M60 66 L86 83 L112 66'/%3E%3C/g%3E%3Ccircle cx='104' cy='58' r='5' fill='%23B08D57'/%3E%3C/svg%3E");}
.th .tn-top{display:flex;align-items:center;gap:8px;}
.th .tn-stat .ic{color:var(--forest);display:flex;flex:none;}
.th .tn-stat .ic svg{width:19px;height:19px;}
.th .tn-stat .num{font-family:var(--serif);font-size:25px;font-weight:600;color:var(--ink);line-height:1;}
.th .tn-stat .lbl{font-size:12.5px;color:var(--muted);line-height:1.32;margin-top:5px;}
.th .tn-pending{grid-column:1 / -1;display:flex;align-items:center;gap:12px;padding:11px 13px;}
.th .tp-ic{width:38px;height:38px;border-radius:50%;background:var(--bg);border:1px solid var(--border);color:var(--forest);display:flex;align-items:center;justify-content:center;flex:none;}
.th .tp-body{min-width:0;}
.th .tp-line{font-family:var(--serif);font-size:15.5px;color:var(--ink);line-height:1.2;}
.th .tp-line .tp-num{font-weight:600;}
.th .tp-sub{font-size:12.5px;color:var(--muted);line-height:1.3;margin-top:2px;}
.th .tn-cta{width:100%;margin-top:14px;}
.th .tn-invite{margin-top:16px;padding-top:16px;border-top:1px solid var(--border);}
.th .btn-brass{position:relative;width:100%;min-height:52px;border-radius:14px;font-size:15.5px;color:#fff;border:none;background:linear-gradient(180deg,#C09C64 0%,#B08D57 55%,#A47E48 100%);box-shadow:0 8px 22px rgba(160,126,72,.34),inset 0 1px 0 rgba(255,255,255,.28);}
.th .btn-brass:hover{filter:brightness(1.045);box-shadow:0 10px 26px rgba(160,126,72,.4),inset 0 1px 0 rgba(255,255,255,.28);}
.th .btn-brass:active{transform:translateY(1px);box-shadow:0 5px 14px rgba(160,126,72,.32),inset 0 1px 0 rgba(255,255,255,.2);}
.th .btn-brass:focus-visible{outline:2px solid var(--forest);outline-offset:3px;}
.th .btn-brass svg{flex:none;}
.th .tn-invite-sub{text-align:center;font-size:12.5px;color:var(--muted);line-height:1.4;margin:10px 0 0;}
.th .giftcard{position:relative;width:100%;display:flex;align-items:center;gap:15px;padding:17px 17px;border-radius:16px;text-align:left;cursor:pointer;overflow:hidden;background:radial-gradient(130% 105% at 18% -12%,rgba(255,255,255,.075) 0%,rgba(255,255,255,0) 46%),repeating-linear-gradient(135deg,rgba(255,255,255,.016) 0 2px,rgba(0,0,0,0) 2px 4px),linear-gradient(150deg,#214437 0%,#123027 52%,#0D231C 100%);border:1px solid rgba(176,141,87,.55);box-shadow:0 12px 28px rgba(16,43,35,.32),inset 0 1px 0 rgba(255,255,255,.07);}
.th .giftcard::before{content:"";position:absolute;inset:5px;border-radius:11px;border:1px solid rgba(176,141,87,.32);pointer-events:none;z-index:2;}
.th .giftcard::after{content:"";position:absolute;top:-10%;left:-65%;width:48%;height:120%;transform:skewX(-18deg);pointer-events:none;z-index:1;background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.11) 50%,rgba(255,255,255,0) 100%);animation:gcSheen 6s ease-in-out 1.1s infinite;}
@keyframes gcSheen{0%{left:-65%;}17%{left:135%;}100%{left:135%;}}
.th .giftcard:hover{filter:brightness(1.06);box-shadow:0 14px 32px rgba(16,43,35,.4);}
.th .giftcard:active{transform:translateY(1px);}
.th .giftcard:focus-visible{outline:2px solid var(--brass);outline-offset:3px;}
.th .giftcard-seal{position:relative;flex:none;width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(circle at 35% 28%,#F6E7C4 0%,#DCBF88 32%,#BE9A64 64%,#8E6E42 100%);box-shadow:0 4px 11px rgba(0,0,0,.4),0 0 0 1px rgba(255,255,255,.12),inset 0 2px 2px rgba(255,255,255,.6),inset 0 -3px 6px rgba(84,60,28,.55);}
.th .giftcard-seal::before{content:"";position:absolute;inset:5px;border-radius:50%;border:1px solid rgba(255,255,255,.28);box-shadow:inset 0 0 0 1px rgba(84,60,28,.4);z-index:2;}
.th .giftcard-seal::after{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;z-index:3;background:linear-gradient(115deg,rgba(255,255,255,0) 42%,rgba(255,255,255,.6) 50%,rgba(255,255,255,0) 58%);transform:translateX(-130%);animation:gcGlint 6s ease-in-out 1.1s infinite;}
@keyframes gcGlint{0%{transform:translateX(-130%);}16%{transform:translateX(130%);}100%{transform:translateX(130%);}}
.th .giftcard-mono{position:relative;z-index:1;font-family:var(--serif);font-weight:600;font-size:20px;letter-spacing:.5px;color:#6E4F28;text-shadow:0 1px 0 rgba(255,255,255,.45),0 -1px 1px rgba(84,60,28,.4);}
.th .giftcard-tx{position:relative;z-index:2;min-width:0;flex:1;}
.th .giftcard-k{display:block;font-size:9.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--brass);font-weight:700;}
.th .giftcard-t{display:block;font-family:var(--serif);font-size:20px;line-height:1.1;color:#F4EFE4;margin-top:4px;letter-spacing:.2px;}
.th .giftcard-go{position:relative;z-index:2;flex:none;margin-left:auto;color:var(--brass);display:flex;align-items:center;}
.th .tn-view-link{display:flex;width:100%;justify-content:center;margin-top:12px;}
.th button.tn-pending{width:100%;text-align:left;font-family:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s;}
.th button.tn-pending:hover{border-color:var(--brass);box-shadow:0 2px 10px rgba(160,126,72,.14);}
.th button.tn-pending:focus-visible{outline:2px solid var(--forest);outline-offset:2px;}
.th .tp-flag{margin-left:auto;flex:none;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 2px 6px rgba(28,24,16,.18);}
.th .tp-flag[hidden]{display:none;}
.th .tp-flag svg{width:14px;height:14px;}
.th .tp-flag.f-nudge{background:var(--brass);}
.th .tp-flag.f-final{background:var(--forest);}
@keyframes flagPop{0%{transform:scale(0);}70%{transform:scale(1.15);}100%{transform:scale(1);}}
.th .tp-flag.pop{animation:flagPop .32s ease-out;}
.th .list-resend{display:inline-flex;align-items:center;gap:5px;}
.th .list-resend svg{width:14px;height:14px;flex:none;}
.th .fu-badge{display:inline-flex;align-items:center;gap:6px;margin:14px 0 2px;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.02em;}
.th .fu-badge.fu-nudge{background:rgba(176,141,87,.14);color:var(--brass);border:1px solid rgba(176,141,87,.3);}
.th .fu-badge.fu-final{background:rgba(46,89,73,.12);color:var(--forest);border:1px solid rgba(46,89,73,.28);}
.th .fu-done{flex:none;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--forest);color:#fff;}
.th .fu-done svg{width:18px;height:18px;}

/* ===== Community ===== */
.th .community-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.th .community-head .lead{display:flex;align-items:center;gap:8px;min-width:0;}
.th .chat-badge{width:30px;height:30px;border-radius:50%;background:var(--forest);color:#fff;display:flex;align-items:center;justify-content:center;flex:none;}
.th .community-head h2{font-family:var(--serif);font-weight:600;font-size:19px;color:var(--ink);margin:0;letter-spacing:-.2px;white-space:nowrap;}
.th .community-head .link-btn{font-size:14px;}
.th .moment{display:flex;gap:14px;align-items:center;}
.th .moment .left{flex:1;min-width:0;}
.th .moment .byline{display:flex;align-items:center;gap:10px;}
.th .moment .byline .portrait{width:44px;height:44px;}
.th .moment .who{font-size:14px;color:var(--ink);font-weight:600;line-height:1.25;}
.th .moment .ago{font-size:12.5px;color:var(--muted);}
.th .moment .quote{margin:12px 0 0;font-size:15px;color:var(--body);line-height:1.5;font-style:italic;}
.th .moment .photo{width:118px;height:104px;border-radius:14px;flex:none;overflow:hidden;border:1px solid var(--border);}
.th .carousel{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain;}
.th .carousel::-webkit-scrollbar{display:none;}
.th .cslide{flex:0 0 100%;scroll-snap-align:start;box-sizing:border-box;display:flex;align-items:stretch;}
.th .thanks-card{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:20px 20px 22px;}
.th .thanks-card .portrait{width:54px;height:54px;margin:0;}
.th .thanks-card .pw{margin:0 0 11px;}
.th .thanks-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--brass);font-weight:600;margin-bottom:9px;}
.th .thanks-msg{font-family:var(--serif);font-size:16.5px;line-height:1.5;color:var(--ink);margin:0;letter-spacing:-.1px;max-width:30ch;}
.th .tc-meta{font-size:12.5px;color:var(--muted);margin-top:12px;letter-spacing:.2px;}
.th .gift-row{display:inline-flex;align-items:center;gap:7px;margin-top:11px;padding:7px 13px;border-radius:999px;background:#fff;border:1px solid var(--brass);color:var(--forest);font-size:12px;font-weight:600;}
.th .dots{display:flex;gap:6px;justify-content:center;margin-top:13px;}
.th .dot{width:7px;height:7px;border-radius:50%;background:var(--border);border:none;padding:0;cursor:pointer;transition:background .16s ease,width .16s ease,height .16s ease;}
.th .dot.active{background:var(--forest);width:8px;height:8px;}

/* ===== Overlay chrome: backdrop / sheet / toast ===== */
.th-backdrop{position:absolute;inset:0;background:rgba(16,43,35,.42);opacity:0;pointer-events:none;transition:opacity .25s ease;z-index:40;}
.th-backdrop.show{opacity:1;pointer-events:auto;}
.th-sheet{position:absolute;left:0;right:0;bottom:0;z-index:50;background:var(--bg);border-top-left-radius:26px;border-top-right-radius:26px;box-shadow:var(--shadow-sheet);transform:translateY(101%);visibility:hidden;transition:transform .32s cubic-bezier(.32,.72,0,1),visibility 0s linear .32s;max-height:86%;display:flex;flex-direction:column;}
.th-sheet.show{transform:translateY(0);visibility:visible;transition:transform .32s cubic-bezier(.32,.72,0,1),visibility 0s;}
.th-sheet-grip{width:40px;height:5px;border-radius:3px;background:var(--border);margin:10px auto 2px;}
.th-sheet-scroll{overflow-y:auto;padding:8px 22px 28px;scrollbar-width:none;}
.th-sheet-scroll::-webkit-scrollbar{display:none;}
.th-sheet-close{position:absolute;top:14px;right:16px;width:36px;height:36px;border-radius:50%;background:var(--surface);border:1px solid var(--border);cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--muted);z-index:2;}
.th-sheet-close:hover{background:#ece4d6;}
.th-sheet-close:focus-visible{outline:2px solid var(--brass);outline-offset:2px;}
.th h3{font-family:var(--serif);font-weight:600;font-size:24px;color:var(--ink);margin:6px 0 2px;letter-spacing:-.2px;}
.th .sub{color:var(--muted);font-size:14px;margin:0 0 6px;}
.th p{color:var(--body);font-size:14.5px;line-height:1.55;}

/* event details — poster header */
.th .sheet-hero{height:206px;border-radius:16px;overflow:hidden;position:relative;margin:6px 0 18px;border:1px solid var(--border);display:flex;flex-direction:column;justify-content:flex-end;background-position:center;background-size:cover;}
.th .sheet-hero .sh-veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,43,35,.12) 0%,rgba(16,43,35,.05) 34%,rgba(16,43,35,.34) 52%,rgba(16,43,35,.6) 66%,rgba(16,43,35,.9) 100%);}
.th .sheet-hero .sh-head{position:relative;z-index:2;padding:0 18px 16px;}
.th .sheet-hero .sh-kicker{font-size:11.5px;letter-spacing:2px;font-weight:700;color:#E5C89A;text-transform:uppercase;text-shadow:0 1px 2px rgba(16,43,35,.95),0 0 8px rgba(16,43,35,.85),0 0 3px rgba(16,43,35,.9);}
.th .sheet-hero .sh-title{font-family:var(--serif);font-weight:600;font-size:26px;line-height:1.04;color:#fff;letter-spacing:-.3px;margin:7px 0 0;text-shadow:0 2px 12px rgba(16,43,35,.55);}
.th .kv{display:flex;align-items:center;gap:10px;color:var(--body);font-size:14.5px;margin:8px 0;}
.th .kv svg{color:var(--brass);flex:none;}
.th .sheet-going{display:flex;align-items:center;gap:12px;margin:12px 0 4px;}
.th .sg-faces{display:flex;flex:none;}
.th .sg-faces .portrait{width:32px;height:32px;border:2px solid #fff;margin-left:-11px;box-shadow:0 1px 5px rgba(16,43,35,.18);}
.th .sg-faces .portrait:first-child{margin-left:0;}
.th .sg-text{font-size:14.5px;color:var(--body);line-height:1.3;}
.th .tag{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--border);color:var(--muted);border-radius:999px;padding:5px 11px;font-size:12.5px;font-weight:500;}
.th .status-pill{display:inline-flex;align-items:center;gap:7px;background:rgba(46,89,73,.1);color:var(--forest);border-radius:999px;padding:7px 13px;font-size:13px;font-weight:600;}
.th .status-pill .dotc{width:8px;height:8px;border-radius:50%;background:var(--forest);}

/* sheet member list */
.th .m-item{display:flex;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border);}
.th .m-item:last-of-type{border-bottom:none;}
.th .m-item .portrait{width:56px;height:56px;flex:none;}
.th .m-item .mi-name{font-size:15.5px;color:var(--ink);font-weight:600;}
.th .m-item .mi-meta{font-size:13px;color:var(--muted);margin-top:2px;line-height:1.4;}
.th .m-item .na-av{width:44px;height:44px;flex:none;}
.th .m-item .na-av.portrait{box-shadow:0 2px 8px rgba(28,24,16,.14),0 0 0 1px var(--border);}
.th .na-photo{border-radius:12px;background-size:cover;background-repeat:no-repeat;border:1px solid var(--border);box-shadow:0 3px 9px rgba(16,43,35,.18);}
.th .na-ic{border-radius:50%;background:var(--surface);color:var(--forest);display:flex;align-items:center;justify-content:center;}
.th .na-main{flex:1;min-width:0;}
.th .m-item.mw{align-items:flex-start;padding:16px 0;}
.th .mi-main{flex:1;min-width:0;}
.th .mi-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.th .mi-bio{font-size:13.5px;color:var(--body);margin-top:5px;line-height:1.45;}
.th .mi-attrib{font-size:12.5px;color:var(--muted);margin-top:5px;}
.th .mi-welcome{flex:none;background:none;border:1px solid var(--forest);color:var(--forest);border-radius:999px;padding:7px 15px;font-family:var(--sans);font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .15s ease,color .15s ease,transform .12s ease;}
.th .mi-welcome:hover{background:rgba(46,89,73,.08);}
.th .mi-welcome:active{transform:translateY(1px);}
.th .mi-welcome:focus-visible{outline:2px solid var(--brass);outline-offset:2px;}
.th .mi-welcome.done{border-color:var(--border);color:var(--muted);background:var(--surface);cursor:default;display:inline-flex;align-items:center;gap:6px;}
.th .mi-welcome.done svg{width:14px;height:14px;color:var(--forest);}
.th .mi-meta{font-size:13px;color:var(--muted);}

/* messages destination */
.th .msg-row{cursor:pointer;transition:background .15s ease;border-radius:12px;margin:0 -8px;padding-left:8px;padding-right:8px;}
.th .msg-row:hover{background:var(--surface);}
.th .msg-right{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex:none;}
.th .msg-time{font-size:12px;color:var(--muted);white-space:nowrap;}
.th .msg-dot{width:9px;height:9px;border-radius:50%;background:var(--brass);}
.th .msg-row.unread .mi-name{font-weight:700;}
.th .msg-row.unread .mi-meta{color:var(--ink);}
.th .thread-back{display:inline-flex;align-items:center;gap:5px;background:none;border:none;padding:2px 0;margin-bottom:8px;cursor:pointer;font-family:var(--sans);font-size:14px;font-weight:600;color:var(--forest);}
.th .thread-head{display:flex;align-items:center;gap:12px;margin:2px 0 14px;padding-bottom:14px;border-bottom:1px solid var(--border);}
.th .thread-head .portrait{width:46px;height:46px;flex:none;}
.th .thread-head .tn{font-family:var(--serif);font-size:20px;color:var(--ink);}
.th .thread-head .ts{font-size:12.5px;color:var(--muted);margin-top:1px;}
.th .bubble{max-width:80%;padding:11px 14px;border-radius:16px;font-size:14.5px;line-height:1.42;}
.th .bubble.them{background:var(--surface);color:var(--ink);border-bottom-left-radius:5px;}
.th .bubble.me{background:var(--forest);color:#fff;margin-left:auto;border-bottom-right-radius:5px;}
.th .bubble.grouped{margin-bottom:3px;}
.th .bubble.them.grouped{border-bottom-left-radius:16px;}
.th .bubble.me.grouped{border-bottom-right-radius:16px;}
.th .bubble-time{font-size:11px;color:var(--muted);margin:3px 4px 12px;}
.th .reply-box{display:flex;gap:9px;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid var(--border);}
.th .reply-box input{flex:1;min-width:0;border:1px solid var(--border);border-radius:999px;padding:11px 16px;font-family:var(--sans);font-size:14px;background:var(--bg);color:var(--ink);}
.th .reply-box input:focus{outline:none;border-color:var(--forest);}
.th .reply-box button{flex:none;border:none;background:var(--forest);color:#fff;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s ease,transform .12s ease;}
.th .reply-box button:hover{background:var(--forest-hover);}
.th .reply-box button:active{transform:translateY(1px);}
.th .reply-box button svg{width:19px;height:19px;}
.th .btn-ghost{background:var(--surface);border:1px solid var(--border);color:var(--muted);border-radius:11px;min-height:44px;padding:0 16px;font-weight:600;font-size:13.5px;cursor:not-allowed;display:inline-flex;align-items:center;gap:7px;flex:none;}

/* action sheet list */
.th .action-list{display:flex;flex-direction:column;gap:2px;}
.th .action-item{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:none;border:none;cursor:pointer;padding:16px 6px;border-bottom:1px solid var(--border);font-family:var(--sans);font-size:16px;color:var(--ink);font-weight:500;min-height:56px;border-radius:8px;}
.th .action-item:last-child{border-bottom:none;}
.th .action-item:hover{background:var(--surface);}
.th .action-item:focus-visible{outline:2px solid var(--brass);outline-offset:-2px;}
.th .action-item .ai-ic{width:42px;height:42px;border-radius:50%;background:var(--surface);color:var(--forest);display:flex;align-items:center;justify-content:center;flex:none;}
.th .action-item .ai-sub{font-size:12.5px;color:var(--muted);font-weight:400;margin-top:2px;}

/* ready-to-reconnect tiles (network sheet) */
.th .rc-head{display:flex;align-items:center;gap:8px;font-family:var(--serif);font-size:18px;color:var(--forest-deep);margin:22px 0 2px;}
.th .rc-row{display:flex;flex-direction:column;gap:10px;padding:2px 0 4px;}
.th .rc-tile{background:linear-gradient(180deg,#FCF7EF 0%,#FBF4E8 100%);border:1px solid #EADFCB;border-radius:16px;padding:16px 17px;display:flex;align-items:center;gap:15px;box-shadow:0 5px 18px rgba(16,43,35,.08);}
.th .rc-av{width:56px;height:56px;flex:none;border-radius:50%;background:var(--surface);border:2px solid #fff;box-shadow:0 3px 10px rgba(28,24,16,.16),0 0 0 1px var(--border);display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:23px;color:var(--forest);}
.th .rc-tx{flex:1;min-width:0;}
.th .rc-name{font-family:var(--serif);font-size:18.5px;color:var(--ink);line-height:1.1;}
.th .rc-meta{font-size:12.5px;color:var(--muted);line-height:1.35;margin-top:4px;}
.th .rc-btn{flex:none;border:1px solid var(--forest);color:#fff;background:var(--forest);border-radius:999px;padding:10px 16px;font-family:var(--sans);font-size:13px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;box-shadow:0 4px 12px rgba(16,43,35,.2);transition:background .15s ease,transform .12s ease;}
.th .rc-btn:active{transform:translateY(1px);}
.th .rc-btn svg{width:15px;height:15px;flex:none;}
.th .rc-btn:hover{background:var(--forest-hover);}

/* stat grid / net hero (network sheet extras) */
.th .stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 4px;}
.th .stat{background:#fffdf9;border:1px solid var(--border);border-radius:14px;padding:14px;}
.th .stat-ic{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;background:var(--surface);color:var(--forest);margin-bottom:11px;}
.th .stat-ic svg{width:17px;height:17px;}
.th .stat.brass .stat-ic{background:rgba(176,141,87,.15);color:var(--brass);}
.th .stat .n{font-family:var(--serif);font-size:26px;font-weight:600;color:var(--forest);line-height:1;}
.th .stat .l{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.35;}
.th .stat.brass .n{color:var(--brass);}
.th .net-hero{position:relative;margin:16px 0 8px;}
.th .net-hero svg{display:block;width:100%;height:auto;}
.th .you-node{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:84px;height:84px;pointer-events:none;}
.th .you-node::before{content:"";position:absolute;inset:-28px;border-radius:50%;background:radial-gradient(circle,rgba(176,141,87,.32) 0%,rgba(176,141,87,.12) 50%,rgba(176,141,87,0) 72%);}
.th .you-node::after{content:"";position:absolute;inset:-13px;border-radius:50%;border:1px dashed rgba(176,141,87,.55);}
.th .you-node .portrait{position:relative;width:84px;height:84px;border:3px solid #fff;box-shadow:0 0 0 2.5px var(--brass),0 12px 26px rgba(16,43,35,.32);}

/* profile accordion + identity */
.th .accordion{border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-top:10px;background:#fffdf9;box-shadow:0 2px 10px rgba(16,43,35,.04);}
.th .acc-row{border-bottom:1px solid var(--border);}
.th .acc-row:last-child{border-bottom:none;}
.th .acc-head{width:100%;display:flex;align-items:center;gap:12px;background:none;border:none;cursor:pointer;padding:14px 16px;min-height:56px;text-align:left;font-family:var(--sans);}
.th .acc-head:hover{background:var(--surface);}
.th .acc-head:focus-visible{outline:2px solid var(--brass);outline-offset:-2px;}
.th .acc-head .an{font-size:15px;color:var(--ink);font-weight:600;}
.th .acc-head .as{font-size:12.5px;color:var(--muted);margin-top:2px;}
.th .acc-chev{margin-left:auto;color:var(--muted);transition:transform .22s ease;}
.th .acc-row.open .acc-chev{transform:rotate(180deg);}
.th .acc-body{max-height:0;overflow:hidden;transition:max-height .28s ease;}
.th .acc-row.open .acc-body{max-height:220px;}
.th .acc-inner{padding:0 16px 16px;color:var(--body);font-size:13.5px;line-height:1.55;}
.th .pf-hero{display:flex;align-items:center;gap:16px;margin:10px 0 2px;}
.th .pf-hero .portrait{width:76px;height:76px;}
.th .pf-name{font-family:var(--serif);font-size:25px;color:var(--ink);line-height:1.08;}
.th .pf-role{font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:var(--brass);font-weight:700;margin-top:6px;}
.th .pf-loc{font-size:13.5px;color:var(--muted);margin-top:4px;}
.th .pf-bio{font-size:14px;color:var(--body);line-height:1.5;margin:16px 0 2px;padding:14px 16px;background:var(--surface);border:1px solid var(--border);border-radius:14px;}
.th .pf-bio-label{display:block;font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:var(--brass);font-weight:700;margin-bottom:6px;}

/* referral lineage drill-down */
.th .jt-card{margin-top:11px;background:#fffdf9;border:1px solid var(--border);border-radius:16px;box-shadow:0 2px 10px rgba(16,43,35,.05);padding:15px 16px 17px;min-height:250px;}
.th .jt-path{display:flex;align-items:center;flex-wrap:wrap;gap:2px 3px;margin:-3px 0 14px;padding-bottom:13px;border-bottom:1px solid var(--border);}
.th .jt-pnode{display:flex;flex-direction:column;align-items:center;gap:5px;width:52px;background:none;border:none;cursor:pointer;padding:2px 0;font-family:var(--sans);transition:transform .12s ease;}
.th .jt-pnode:active{transform:scale(.95);}
.th .jt-pnode:focus-visible{outline:2px solid var(--brass);outline-offset:2px;border-radius:10px;}
.th .jt-pav{width:38px;height:38px;border-radius:50%;border:2px solid #fff;box-shadow:0 2px 7px rgba(16,43,35,.16);}
.th .jt-pnode.home .jt-pav{box-shadow:0 0 0 2px var(--brass),0 3px 9px rgba(16,43,35,.2);}
.th .jt-pnm{font-size:10px;font-weight:600;color:var(--muted);line-height:1;letter-spacing:.2px;}
.th .jt-pnode.home .jt-pnm{color:var(--brass);font-weight:700;text-transform:uppercase;letter-spacing:.6px;}
.th .jt-pnode:hover .jt-pnm{color:var(--forest);}
.th .jt-parrow{color:#cdbfa4;flex:none;display:inline-flex;align-items:center;margin-bottom:14px;}
.th .jt-parrow svg{width:13px;height:13px;}
.th .jt-focus{display:flex;align-items:center;gap:14px;padding:2px 0 2px;}
.th .jt-fav{width:58px;height:58px;border-radius:50%;border:2px solid #fff;flex:none;box-shadow:0 0 0 3px rgba(176,141,87,.42),0 4px 13px rgba(16,43,35,.17);}
.th .jt-fname{font-family:var(--serif);font-size:22px;color:var(--ink);line-height:1.06;}
.th .jt-fcap{font-size:10.5px;color:var(--brass);font-weight:700;letter-spacing:1px;margin-top:5px;text-transform:uppercase;}
.th .jt-story{font-size:13px;color:var(--body);line-height:1.55;margin:13px 0 2px;padding:12px 14px;background:linear-gradient(180deg,#FCF7EF,#FBF4E8);border:1px solid #EADFCB;border-radius:12px;}
.th .jt-branchlbl{font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted);font-weight:700;margin:17px 0 2px;}
.th .jt-kids{list-style:none;margin:7px 0 0;padding:0;}
.th .jt-kids li{position:relative;padding-left:26px;}
.th .jt-kids li::before{content:"";position:absolute;left:6px;top:0;height:33px;width:16px;border-left:1.5px solid rgba(176,141,87,.55);border-bottom:1.5px solid rgba(176,141,87,.55);border-bottom-left-radius:9px;}
.th .jt-kids li::after{content:"";position:absolute;left:6px;top:33px;bottom:0;border-left:1.5px solid rgba(176,141,87,.55);}
.th .jt-kids li:last-child::after{display:none;}
.th .jt-kid{display:flex;align-items:center;gap:12px;width:100%;background:none;border:none;padding:8px 6px 8px 8px;text-align:left;font-family:var(--sans);cursor:pointer;border-radius:12px;transition:background .15s ease,transform .12s ease;}
.th .jt-kid:hover{background:var(--surface);}
.th .jt-kid:active{transform:scale(.99);}
.th .jt-kid:focus-visible{outline:2px solid var(--brass);outline-offset:-2px;}
.th .jt-kav{width:44px;height:44px;border-radius:50%;border:2px solid #fff;box-shadow:0 3px 9px rgba(16,43,35,.16);flex:none;}
.th .jt-ktx{flex:1;min-width:0;}
.th .jt-knm{display:block;font-size:14.5px;font-weight:600;color:var(--ink);line-height:1.15;}
.th .jt-kcap{display:block;font-size:11.5px;color:var(--muted);margin-top:2px;line-height:1.3;}
.th .jt-more{flex:none;display:inline-flex;align-items:center;gap:4px;color:var(--forest);font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;background:rgba(46,89,73,.09);border-radius:999px;padding:5px 10px;}
.th .jt-more svg{width:13px;height:13px;}
.th .jt-end{font-size:12.5px;color:var(--muted);line-height:1.5;margin-top:12px;font-style:italic;}

/* network sheet section system */
.th .ns{padding-top:22px;margin-top:24px;border-top:1px solid var(--border);}
.th .ns-first{padding-top:4px;margin-top:12px;border-top:none;}
.th .ns-eyebrow{display:flex;align-items:center;gap:7px;font-size:10.5px;letter-spacing:1.7px;text-transform:uppercase;color:var(--brass);font-weight:700;margin-bottom:8px;}
.th .ns-eyebrow svg{width:15px;height:15px;flex:none;}
.th .ns-title{font-family:var(--serif);font-size:20px;color:var(--ink);line-height:1.16;margin:0;}
.th .ns-sub{color:var(--muted);font-size:13.5px;line-height:1.46;margin:5px 0 0;}

/* Your Ripple */
.th .rip-entry{width:100%;display:flex;align-items:center;gap:14px;text-align:left;cursor:pointer;font-family:var(--sans);margin:16px 0 2px;padding:15px 16px;border-radius:16px;border:1px solid rgba(176,141,87,.34);background:linear-gradient(120deg,#fffdf9 0%,rgba(176,141,87,.11) 100%);box-shadow:0 3px 14px rgba(176,141,87,.12);transition:box-shadow .2s ease,transform .2s ease;}
.th .rip-entry:hover{box-shadow:0 6px 20px rgba(176,141,87,.2);transform:translateY(-1px);}
.th .rip-entry-mini{flex:none;width:44px;height:44px;color:var(--brass);}
.th .rip-entry-tx{flex:1;min-width:0;}
.th .rip-entry-t{font-family:var(--serif);font-size:16px;color:var(--ink);}
.th .rip-entry-s{font-size:12.5px;color:var(--muted);margin-top:2px;line-height:1.4;}
.th .rip-entry-cta{flex:none;color:var(--brass);display:flex;align-items:center;}
.th .rip-back-head{display:flex;align-items:center;gap:11px;margin:2px 0 8px;}
.th .rip-back{width:38px;height:38px;border-radius:50%;border:1px solid var(--border);background:#fffdf9;display:flex;align-items:center;justify-content:center;color:var(--forest);cursor:pointer;flex:none;}
.th .rip-back:hover{background:var(--surface);}
.th .rip-back-title{font-family:var(--serif);font-size:21px;color:var(--ink);}
.th .rip-hero{position:relative;margin-top:13px;padding:14px 15px 0;border:1px solid var(--border);border-radius:20px;background:radial-gradient(115% 82% at 50% 30%,#FCF8F1 0%,#F6EFE2 60%,#F0E7D6 100%);box-shadow:0 3px 16px rgba(16,43,35,.06),inset 0 1px 0 rgba(255,255,255,.55);overflow:hidden;}
.th .rip-stage{position:relative;width:100%;height:302px;margin:2px 0 4px;overflow:hidden;}
.th .rip-guide{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;border:1px solid rgba(176,141,87,.15);pointer-events:none;transition:border-color .4s ease,box-shadow .4s ease,opacity .4s ease;}
.th .rip-pulse{position:absolute;left:50%;top:50%;width:112px;height:112px;border-radius:50%;border:1.5px solid var(--brass);opacity:0;pointer-events:none;animation:ripPulse 4.4s ease-out infinite;}
@keyframes ripPulse{0%{transform:translate(-50%,-50%) scale(.4);opacity:0;}14%{opacity:.5;}100%{transform:translate(-50%,-50%) scale(2.55);opacity:0;}}
.th .rip-you{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:74px;height:74px;z-index:6;cursor:pointer;}
.th .rip-you::before{content:"";position:absolute;inset:-15px;border-radius:50%;background:radial-gradient(circle,rgba(176,141,87,.34) 0%,rgba(176,141,87,.10) 55%,rgba(176,141,87,0) 72%);}
.th .rip-you .portrait{position:relative;width:74px;height:74px;border:3px solid #fff;box-shadow:0 0 0 2.5px var(--brass),0 10px 24px rgba(16,43,35,.34);}
.th .rip-node{position:absolute;border-radius:50%;transform:translate(-50%,-50%) scale(.35);opacity:0;pointer-events:none;transition:opacity .5s ease,transform .55s cubic-bezier(.2,.8,.3,1);}
.th .rip-face{border:2.5px solid #fff;box-shadow:0 4px 12px rgba(16,43,35,.22);z-index:4;background-size:500% 400%;background-repeat:no-repeat;cursor:pointer;}
.th .rip-mono{background:var(--surface);display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:19px;color:var(--forest);}
.th .rip-g2{z-index:3;}
.th .rip-g3{z-index:2;}
.th .rip-stage[data-lvl="1"] .rip-g1,.th .rip-stage[data-lvl="2"] .rip-g1,.th .rip-stage[data-lvl="2"] .rip-g2,.th .rip-stage[data-lvl="3"] .rip-g1,.th .rip-stage[data-lvl="3"] .rip-g2,.th .rip-stage[data-lvl="3"] .rip-g3{opacity:1;transform:translate(-50%,-50%) scale(1);pointer-events:auto;}
.th .rip-stage[data-lvl="1"] .rip-gg1,.th .rip-stage[data-lvl="2"] .rip-gg2,.th .rip-stage[data-lvl="3"] .rip-gg3{border-color:var(--brass);border-width:1.5px;box-shadow:0 0 0 1px rgba(176,141,87,.16),0 6px 22px rgba(176,141,87,.26);}
.th .rip-stage:not([data-lvl="0"]) .rip-pulse{animation:none;opacity:0;}
.th .rip-tap{display:flex;align-items:center;justify-content:center;gap:7px;width:max-content;max-width:90%;margin:0 auto 4px;padding:7px 15px;border:1px solid rgba(176,141,87,.4);border-radius:999px;background:rgba(176,141,87,.07);color:var(--brass);font-size:12px;font-weight:600;letter-spacing:.2px;transition:opacity .3s ease;}
.th .rip-tap svg{animation:tapBob 1.5s ease-in-out infinite;}
@keyframes tapBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-2.5px)}}
.th .rip-stage:not([data-lvl="0"]) ~ .rip-tap{opacity:0;height:0;margin:0;padding:0;border-width:0;overflow:hidden;pointer-events:none;}
.th .rip-headline{font-family:var(--serif);font-size:20px;line-height:1.32;color:var(--ink);text-align:center;margin:8px 8px 0;}
.th .rip-headline b{color:var(--forest);font-weight:600;}
.th .rip-sub2{text-align:center;color:var(--muted);font-size:12.5px;line-height:1.5;margin:6px 18px 12px;min-height:38px;}
.th .rip-key{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:nowrap;margin:10px -15px 0;padding:11px 12px 12px;border-top:1px solid rgba(176,141,87,.22);background:rgba(255,255,255,.28);}
.th .rip-step{background:none;border:0;padding:4px 3px;font-family:var(--sans);font-size:12px;color:var(--muted);cursor:pointer;line-height:1.15;white-space:nowrap;transition:color .2s;}
.th .rip-step b{font-family:var(--serif);font-weight:600;font-size:15px;color:var(--ink);margin-right:3px;transition:color .2s;}
.th .rip-step:hover{color:var(--body);}
.th .rip-step.done b{color:var(--forest);}
.th .rip-step.active{color:var(--brass);}
.th .rip-step.active b{color:var(--brass);}
.th .rip-key-sep{width:5px;height:5px;border-radius:50%;background:var(--border);flex:none;}
.th .thankyou{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:20px 18px 16px;margin-top:12px;overflow:hidden;}
.th .thankyou::before{content:"\201C";position:absolute;top:4px;left:13px;font-family:var(--serif);font-size:58px;line-height:1;color:rgba(176,141,87,.20);pointer-events:none;}
.th .thankyou .q{position:relative;font-style:italic;color:var(--ink);font-size:14.5px;line-height:1.55;}
.th .thankyou .a{position:relative;font-size:12.5px;color:var(--muted);margin-top:10px;}

/* invite sheet */
.th .inv-field{margin:12px 0 0;}
.th .inv-field label{display:block;font-size:12.5px;font-weight:600;color:var(--muted);margin:0 0 6px;}
.th .inv-field input,.th .inv-field textarea{width:100%;box-sizing:border-box;font-family:var(--sans);font-size:15px;color:var(--ink);background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:12px 14px;resize:none;}
.th .inv-field input:focus,.th .inv-field textarea:focus{outline:none;border-color:var(--forest);box-shadow:0 0 0 3px rgba(46,89,73,.12);}
.th .inv-field input::placeholder,.th .inv-field textarea::placeholder{color:#A99C84;}
.th .inv-how{margin-top:16px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px 16px;}
.th .inv-how-h{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--brass);font-weight:600;margin-bottom:10px;}
.th .inv-step{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;color:var(--body);line-height:1.4;margin:8px 0;}
.th .inv-dot{flex:none;width:20px;height:20px;border-radius:50%;background:var(--forest);color:#fff;font-size:11.5px;font-weight:600;display:flex;align-items:center;justify-content:center;margin-top:1px;}
.th .inv-seg{display:flex;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:4px;margin-bottom:10px;}
.th .inv-seg-btn{flex:1;border:none;background:transparent;font-family:var(--sans);font-size:13.5px;font-weight:600;color:var(--muted);padding:9px 6px;border-radius:9px;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s;}
.th .inv-seg-btn.active{background:#fff;color:var(--forest);box-shadow:0 1px 3px rgba(0,0,0,.09);}
.th .inv-hint{font-size:12.5px;color:var(--muted);line-height:1.4;margin-top:8px;display:flex;gap:7px;align-items:baseline;}
.th .inv-rec{flex:none;font-size:10px;letter-spacing:.05em;text-transform:uppercase;font-weight:700;color:var(--forest);background:rgba(46,89,73,.1);border-radius:999px;padding:2px 8px;}
.th .inv-qr{display:flex;flex-direction:column;align-items:center;text-align:center;padding:6px 0 2px;}
.th .inv-qr .qr{width:148px;height:148px;border:1px solid var(--border);border-radius:12px;}
.th .inv-qr-cap{font-size:12.5px;color:var(--muted);line-height:1.4;margin-top:11px;max-width:250px;}
.th .inv-note-head{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 6px;}
.th .inv-note-head label{margin:0;}
.th .inv-reset{border:none;background:transparent;font-family:var(--sans);font-size:12.5px;font-weight:600;color:var(--forest);cursor:pointer;padding:2px 4px;}
.th .inv-reset:hover{text-decoration:underline;}

/* toast */
.th-toast{position:absolute;left:50%;bottom:104px;transform:translateX(-50%) translateY(12px);background:var(--forest-deep);color:#fff;font-size:14px;font-weight:500;padding:13px 20px;border-radius:14px;box-shadow:0 10px 30px rgba(16,43,35,.4);opacity:0;pointer-events:none;transition:opacity .22s ease,transform .22s ease;z-index:60;display:flex;align-items:center;gap:9px;max-width:80%;}
.th-toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
.th-toast svg{color:var(--brass);flex:none;}

/* portraits — faces.jpg is a 5x4 sprite sheet (500% 400%) */
.th .p-mark{background:url(assets/faces.jpg) 0% 0% / 500% 400% no-repeat;}
.th .p-victoria{background:url(assets/faces.jpg) 25% 0% / 500% 400% no-repeat;}
.th .p-richard{background:url(assets/faces.jpg) 100% 0% / 500% 400% no-repeat;}
.th .p-sophia{background:url(assets/faces.jpg) 0% 33.333% / 500% 400% no-repeat;}
.th .p-clara{background:url(assets/faces.jpg) 25% 66.667% / 500% 400% no-repeat;}
.th .p-james{background:url(assets/faces.jpg) 0% 66.667% / 500% 400% no-repeat;}
.th .p-eleanor{background:url(assets/faces.jpg) 75% 0% / 500% 400% no-repeat;}
.th .p-rebecca{background:url(assets/faces.jpg) 75% 66.667% / 500% 400% no-repeat;}
.th .p-emma{background:url(assets/emma.jpg) center 18% / cover no-repeat;}

/* ============================================================
   COMMUNITY MOMENTS — finite editorial feed (reference card style)
   ============================================================ */
.th .greeting .fd-hello-k{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--brass);font-weight:700;margin-bottom:8px;}

.th .fd-feed{padding:16px 20px 24px;display:flex;flex-direction:column;gap:20px;}

.th .fd-card{background:#FFFDF9;border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);overflow:hidden;}
.th .fd-body{padding:20px 20px 22px;}
.th .fd-center{display:flex;flex-direction:column;align-items:center;text-align:center;}

/* eyebrow — filled brass pill */
.th .fd-eyebrow{display:inline-block;align-self:flex-start;font-size:10.5px;letter-spacing:.19em;text-transform:uppercase;font-weight:700;color:#43300F;background:linear-gradient(150deg,#D9BD8B,#B8945F);padding:5px 12px;border-radius:999px;box-shadow:0 2px 8px rgba(176,141,87,.26);}
.th .fd-center .fd-eyebrow{align-self:center;}

/* title */
.th .fd-title{font-family:var(--serif);font-weight:600;font-size:23px;line-height:1.12;color:var(--ink);margin:12px 0 0;letter-spacing:-.3px;}

/* brass diamond divider */
.th .fd-div{display:flex;align-items:center;justify-content:center;gap:11px;margin:14px 0 16px;}
.th .fd-div::before,.th .fd-div::after{content:"";width:38px;height:1px;background:rgba(176,141,87,.5);}
.th .fd-div b{width:6px;height:6px;background:var(--brass);transform:rotate(45deg);display:block;flex:none;}

/* meta rows */
.th .fd-meta{display:flex;align-items:center;gap:10px;color:var(--body);font-size:14.5px;margin:9px 0;}
.th .fd-meta svg{width:18px;height:18px;color:var(--brass);flex:none;}
.th .fd-note{color:var(--muted);font-size:14.5px;line-height:1.55;margin:8px 0 0;}

/* CTA */
.th .fd-cta{width:100%;margin-top:17px;background:var(--forest);color:#F7F2E9;border:none;border-radius:14px;padding:14px;font-family:var(--sans);font-size:15px;font-weight:600;cursor:pointer;box-shadow:0 6px 18px rgba(16,43,35,.2);}
.th .fd-cta:active{background:var(--forest-hover);}
.th .fd-cta-ghost{background:transparent;color:var(--forest);box-shadow:inset 0 0 0 1.5px var(--border);}

/* photo-led event card */
.th .fd-photo{height:184px;background-size:cover;background-repeat:no-repeat;position:relative;}
.th .fd-photo-veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,43,35,.28) 0%,rgba(16,43,35,0) 34%,rgba(16,43,35,0) 62%,rgba(16,43,35,.14) 100%);}
.th .fd-photo-tag{position:absolute;top:13px;right:13px;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#2A1E0C;background:rgba(255,253,249,.94);border-radius:999px;padding:6px 12px;box-shadow:0 4px 14px rgba(16,43,35,.22);backdrop-filter:saturate(1.2) blur(2px);}
.th .fd-photo-tag svg{width:14px;height:14px;color:var(--forest);}
.th .fd-tag-reserved{color:var(--forest);}

/* quiet (illustration-led) cards */
.th .fd-quiet{background:linear-gradient(168deg,#FFFDF9 0%,#FAF5EC 100%);}
.th .fd-crest{width:60px;height:60px;border-radius:50%;border:1.5px solid var(--brass);display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:21px;color:var(--forest);background:radial-gradient(circle at 32% 26%,#fff,#F3EDE3);margin-bottom:14px;}
.th .fd-giftmark{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--forest);background:#F1F5F1;box-shadow:inset 0 0 0 1px rgba(46,89,73,.14);margin-bottom:14px;}
.th .fd-giftmark svg{width:24px;height:24px;}
.th .fd-concierge-ava{width:66px;height:66px;border-radius:50%;background:url(assets/faces.jpg) 100% 66% / 500% 400% no-repeat;margin-bottom:14px;border:2px solid #fff;box-shadow:0 0 0 1.5px rgba(176,141,87,.4),0 6px 16px rgba(16,43,35,.16);}
.th .fd-prose{font-family:var(--serif);font-size:16.5px;line-height:1.6;color:var(--body);font-style:italic;margin:2px 0 0;}
.th .fd-sign{font-size:11.5px;letter-spacing:.15em;text-transform:uppercase;color:var(--brass);font-weight:700;margin-top:15px;}

/* poll */
.th .fd-poll{display:flex;flex-direction:column;gap:9px;}
.th .fd-opt{position:relative;overflow:hidden;text-align:left;border:1px solid var(--border);background:#fff;border-radius:13px;padding:14px 15px;font-family:var(--sans);font-size:14.5px;font-weight:600;color:var(--body);cursor:pointer;display:flex;justify-content:space-between;align-items:center;}
.th .fd-opt .fd-fill{position:absolute;left:0;top:0;bottom:0;width:0;background:rgba(46,89,73,.1);z-index:0;transition:width .6s cubic-bezier(.4,0,.2,1);}
.th .fd-opt .fd-lab,.th .fd-opt .fd-pct{position:relative;z-index:1;}
.th .fd-opt .fd-pct{opacity:0;transition:opacity .3s ease;color:var(--forest);font-variant-numeric:tabular-nums;}
.th .fd-poll.voted .fd-opt{cursor:default;}
.th .fd-poll.voted .fd-pct{opacity:1;}
.th .fd-opt.chosen{border-color:var(--forest);box-shadow:inset 0 0 0 1px var(--forest);}
.th .fd-poll-foot{color:var(--muted);font-size:13px;margin:12px 0 0;line-height:1.5;}

/* progress */
.th .fd-prog{display:flex;gap:10px;}
.th .fd-prog-item{flex:1;text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px 4px;}
.th .fd-prog-item b{display:block;font-family:var(--serif);font-size:26px;color:var(--forest);font-weight:600;line-height:1;}
.th .fd-prog-item span{display:block;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-top:8px;}

/* end of feed */
.th .fd-end{text-align:center;padding:20px 30px 6px;}
.th .fd-end .d{color:var(--brass);font-size:12px;letter-spacing:.1em;margin-bottom:13px;}
.th .fd-end h4{font-family:var(--serif);font-size:20px;color:var(--ink);font-weight:600;margin:0;letter-spacing:-.2px;}
.th .fd-end p{color:var(--muted);font-size:14px;line-height:1.55;margin:9px auto 0;max-width:270px;}

@media (prefers-reduced-motion:reduce){
  .th *,.th-sheet,.th-backdrop,.th-toast{transition:none !important;animation:none !important;}
  .th .giftcard::after,.th .giftcard-seal::after{animation:none;}
  .th .giftcard-seal::after{display:none;}
}
