/* Header wordmark */
.brand-wordmark{display:flex!important;align-items:center;width:auto!important;height:42px;padding:0!important}.brand-wordmark img{display:block;width:auto;height:24px;max-width:92px;object-fit:contain}

/* TWINS v0.2.44 — precision nav, Nearby/いま switch, messaging */
.bottom-nav a{position:relative;gap:4px;font-size:9px;font-weight:650;letter-spacing:.01em}
.bottom-nav .nav-icon{width:23px;height:23px;display:grid;place-items:center;margin:0}
.bottom-nav svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav a.active .nav-icon{filter:drop-shadow(0 0 8px rgba(229,20,189,.26))}
.nav-count{position:absolute;top:10px;left:calc(50% + 8px);min-width:16px;height:16px;padding:0 4px;display:grid;place-items:center;border:2px solid #0c090e;border-radius:999px;background:#ef2abf;color:#fff;font-size:8px;font-weight:900;line-height:1}

.near-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:0 14px 10px;padding:3px;border:1px solid #ffffff0d;border-radius:13px;background:#0e0b10}
.near-mode-tabs a{padding:9px 8px;border-radius:10px;text-align:center;color:#6f6973;font-size:10px;font-weight:800}
.near-mode-tabs a.active{background:#ffffff0d;color:#fff;box-shadow:0 4px 16px #0003}
.near-mode-tabs a.active:last-child{color:#ff7bdc;background:linear-gradient(135deg,#d509b51a,#ffffff08)}
.near-now-empty{grid-column:1/-1;padding:54px 18px;text-align:center;color:#77717e}.near-now-empty strong{display:block;color:#d4cdd7;font-size:14px}.near-now-empty p{margin:6px 0 0;font-size:9px;line-height:1.6}

.messages-page{padding-bottom:92px}.messages-page-head{padding-bottom:10px}.message-thread-list{display:grid}.message-thread-row{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px 14px;border-bottom:1px solid #ffffff0b;background:#0d0a0e;color:#eee}.message-thread-row.is-unread{background:linear-gradient(90deg,#d509b50b,transparent)}.message-thread-row>img{width:50px;height:50px;border-radius:16px;object-fit:cover;background:#17131a}.message-thread-copy{min-width:0}.message-thread-copy>div{display:flex;align-items:center;gap:8px}.message-thread-copy strong{font-size:13px}.message-thread-copy time{margin-left:auto;color:#665f69;font-size:8px}.message-thread-copy p{margin:5px 0 0;color:#817a84;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-thread-row.is-unread .message-thread-copy p{color:#c7bec9}.message-unread-badge{min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:#e513bc;color:white;font-size:8px}.messages-empty{display:grid;justify-items:center;padding:90px 24px;text-align:center}.messages-empty-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:18px;background:#d509b516;color:#e34bc5}.messages-empty-icon svg{width:27px;fill:none;stroke:currentColor;stroke-width:1.7}.messages-empty strong{margin-top:13px;font-size:13px}.messages-empty p{max-width:270px;margin:6px 0 0;color:#756e79;font-size:9px;line-height:1.6}

.message-thread-page{min-height:100dvh;padding-bottom:calc(139px + env(safe-area-inset-bottom));background:#09070a}.message-thread-head{position:sticky;top:0;z-index:20;height:66px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;padding:0 10px;border-bottom:1px solid #ffffff0c;background:#0b080bd9;backdrop-filter:blur(22px)}.message-thread-head>a:first-child{width:38px;height:38px;display:grid;place-items:center;color:#bcb4c0}.message-thread-head svg{width:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.message-peer{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0}.message-peer img{width:34px;height:34px;border-radius:12px;object-fit:cover}.message-peer strong{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.message-bubbles{display:flex;flex-direction:column;gap:7px;padding:18px 12px 10px}.message-bubble-row{display:flex}.message-bubble-row.is-me{justify-content:flex-end}.message-bubble{max-width:min(78%,430px);padding:9px 11px 7px;border-radius:17px;background:#181319;border:1px solid #ffffff0b}.is-me .message-bubble{border-color:#f12bb52b;background:linear-gradient(135deg,#d10ab4,#9d35d0);color:#fff;border-bottom-right-radius:5px}.is-them .message-bubble{border-bottom-left-radius:5px}.message-bubble p{margin:0;font-size:12px;line-height:1.55;overflow-wrap:anywhere}.message-bubble time{display:block;margin-top:4px;text-align:right;color:#817782;font-size:7px}.is-me .message-bubble time{color:#f2cfe9}.message-start-note{text-align:center;color:#665f69;font-size:9px}.message-error{margin:10px 12px 0;padding:9px 11px;border:1px solid #ed547147;border-radius:11px;background:#ed547112;color:#eaa5b3;font-size:9px}.message-compose{position:fixed;z-index:32;left:50%;bottom:calc(74px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(620px,100%);display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:7px;padding:8px 10px;border-top:1px solid #ffffff0c;background:#0c090de8;backdrop-filter:blur(22px)}.message-compose textarea{width:100%;min-width:0;max-height:120px;resize:none;border:1px solid #ffffff10;border-radius:16px;background:#161217;color:#fff;padding:11px 13px;font:inherit;font-size:16px;outline:0}.message-compose textarea:focus{border-color:#e520bb54}.message-compose button{width:44px;height:44px;align-self:end;display:grid;place-items:center;border:0;border-radius:14px;background:linear-gradient(135deg,#dc0bb8,#a735da);color:#fff}.message-compose button svg{width:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.profile-message-start{margin:12px 0 0}.profile-message-start button{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border:1px solid #e32abd33;border-radius:14px;background:#d509b511;color:#f6c9e9;font-size:11px;font-weight:800}.profile-message-start svg{width:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav a[aria-disabled="true"]{opacity:.48;cursor:default}
