:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:#20302d;background:#f5f8f4;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body{margin:0;min-height:100%;width:100%}body{overflow-x:hidden}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}input,textarea,select{outline:none}input:focus,textarea:focus,select:focus{border-color:#37b88a!important;box-shadow:0 0 0 3px rgba(55,184,138,.15)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;color:#39ab7f;margin:0 0 10px}.brand{display:inline-flex;align-items:center;gap:11px;font-size:22px;font-weight:900;letter-spacing:-.06em;color:#213d35;white-space:nowrap}.brand strong{color:#44b98c;font-weight:900}.brand-mark{display:inline-block;position:relative;width:34px;height:34px;background:#2baf83;border-radius:13px 13px 13px 5px;transform:rotate(-8deg);box-shadow:0 8px 15px rgba(25,154,113,.23)}.brand-mark span:first-child{position:absolute;top:13px;left:9px;width:16px;height:4px;border-radius:4px;background:#fff}.brand-mark span:last-child{position:absolute;top:20px;left:9px;width:10px;height:3px;border-radius:4px;background:#fff;opacity:.74}.avatar{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;border-radius:16px;background:#e2f4e9;color:#238b68;font-size:17px;font-weight:800;letter-spacing:-.04em}.avatar-small{width:38px;height:38px;border-radius:13px}.avatar-top{width:40px;height:40px;border-radius:14px;background:#d8f1e5}.primary-button,.secondary-button,.hero-button{border:0;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:14px;transition:transform .18s,box-shadow .18s,background .18s}.primary-button:hover,.secondary-button:hover,.hero-button:hover{transform:translateY(-2px)}.primary-button{background:#249e75;color:#fff;padding:13px 23px;box-shadow:0 8px 20px rgba(28,151,110,.18)}.primary-button:hover{background:#17885f;box-shadow:0 12px 22px rgba(28,151,110,.24)}.secondary-button{background:#dcf4e9;color:#168560;padding:11px 16px}.secondary-button:hover{background:#caecd9}.form-error{font-size:13px;color:#bb3e43;background:#fff0ee;border:1px solid #ffd5d2;padding:11px 13px;border-radius:11px;line-height:1.45}.toast{position:fixed;z-index:100;bottom:30px;left:50%;transform:translateX(-50%);min-width:220px;max-width:min(440px,calc(100vw - 30px));padding:12px 18px;border-radius:13px;background:#1d3830;color:#fff;font-size:13px;font-weight:700;box-shadow:0 15px 35px rgba(22,50,40,.2);text-align:center}.toast.error{background:#ae4e49}

/* Login / registration */
.auth-screen{min-height:100svh;display:grid;grid-template-columns:minmax(450px,1.05fr) minmax(420px,.95fr);background:#fff}.auth-story{position:relative;overflow:hidden;background:linear-gradient(150deg,#155f53 0%,#1b826b 48%,#36a981 100%);color:#fff}.story-grid{position:absolute;inset:0;opacity:.24;background-image:linear-gradient(rgba(255,255,255,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.09) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(90deg,#000,transparent)}.auth-story:before,.auth-story:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.18)}.auth-story:before{width:570px;height:570px;right:-260px;top:-120px}.auth-story:after{width:500px;height:500px;left:-310px;bottom:-240px}.story-content{position:relative;z-index:1;min-height:100svh;max-width:700px;margin:auto;padding:44px clamp(38px,6vw,100px) 32px;display:flex;flex-direction:column}.brand-light{color:#fff}.brand-light strong{color:#bdf5ce}.brand-light .brand-mark{background:#b9f4cb;box-shadow:none}.brand-light .brand-mark span{background:#1c8068}.story-copy{margin-top:clamp(65px,10vh,130px)}.story-eyebrow{color:#bdf5ce}.story-copy h1{font-size:clamp(39px,4.3vw,68px);line-height:1.19;letter-spacing:-.06em;margin:16px 0 18px}.story-copy h1 em,.welcome-hero h2 em{font-style:normal;color:#c6f4cd}.story-copy>p:last-child{font-size:15px;line-height:1.95;color:#def4e9;max-width:460px}.sample-card{width:min(430px,95%);padding:18px 20px;background:rgba(255,255,255,.97);color:#264137;border-radius:22px;box-shadow:0 28px 60px rgba(0,54,35,.19);margin:35px 0 35px auto;transform:rotate(-3deg)}.sample-top{display:flex;align-items:center;gap:11px;margin-bottom:17px}.sample-avatar{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:#d9f4e3;color:#208c64;font-weight:900}.sample-top strong,.sample-top small{display:block}.sample-top strong{font-size:13px}.sample-top small{font-size:10px;color:#8ca397;margin-top:3px}.sample-signal{margin-left:auto;width:8px;height:8px;border-radius:50%;background:#44cc8e}.sample-bubble{font-size:11px;line-height:1.45;padding:9px 12px;border-radius:12px;max-width:80%;width:max-content;margin:8px 0}.sample-bubble-in{background:#edf5f0}.sample-bubble-out{margin-left:auto;background:#d2f5df;color:#17674c}.story-footer{margin-top:auto;color:rgba(255,255,255,.73);font-size:12px;letter-spacing:.12em}.auth-side{display:grid;place-items:center;padding:36px 28px}.auth-panel{width:min(420px,100%)}.auth-mobile-brand{display:none}.auth-panel h2{font-size:34px;letter-spacing:-.055em;margin:0 0 8px}.auth-subtitle{font-size:14px;color:#82948b;margin:0 0 29px;line-height:1.6}.auth-switch{display:grid;grid-template-columns:1fr 1fr;background:#f1f6f2;padding:4px;border-radius:13px;margin-bottom:25px}.auth-switch button{border:0;background:transparent;padding:10px;border-radius:10px;color:#83938a;font-weight:800}.auth-switch button.active{background:#fff;color:#167d5c;box-shadow:0 4px 12px rgba(37,84,57,.09)}.auth-form{display:flex;flex-direction:column;gap:8px}.auth-form label,.profile-form label,.example-form label{font-size:12px;font-weight:800;color:#3c5048;margin-top:9px}.auth-form input,.auth-form select,.profile-form input,.profile-form select,.profile-form textarea,.memory-form textarea,.example-form textarea{width:100%;border:1px solid #e1eae3;background:#f9fbf8;border-radius:12px;color:#263e34;padding:12px 13px;min-height:45px;transition:border-color .2s,box-shadow .2s}.auth-form input::placeholder,.profile-form textarea::placeholder,.memory-form textarea::placeholder,.example-form textarea::placeholder{color:#a8b9ae}.auth-submit{width:100%;margin-top:18px;min-height:48px}.auth-submit span{margin-left:auto;font-size:18px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.two-fields>div{display:flex;flex-direction:column;gap:8px}.auth-footnote{color:#9bae9f;font-size:11px;line-height:1.7;text-align:center;margin-top:25px}

/* App shell */
.app-shell{min-height:100svh;display:grid;grid-template-columns:246px minmax(0,1fr)}.sidebar{background:#fff;border-right:1px solid #e8f0e9;min-height:100svh;padding:31px 17px 24px;display:flex;flex-direction:column;position:sticky;top:0;height:100svh}.sidebar-head{padding:0 15px}.sidebar-head p{font-size:11px;color:#a0b1a6;margin:7px 0 40px 45px;letter-spacing:.04em}.main-nav{display:flex;flex-direction:column;gap:8px}.nav-item{position:relative;border:0;width:100%;display:flex;align-items:center;gap:13px;border-radius:13px;padding:12px 15px;background:transparent;text-align:left;color:#819288;font-size:13px;font-weight:800;transition:background .2s,color .2s}.nav-item:hover{background:#f2f8f4;color:#2b7d5e}.nav-item.active{background:#e5f6ea;color:#18855f}.nav-item.active:before{content:"";position:absolute;left:-17px;width:4px;height:24px;background:#2aae7f;border-radius:0 4px 4px 0}.nav-icon{font-size:24px;line-height:1;width:25px;text-align:center;font-weight:400}.nav-spark{font-size:20px}.nav-count{margin-left:auto;background:#2ead80;border-radius:20px;color:#fff;padding:2px 6px;font-size:10px}.sidebar-bottom{margin-top:auto}.sidebar-note{border:1px solid #e3f1e5;background:#f4fbf3;border-radius:17px;padding:18px 17px;margin-bottom:20px}.sidebar-note>span{color:#44b585;font-size:22px;display:block;margin-bottom:6px}.sidebar-note strong{font-size:12px;color:#2f5744}.sidebar-note p{font-size:11px;color:#8da89a;line-height:1.65;margin:7px 0 0}.sidebar-person{border-top:1px solid #eff2ee;padding:19px 7px 0;display:flex;align-items:center;gap:10px}.sidebar-person strong,.sidebar-person small{display:block;max-width:128px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-person strong{font-size:12px}.sidebar-person small{font-size:10px;color:#9bae9e;margin-top:2px}.online-dot{width:8px;height:8px;background:#31be85;border-radius:50%;margin-left:auto}.main-content{min-width:0;padding:32px clamp(25px,3.4vw,62px) 60px;max-width:1500px;width:100%;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:28px}.topbar h1{font-size:25px;line-height:1.2;letter-spacing:-.055em;margin:0}.top-actions{display:flex;align-items:center;gap:17px}.health-badge{display:inline-flex;align-items:center;gap:7px;border-radius:100px;padding:8px 12px;background:#e7f6eb;color:#168965;font-size:11px;font-weight:800;white-space:nowrap}.health-badge.health-off{background:#fff1e2;color:#b5732d}.health-badge.health-checking{background:#eff3f0;color:#8da398}.status-dot{width:7px;height:7px;border-radius:50%;background:currentColor}.view{animation:fadein .2s ease-out}@keyframes fadein{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:none}}

.public-site-link{display:block;width:fit-content;margin:14px auto 0;color:#388267;font-size:12px;text-decoration:none;font-weight:700}.public-site-link:hover{text-decoration:underline}.profile-public-links{display:flex;flex-wrap:wrap;gap:10px 18px;margin:0 0 15px;font-size:11px}.profile-public-links a{color:#388267;text-decoration:none;font-weight:700}.profile-public-links a:hover{text-decoration:underline}

/* Discovery */
.welcome-hero{position:relative;min-height:260px;overflow:hidden;border-radius:25px;background:linear-gradient(112deg,#1c765f 0%,#289a72 62%,#50ba85 100%);color:#fff;display:flex;align-items:center;padding:35px 47px;isolation:isolate}.hero-orbit{position:absolute;border:1px solid rgba(255,255,255,.18);border-radius:50%;pointer-events:none}.hero-orbit-one{width:390px;height:390px;right:-80px;top:-75px}.hero-orbit-two{width:250px;height:250px;right:10px;top:0}.hero-content{z-index:1;max-width:480px}.hero-kicker{font-size:11px;font-weight:800;color:#d8f8dd;letter-spacing:.05em;margin:0 0 13px}.kicker-dot{display:inline-block;width:7px;height:7px;background:#cafa93;border-radius:50%;margin-right:7px}.welcome-hero h2{font-size:clamp(26px,3vw,43px);letter-spacing:-.055em;line-height:1.3;margin:0 0 11px}.welcome-hero .hero-content>p:not(.hero-kicker){color:#d8f1e5;font-size:12px;line-height:1.7;margin:0 0 19px}.hero-button{background:#fff;color:#167450;padding:10px 16px;font-size:12px}.hero-button:hover{background:#e8fff0}.hero-button span{font-size:16px}.hero-illustration{position:absolute;right:7%;top:50%;transform:translateY(-50%);width:310px;height:250px}.hero-circle{position:absolute;width:180px;height:180px;border-radius:50%;display:grid;place-items:center;box-shadow:0 15px 35px rgba(11,101,66,.13)}.hero-circle span{width:90px;height:60px;border-radius:18px 18px 18px 4px;display:grid;place-items:center;background:#fff;color:#239d70;font-weight:900;font-size:21px;transform:rotate(-8deg);box-shadow:0 8px 20px rgba(0,95,58,.13)}.hero-circle-a{background:#bdf2cd;right:72px;top:-10px}.hero-circle-b{width:146px;height:146px;background:#fff3bb;right:0;bottom:-10px}.hero-circle-b span{color:#bf8d35;background:#fff;transform:rotate(9deg);font-size:19px}.hero-star{position:absolute;color:#e8ffc2;font-size:55px;left:0;bottom:12px;transform:rotate(15deg)}.hero-spark{position:absolute;color:#d4ffb0;font-size:26px;right:8px;top:5px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:35px 0 19px}.section-heading.compact{margin-top:0}.section-heading h2{font-size:21px;letter-spacing:-.045em;margin:0}.section-heading>p{font-size:12px;color:#9aad9f;margin:0 0 2px}.heading-count{font-size:12px;color:#269c72;background:#e6f4e9;padding:4px 8px;border-radius:8px;vertical-align:middle;letter-spacing:0}.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}.person-card{background:#fff;border:1px solid #e5eee6;border-radius:19px;padding:21px;min-height:204px;box-shadow:0 6px 20px rgba(44,76,52,.025);transition:transform .2s,box-shadow .2s}.person-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(44,76,52,.08)}.person-card-top{display:flex;justify-content:space-between;align-items:flex-start}.person-card .avatar{width:49px;height:49px;border-radius:17px;background:#dff2e8}.person-card:nth-child(4n+2) .avatar{background:#fff0d2;color:#ad7937}.person-card:nth-child(4n+3) .avatar{background:#e6e7ff;color:#726fae}.person-card:nth-child(4n+4) .avatar{background:#ffe8e8;color:#b77977}.person-card .person-state{font-size:10px;color:#9bad9f;background:#f6f9f5;padding:5px 7px;border-radius:7px}.person-card h3{font-size:15px;letter-spacing:-.03em;margin:14px 0 6px}.person-card .person-lang{color:#319c73;font-size:11px;font-weight:700;margin:0 0 7px}.person-card .person-bio{font-size:11px;color:#9aaa9f;line-height:1.5;height:32px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0 0 14px}.person-card button{border:0;background:#e9f7ec;color:#1d8b64;border-radius:9px;padding:8px 12px;font-size:11px;font-weight:800}.person-card button:hover{background:#d8f0df}.empty-state{grid-column:1/-1;text-align:center;padding:55px 25px;border:1px dashed #cadfd0;border-radius:19px;background:#fff;color:#98aca0}.empty-state strong,.empty-state p{display:block}.empty-state strong{font-size:15px;color:#3c5948;margin:8px 0}.empty-state p{font-size:12px;margin:0}.empty-icon{font-size:32px;color:#53bb8c}

/* Human chat */
.conversation-layout{height:min(660px,calc(100svh - 205px));min-height:480px;background:#fff;border:1px solid #e4eee6;border-radius:21px;overflow:hidden;display:grid;grid-template-columns:290px minmax(0,1fr);box-shadow:0 10px 30px rgba(44,76,52,.03)}.chat-list-pane{border-right:1px solid #ebf1eb;min-width:0;display:flex;flex-direction:column}.pane-title{padding:20px 20px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #f1f4f0}.pane-title h3{font-size:14px;margin:0}.sub-count{color:#33966c;background:#eaf7ed;border-radius:8px;padding:5px 8px;font-size:10px;font-weight:800;white-space:nowrap}.chat-list{overflow:auto;flex:1}.chat-contact{width:100%;border:0;border-bottom:1px solid #f2f5f1;background:#fff;padding:14px 16px;display:flex;gap:10px;text-align:left;align-items:center;color:#203a30}.chat-contact:hover{background:#f8fbf7}.chat-contact.active{background:#eaf8ec}.chat-contact .avatar{width:41px;height:41px;border-radius:14px}.chat-contact-content{min-width:0;flex:1}.chat-contact-top{display:flex;align-items:center;justify-content:space-between;gap:6px}.chat-contact-top strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-contact-top time{font-size:9px;color:#a4b3a7;white-space:nowrap}.chat-contact-preview{color:#9bad9f;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0 0}.chat-room{display:flex;min-width:0;min-height:0}.room-empty{margin:auto;text-align:center;max-width:250px}.empty-art{display:grid;place-items:center;width:66px;height:66px;margin:0 auto 15px;border-radius:23px;background:#eaf7ed;color:#47b681;font-size:34px}.room-empty h3{font-size:17px;margin:0 0 8px}.room-empty p{font-size:11px;color:#a4b4a9;line-height:1.7;margin:0}.room-active{width:100%;min-width:0;display:flex;flex-direction:column}.room-header{height:68px;flex:none;padding:10px 22px;border-bottom:1px solid #edf2ed;display:flex;align-items:center;gap:10px}.room-header .avatar{width:38px;height:38px;border-radius:13px}.room-person{min-width:0}.room-person strong,.room-person small{display:block}.room-person strong{font-size:12px}.room-person small{font-size:10px;color:#a5b3a8;margin-top:3px}.room-header-mark{margin-left:auto;color:#48aa7c;background:#effaf0;border-radius:8px;padding:6px 9px;font-size:10px;font-weight:800}.back-button{display:none;border:0;background:transparent;color:#597f66;font-size:22px;padding:5px}.message-thread{flex:1;min-height:0;overflow-y:auto;padding:26px 24px;display:flex;flex-direction:column;gap:12px;background:radial-gradient(circle at 90% 15%,rgba(223,246,225,.33),transparent 34%),#fbfdfb}.message-row{display:flex;align-items:flex-end;gap:8px;max-width:100%}.message-row.own{justify-content:flex-end}.message-row .avatar{width:28px;height:28px;border-radius:10px;font-size:11px}.message-block{max-width:min(78%,480px);display:flex;flex-direction:column;gap:4px}.message-row.own .message-block{align-items:flex-end}.message-bubble{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.65;color:#345244;background:#fff;padding:10px 13px;border:1px solid #edf2ec;border-radius:14px 14px 14px 4px;box-shadow:0 4px 11px rgba(45,75,53,.035)}.message-row.own .message-bubble{background:#d9f4e2;border-color:#d2ebdb;color:#245c42;border-radius:14px 14px 4px 14px}.message-time{color:#b0bfb2;font-size:9px;padding:0 3px}.thread-empty{margin:auto;text-align:center;color:#98aa9d;font-size:12px;line-height:1.7;max-width:220px}.thread-empty span{display:block;font-size:31px;color:#56bc8d;margin-bottom:8px}.composer{flex:none;display:flex;align-items:center;gap:9px;padding:13px 19px;background:#fff;border-top:1px solid #edf2ec}.composer input{width:100%;min-width:0;border:1px solid #ecf2ec;background:#f7faf7;border-radius:12px;padding:12px 15px;font-size:12px;color:#2c4435}.composer input::placeholder{color:#a8b9aa}.send-button{border:0;display:grid;place-items:center;width:41px;height:41px;flex:none;border-radius:12px;background:#2aa577;color:#fff;box-shadow:0 6px 13px rgba(35,160,108,.22);font-size:17px;padding:0 0 2px 2px}.send-button:hover{background:#168a5e}

/* AI chat and memory */
.ai-banner{background:linear-gradient(110deg,#243d4a,#285f5d 70%,#328a72);color:#fff;border-radius:20px;padding:21px 25px;display:flex;align-items:center;gap:19px;min-height:103px}.ai-banner-icon{display:grid;place-items:center;width:55px;height:55px;flex:none;background:rgba(255,255,255,.15);border-radius:17px;color:#c8ffd4;font-size:27px}.ai-banner .eyebrow{color:#a4eeb9;margin-bottom:5px}.ai-banner h2{font-size:18px;letter-spacing:-.035em;margin:0 0 5px}.ai-banner p:last-child{font-size:11px;color:#b9ded0;margin:0}.ai-banner-status{margin-left:auto;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.11);border-radius:100px;padding:7px 11px;font-size:10px;font-weight:800;white-space:nowrap}.ai-banner-status.off{color:#ffe2ac}.ai-tabs{display:flex;gap:6px;border-bottom:1px solid #e4ece4;margin-top:21px}.ai-tabs button{background:transparent;color:#8fa297;border:0;border-bottom:2px solid transparent;padding:11px 16px;font-size:12px;font-weight:800}.ai-tabs button.active{color:#238c65;border-bottom-color:#2ba577}.ai-panel{background:#fff;border:1px solid #e7eee6;border-radius:0 0 20px 20px}.ai-chat-panel{height:min(650px,calc(100svh - 285px));min-height:440px;display:flex;flex-direction:column}.ai-chat-head{padding:18px 23px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.ai-chat-head h3{font-size:14px;margin:0 0 4px}.ai-chat-head p{font-size:10px;color:#9aaa9f;margin:0}.mode-switch{display:flex;background:#edf5ed;padding:3px;border-radius:10px}.mode-switch button{border:0;background:transparent;color:#879e8d;padding:7px 12px;border-radius:8px;font-size:11px;font-weight:800}.mode-switch button.active{color:#197c56;background:#fff;box-shadow:0 3px 8px rgba(21,67,43,.09)}.mode-description{font-size:10px;color:#759684;padding:0 23px 12px}.ai-thread{border-top:1px solid #f0f4ef}.ai-message-badge{font-size:9px;color:#89a18f;margin:0 0 3px 2px}.ai-composer{border-top:1px solid #e8efe8}.ai-chat-foot{padding:0 20px 12px;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;color:#a2b0a4}.text-button{background:transparent;border:0;color:#729381;font-size:10px;font-weight:800;padding:4px}.text-button:hover{text-decoration:underline}.memory-panel{padding:22px}.memory-intro{background:#f1faf2;border:1px solid #e1f1e3;border-radius:15px;padding:17px 18px;display:flex;gap:13px;align-items:flex-start;margin-bottom:19px}.memory-intro-icon{display:grid;place-items:center;width:37px;height:37px;flex:none;background:#d9f3e0;color:#259667;border-radius:11px;font-size:20px}.memory-intro h3{font-size:14px;margin:0 0 6px}.memory-intro p{font-size:11px;line-height:1.7;color:#7b9986;margin:0}.memory-intro strong{color:#4a7960}.memory-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.memory-column{min-width:0}.memory-column+.memory-column{border-left:1px solid #e9f0e9;padding-left:24px}.memory-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:15px}.memory-heading h4{font-size:13px;margin:0 0 5px}.memory-heading p{font-size:10px;color:#9aaea0;line-height:1.5;margin:0}.memory-form,.example-form{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.memory-form textarea,.example-form textarea{resize:vertical;min-height:72px;font-size:11px;line-height:1.6}.example-form textarea{min-height:58px}.example-form label{margin:0}.memory-form .secondary-button,.example-form .secondary-button{font-size:11px}.memory-list{margin-top:15px;display:flex;flex-direction:column;gap:8px}.memory-item{border:1px solid #e5eee6;background:#fbfdfb;border-radius:12px;padding:11px 12px;display:flex;align-items:flex-start;gap:8px}.memory-item-main{min-width:0;flex:1;font-size:11px;color:#466352;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}.memory-item-main strong{display:block;font-size:10px;color:#258d64;margin-bottom:3px}.memory-item-main p{margin:0 0 8px}.memory-item-main p:last-child{margin:0}.delete-button{border:0;background:#fff3f0;color:#b66b62;border-radius:8px;font-size:10px;padding:6px 8px;font-weight:800;flex:none}.delete-button:hover{background:#ffe5df}.list-empty{font-size:11px;color:#acbcae;border:1px dashed #dbe9dd;border-radius:11px;padding:16px;text-align:center}

/* Profile */
.profile-banner{position:relative;display:flex;align-items:center;gap:17px;min-height:160px;border-radius:22px;padding:25px 31px;background:linear-gradient(115deg,#e4f4e3,#ecf9ec 65%,#dcf2df);overflow:hidden}.avatar-profile{width:75px;height:75px;border-radius:24px;font-size:28px;background:#bfe7ca;color:#20805b;box-shadow:0 9px 22px rgba(45,151,90,.13)}.profile-banner .eyebrow{margin-bottom:5px}.profile-banner h2{font-size:23px;margin:0 0 5px;letter-spacing:-.045em}.profile-banner p:last-child{font-size:12px;color:#7eaa8e;margin:0}.profile-banner-spark{position:absolute;right:45px;top:20px;font-size:120px;color:#c7eccc;line-height:1;transform:rotate(-20deg)}.profile-card{max-width:710px;background:#fff;border:1px solid #e4eee5;border-radius:19px;padding:26px;margin-top:20px}.card-head h3{font-size:15px;margin:0 0 5px}.card-head p{font-size:11px;color:#a4b2a4;margin:0 0 20px}.profile-form{display:flex;flex-direction:column;gap:8px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-row>div{display:flex;flex-direction:column;gap:7px}.profile-form label{margin-top:4px}.profile-form textarea{resize:vertical;line-height:1.6}.profile-actions{display:flex;align-items:center;gap:12px;margin-top:16px}.danger-button{border:1px solid #f3d8d5;color:#ba6b66;background:#fff8f7;border-radius:12px;padding:12px 17px;font-size:12px;font-weight:800}.danger-button:hover{background:#fff0ee}

@media(max-width:1100px){.sidebar{width:208px}.app-shell{grid-template-columns:208px minmax(0,1fr)}.main-content{padding-left:26px;padding-right:26px}.hero-illustration{right:2%;transform:translateY(-50%) scale(.8);transform-origin:right center}.welcome-hero{padding-left:30px}.conversation-layout{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:760px){.auth-screen{display:block}.auth-story{display:none}.auth-side{min-height:100svh;padding:35px 23px}.auth-mobile-brand{display:inline-flex;margin-bottom:45px}.app-shell{display:block;padding-bottom:70px}.sidebar{position:fixed;z-index:20;top:auto;bottom:0;left:0;right:0;width:auto;height:68px;min-height:0;padding:5px 5px calc(5px + env(safe-area-inset-bottom));box-shadow:0 -8px 25px rgba(40,92,53,.07);border-top:1px solid #e2eee3;border-right:0}.sidebar-head,.sidebar-bottom{display:none}.main-nav{height:100%;flex-direction:row;justify-content:space-around;gap:0}.nav-item{flex:1;flex-direction:column;justify-content:center;gap:2px;text-align:center;padding:3px 0 1px;font-size:9px;border-radius:9px}.nav-icon{font-size:20px;height:20px}.nav-spark{font-size:18px}.nav-item.active:before{display:none}.nav-count{position:absolute;right:18%;top:0}.main-content{padding:22px 17px 30px}.topbar{margin-bottom:19px}.topbar h1{font-size:23px}.top-actions{gap:9px}.avatar-top{display:none}.health-badge{font-size:9px;padding:7px 9px}.welcome-hero{min-height:233px;border-radius:20px;padding:24px}.welcome-hero h2{font-size:29px}.hero-content{max-width:80%}.hero-illustration{right:-63px;opacity:.5;transform:translateY(-50%) scale(.62)}.section-heading{margin:28px 0 14px;align-items:flex-start}.section-heading>p{display:none}.section-heading h2{font-size:19px}.people-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.person-card{min-height:198px;padding:15px}.person-card h3{margin-top:11px}.conversation-layout{height:calc(100svh - 185px);min-height:420px;display:block;position:relative}.chat-list-pane,.chat-room{position:absolute;inset:0}.chat-list-pane{background:#fff}.chat-room{background:#fff;display:none}.conversation-layout.mobile-room-open .chat-list-pane{display:none}.conversation-layout.mobile-room-open .chat-room{display:flex}.back-button{display:block}.room-header{padding:9px 13px}.message-thread{padding:17px 14px}.ai-banner{padding:18px 17px;gap:11px;min-height:96px}.ai-banner-icon{width:43px;height:43px;font-size:22px}.ai-banner h2{font-size:15px}.ai-banner p:last-child{font-size:10px}.ai-banner-status{font-size:9px;padding:5px 7px}.ai-chat-panel{height:calc(100svh - 278px);min-height:390px}.ai-chat-head{padding:15px 13px 10px}.mode-description{padding-left:13px}.memory-grid{grid-template-columns:1fr;gap:25px}.memory-column+.memory-column{border-left:0;border-top:1px solid #e9f0e9;padding:23px 0 0}.memory-panel{padding:15px}.profile-banner{min-height:136px;padding:19px}.avatar-profile{width:60px;height:60px;font-size:24px;border-radius:20px}.profile-banner h2{font-size:19px}.profile-banner-spark{right:7px;font-size:93px}.profile-card{padding:20px}.form-row{grid-template-columns:1fr}.toast{bottom:86px}}
@media(max-width:390px){.hero-content{max-width:91%}.hero-illustration{opacity:.28}.people-grid{grid-template-columns:1fr}.person-card{min-height:auto}.health-badge #health-label{max-width:75px;overflow:hidden;text-overflow:ellipsis}.ai-banner-status{display:none}.auth-panel h2{font-size:29px}}
.ai-example-button{border:0;background:transparent;color:#4c9a72;font-size:10px;font-weight:800;padding:2px 0;text-align:left}.ai-example-button:hover{text-decoration:underline}

/* Scenario-based voice practice */
.scene-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(110deg,#245c55,#288b70 75%,#4eb98a);color:#fff;padding:22px 27px;border-radius:20px;margin-bottom:18px;min-height:115px}.scene-banner .eyebrow{color:#baf1c7;margin-bottom:5px}.scene-banner h2{font-size:20px;letter-spacing:-.04em;margin:0 0 6px}.scene-banner p:last-child{font-size:11px;line-height:1.5;color:#d2eee0;margin:0}.scene-ai-status{flex:none;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.27);padding:7px 11px;border-radius:100px;font-size:10px;font-weight:800;white-space:nowrap}.scene-ai-status.off{color:#ffe0ab}.scene-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:16px;align-items:start}.scene-side{display:flex;flex-direction:column;gap:15px}.scene-list-card,.scene-create-card,.scene-workspace{background:#fff;border:1px solid #e4eee6;border-radius:18px;box-shadow:0 7px 23px rgba(42,76,51,.025)}.scene-list-card{overflow:hidden}.scene-side-heading{padding:17px 17px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px}.scene-side-heading h3{font-size:13px;margin:0 0 4px}.scene-side-heading p{font-size:10px;color:#a0b2a4;margin:0}.scene-new-button{border:0;border-radius:9px;background:#e9f7ec;color:#238d63;font-weight:800;font-size:10px;white-space:nowrap;padding:8px 9px}.scene-new-button:hover{background:#d9f1df}.scene-list{max-height:235px;overflow:auto;padding:0 9px 10px}.scene-list .list-empty{margin:5px}.scene-list-item{width:100%;background:#fff;border:0;border-radius:11px;display:flex;align-items:center;gap:9px;padding:10px 8px;text-align:left;color:#315143}.scene-list-item:hover{background:#f5faf5}.scene-list-item.active{background:#e9f7eb}.scene-list-icon{display:grid;place-items:center;width:35px;height:35px;flex:none;border-radius:11px;background:#ddf3e4;color:#27936a;font-size:19px}.scene-list-copy{min-width:0}.scene-list-copy strong,.scene-list-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scene-list-copy strong{font-size:11px}.scene-list-copy small{color:#92a99a;font-size:9px;margin-top:4px}.scene-create-card{padding-bottom:16px}.scene-form{display:flex;flex-direction:column;gap:6px;padding:0 17px}.scene-form label,.scene-composer label{font-size:11px;font-weight:800;color:#415f4c;margin-top:8px}.scene-form input,.scene-form select,.scene-composer textarea{width:100%;border:1px solid #e0ebe1;background:#f9fcf8;border-radius:11px;padding:10px 11px;color:#2e4c3a;font-size:11px;min-height:40px}.scene-form input::placeholder,.scene-composer textarea::placeholder{color:#a8bba9}.scene-form-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.scene-form-row>div{display:flex;flex-direction:column;gap:6px;min-width:0}.scene-form .primary-button{margin-top:12px;font-size:11px;min-height:42px}.scene-form .primary-button span{margin-left:auto}.scene-workspace{min-width:0;min-height:650px;overflow:hidden}.scene-empty{min-height:650px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px;text-align:center}.scene-empty>span{font-size:38px;color:#4caf7f;display:grid;place-items:center;background:#e8f6eb;width:75px;height:75px;border-radius:24px;margin-bottom:17px}.scene-empty h3{font-size:16px;margin:0 0 7px}.scene-empty p{max-width:280px;color:#9daf9f;font-size:11px;line-height:1.7;margin:0}.scene-active{display:flex;flex-direction:column;height:min(800px,calc(100svh - 220px));min-height:650px}.scene-active-head{flex:none;padding:19px 21px 16px;border-bottom:1px solid #edf3ec;display:flex;align-items:center;justify-content:space-between;gap:10px}.scene-active-head .eyebrow{margin:0 0 4px}.scene-active-head h3{font-size:16px;letter-spacing:-.03em;margin:0 0 5px}.scene-active-head p:last-child{font-size:10px;color:#96ad9c;margin:0}.scene-delete-button{border:1px solid #f1dbd6;background:#fff8f6;color:#bd7064;border-radius:9px;padding:8px 10px;font-size:10px;font-weight:800;white-space:nowrap}.scene-delete-button:hover{background:#ffece8}.scene-turns{flex:1;min-height:150px;overflow:auto;background:linear-gradient(#fbfdfb,#f9fcf8);padding:18px}.scene-turns-empty{text-align:center;margin:auto;padding:60px 10px;color:#94ab9a}.scene-turns-empty span{display:block;font-size:32px;color:#63b98a}.scene-turns-empty strong{display:block;color:#4f735b;font-size:13px;margin:11px 0 5px}.scene-turns-empty p{font-size:10px;line-height:1.6;max-width:280px;margin:auto}.scene-turn-card{background:#fff;border:1px solid #e4eee5;border-radius:17px;padding:16px;margin-bottom:15px;box-shadow:0 5px 17px rgba(27,75,40,.025)}.scene-turn-top{display:flex;align-items:center;gap:8px;margin-bottom:12px}.scene-turn-top strong{font-size:11px;color:#2b835f}.scene-turn-top span{font-size:9px;color:#8ca997;background:#eef7ed;border-radius:7px;padding:4px 7px}.scene-turn-top time{margin-left:auto;color:#b0c0b1;font-size:9px}.scene-original{background:#e9f7eb;border-radius:11px;padding:11px 13px;margin-bottom:13px}.scene-original small{font-size:9px;color:#358862;font-weight:800}.scene-original p{font-size:12px;color:#315744;line-height:1.6;margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.scene-turn-section{margin-top:11px}.scene-section-title{font-size:10px;color:#4e8f68;font-weight:800;margin-bottom:8px}.scene-text-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.scene-text-card{border:1px solid #e9f0e8;background:#fcfdfb;border-radius:10px;padding:9px 10px;min-width:0}.scene-text-heading{display:flex;justify-content:space-between;gap:4px;align-items:center}.scene-text-heading strong{font-size:9px;color:#789883}.scene-play-button{border:0;background:#e4f5e9;color:#208963;font-size:9px;font-weight:800;border-radius:7px;padding:5px 7px;white-space:nowrap}.scene-play-button:hover{background:#d3eedc}.scene-text-card p{font-size:11px;line-height:1.6;color:#3a5947;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 1px}.scene-coaching{background:#fff9e9;border:1px solid #faedca;border-radius:10px;color:#9b7e45;padding:9px 11px;font-size:10px;line-height:1.6;margin-top:12px;display:grid;gap:5px}.scene-composer{flex:none;border-top:1px solid #e9f0e8;background:#fff;padding:14px 18px 12px;display:flex;flex-direction:column;gap:5px}.scene-composer label{margin:0}.scene-composer>p:not(.scene-voice-note){font-size:10px;color:#9cac9e;line-height:1.5;margin:0 0 5px}.scene-composer textarea{resize:vertical;min-height:66px;max-height:180px;font-size:11px;line-height:1.55}.scene-composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:5px}.scene-record-actions{display:flex;align-items:center;gap:8px;min-width:0}.scene-record-button,.scene-record-stop{border:1px solid #d7eee0;background:#edfaef;color:#248e64;border-radius:9px;padding:8px 10px;font-size:10px;font-weight:800;white-space:nowrap}.scene-record-stop{border-color:#f2d9d2;background:#fff0ed;color:#bc6659}.scene-record-status{font-size:9px;color:#91a897;line-height:1.4;max-width:150px}.scene-composer-bottom .primary-button{font-size:10px;white-space:nowrap;padding:10px 12px}.scene-voice-note{font-size:9px;color:#a8b6a8;margin:3px 0 0}
@media(max-width:1100px){.scene-layout{grid-template-columns:235px minmax(0,1fr)}.scene-text-grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}}
@media(max-width:760px){.scene-banner{padding:17px 18px;min-height:100px}.scene-banner h2{font-size:16px}.scene-banner p:last-child{font-size:10px}.scene-ai-status{font-size:9px;padding:6px 8px}.scene-layout{display:flex;flex-direction:column}.scene-side,.scene-workspace{width:100%}.scene-layout.has-session:not(.create-open) .scene-create-card{display:none}.scene-side-heading{padding:14px}.scene-list{max-height:150px;display:flex;gap:5px;overflow-x:auto;overflow-y:hidden;padding:0 8px 9px}.scene-list-item{width:165px;flex:none}.scene-workspace{min-height:540px}.scene-active{height:calc(100svh - 260px);min-height:530px}.scene-empty{min-height:530px}.scene-turns{padding:12px}.scene-turn-card{padding:12px}.scene-composer{padding:11px}.scene-record-status{max-width:125px}.scene-composer-bottom{align-items:flex-start}.scene-record-actions{flex-wrap:wrap}.scene-composer-bottom .primary-button{margin-left:auto}}
@media(max-width:390px){.scene-ai-status{display:none}.scene-composer-bottom{flex-direction:column;align-items:stretch}.scene-record-actions{width:100%}.scene-composer-bottom .primary-button{width:100%}.scene-active{height:calc(100svh - 215px)}}
.scene-active-head #scene-active-meta{font-size:10px;color:#96ad9c;margin:0}.scene-active-head .scene-active-goal{font-size:10px;color:#5d9771;margin:5px 0 0;line-height:1.4}

/* Trial / member AI allowance */
.sidebar-note{display:none}.sidebar-plan-card{display:flex;flex-direction:column;align-items:flex-start;width:100%;border:0;border-radius:16px;padding:16px;background:linear-gradient(135deg,#225e52,#299a73);color:#fff;text-align:left;margin-bottom:18px;box-shadow:0 8px 18px rgba(33,136,91,.13)}.sidebar-plan-card:hover{filter:brightness(1.05)}.sidebar-plan-overline{font-size:9px;letter-spacing:.13em;color:#c5efcf;font-weight:800}.sidebar-plan-card strong{font-size:17px;margin:8px 0 5px}.sidebar-plan-card #sidebar-plan-remaining{font-size:11px;color:#e3f6e7}.sidebar-plan-link{font-size:10px;color:#c5f1cf;margin-top:10px;font-weight:800}.plan-top-chip{border:1px solid #d7e9d9;border-radius:100px;background:#eef8ee;color:#308363;font-size:10px;padding:7px 10px;font-weight:800;white-space:nowrap}.plan-top-chip.member{background:#e2f5ef;border-color:#bce4d1;color:#1b8a66}.plan-top-chip.trial{background:#fff4df;border-color:#f7e7c6;color:#a8762d}.plan-card{max-width:710px;border:1px solid #dcebdd;background:linear-gradient(140deg,#fffef9,#f6fbf5);border-radius:19px;padding:24px 27px;margin-top:20px;box-shadow:0 8px 22px rgba(49,87,54,.035)}.plan-card.member{background:linear-gradient(145deg,#eaf8f1,#f8fdf8);border-color:#c6e8d5}.plan-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.plan-card-top h3{font-size:20px;letter-spacing:-.04em;margin:0 0 5px}.plan-card-top p:last-child{color:#809e89;font-size:11px;margin:0}.plan-tag{border-radius:100px;background:#fff0d1;color:#ad772e;font-size:10px;font-weight:900;padding:7px 10px;white-space:nowrap}.plan-card.member .plan-tag{background:#d4f1df;color:#177e56}.plan-balance{display:flex;align-items:baseline;gap:5px;margin-top:20px}.plan-balance strong{font-size:34px;line-height:1;letter-spacing:-.06em;color:#1e7555}.plan-balance span{font-size:13px;color:#8da693}.plan-progress{height:8px;background:#e8f0e6;border-radius:100px;margin:13px 0 14px;overflow:hidden}.plan-progress span{display:block;width:0;height:100%;border-radius:100px;background:linear-gradient(90deg,#39b783,#9cdb9b);transition:width .35s}.plan-card-details{display:flex;flex-wrap:wrap;gap:8px 20px}.plan-card-details p{font-size:10px;color:#68856f;line-height:1.5;margin:0}.plan-admin-note{font-size:10px;line-height:1.6;color:#91a695;border-top:1px solid #e6eee2;padding-top:12px;margin:16px 0 0}
@media(min-height:900px) and (min-width:761px){.sidebar-note{display:block}}
@media(max-width:760px){.plan-card{padding:19px;margin-top:15px}.plan-balance strong{font-size:30px}.plan-top-chip{font-size:9px;padding:6px 8px}}
@media(max-width:540px){.top-actions .health-badge{display:none}.plan-top-chip{max-width:112px;overflow:hidden;text-overflow:ellipsis}}
.plan-provider-status{font-size:10px;color:#7d9c85;margin:13px 0 0}.plan-rights{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.plan-rights>div{border:1px solid #dfeade;background:rgba(255,255,255,.75);border-radius:11px;padding:11px 12px}.plan-rights strong,.plan-rights span{display:block}.plan-rights strong{font-size:11px;color:#2d7d56;margin-bottom:6px}.plan-rights span{font-size:10px;color:#7d9982;line-height:1.5}@media(max-width:540px){.plan-rights{grid-template-columns:1fr}}

/* Social discovery, voice messages, AI suggestions and live practice */
.social-filters{display:flex;flex-wrap:wrap;gap:10px;margin:-5px 0 18px}.social-filters label{display:flex;align-items:center;gap:7px;color:#6b8b74;font-size:11px;font-weight:800}.social-filters select,.social-filters input{min-height:36px;max-width:180px;border:1px solid #dfece2;background:#fff;border-radius:9px;padding:7px 9px;color:#315844;font-size:11px}.person-interests{color:#299466;font-size:10px;line-height:1.5;margin:5px 0}.person-actions{display:flex;align-items:center;gap:7px;margin-top:auto}.person-actions button{min-height:31px}.person-actions .person-secondary{background:#f4f8f4;color:#72907b;border:0;border-radius:8px;padding:6px 9px;font-size:10px;font-weight:800}.social-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.social-panel{background:#fff;border:1px solid #e4eee6;border-radius:16px;padding:14px;min-width:0}.social-panel h3{font-size:13px;margin:0 0 10px}.social-panel h3 span{color:#239b6c}.social-row{display:flex;align-items:center;gap:8px;padding:9px 0;border-top:1px solid #edf2ed;min-width:0}.social-row .avatar{width:31px;height:31px;border-radius:10px;font-size:12px}.social-row-info{min-width:0;flex:1}.social-row-info strong,.social-row-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.social-row-info strong{font-size:11px}.social-row-info small{font-size:9px;color:#9aafa0;margin-top:2px}.social-button{border:0;border-radius:8px;background:#dff3e7;color:#218760;padding:7px 9px;font-size:10px;font-weight:800;white-space:nowrap}.social-button.quiet{background:#f4f6f4;color:#78937e}.social-pending,.social-empty{font-size:10px;color:#97aa9a}.block-list .social-row{max-width:500px}.room-action{border:1px solid #dbebdd;background:#f2faf3;color:#278966;border-radius:9px;padding:7px 8px;font-size:10px;font-weight:800;white-space:nowrap}.room-action:first-of-type{margin-left:auto}.room-action.danger{background:#fff8f5;border-color:#f1e2db;color:#b67261}.composer-action{flex:none;min-height:38px;border:1px solid #dceee2;background:#f2faf4;color:#268b66;border-radius:10px;padding:7px 9px;font-size:10px;font-weight:800;white-space:nowrap}.composer-action.recording{background:#fff2ee;color:#ba5b54;border-color:#f1dcd6}.voice-preview{flex:none;display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:#f5fbf6;border-top:1px solid #e5f0e8;padding:9px 16px}.voice-preview audio{height:34px;max-width:240px}.voice-preview span{font-size:10px;color:#74917a;flex:1}.voice-preview button,.suggestion-box button{border:0;border-radius:8px;background:#d9f1e1;color:#258961;padding:7px 9px;font-size:10px;font-weight:800}.voice-preview button:last-child,.suggestion-box button:last-child{background:#edf1ed;color:#718d78}.voice-message audio{display:block;width:min(250px,58vw);height:34px;margin-top:7px}.suggestion-box{flex:none;background:#f7fcf7;border-top:1px solid #dcebe0;padding:10px 17px}.suggestion-box strong{font-size:11px;color:#258f65}.suggestion-box p{font-size:12px;line-height:1.55;margin:6px 0 3px;white-space:pre-wrap;overflow-wrap:anywhere}.suggestion-box small{display:block;color:#7a9a81;font-size:10px;line-height:1.5;margin-bottom:8px}.suggestion-box>div{display:flex;gap:7px}.call-panel{position:fixed;z-index:90;right:20px;bottom:20px;width:min(360px,calc(100vw - 30px));border:1px solid #d8e9da;border-radius:18px;background:#fff;padding:17px;box-shadow:0 16px 40px rgba(23,67,39,.2)}.call-panel strong{display:block;font-size:14px}.call-panel p{font-size:12px;color:#508160;margin:8px 0 14px}.call-panel button{border:0;border-radius:10px;padding:9px 12px;background:#2aa577;color:#fff;font-size:12px;font-weight:800;margin-right:6px}.call-panel #call-reject,.call-panel #call-end{background:#bc6d62}.call-panel small{display:block;color:#96a99a;font-size:9px;line-height:1.5;margin-top:12px}.call-panel audio{display:block;width:100%;height:34px;margin-top:10px}
@media(max-width:900px){.social-panels{grid-template-columns:1fr 1fr}.social-panel:last-child{grid-column:1/-1}}
@media(max-width:760px){.social-panels{grid-template-columns:1fr}.social-panel:last-child{grid-column:auto}.social-filters label{flex:1 1 130px}.social-filters select,.social-filters input{max-width:none;width:100%}.room-header{gap:6px}.room-action{padding:6px;font-size:9px}.room-person strong{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer{padding:9px;gap:5px}.composer-action{padding:6px;font-size:9px}.call-panel{bottom:83px;right:15px}.voice-preview audio{max-width:100%;width:100%}}

/* Shared searchable language catalogue and real opt-in matching */
.language-input{min-width:0;max-width:100%;text-overflow:ellipsis}.language-catalog-note{font-size:10px;line-height:1.6;color:#7c9985;margin:7px 0 0}.social-filters .language-input{width:185px;max-width:210px}.match-panel{margin-top:20px;border:1px solid #dcebe0;border-radius:19px;background:linear-gradient(125deg,#fff,#f3faf4);padding:23px 25px;box-shadow:0 8px 24px rgba(35,92,57,.025)}.match-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.match-panel-head .eyebrow{margin-bottom:6px}.match-panel-head h2{font-size:21px;letter-spacing:-.04em;margin:0 0 7px}.match-panel-head p:last-child{font-size:11px;line-height:1.65;color:#7a9883;margin:0}.match-free-tag{flex:none;display:inline-flex;border:1px solid #d5eadd;background:#e9f7ed;color:#2b8d63;border-radius:30px;padding:7px 10px;font-size:10px;font-weight:800;white-space:nowrap}.match-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin-top:18px}.match-controls label{display:flex;flex-direction:column;gap:7px;color:#527b61;font-size:11px;font-weight:800;min-width:190px;flex:1;max-width:320px}.match-controls select{width:100%;min-height:43px;border:1px solid #dbeade;background:#fff;color:#315d43;border-radius:11px;padding:10px 12px;font-size:12px}.match-controls .primary-button,.match-controls .secondary-button{min-height:43px;font-size:12px;padding:11px 17px}.match-mode-description{font-size:10px;color:#8ba191;line-height:1.65;margin:10px 0 13px}.match-status{border:1px solid #e2eee2;border-radius:11px;background:#f7fbf5;padding:12px 13px;font-size:11px;color:#6d8e75;line-height:1.7}.match-status.is-waiting{border-color:#f0e3c4;background:#fffaed;color:#a0803d}.match-status.is-waiting:before{content:"";display:inline-block;width:8px;height:8px;border:2px solid #d4bb7a;border-right-color:transparent;border-radius:50%;vertical-align:-1px;margin-right:8px;animation:match-spin 1s linear infinite}.match-status.is-matched{border-color:#bfe3cd;background:#eaf8ed;color:#26895e}.match-result{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 0 2px}.match-result-person{display:flex;gap:10px;align-items:center;min-width:180px}.match-result-person h3{font-size:14px;margin:0 0 5px}.match-result-person p{font-size:10px;color:#7a9a83;margin:0}.match-reasons{display:flex;gap:5px;flex-wrap:wrap;align-items:center;flex:1;min-width:0}.match-reasons span{font-size:9px;line-height:1.5;color:#3e9266;border:1px solid #dbeee0;background:#f0f9f1;border-radius:8px;padding:4px 7px;overflow-wrap:anywhere}.person-match-reasons{margin:4px 0 10px;flex:none}.match-result-actions{display:flex;gap:7px;margin-left:auto}.match-result-actions .social-button{font-size:11px;padding:9px 12px}.match-privacy-note{font-size:9px;color:#9caf9f;margin:12px 0 0;line-height:1.6}.person-card .person-state{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes match-spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.match-panel-head{flex-direction:column;gap:10px}.match-result .match-reasons{flex-basis:100%;order:3}.social-filters .language-input{max-width:190px}}
@media(max-width:760px){.match-panel{padding:18px 16px;margin-top:16px;border-radius:16px}.match-panel-head h2{font-size:18px}.match-free-tag{font-size:9px;padding:6px 9px}.match-controls{gap:8px;margin-top:14px}.match-controls label{max-width:none;flex-basis:100%}.match-controls .primary-button,.match-controls .secondary-button{flex:1;padding:10px 12px}.match-result-person{min-width:140px}.match-result-actions .social-button{padding:8px 10px;font-size:10px}.social-filters .language-input{width:100%;max-width:none}}
@media(prefers-reduced-motion:reduce){.match-status.is-waiting:before{animation:none}}

/* Personal homepages, user photos and a real text/photo/video feed. */
.avatar{overflow:hidden}.avatar>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.person-actions{flex-wrap:wrap}.person-location{font-size:10px;color:#73947f;margin:4px 0;line-height:1.5}.person-signature{font-size:11px;color:#466c54;line-height:1.6;margin:5px 0 7px;overflow-wrap:anywhere}.match-result-person .match-person-location,.match-result-person .match-person-signature{font-size:10px;line-height:1.6;margin-top:4px}.social-row{flex-wrap:wrap}.social-row-info{min-width:80px}.social-row>.social-button{font-size:9px;padding:6px 8px}.profile-cover{position:relative;height:185px;max-width:710px;border:1px solid #d5e7d8;background:radial-gradient(ellipse at 80% 20%,#a9d5ac,transparent 58%),linear-gradient(135deg,#407f6e,#79b290);border-radius:21px 21px 0 0;overflow:hidden;margin-bottom:-1px}.profile-cover>img,.person-dialog-cover>img{display:block;width:100%;height:100%;object-fit:cover}.profile-cover-placeholder{position:absolute;left:27px;top:38px;max-width:180px;color:rgba(255,255,255,.76);font-size:20px;letter-spacing:.13em;font-weight:800;line-height:1.7}.profile-cover-actions{position:absolute;right:15px;bottom:14px;display:flex;gap:7px;align-items:center}.profile-cover-actions button{border:0;border-radius:9px;padding:8px 10px;background:rgba(255,255,255,.9);color:#45694e;font-size:10px}.profile-banner-with-cover{max-width:710px;border-top-left-radius:0;border-top-right-radius:0;min-height:150px;border-top:0}.profile-banner .profile-signature-display{color:#70997a;font-size:11px;line-height:1.6;max-width:420px;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:8px}.profile-media-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}.profile-media-actions #profile-media-status{font-size:10px;color:#7c9c86}.media-upload-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;font-size:10px;font-weight:800;color:#2c8f61;border:1px solid #d5e8da;background:#ecf8ed;padding:9px 12px;border-radius:10px;white-space:nowrap}.media-upload-button:hover{background:#dff2e3}.media-upload-button:has(input:disabled){opacity:.5;cursor:wait}.profile-cover-actions .media-upload-button{background:rgba(255,255,255,.94);border-color:transparent}.profile-form>label{display:block;margin-bottom:7px}.profile-form>.language-catalog-note{margin-bottom:8px}.moments-intro{display:flex;align-items:center;justify-content:space-between;gap:15px;border-radius:19px;padding:24px 27px;background:linear-gradient(120deg,#e7f4e8,#f4f9e7);border:1px solid #e2eedd}.moments-intro h2{font-size:23px;letter-spacing:-.04em;margin:0 0 8px;color:#376c4d}.moments-intro p:last-child{font-size:11px;color:#83a18a;line-height:1.7;margin:0}.moments-intro .secondary-button{font-size:11px;white-space:nowrap}.moments-layout{max-width:780px;margin:20px auto}.post-composer-card{border:1px solid #e1ece2;background:#fff;border-radius:18px;padding:21px 23px;box-shadow:0 7px 23px rgba(42,76,51,.025)}.post-composer-card h3{font-size:14px;margin:0 0 12px}.post-composer-card textarea{display:block;width:100%;resize:vertical;min-height:102px;max-height:360px;border:1px solid #e0ece2;background:#f8fcf7;border-radius:12px;color:#315943;padding:13px 14px;font-size:12px;line-height:1.7}.post-composer-card textarea::placeholder{color:#a3b8a8}.post-compose-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:13px}.post-compose-actions .primary-button{font-size:11px;padding:10px 15px;margin-left:auto}.post-media-count{font-size:10px;color:#9aaf9f;line-height:1.5}.post-upload-note{font-size:9px;line-height:1.7;color:#a0b2a4;margin:10px 0 0}.post-draft-media{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}.post-draft-media:empty{display:none}.post-draft-item{min-width:0;border:1px solid #e2ede4;background:#f8fcf7;border-radius:12px;overflow:hidden;padding:7px}.post-draft-item>img,.post-draft-item>video{display:block;width:100%;height:115px;object-fit:cover;border-radius:7px;background:#e9f1e7}.post-draft-item>video{object-fit:contain}.post-draft-status{display:block;font-size:9px;line-height:1.6;color:#789582;padding:7px 2px 3px;overflow-wrap:anywhere}.post-draft-actions{display:flex;gap:5px;flex-wrap:wrap}.post-draft-actions button{padding:5px 8px;font-size:9px}.post-feed-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:24px 0 13px}.post-feed-head h3{font-size:15px;margin:0}.post-feed-head>span{font-size:10px;color:#9bb09e}.post-feed{display:grid;gap:14px}.post-card{border:1px solid #e3eee5;background:#fff;border-radius:17px;padding:19px 21px;min-width:0;box-shadow:0 6px 20px rgba(44,76,52,.025)}.post-card-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}.post-author{display:flex;gap:10px;min-width:0;align-items:center;border:0;background:none;text-align:left;padding:0;color:#325b41}.post-author>span:last-child{min-width:0}.post-author strong{display:block;font-size:12px;font-weight:800;overflow-wrap:anywhere}.post-author small{display:block;font-size:9px;color:#9bb09d;margin-top:4px;line-height:1.6;overflow-wrap:anywhere}.post-author .avatar{width:38px;height:38px;border-radius:13px;font-size:14px}.post-card-head>.social-button{font-size:9px;padding:6px 8px}.post-text{font-size:12px;color:#3c5d48;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0}.post-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:13px}.post-media-grid.single{grid-template-columns:minmax(0,1fr)}.post-image-link{display:block;min-width:0;overflow:hidden;border-radius:11px;background:#eef5ec;aspect-ratio:1}.post-image{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s}.post-image-link:hover .post-image{transform:scale(1.03)}.post-media-grid.single .post-image-link{aspect-ratio:auto;width:fit-content;max-width:100%}.post-media-grid.single .post-image{max-width:100%;max-height:450px;height:auto;object-fit:contain}.post-video{display:block;width:100%;max-height:450px;border-radius:11px;background:#193d2f}.post-load-more{display:flex;justify-content:center;margin:18px auto 0;font-size:11px;min-width:180px}.person-dialog{position:fixed;width:min(720px,calc(100vw - 32px));max-height:90svh;padding:0;border:1px solid #e1eee3;border-radius:23px;background:#f8fcf7;color:#2d4c38;box-shadow:0 30px 100px rgba(12,53,31,.3);overflow:auto}.person-dialog::backdrop{background:rgba(17,44,30,.42);backdrop-filter:blur(4px)}.person-dialog-close{position:absolute;right:13px;top:13px;z-index:1;width:33px;height:33px;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:#39684b;font-size:24px;box-shadow:0 3px 12px rgba(20,60,35,.12)}.person-dialog-cover{height:190px;background:radial-gradient(ellipse at 80% 10%,#d4e4a9,transparent 60%),linear-gradient(120deg,#3f826c,#8fc3a0)}.person-dialog-body{padding:0 25px 26px}.person-dialog-heading{display:flex;align-items:flex-end;gap:15px;margin-top:-28px;position:relative}.person-dialog-heading .avatar-profile{border:4px solid #f8fcf7;width:78px;height:78px;border-radius:24px}.person-dialog-heading h2{font-size:23px;margin:0 0 5px;letter-spacing:-.04em;overflow-wrap:anywhere}.person-dialog-heading p{font-size:10px;color:#8da596;margin:0 0 3px}.person-dialog-signature{font-size:13px;line-height:1.7;color:#4f795b;white-space:pre-wrap;overflow-wrap:anywhere;margin:17px 0 10px}.person-dialog-languages{font-size:12px;font-weight:800;color:#2e9164;margin:8px 0}.person-dialog-location,.person-dialog-interests{font-size:11px;line-height:1.7;color:#7f9c88;margin:5px 0}.person-dialog-bio{font-size:11px;line-height:1.8;color:#809685;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0 0}.person-dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.person-dialog-actions .social-button{padding:9px 15px;font-size:11px}.person-dialog-post-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:26px 0 12px;border-top:1px solid #e4eee1;padding-top:20px}.person-dialog-post-heading h3{font-size:14px;margin:0}.person-dialog-post-heading span{font-size:9px;color:#9cb1a0}.person-dialog .post-card{box-shadow:none}.profile-media-actions .text-button{font-size:10px}
@media(max-width:760px){.profile-cover{height:155px;border-radius:17px 17px 0 0}.profile-cover-placeholder{font-size:17px;left:19px;top:26px}.profile-banner-with-cover{border-radius:0 0 17px 17px;min-height:132px}.profile-banner .profile-signature-display{font-size:10px}.moments-intro{padding:19px 17px;align-items:flex-start}.moments-intro h2{font-size:19px}.moments-intro .secondary-button{font-size:9px;padding:9px 10px}.moments-layout{margin-top:15px}.post-composer-card{padding:17px}.post-media-count{font-size:9px;flex-basis:100%;order:3}.post-compose-actions .primary-button{padding:9px 12px}.post-feed-head>span{font-size:9px}.post-card{padding:16px}.post-text{font-size:12px}.post-draft-item>img,.post-draft-item>video{height:95px}.person-dialog{width:calc(100vw - 22px);border-radius:18px;max-height:94svh}.person-dialog-cover{height:160px}.person-dialog-body{padding:0 17px 21px}.person-dialog-heading h2{font-size:21px}.match-result-actions{flex-wrap:wrap}.main-nav .nav-item{min-width:0}.main-nav .nav-item>span:nth-child(2){white-space:nowrap;font-size:9px}.profile-cover-actions{right:10px;bottom:10px}}
@media(max-width:390px){.post-draft-media{grid-template-columns:repeat(2,minmax(0,1fr))}.moments-intro{flex-direction:column}.post-media-grid{gap:5px}.profile-media-actions{gap:8px}.profile-cover-actions .media-upload-button,.profile-cover-actions button{font-size:9px;padding:7px}.person-dialog-heading h2{font-size:19px}.main-nav .nav-item>span:nth-child(2){font-size:8px}}

/* Device UI language and explicitly requested, opt-in message translation. */
.interface-language{display:flex;flex-direction:column;align-items:stretch;gap:10px;color:#70907a}.interface-language>label{font-size:10px;font-weight:800}.interface-language>select{width:100%;min-width:0;max-width:100%;min-height:42px;border:1px solid #dbe9dc;border-radius:10px;background:#fff;color:#477956;font-size:12px;padding:10px 12px}.interface-language>span{font-size:9px;max-width:310px;line-height:1.45;color:#9aaf9e}.ai-scene-panel{padding-top:5px}.chat-translation-settings{flex:none;display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;background:#f7fbf5;border-bottom:1px solid #e8f0e5;padding:9px 16px}.chat-translation-settings>label{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:800;color:#568164;cursor:pointer}.chat-translation-settings input{accent-color:#249e75;margin:0;width:13px;height:13px}.chat-translation-settings>span{font-size:9px;color:#9aaf9e;line-height:1.5;overflow-wrap:anywhere}.message-translate-button{border:0;background:transparent;color:#6c9b7a;font-size:9px;font-weight:700;padding:6px 2px 0;text-align:left;line-height:1.5}.translation-label{display:block;font-size:9px;font-weight:800;color:#349267;margin-bottom:6px}.translated-text{white-space:pre-wrap;overflow-wrap:anywhere}.message-original{border-top:1px solid #e2ece0;margin-top:10px;padding-top:8px;font-size:10px;line-height:1.65;color:#92a596;white-space:pre-wrap;overflow-wrap:anywhere}.message-original>small{display:block;font-size:8px;font-weight:800;color:#a4b4a5;margin-bottom:4px}.translation-error{display:block;font-size:9px;color:#b2835c;line-height:1.6;margin-top:3px}.received-text-content{min-width:0}.nav-item[data-view="posts"] .nav-icon{color:#299a70}.ai-tabs{flex-wrap:wrap}.ai-tabs button{white-space:normal;line-height:1.5}

@media(max-width:760px){.interface-language{gap:9px}.interface-language>span{display:none}.interface-language>label{font-size:9px}.interface-language>select{min-height:42px;max-width:100%;font-size:12px}.chat-translation-settings{padding:8px 12px;gap:4px}.chat-translation-settings>label{font-size:9px}.chat-translation-settings>span{font-size:8px;flex-basis:100%}.main-nav .nav-item{gap:2px;padding:4px 2px}.main-nav .nav-item>span:nth-child(2){white-space:normal;line-height:1.15;max-width:100%;font-size:9px;overflow-wrap:anywhere}.main-nav .nav-item[data-view="posts"] .nav-icon{background:#e1f4e7;border-radius:9px;width:31px;box-shadow:0 3px 8px rgba(39,150,97,.08)}.topbar h1{max-width:205px;overflow-wrap:anywhere;font-size:22px}.ai-tabs button{font-size:10px;padding:9px 10px}.ai-chat-head{flex-wrap:wrap;gap:8px}.scene-ai-status{white-space:normal;text-align:center}.scene-banner{align-items:flex-start}.scene-banner h2,.ai-banner h2{overflow-wrap:anywhere}.scene-composer-bottom .primary-button{white-space:normal}.room-action{white-space:normal;line-height:1.2}.room-person{min-width:0}.room-person strong{max-width:82px}.room-person small{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-header .avatar{width:34px;height:34px;border-radius:11px;flex:none}.post-compose-actions .media-upload-button{font-size:9px;padding:8px 9px}.post-compose-actions .primary-button{font-size:10px;padding:9px 10px}.profile-actions{flex-wrap:wrap}.match-result-actions{margin-left:0}.match-panel-head p,.post-upload-note,.scene-banner p{overflow-wrap:anywhere}.person-dialog-actions .social-button{white-space:normal}}

.language-settings-card{margin-top:0;margin-bottom:20px}.interface-language>p{font-size:11px;line-height:1.7;color:#86a18c;margin:0}.interface-language>p[data-pack-status="missing"],.interface-language>p[data-pack-status="error"]{color:#a5824c}
@media(max-width:760px){#view-chats .conversation-layout{height:calc(100dvh - 270px);min-height:160px}.chat-keyboard-open .topbar,.chat-keyboard-open #view-chats>.section-heading,.chat-keyboard-open .sidebar{display:none}.chat-keyboard-open .app-shell{padding-bottom:0}.chat-keyboard-open .main-content{padding-top:12px;padding-bottom:10px}.chat-keyboard-open #view-chats .room-header{padding-top:7px;padding-bottom:7px}}

.chat-record-notice{font-size:9px;color:#9cad9d;line-height:1.7;margin:0;overflow-wrap:anywhere}.chat-translation-settings>.chat-record-notice{flex-basis:100%;font-size:8px;line-height:1.65;margin-top:2px}.register-record-notice{margin-top:7px;font-size:10px}

.public-id-card{max-width:710px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #d6eadb;background:#edf8ef;border-radius:15px;padding:17px 21px;margin:15px 0 0}.public-id-card small{display:block;font-size:10px;color:#6f987b;font-weight:800}.public-id-card strong{display:block;font-family:ui-monospace,Consolas,monospace;font-size:27px;letter-spacing:.13em;color:#287b53;margin:5px 0}.public-id-card p{font-size:9px;line-height:1.6;color:#8ba590;margin:0}.public-id-card button{font-size:11px;white-space:nowrap}.person-public-id{font-family:ui-monospace,Consolas,monospace;font-size:11px;font-weight:800;letter-spacing:.05em;color:#538e67;margin:0 0 7px}.match-result-person .match-person-public-id{font-size:10px;color:#3a8b61;font-weight:800;margin-top:5px}.social-row-info .social-public-id{color:#58916a;font-size:9px}.chat-contact-public-id{display:block;color:#7a9e85;font-size:9px;margin:4px 0}.discover-search-form{display:flex;align-items:center;gap:9px;margin:0 0 10px}.discover-search-form input{min-width:0;flex:1;max-width:540px;min-height:42px;border:1px solid #dbeade;border-radius:11px;background:#fff;padding:10px 12px;color:#315d43;font-size:12px}.discover-search-form button{font-size:11px;min-height:42px;padding:10px 16px;white-space:nowrap}.discover-search-status{font-size:10px;color:#91a594;line-height:1.7;margin:0 0 15px}.discover-search-status:empty{display:none}@media(max-width:760px){.public-id-card{padding:15px 17px}.public-id-card strong{font-size:25px}.discover-search-form{gap:6px}.discover-search-form input{font-size:11px;padding:10px;max-width:none}.discover-search-form button{padding:9px 11px;font-size:10px}.discover-search-status{font-size:9px}.chat-contact-public-id{font-size:8px}.public-id-card p{max-width:230px}}

/* Explicitly labelled internal persona sandbox. */
.persona-sandbox-banner{position:fixed;top:0;left:0;right:0;width:100%;z-index:80;display:flex;align-items:center;justify-content:center;gap:10px;padding:9px 16px;min-height:36px;background:#fff3d8;border-bottom:1px solid #efd9a4;color:#947139;line-height:1.5;text-align:center}.persona-sandbox-banner strong{font-size:11px;font-weight:900}.persona-sandbox-banner>span{font-size:10px;color:#ac8e59}.ai-identity-badge{display:inline-flex;align-items:center;justify-content:center;width:fit-content;border:1px solid #dcd6f2;background:#f0ecfb;color:#8170a9;border-radius:7px;padding:4px 7px;font-size:9px;font-weight:900;line-height:1.45;white-space:normal;max-width:145px}.ai-identity-badge:before{content:"✦";margin-right:4px}.ai-count{background:#eee9f8;color:#8671aa;margin-left:5px}.ai-inclusion-control{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;width:fit-content;min-width:0!important;max-width:none!important;font-size:10px!important;font-weight:800;color:#8871a3!important;line-height:1.6}.ai-inclusion-control input{accent-color:#9079ad;width:14px;height:14px;min-height:0;margin:0;flex:none}.discover-ai-option{margin:0 0 12px}.match-controls .ai-inclusion-control{flex:0 1 auto;align-self:center;margin-right:4px}.person-card .ai-identity-badge{max-width:125px;font-size:8px}.ai-background-note{font-size:11px;line-height:1.8;color:#9a87ae;background:#f4effb;border:1px solid #e5ddf2;border-radius:10px;padding:10px 12px;margin:12px 0}.ai-dm-notice{flex:none;padding:9px 15px;background:#f3eefb;border-bottom:1px solid #e5dbf1;color:#9179a7;font-size:10px;font-weight:800;line-height:1.7;overflow-wrap:anywhere}.room-person .ai-identity-badge{font-size:8px;padding:2px 5px;margin-top:3px;max-width:130px}.message-ai-label{display:block;color:#a089b8;font-size:8px;font-weight:900;margin-bottom:4px}.chat-contact-top .ai-identity-badge{font-size:7px;max-width:90px;padding:2px 4px;margin-left:5px;flex:none}.social-row-info .ai-identity-badge{font-size:8px;margin-top:4px;padding:2px 5px}.post-card-head>.ai-post-tag{font-size:8px;max-width:115px;flex:none}.ai-moment-artwork{display:block;width:100%;max-height:450px;object-fit:contain;background:#f3eff7;border:1px solid #e9e0f1;border-radius:12px;margin-top:14px}.match-result-person .ai-identity-badge{margin-top:6px}@media(min-width:761px){.persona-sandbox .sidebar{top:var(--persona-banner-height,36px);height:calc(100svh - var(--persona-banner-height,36px));min-height:calc(100svh - var(--persona-banner-height,36px))}}@media(max-width:760px){.persona-sandbox-banner{gap:3px;flex-direction:column;padding:6px 12px;min-height:42px}.persona-sandbox-banner strong{font-size:10px}.persona-sandbox-banner>span{font-size:8px}.ai-dm-notice{font-size:9px;padding:8px 12px}.room-person .ai-identity-badge{font-size:7px;max-width:105px}.chat-contact-top .ai-identity-badge{font-size:7px;max-width:75px}.match-controls .ai-inclusion-control{flex-basis:100%;margin:1px 0 3px}.post-card-head>.ai-post-tag{font-size:7px;max-width:95px}.ai-background-note{font-size:10px}.ai-identity-badge{font-size:8px}}

body.persona-sandbox{padding-top:var(--persona-banner-height,36px)}@media(max-width:760px){body.persona-sandbox{padding-top:var(--persona-banner-height,42px)}}
/* Drift bottles: original glass, paper and tide shapes, no remote artwork. */
.bottle-entry-card{width:100%;position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;border:1px solid #d9e8dd;border-radius:20px;background:linear-gradient(110deg,#f6f7ec,#edf5ee 62%,#e3f0ea);padding:24px 30px;margin:20px 0 0;text-align:left;color:#365a4c;min-height:155px;box-shadow:0 5px 18px rgba(50,89,69,.025);transition:transform .2s,box-shadow .2s}.bottle-entry-card:hover{transform:translateY(-2px);box-shadow:0 10px 23px rgba(48,93,70,.08)}.bottle-entry-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;max-width:70%;gap:8px}.bottle-entry-copy>small{font-size:8px;letter-spacing:.19em;color:#91a58a;font-weight:800}.bottle-entry-copy>strong{font-size:24px;letter-spacing:-.04em;color:#426b58}.bottle-entry-copy>span{font-size:12px;line-height:1.7;color:#78947d}.bottle-entry-copy>em{font-size:9px;line-height:1.6;font-style:normal;background:#fff9e6;border:1px solid #eee6c9;color:#9b8f60;border-radius:6px;padding:4px 8px}.bottle-entry-art{position:absolute;right:18px;bottom:0;width:260px;height:150px;z-index:0}.bottle-entry-arrow{align-self:flex-start;color:#829d88;font-size:24px;z-index:1}.bottles-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}.bottles-heading>.text-button{font-size:11px;white-space:normal;text-align:left}.bottle-free-tag{border:1px solid #d6e8d7;background:#edf8ed;border-radius:8px;color:#71916a;font-size:9px;font-weight:800;padding:6px 10px;max-width:50%;text-align:center;line-height:1.5}.bottles-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:15px;border-radius:22px;background:linear-gradient(120deg,#e5efe6,#eaf3e9 56%,#d4e7dd);border:1px solid #dce8dc;padding:30px 34px;min-height:184px}.bottles-hero:after{content:"";position:absolute;width:70%;height:120px;right:-8%;bottom:-94px;border-radius:50%;background:#bbd8cc;box-shadow:-150px 12px 0 10px #cfdfcd;z-index:-1}.bottles-hero>div:first-child{max-width:77%;z-index:1}.bottles-hero .eyebrow{font-size:8px;letter-spacing:.18em;color:#8da38a}.bottles-hero h2{font-size:26px;letter-spacing:-.04em;color:#4a725b;margin:0 0 10px;line-height:1.4}.bottles-hero p:last-child{font-size:11px;line-height:1.8;color:#809a80;margin:0}.bottle-glass-art{position:relative;width:58px;height:104px;margin:16px 44px 0 12px;flex:none;border:2px solid #9dbfae;border-radius:20px 20px 14px 14px;background:linear-gradient(100deg,rgba(255,255,255,.75),rgba(205,232,211,.5));transform:rotate(16deg);box-shadow:inset -7px 0 8px rgba(133,184,152,.14),12px 17px 25px rgba(66,106,75,.08)}.bottle-glass-art:before{content:"";position:absolute;width:22px;height:31px;top:-28px;left:16px;border:2px solid #9dbfae;border-bottom:0;border-radius:5px 5px 0 0;background:#e0eedd}.bottle-glass-art:after{content:"";position:absolute;width:31px;height:13px;top:-34px;left:12px;background:#cfb486;border:1px solid #bb9b6b;border-radius:4px}.bottle-glass-art>span{position:absolute;inset:22px 9px 17px;background:#fff5db;border:1px solid #e8d9b3;transform:rotate(-4deg);border-radius:3px}.bottle-glass-art>span:after{content:"";position:absolute;left:7px;right:7px;top:15px;height:2px;background:#d3c3a1;box-shadow:0 8px #d3c3a1,0 16px #d3c3a1}.bottle-glass-art>i{position:absolute;left:5px;top:10px;bottom:10px;width:4px;background:#fff;opacity:.6;border-radius:4px}.bottle-quota-row{display:flex;align-items:center;gap:24px;margin:18px 0 0;background:#fff;border:1px solid #e1ece1;border-radius:15px;padding:17px 23px}.bottle-quota-row>div{flex:1;min-width:0;white-space:nowrap}.bottle-quota-row small{display:block;color:#8ba18a;font-size:10px;font-weight:800;margin-bottom:7px;white-space:normal;line-height:1.5}.bottle-quota-row strong{font-size:24px;letter-spacing:-.04em;font-weight:800;color:#4e825e}.bottle-quota-row span{font-size:10px;color:#abb9a7;margin-left:7px}.bottle-quota-row button{font-size:10px;padding:10px 12px;white-space:normal;max-width:130px}.bottle-reset-time{font-size:9px;color:#9aad98;margin:9px 2px 18px;line-height:1.7}.bottle-action-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:17px}.bottle-action-card{min-width:0;background:#fff;border:1px solid #dfeade;border-radius:18px;padding:24px}.bottle-card-heading{display:flex;align-items:flex-start;gap:11px;margin-bottom:18px}.bottle-card-heading>span{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:12px;background:#edf6e9;color:#88a576;font-size:25px}.bottle-card-heading h3{font-size:15px;line-height:1.5;margin:0 0 6px;color:#4e7154;letter-spacing:-.02em}.bottle-card-heading p{font-size:10px;line-height:1.7;color:#9aac97;margin:0}.bottle-action-card form{display:flex;flex-direction:column;gap:10px}.bottle-action-card textarea,.bottle-action-card input,.bottle-action-card select,.bottle-reply-form textarea{width:100%;min-width:0;min-height:40px;border:1px solid #dfe8da;background:#f8faf5;border-radius:10px;color:#4f6852;padding:11px 12px;font-size:11px;line-height:1.7}.bottle-action-card textarea,.bottle-reply-form textarea{resize:vertical;max-height:330px}.bottle-action-card textarea::placeholder,.bottle-action-card input::placeholder,.bottle-reply-form textarea::placeholder{color:#a5b29c}.bottle-action-card label,.bottle-reply-form>label{font-size:10px;font-weight:800;color:#7a9175;display:block;margin-bottom:7px;line-height:1.6}.bottle-form-row{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-top:2px}.bottle-form-row>div{min-width:0}.bottle-action-card .primary-button{font-size:11px;min-height:40px;padding:10px 18px;box-shadow:none;background:#719c72;border-radius:10px;margin-top:3px}.bottle-action-card .primary-button:hover{background:#5d885e}.bottle-pick-card{background:linear-gradient(150deg,#fcfdf9,#f2f7eb)}.bottle-pick-card form{gap:8px}.bottle-pick-card form>label{margin:0}.bottle-pick-note{font-size:9px;color:#9aab91;line-height:1.85;margin:16px 0 0}.bottle-pick-empty{padding:13px 14px;background:#fff9e9;border:1px solid #eee2bc;border-radius:11px;margin-top:13px}.bottle-pick-empty strong{font-size:11px;color:#a68f5d}.bottle-pick-empty p{font-size:10px;line-height:1.8;color:#b3a17a;margin:6px 0 0}.bottle-expiry-note{font-size:10px;line-height:1.8;color:#95a58b;margin:14px 2px 4px}.bottle-privacy-note{font-size:9px;line-height:1.95;color:#a1ae99;margin:6px 2px 23px}.bottle-workspace{display:grid;grid-template-columns:minmax(240px,.75fr) minmax(0,1.5fr);gap:17px;align-items:start;margin-bottom:12px}.bottle-list-card,.bottle-detail-card{min-width:0;background:#fff;border:1px solid #e0eade;border-radius:18px;overflow:hidden}.bottle-list-head{display:flex;align-items:center;gap:7px;padding:14px;border-bottom:1px solid #edf1e9}.bottle-box-tabs{display:flex;gap:4px;background:#f2f6ee;border-radius:9px;padding:3px;flex:1;min-width:0}.bottle-box-tabs button{border:0;background:transparent;border-radius:7px;font-size:10px;font-weight:800;line-height:1.6;color:#9aac90;padding:8px 10px;flex:1;min-width:0;overflow-wrap:anywhere}.bottle-box-tabs button.active{background:#fff;color:#729267;box-shadow:0 2px 6px rgba(70,102,51,.05)}.bottle-icon-button{background:#f4f8f0;border:1px solid #e7eee0;color:#8ca37b;border-radius:9px;flex:none;display:grid;place-items:center;width:31px;height:31px;font-size:20px;font-weight:400}.bottle-list{max-height:670px;overflow-y:auto;overscroll-behavior:contain}.bottle-list .empty-state{border:0;border-radius:0;background:transparent;padding:35px 19px}.bottle-list .empty-state strong{font-size:12px;color:#849b75}.bottle-list .empty-state p{font-size:10px;line-height:1.8;color:#abb89f}.bottle-list-item{position:relative;border-bottom:1px solid #edf1e9;padding-bottom:27px}.bottle-list-item.active{background:#f1f7ec}.bottle-list-open{width:100%;display:block;border:0;background:none;text-align:left;padding:18px 18px 9px;color:#66835a}.bottle-list-open>small{display:inline-block;font-size:8px;color:#a4b093;background:#edf3e7;border-radius:5px;padding:3px 6px;margin-bottom:7px}.bottle-list-open strong{display:block;font-size:12px;font-weight:800;overflow-wrap:anywhere}.bottle-list-open p{font-size:11px;color:#8a9e7c;line-height:1.75;margin:8px 0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;white-space:pre-wrap}.bottle-list-open>span{display:block;font-size:8px;color:#b1bda6;line-height:1.7;overflow-wrap:anywhere}.bottle-list-item .bottle-list-report{position:absolute;bottom:9px;right:13px;font-size:8px;padding:3px 6px;color:#aeb7a0;background:transparent;border:0}.bottle-load-more{width:calc(100% - 28px);margin:13px 14px;font-size:10px;padding:10px;box-shadow:none}.bottle-detail-card{padding:23px;min-height:370px}.bottle-detail-empty{min-height:325px;display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;padding:25px}.bottle-detail-empty>span{display:grid;place-items:center;width:68px;height:68px;background:#f0f6ea;border-radius:25px;color:#a3b993;font-size:41px}.bottle-detail-empty h3{font-size:14px;color:#8da27c;line-height:1.8;font-weight:700;max-width:260px;margin:20px 0 9px}.bottle-detail-empty p{font-size:10px;color:#b0bca6;line-height:1.9;max-width:260px;margin:0}.bottle-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.bottle-detail-head>div{min-width:0}.bottle-detail-head small{color:#a1b08e;font-size:8px;display:inline-block;background:#f0f5ea;padding:4px 7px;border-radius:6px}.bottle-detail-head h3{font-size:18px;letter-spacing:-.02em;margin:10px 0 6px;color:#607f53;overflow-wrap:anywhere}.bottle-detail-head p{font-size:9px;line-height:1.7;color:#acb99d;margin:0}.bottle-original{background:#fcfaf0;border:1px solid #eee9d1;border-radius:12px;padding:17px 18px;margin-top:18px}.bottle-original>small{font-size:8px;font-weight:800;color:#bbac81}.bottle-original>p{font-size:12px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;color:#9b8e68;margin:9px 0 0}.bottle-identity-panel{margin-top:17px;border-bottom:1px solid #edf1e8;padding-bottom:17px}.bottle-identity-panel>p{font-size:10px;color:#a0ad90;line-height:1.8;margin:0 0 11px}.bottle-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.bottle-detail-actions button{font-size:9px;padding:8px 10px;line-height:1.6;white-space:normal;border-radius:8px}.bottle-detail-actions .text-button{padding:5px 4px;color:#a7b297}.bottle-detail-actions .bottle-withdraw{margin-left:auto;color:#b2a28d}.bottle-peer-card{display:flex;align-items:center;gap:10px;background:#f5f9f0;border:1px solid #e4eddb;border-radius:11px;padding:12px;margin-bottom:11px}.bottle-peer-card .avatar{width:36px;height:36px;border-radius:11px;font-size:14px}.bottle-peer-card>div{min-width:0}.bottle-peer-card strong,.bottle-peer-card small{display:block;overflow-wrap:anywhere}.bottle-peer-card strong{font-size:12px;color:#6b885e}.bottle-peer-card small{font-size:9px;color:#9cac8a;margin-top:4px}.bottle-messages{display:flex;flex-direction:column;gap:12px;max-height:460px;overflow-y:auto;overscroll-behavior:contain;margin:18px 0;padding:1px 1px 8px}.bottle-thread-empty{font-size:10px;line-height:1.8;color:#b1bca3;text-align:center;margin:18px 0}.bottle-message{align-self:flex-start;max-width:88%;min-width:80px;padding:11px 13px;background:#f3f7ed;border:1px solid #e9efdf;border-radius:12px 12px 12px 3px}.bottle-message.own{align-self:flex-end;background:#eaf4df;border-color:#e0ebd4;border-radius:12px 12px 3px 12px}.bottle-message>small{display:block;font-size:8px;color:#a1b18d;font-weight:800;line-height:1.5}.bottle-message>p{font-size:11px;color:#718560;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}.bottle-message>time{display:block;font-size:8px;color:#b1bea3;text-align:right}.bottle-reply-form{border-top:1px solid #edf1e8;padding-top:16px}.bottle-reply-form>div{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-top:10px}.bottle-reply-form>div>small{font-size:8px;line-height:1.8;color:#afbaa2;max-width:68%}.bottle-reply-form .primary-button{font-size:10px;padding:10px 16px;border-radius:10px;box-shadow:none;flex:none;background:#719c72}.bottle-reply-form .primary-button:hover{background:#5d885e}
@media(max-width:1050px){.bottle-action-grid{grid-template-columns:1fr 1fr}.bottle-action-card{padding:19px}.bottle-workspace{grid-template-columns:minmax(210px,.8fr) minmax(0,1.3fr)}.bottle-detail-card{padding:20px}.bottle-quota-row{gap:17px}.bottle-form-row{grid-template-columns:1fr}}
@media(max-width:760px){.bottle-entry-card{padding:20px 19px;min-height:155px;border-radius:17px;margin-top:16px}.bottle-entry-copy{max-width:75%;gap:7px}.bottle-entry-copy>strong{font-size:22px}.bottle-entry-copy>small{font-size:7px}.bottle-entry-copy>span{font-size:10px;max-width:195px}.bottle-entry-copy>em{font-size:8px;max-width:205px}.bottle-entry-art{width:190px;height:110px;right:-24px;opacity:.75}.bottle-entry-arrow{font-size:21px}.bottles-heading{margin-bottom:13px}.bottle-free-tag{font-size:8px;padding:6px 8px}.bottles-hero{padding:23px 20px;min-height:175px;border-radius:17px}.bottles-hero>div:first-child{max-width:77%}.bottles-hero h2{font-size:23px;line-height:1.45}.bottles-hero p:last-child{font-size:10px}.bottles-hero .eyebrow{font-size:7px;letter-spacing:.12em}.bottle-glass-art{transform:rotate(16deg) scale(.78);margin:25px 6px 0 0;width:50px;height:92px}.bottle-glass-art:before{left:12px}.bottle-glass-art:after{left:8px}.bottle-quota-row{padding:14px;gap:12px;flex-wrap:wrap}.bottle-quota-row>div{flex-basis:26%}.bottle-quota-row strong{font-size:23px}.bottle-quota-row small{font-size:9px}.bottle-quota-row span{font-size:9px;margin-left:5px}.bottle-quota-row>button{margin-left:auto;min-height:31px;padding:7px 10px;font-size:9px;max-width:none}.bottle-reset-time{margin-bottom:14px;font-size:8px}.bottle-action-grid{grid-template-columns:1fr;gap:13px}.bottle-action-card{padding:20px;border-radius:16px}.bottle-card-heading{margin-bottom:15px}.bottle-card-heading h3{font-size:14px}.bottle-form-row{grid-template-columns:1fr 1.35fr}.bottle-action-card textarea,.bottle-action-card input,.bottle-action-card select{font-size:12px}.bottle-action-card .primary-button{font-size:11px;min-height:42px}.bottle-expiry-note{font-size:9px}.bottle-privacy-note{font-size:8px;margin-bottom:18px}.bottle-workspace{grid-template-columns:minmax(0,1fr);gap:14px;margin-bottom:15px}.bottle-list{max-height:290px}.bottle-list-head{padding:12px}.bottle-box-tabs button{font-size:10px}.bottle-list-open{padding:16px 17px 6px}.bottle-list-open>p{font-size:11px}.bottle-list-open>span{font-size:8px}.bottle-detail-card{padding:20px 17px;border-radius:16px;min-height:300px}.bottle-detail-empty{min-height:260px;padding:22px}.bottle-detail-head h3{font-size:18px}.bottle-original{padding:15px}.bottle-original>p{font-size:12px}.bottle-message{max-width:92%}.bottle-message>p{font-size:12px}.bottle-messages{max-height:380px}.bottle-reply-form textarea{font-size:12px}.bottle-reply-form>div{gap:10px}.bottle-reply-form>div>small{font-size:8px;max-width:65%}.bottle-reply-form .primary-button{font-size:10px;min-height:40px;padding:9px 13px}.bottle-detail-actions .text-button{font-size:8px}.bottle-detail-actions .bottle-withdraw{margin-left:0}}
@media(prefers-reduced-motion:reduce){.bottle-entry-card{transition:none}}
/* Explicit opt-ins and access scope for drift bottles. */
.bottle-visibility-settings{position:relative;border-top:1px solid #edf1e7;padding-top:12px;margin-top:1px}.bottle-visibility-settings>.text-button{font-size:9px;color:#8da573;padding:3px 0;line-height:1.7}.bottle-setting-note{font-size:9px!important;line-height:1.8!important;color:#a4b294!important;margin:2px 0 0!important;overflow-wrap:anywhere}.bottle-checkbox-label{display:flex!important;align-items:flex-start!important;gap:8px!important;font-size:10px!important;line-height:1.8!important;font-weight:700;color:#8b9c7e!important;cursor:pointer;margin:4px 0!important}.bottle-checkbox-label>input{width:14px!important;height:14px!important;min-height:0!important;flex:none;padding:0!important;margin:3px 0 0!important;accent-color:#8fa77a}.bottle-checkbox-label>span{min-width:0;overflow-wrap:anywhere}.bottle-badges{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:7px;max-width:100%}.bottle-badges:empty{display:none}.bottle-badges .bottle-badges{margin:0}.bottle-badges .ai-identity-badge{font-size:8px;padding:3px 6px;max-width:170px}.bottle-friends-badge,.bottle-ai-optin-badge{display:inline-flex;max-width:100%;font-size:8px;font-weight:800;line-height:1.6;border:1px solid #dce9d0;border-radius:6px;background:#eff7e7;color:#8ba574;padding:3px 6px;overflow-wrap:anywhere}.bottle-ai-optin-badge{background:#f6f3fa;border-color:#e9e2f2;color:#a895b6}.bottle-ai-reply-notice{border:1px solid #e7ddf1;background:#f8f4fc;border-radius:11px;padding:13px 14px;margin:13px 0}.bottle-ai-reply-notice>strong{display:block;font-size:10px;line-height:1.8;color:#a08ab5;overflow-wrap:anywhere}.bottle-ai-reply-notice .bottle-checkbox-label{font-size:9px!important;font-weight:500;color:#b09bbb!important;margin:7px 0 0!important}.bottle-ai-reply-notice input{accent-color:#a38ab5}.bottle-message>.ai-identity-badge{font-size:7px;padding:2px 5px;margin-bottom:7px}.bottle-peer-card .ai-identity-badge{margin-top:6px;font-size:7px;padding:2px 5px}#bottle-original-ai-label{display:block;margin-top:7px!important;color:#ad9bba!important}
@media(max-width:760px){.bottle-checkbox-label{font-size:10px!important}.bottle-setting-note{font-size:9px!important}.bottle-ai-reply-notice{padding:12px}.bottle-ai-reply-notice>strong{font-size:9px}.bottle-badges .ai-identity-badge{font-size:7px;max-width:155px}.bottle-friends-badge,.bottle-ai-optin-badge{font-size:7px}.bottle-visibility-settings>.text-button{font-size:9px}}
/* Learning log, message cards and scheduled practice */
.practice-hub{margin:24px 0;padding:26px;background:#fff;border:1px solid #e4ece7;border-radius:24px;box-shadow:0 12px 32px rgba(31,69,51,.05)}
.practice-hub .section-heading{margin:0 0 10px}.practice-hub-note{color:#60746a;margin:0 0 22px}
.practice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.practice-card,.learning-card{min-width:0;padding:20px;border:1px solid #e5ece8;background:#fbfdfa;border-radius:19px}
.practice-card h3,.learning-card h4{margin:0 0 12px}.practice-card h4{margin:22px 0 10px}.practice-card p{color:#66796e;font-size:.9rem}
.practice-card form,.learning-card form,.message-learning-dialog form{display:grid;gap:9px}
.practice-card label,.learning-card label,.message-learning-dialog label{font-weight:600;font-size:.85rem;color:#365344}
.practice-card input,.practice-card select,.learning-card input,.learning-card select,.learning-card textarea,.message-learning-dialog input,.message-learning-dialog textarea{min-width:0;width:100%;box-sizing:border-box;border:1px solid #d8e4dc;background:#fff;border-radius:11px;padding:11px 12px;color:#203d2d;font:inherit}
.practice-card button,.learning-card button,.message-learning-dialog button{max-width:100%}
.practice-list,.learning-expression-list,.learning-correction-list{display:grid;gap:10px}
.practice-item,.learning-expression,.learning-correction{border:1px solid #e1ebe4;border-radius:13px;background:#fff;padding:12px}
.practice-item strong,.learning-expression strong,.learning-correction strong{display:block;overflow-wrap:anywhere}
.practice-turns{display:grid;gap:4px;margin-top:8px;padding:8px;border-radius:8px;background:#f2f8f2}
.practice-item small,.learning-expression small,.learning-correction small{color:#64786c}
.practice-item-actions,.learning-actions,.learning-review-actions,.message-learning-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.practice-item-actions button,.learning-review-actions button,.message-learning-actions button{border:1px solid #cddfd2;border-radius:999px;background:#f3faf5;padding:6px 10px;color:#205b39;cursor:pointer}
.practice-empty,.learning-empty{color:#738478;padding:10px;border:1px dashed #d7e3da;border-radius:12px}
.learning-panel{display:block}.learning-panel[hidden]{display:none}
.learning-intro{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:20px}.learning-intro h3{font-size:1.4rem;margin:4px 0}.learning-intro p{color:#65776a;margin:0}.learning-progress{display:flex;flex-wrap:wrap;gap:7px}
.learning-progress span{display:inline-flex;gap:5px;align-items:center;border-radius:999px;padding:7px 11px;background:#e8f4e8;color:#275c37;white-space:nowrap}
.learning-grid{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:16px}
.learning-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.learning-form-row label{display:grid;gap:7px}.learning-list-header{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}.learning-list-header h4{margin:0 auto 0 0}
.learning-list-header select{width:auto;min-width:130px}.learning-expression-due{color:#9c5e23!important}.learning-expression p{margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.message-learning-dialog{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 36px);overflow:auto;border:1px solid #dce8de;border-radius:21px;padding:25px;box-shadow:0 24px 75px rgba(24,50,32,.24)}
.message-learning-dialog::backdrop{background:rgba(22,38,27,.48)}.message-learning-dialog h2{margin:0 0 16px}.message-learning-dialog h3{margin:18px 0 10px}.message-learning-dialog .learning-card{margin-top:20px}
.learning-original-label{font-size:.82rem;color:#68806e;margin:0 0 4px}.learning-original{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:12px;background:#f0f6f0;padding:14px;margin:0}
.message-action-bar{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.message-action-bar button,.voice-speed button{border:0;border-radius:999px;background:#e8f3e9;color:#2b623b;padding:5px 9px;font-size:.77rem;cursor:pointer}
.voice-speed{display:flex;align-items:center;gap:5px;margin-top:6px}.voice-speed button.active{background:#2e7850;color:#fff}
.chat-quote-preview{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:#edf5ef;border-left:3px solid #64a879;border-radius:7px;font-size:.84rem;overflow:hidden}.chat-quote-preview[hidden]{display:none}.chat-quote-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-quote-preview button{border:0;background:transparent;cursor:pointer}
.message-quote{font-size:.77rem;max-width:100%;padding:6px 8px;margin-bottom:6px;border-left:2px solid #8bbb97;background:#f2f7f1;border-radius:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.subscription-card{margin:18px 0}.subscription-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.subscription-product{border:1px solid #dce9df;border-radius:14px;padding:16px;background:#f8fcf9}.subscription-product strong,.subscription-product span{display:block}.subscription-product button{margin-top:12px}.subscription-product button:disabled{opacity:.65;cursor:not-allowed}
@media(max-width:1050px){.practice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.practice-card:last-child{grid-column:1/-1}}
@media(max-width:760px){.practice-hub{padding:17px;margin:18px 0}.practice-grid,.learning-grid,.subscription-products{grid-template-columns:1fr}.practice-card:last-child{grid-column:auto}.learning-intro{display:block}.learning-progress{margin-top:12px}.message-learning-dialog{padding:17px}.chat-quote-preview{margin:0 6px}}

/* Conversation UI: scoped to direct messages, not the scene or AI workspaces. */
#view-chats {
  --chat-ink: #263344;
  --chat-muted: #707782;
  --chat-line: #e8e9eb;
  --chat-blue: #078feb;
  --chat-canvas: #faf9f7;
  color: var(--chat-ink);
}
#view-chats .chat-page-heading { display: none; }
#view-chats .conversation-layout {
  grid-template-columns: minmax(245px, 31%) minmax(0, 1fr);
  height: min(780px, calc(100dvh - 135px));
  min-height: 480px;
  border: 1px solid var(--chat-line);
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(31, 42, 56, .035);
}
#view-chats .chat-list-pane { border-color: var(--chat-line); }
#view-chats .pane-title { min-height: 76px; padding: 19px 22px; border-color: #eff0f2; }
#view-chats .pane-title h3 { font-size: 17px; font-weight: 750; color: #202b3b; }
#view-chats .sub-count { background: #f1f3f6; color: #697484; font-size: 11px; padding: 5px 8px; border-radius: 999px; }
#view-chats .chat-list { overscroll-behavior: contain; scrollbar-width: thin; }
#view-chats .chat-contact {
  position: relative;
  gap: 13px;
  padding: 18px 21px;
  min-height: 96px;
  border-color: #f0f0f1;
  color: var(--chat-ink);
  transition: background .16s ease;
}
#view-chats .chat-contact:hover { background: #f8f9fb; }
#view-chats .chat-contact.active { background: #f0f7fe; }
#view-chats .chat-contact .avatar { width: 50px; height: 50px; border-radius: 50%; font-size: 20px; }
#view-chats .chat-contact-content { position: relative; }
#view-chats .chat-contact-top { gap: 7px; }
#view-chats .chat-contact-top strong { flex: 1; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
#view-chats .chat-contact-top time { color: #7f8690; font-size: 10px; }
#view-chats .chat-contact-top .ai-identity-badge { font-size: 8px; padding: 2px 5px; max-width: 86px; }
#view-chats .chat-contact-public-id { font-size: 10px; color: #858b96; margin: 4px 0 0; }
#view-chats .chat-contact-preview { display: block; padding-inline-end: 20px; margin-top: 5px; color: #6c7481; font-size: 13px; line-height: 1.4; }
#view-chats .chat-contact .nav-count { position: absolute; inset-inline-end: 0; bottom: 0; top: auto; margin: 0; min-width: 19px; min-height: 19px; padding: 2px 5px; text-align: center; background: var(--chat-blue); font-size: 10px; }
#view-chats .chat-list .empty-state { border: 0; border-radius: 0; padding: 58px 24px; background: transparent; color: var(--chat-muted); }
#view-chats .chat-list .empty-state strong { color: #3f4c5e; font-size: 15px; }
#view-chats .chat-list .empty-state p { margin-top: 8px; font-size: 13px; line-height: 1.7; }
#view-chats .chat-list .empty-icon { color: #8ca4bf; }
#view-chats .chat-room { background: var(--chat-canvas); }
#view-chats .room-empty { padding: 28px; max-width: 345px; }
#view-chats .room-empty .empty-art { background: #edf3fa; color: #4f86bf; border-radius: 50%; box-shadow: none; }
#view-chats .room-empty h3 { font-size: 19px; color: #344359; }
#view-chats .room-empty p { color: #78818e; font-size: 14px; line-height: 1.7; }
#view-chats .room-active { min-height: 0; position: relative; overflow: hidden; }
#view-chats .room-header {
  min-height: 76px;
  height: auto;
  gap: 12px;
  padding: 12px 19px;
  background: #fff;
  border-bottom: 1px solid var(--chat-line);
}
#view-chats .room-header .avatar { width: 43px; height: 43px; border-radius: 50%; font-size: 17px; }
#view-chats .room-person { flex: 1; min-width: 0; }
#view-chats .room-person strong { max-width: none; font-size: 17px; font-weight: 750; color: #1c2c43; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-chats .room-person small { max-width: none; color: #747e8c; font-size: 11px; line-height: 1.45; margin-top: 3px; white-space: normal; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#view-chats .room-person .ai-identity-badge { font-size: 9px; max-width: 100%; padding: 2px 6px; margin-top: 4px; border-radius: 5px; }
#view-chats .icon-button,
#view-chats .chat-header-action,
#view-chats .back-button {
  flex: none;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 42px;
  min-height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #233d5c;
  box-shadow: none;
}
#view-chats .icon-button,
#view-chats .chat-header-action { display: inline-flex; }
#view-chats .back-button { padding: 7px; }
#view-chats .chat-header-action:hover,
#view-chats .icon-button:hover,
#view-chats .back-button:hover { background: #f1f5f9; }
#view-chats svg { display: block; width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#view-chats #chat-more svg circle { fill: currentColor; stroke: none; }
#view-chats #call-start { margin: 0; }
#view-chats .ai-dm-notice { background: #f3effb; color: #70528e; font-size: 11px; font-weight: 650; line-height: 1.65; padding: 9px 18px; border-color: #e8def2; }
#view-chats .chat-options-panel { flex: none; max-height: 42%; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-bottom: 1px solid var(--chat-line); padding: 12px 18px 15px; }
#view-chats .chat-options-actions { display: flex; gap: 9px; margin-bottom: 10px; }
#view-chats .chat-options-actions .room-action { margin: 0; min-height: 38px; padding: 8px 16px; background: #f1f4f8; border: 1px solid #e4e9ef; border-radius: 10px; font-size: 12px; color: #476079; }
#view-chats .chat-options-actions .danger { color: #a35050; background: #fff6f5; border-color: #f1dfdc; }
#view-chats .chat-translation-settings { padding: 0; background: transparent; border: 0; gap: 7px 12px; }
#view-chats .chat-translation-settings > label { color: #475b73; font-size: 12px; line-height: 1.5; font-weight: 600; gap: 8px; min-height: 32px; }
#view-chats .chat-translation-settings input { width: 16px; height: 16px; accent-color: var(--chat-blue); }
#view-chats .chat-translation-settings > span { color: #6f7c8a; font-size: 11px; }
#view-chats .chat-translation-settings .chat-record-notice { font-size: 11px; color: #7b838e; line-height: 1.7; margin-top: 4px; }
#view-chats .message-thread { background: var(--chat-canvas); padding: 25px 22px 20px; gap: 16px; overscroll-behavior: contain; scroll-padding-block: 20px; scrollbar-width: thin; overflow-x: hidden; }
#view-chats .message-row { gap: 8px; }
#view-chats .message-row > .avatar { width: 29px; height: 29px; font-size: 12px; border-radius: 50%; margin-bottom: 24px; }
#view-chats .message-block { min-width: 0; max-width: min(82%, 520px); gap: 5px; }
#view-chats .received-text-content { max-width: 100%; }
#view-chats .message-bubble {
  max-width: 100%;
  padding: 12px 15px;
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 400;
  color: #2a3545;
  background: #ececee;
  border: 0;
  border-radius: 19px 19px 19px 5px;
  box-shadow: none;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: start;
  unicode-bidi: plaintext;
}
#view-chats .message-row.own .message-bubble { background: var(--chat-blue); border: 0; color: #fff; border-radius: 19px 19px 5px 19px; }
#view-chats .message-time { color: #7c838d; font-size: 10px; line-height: 1.5; padding: 0 5px; }
#view-chats .message-ai-label { color: #86629d; font-size: 10px; margin: 0 3px 1px; }
#view-chats .message-translate-button { color: #4272a3; font-size: 12px; padding: 6px 3px; }
#view-chats .translation-label { color: #47779e; font-size: 11px; font-weight: 700; line-height: 1.5; }
#view-chats .message-original { border-color: #d7dbe1; color: #65717e; font-size: 13px; line-height: 1.7; margin-top: 11px; padding-top: 9px; }
#view-chats .message-original > small { color: #7c8490; font-size: 10px; }
#view-chats .message-translation-status,
#view-chats .translation-error { display: block; color: #758292; font-size: 11px; margin: 5px 3px; line-height: 1.6; }
#view-chats .translation-error { color: #a66f46; }
#view-chats .message-action-bar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 0; min-height: 26px; }
#view-chats .message-action-bar > button { border: 0; color: #6f7c8c; background: transparent; padding: 4px 6px; font-size: 11px; line-height: 1.4; }
#view-chats .message-action-bar .message-overflow-trigger,
#view-chats .message-overflow-trigger { display: inline-flex; justify-content: center; align-items: center; min-width: 34px; min-height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: #737d8b; font-size: 20px; font-weight: 600; cursor: pointer; }
#view-chats .message-overflow-trigger:hover,
#view-chats .message-overflow-trigger:focus-visible { color: #1767a9; background: #e6edf4; }
#view-chats .message-quote { font-size: 12px; line-height: 1.6; max-width: 100%; max-height: 65px; padding: 8px 11px; margin: 0 0 2px; border: 0; border-inline-start: 3px solid #9bb9d2; border-radius: 7px; background: #edf0f4; color: #65768b; white-space: pre-wrap; overflow: hidden; overflow-wrap: anywhere; }
#view-chats .message-row.own .message-quote { background: #e7f1fb; border-inline-start-color: #7bb5e3; color: #567692; text-align: start; }
#view-chats .message-correction-card { max-width: 100%; min-width: 0; padding: 13px 15px; border: 1px solid #e0e5eb; border-radius: 15px; background: #fff; color: #34465a; box-shadow: 0 3px 8px rgba(32, 53, 76, .025); text-align: start; }
#view-chats .message-row.own .message-correction-card { align-self: stretch; }
#view-chats .message-correction-label { display: block; color: #6683a0; font-size: 11px; font-weight: 700; line-height: 1.6; margin-bottom: 7px; overflow-wrap: anywhere; }
#view-chats .message-correction-text { display: block; color: #314d65; font-size: 15px; font-weight: 550; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }
#view-chats .message-correction-explanation { display: block; font-size: 12px; color: #7b8692; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px; }
#view-chats .voice-message { white-space: normal; padding: 12px; }
#view-chats .voice-message > span { display: block; font-size: 11px; line-height: 1.5; margin-bottom: 8px; color: #738093; }
#view-chats .message-row.own .voice-message > span { color: rgba(255, 255, 255, .85); }
#view-chats .voice-player { width: min(260px, 100%); min-width: min(220px, 48vw); }
#view-chats .voice-player audio,
#view-chats .voice-message audio { display: block; width: 100%; max-width: 100%; min-width: 0; height: 40px; margin: 0; }
#view-chats .voice-tools { max-width: 100%; color: #718297; font-size: 11px; }
#view-chats .voice-tools > summary { min-height: 28px; padding: 5px 4px; line-height: 1.6; cursor: pointer; }
#view-chats .message-row.own .voice-tools { color: rgba(255, 255, 255, .9); }
#view-chats .voice-speed { gap: 6px; margin: 3px 0 5px; flex-wrap: wrap; }
#view-chats .voice-speed button { min-height: 32px; padding: 6px 10px; background: #edf1f6; color: #65788f; font-size: 11px; }
#view-chats .voice-speed button.active { background: #dfedfa; color: #246fa8; }
#view-chats .thread-empty { max-width: 275px; color: #87909d; font-size: 14px; line-height: 1.9; }
#view-chats .chat-quote-preview { flex: none; margin: 0; border: 0; border-inline-start: 3px solid #8fb9dc; border-radius: 0; background: #eef3f8; color: #5a718a; font-size: 13px; padding: 10px 17px; min-height: 42px; }
#view-chats .chat-quote-preview button { width: 30px; height: 30px; flex: none; border-radius: 50%; color: #76879b; font-size: 22px; }
#view-chats .suggestion-box { padding: 13px 18px; background: #f3f7fc; border-color: #e0e9f4; max-height: 35%; overflow-y: auto; }
#view-chats .suggestion-box strong { font-size: 12px; color: #46719d; }
#view-chats .suggestion-box p { font-size: 15px; line-height: 1.65; color: #3d546d; }
#view-chats .suggestion-box small { font-size: 12px; line-height: 1.65; color: #7d8a9b; }
#view-chats .suggestion-box button,
#view-chats .voice-preview button { font-size: 12px; padding: 8px 13px; min-height: 36px; color: #3470a4; background: #e2edf9; border-radius: 9px; }
#view-chats .suggestion-box button:last-child,
#view-chats .voice-preview button:last-child { color: #7b8490; background: #e9edf2; }
#view-chats .voice-preview { background: #f4f7fb; border-color: #e5eaf0; padding: 11px 16px; gap: 9px; max-height: 38%; overflow-y: auto; }
#view-chats .voice-preview audio { max-width: 100%; height: 40px; flex: 1 1 230px; }
#view-chats .voice-preview span { color: #748399; font-size: 12px; line-height: 1.5; }
#view-chats .chat-compose-tools { flex: none; display: flex; gap: 10px; padding: 15px 18px; background: #f7f8fb; border-top: 1px solid var(--chat-line); max-height: 30%; overflow-y: auto; }
#view-chats .chat-compose-tools > button { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid #e2e8ef; border-radius: 12px; background: #fff; color: #526c86; font-size: 12px; text-align: start; line-height: 1.5; overflow-wrap: anywhere; }
#view-chats .chat-compose-tools > button > span:first-child:not(:last-child) { display: grid; place-items: center; flex: none; width: 26px; height: 26px; background: #e9f0f8; border-radius: 8px; color: #5479a0; font-size: 11px; font-weight: 800; }
#view-chats .chat-compose-tools svg { width: 24px; height: 24px; color: #7393b3; }
#view-chats .composer { gap: 7px; padding: 12px 16px; border-color: var(--chat-line); background: #fff; }
#view-chats .chat-input-capsule { display: flex; align-items: center; flex: 1; min-width: 0; background: #f2f3f5; border: 1px solid transparent; border-radius: 999px; padding-inline-end: 5px; }
#view-chats .chat-input-capsule:focus-within { border-color: #abd0ef; box-shadow: 0 0 0 3px rgba(63, 153, 221, .09); }
#view-chats .composer input { width: 100%; min-width: 0; flex: 1; min-height: 44px; border: 0; background: transparent; padding: 11px 14px; border-radius: 999px; color: #334359; font-size: 16px; line-height: 1.4; }
#view-chats .composer input:focus { box-shadow: none !important; border-color: transparent !important; }
#view-chats .composer input::placeholder { color: #969da7; }
#view-chats .chat-suggest-button { flex: none; width: 34px; height: 34px; min-height: 34px; padding: 0; border: 0; border-radius: 50%; background: #e5ebf2; color: #6c7f98; font-size: 11px; font-weight: 800; letter-spacing: -.04em; white-space: normal; line-height: 1.1; box-shadow: none; }
#view-chats .chat-suggest-button:hover { color: #346d9d; background: #dbe7f4; }
#view-chats .chat-suggest-button[aria-busy="true"] { opacity: .5; }
#view-chats .chat-microphone { display: inline-flex; align-items: center; justify-content: center; border: 0; width: 36px; height: 42px; padding: 6px; min-height: 42px; border-radius: 50%; color: #34516f; background: transparent; }
#view-chats .chat-microphone:hover { background: #f0f4f9; }
#view-chats .composer .recording { padding: 6px; max-width: 55px; font-size: 10px; line-height: 1.4; white-space: normal; }
#view-chats .send-button { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--chat-blue); box-shadow: none; padding: 10px; color: #fff; }
#view-chats .send-button:hover { background: #087cd0; }
#view-chats .send-button svg { width: 22px; height: 22px; }
#view-chats button:focus-visible,
#chat-action-dialog button:focus-visible,
#view-chats summary:focus-visible { outline: 2px solid #2e8ed4; outline-offset: 3px; }

/* Native modal actions keep learning, translation and quoting one tap away. */
#chat-action-dialog.chat-action-dialog { width: min(420px, calc(100vw - 30px)); max-height: min(650px, calc(100dvh - 50px)); margin: auto; padding: 21px; border: 1px solid #e3e8ef; border-radius: 23px; background: #fff; color: #2d4056; box-shadow: 0 24px 90px rgba(28, 47, 71, .2); overflow-y: auto; }
#chat-action-dialog::backdrop { background: rgba(29, 39, 55, .35); backdrop-filter: blur(2px); }
#chat-action-dialog .chat-action-sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
#chat-action-dialog .chat-action-sheet-header strong { font-size: 17px; line-height: 1.5; }
#chat-action-dialog .chat-action-close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f0f3f7; color: #758397; font-size: 22px; }
#chat-action-dialog .chat-action-list { display: grid; gap: 7px; }
#chat-action-dialog .chat-action-item { width: 100%; min-height: 49px; text-align: start; padding: 12px 15px; border: 0; border-radius: 12px; color: #415b77; background: #f4f7fa; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
#chat-action-dialog .chat-action-item:hover { color: #237bb8; background: #eaf3fc; }
#chat-action-dialog .chat-action-note { margin: 15px 3px 0; color: #7f8996; font-size: 11px; line-height: 1.75; overflow-wrap: anywhere; }

@media (max-width: 1050px) and (min-width: 761px) {
  #view-chats .conversation-layout { grid-template-columns: 235px minmax(0, 1fr); }
  #view-chats .chat-contact { padding: 17px 14px; gap: 10px; }
  #view-chats .chat-contact .avatar { width: 43px; height: 43px; }
  #view-chats .chat-contact-top strong { font-size: 14px; }
  #view-chats .chat-contact-top { flex-wrap: wrap; }
  #view-chats .chat-contact-top .ai-identity-badge { margin-inline-start: 0; }
  #view-chats .room-header { gap: 8px; padding-inline: 12px; }
  #view-chats .message-thread { padding-inline: 16px; }
  #view-chats .composer { gap: 4px; padding-inline: 10px; }
}
@media (max-width: 760px) {
  #view-chats .conversation-layout { display: block; height: calc(100dvh - 190px); min-height: 250px; border-radius: 17px; }
  #view-chats .pane-title { min-height: 65px; padding: 15px 18px; }
  #view-chats .pane-title h3 { font-size: 17px; }
  #view-chats .chat-contact { min-height: 93px; padding: 17px 18px; gap: 13px; }
  #view-chats .chat-contact .avatar { width: 49px; height: 49px; }
  #view-chats .chat-contact-top strong { font-size: 16px; }
  #view-chats .chat-contact-preview { font-size: 13px; margin-top: 5px; }
  #view-chats .chat-contact-top time { font-size: 10px; }
  #view-chats .room-header { min-height: 72px; gap: 8px; padding: max(9px, env(safe-area-inset-top)) max(9px, env(safe-area-inset-right)) 9px max(7px, env(safe-area-inset-left)); }
  #view-chats .room-header .avatar { width: 40px; height: 40px; }
  #view-chats .room-person strong { max-width: none; font-size: 16px; }
  #view-chats .room-person small { max-width: none; font-size: 10px; line-height: 1.45; }
  #view-chats .room-person .ai-identity-badge { font-size: 9px; }
  #view-chats .back-button { display: inline-flex; width: 28px; padding: 3px; }
  #view-chats .chat-header-action { width: 35px; padding: 6px; }
  #view-chats .message-thread { padding: 21px 13px 17px; gap: 15px; }
  #view-chats .message-block { max-width: 84%; }
  #view-chats .message-bubble { font-size: 16px; padding: 11px 14px; line-height: 1.6; }
  #view-chats .message-row > .avatar { width: 25px; height: 25px; font-size: 11px; }
  #view-chats .message-time { font-size: 10px; }
  #view-chats .ai-dm-notice { font-size: 11px; padding: 8px 14px; }
  #view-chats .chat-options-panel { padding: 11px 15px; }
  #view-chats .chat-translation-settings > label { font-size: 12px; }
  #view-chats .chat-translation-settings > span { font-size: 11px; }
  #view-chats .composer { gap: 4px; padding: 10px max(9px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)); }
  #view-chats .chat-attach { width: 32px; height: 42px; padding: 5px; }
  #view-chats .chat-microphone { width: 32px; }
  #view-chats .send-button { width: 39px; height: 39px; padding: 8px; }
  #view-chats .composer input { min-height: 44px; padding: 11px 12px; font-size: 16px; }
  #view-chats .chat-input-capsule { padding-inline-end: 4px; }
  #view-chats .chat-suggest-button { width: 30px; height: 30px; min-height: 30px; font-size: 11px; }
  #view-chats .chat-compose-tools { padding: 13px; gap: 8px; }
  #view-chats .chat-compose-tools > button { padding: 10px; font-size: 11px; }
  #view-chats .voice-preview { padding: 11px 13px; }
  #view-chats .suggestion-box { padding: 12px 15px; }
  #view-chats .message-correction-card { padding: 12px 14px; }
  #view-chats .message-correction-text { font-size: 15px; }
  #view-chats .conversation-layout.mobile-room-open { position: fixed; inset: 0; z-index: 45; width: 100%; height: 100dvh; min-height: 0 !important; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  body.persona-sandbox #view-chats .conversation-layout.mobile-room-open { top: var(--persona-banner-height, 42px); height: calc(100dvh - var(--persona-banner-height, 42px)); }
  body.mobile-room-open:has(#view-chats:not([hidden])) { overflow: hidden; overscroll-behavior: none; }
  body.mobile-room-open:has(#view-chats:not([hidden])) .sidebar,
  body.mobile-room-open:has(#view-chats:not([hidden])) .topbar,
  body:has(#view-chats:not([hidden]) .conversation-layout.mobile-room-open) .sidebar,
  body:has(#view-chats:not([hidden]) .conversation-layout.mobile-room-open) .topbar { display: none; }
  body.mobile-room-open:has(#view-chats:not([hidden])) .app-shell { padding-bottom: 0; }
  body.mobile-room-open:has(#view-chats:not([hidden])) .main-content { padding: 0; }
  body.mobile-room-open #view-chats { animation: none; }
  body.mobile-room-open:has(#view-chats:not([hidden])) .toast { bottom: max(82px, calc(env(safe-area-inset-bottom) + 70px)); }
  body.mobile-room-open:has(#view-chats:not([hidden])) .call-panel { z-index: 90; bottom: max(76px, calc(env(safe-area-inset-bottom) + 66px)); }
  #chat-action-dialog.chat-action-dialog { position: fixed; width: 100%; max-height: calc(85dvh - env(safe-area-inset-top)); max-width: none; inset: auto 0 0; margin: 0; padding: 22px 18px max(22px, env(safe-area-inset-bottom)); border: 0; border-radius: 24px 24px 0 0; }
  #chat-action-dialog.chat-action-dialog::before { content: ""; display: block; height: 4px; width: 35px; border-radius: 999px; background: #dce1e8; margin: -10px auto 17px; }
}
@media (max-width: 360px) {
  #view-chats .room-header { gap: 6px; }
  #view-chats .room-header .avatar { width: 36px; height: 36px; }
  #view-chats .chat-header-action { width: 32px; }
  #view-chats .message-thread { padding-inline: 10px; }
  #view-chats .message-row { gap: 6px; }
  #view-chats .composer { gap: 3px; }
  #view-chats .chat-attach,
  #view-chats .chat-microphone { width: 29px; }
  #view-chats .composer input { padding-inline: 10px; }
  #view-chats .chat-compose-tools { flex-wrap: wrap; }
  #view-chats .chat-compose-tools > button { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #view-chats,
  #view-chats .chat-contact { animation: none; transition: none; }
}

/* Learning community: people first; all overrides stay inside discovery/profile. */
#view-discover { color: #263e3c; }
#view-discover .community-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
#view-discover .community-overline { margin: 0 0 6px; color: #6d8b85; letter-spacing: .15em; font-size: 10px; font-weight: 800; }
#view-discover .community-heading h2 { margin: 0; color: #243f3b; font-size: 28px; letter-spacing: -.04em; }
#view-discover .community-heading p:last-child { margin: 8px 0 0; color: #6a807b; font-size: 13px; line-height: 1.7; }
#view-discover .community-heading-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: none; color: #228e7d; border: 1px solid #dcece5; background: #f4faf7; border-radius: 50%; font-size: 26px; }
#view-discover .community-discovery-tools { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
#view-discover .discover-search-form { flex: 1 1 340px; margin: 0; gap: 8px; }
#view-discover .discover-search-form input { max-width: none; min-height: 46px; background: #fff; border-color: #e1e9e5; color: #29483f; font-size: 13px; }
#view-discover .discover-search-form button { min-height: 46px; font-size: 12px; }
#view-discover .discover-search-form .primary-button { background: #218e7e; box-shadow: none; }
#view-discover .community-filter-panel { flex: 0 0 auto; border: 1px solid #e1e9e5; border-radius: 11px; background: #fff; }
#view-discover .community-filter-panel[open] { flex: 1 0 100%; order: 2; }
#view-discover .community-filter-panel summary { min-height: 44px; padding: 12px 17px; font-size: 12px; font-weight: 700; cursor: pointer; }
#view-discover .community-filter-panel .social-filters { margin: 0; padding: 4px 16px 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
#view-discover .community-filter-panel label { display: grid; min-width: 0; gap: 7px; font-size: 12px; }
#view-discover .community-filter-panel input,
#view-discover .community-filter-panel select { width: 100%; max-width: none; min-width: 0; min-height: 43px; font-size: 13px; padding: 9px 10px; }
#view-discover .discover-ai-option { margin: 12px 0 0; font-size: 12px !important; }
#view-discover .discover-search-status { margin: 10px 0 0; font-size: 12px; color: #6f827b; }
#view-discover .community-modes { display: flex; gap: 23px; overflow-x: auto; margin: 21px 0 0; border-bottom: 1px solid #e1e9e5; scrollbar-width: none; }
#view-discover .community-modes button { flex: none; position: relative; border: 0; border-radius: 0; padding: 0 0 13px; background: none; color: #71827e; font-size: 14px; font-weight: 700; white-space: nowrap; min-height: 42px; }
#view-discover .community-modes button.active { color: #1c8273; }
#view-discover .community-modes button.active::after { content: ""; position: absolute; height: 3px; background: #249987; border-radius: 3px 3px 0 0; left: 0; right: 0; bottom: 0; }
#view-discover .community-modes button:disabled { opacity: .55; cursor: default; }
#view-discover .community-recommendation-section { margin: 22px 0 0; padding: 0 0 17px; border-bottom: 1px solid #e5ece8; }
#view-discover .community-strip-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
#view-discover .community-strip-heading h3 { margin: 0; font-size: 14px; color: #304d43; }
#view-discover .community-strip-heading p { margin: 0; color: #84928d; font-size: 11px; }
#view-discover .community-recommendations { display: flex; align-items: flex-start; gap: 18px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
#view-discover .community-recommendation { display: flex; flex: 0 0 88px; min-width: 0; flex-direction: column; align-items: center; gap: 5px; scroll-snap-align: start; border: 0; padding: 0; background: none; color: #364e45; }
#view-discover .community-strip-avatar { width: 65px; height: 65px; border-radius: 50%; font-size: 23px; border: 3px solid #fff; box-shadow: 0 0 0 1px #e0e9e3; }
#view-discover .community-recommendation strong { display: block; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; margin-top: 3px; }
#view-discover .community-recommendation small { max-width: 88px; color: #7e8e87; font-size: 11px; overflow-wrap: anywhere; }
#view-discover .community-recommendation .ai-identity-badge { max-width: 88px; font-size: 8px; padding: 2px 4px; }
#view-discover .community-strip-ai-short { display: none; }
#view-discover .community-results-heading { margin: 22px 0 13px; }
#view-discover .community-results-heading h2 { font-size: 16px; }
#view-discover .community-results-heading p { font-size: 11px; margin-top: 5px; color: #7f8e86; }
#view-discover .community-results-heading .heading-count { font-size: 12px; }
#view-discover .community-people-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; border: 1px solid #e3ebe5; border-radius: 17px; background: #fff; overflow: hidden; }
#view-discover .community-person-row { display: grid; grid-template-columns: 86px minmax(0,1fr) 126px; align-items: start; gap: 19px; min-width: 0; border: 0; border-bottom: 1px solid #eaf0eb; border-radius: 0; padding: 24px; background: #fff; box-shadow: none; transition: background .15s; }
#view-discover .community-person-row:last-child { border-bottom: 0; }
#view-discover .community-person-row:hover { transform: none; background: #fcfefc; box-shadow: none; }
#view-discover .community-avatar-button { border: 0; padding: 0; width: 86px; height: 96px; background: none; border-radius: 17px; }
#view-discover .community-person-avatar { width: 86px; height: 96px; border-radius: 17px; font-size: 29px; }
#view-discover .community-person-info { min-width: 0; }
#view-discover .community-person-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#view-discover .community-name { min-width: 0; border: 0; background: none; padding: 0; color: #29443a; font-size: 18px; font-weight: 800; line-height: 1.4; text-align: start; overflow-wrap: anywhere; }
#view-discover .person-public-id { font-size: 11px; color: #7d8e85; margin: 3px 0 5px; }
#view-discover .community-person-location { margin: 0; font-size: 12px; color: #72867a; line-height: 1.6; overflow-wrap: anywhere; }
#view-discover .community-languages { margin: 9px 0 7px; font-size: 14px; font-weight: 700; line-height: 1.6; color: #268672; }
#view-discover .community-person-intro { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 13px; line-height: 1.7; color: #52685c; overflow-wrap: anywhere; }
#view-discover .community-person-interests { margin: 7px 0 0; font-size: 12px; line-height: 1.6; color: #8a7768; overflow-wrap: anywhere; }
#view-discover .community-level,
.learning-profile .community-level { display: inline-block; margin-top: 8px; background: #f0f6f1; border: 1px solid #e4ede5; border-radius: 6px; color: #6c8572; padding: 3px 7px; font-size: 11px; }
#view-discover .community-match-reasons { margin: 9px 0 0; gap: 5px; }
#view-discover .community-match-reasons span { font-size: 10px; }
#view-discover .community-person-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 4px 0 0; padding: 0; border: 0; }
#view-discover .community-person-actions button { min-height: 41px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 12px; white-space: normal; line-height: 1.5; }
#view-discover .community-person-actions .community-message-button { background: #e9f5ef; color: #207d67; border: 1px solid #deeee4; }
#view-discover .community-person-actions .community-message-button:hover { background: #dceddf; }
#view-discover .community-person-actions .person-secondary { background: #fff; color: #74857b; border: 1px solid #e4ebe5; }
#view-discover .community-ai-cost,
.learning-profile .community-ai-cost { color: #8b739e; font-size: 10px; line-height: 1.7; }
#view-discover .community-secondary { margin: 16px 0 0; background: #fff; border: 1px solid #e2ebe4; border-radius: 14px; }
#view-discover .community-secondary > summary { cursor: pointer; padding: 18px 20px; font-size: 14px; font-weight: 700; }
#view-discover .community-secondary > summary small { display: block; margin: 6px 0 0 16px; font-size: 12px; font-weight: 400; line-height: 1.6; color: #809083; }
#view-discover .community-secondary-body { padding: 0 20px 20px; }
#view-discover .community-secondary .welcome-hero { min-height: 0; margin-bottom: 16px; padding: 18px 20px; border-radius: 12px; background: #f4f8f0; }
#view-discover .community-secondary .hero-illustration,
#view-discover .community-secondary .hero-orbit,
#view-discover .community-secondary .hero-kicker { display: none; }
#view-discover .community-secondary .hero-content { max-width: none; }
#view-discover .community-secondary .hero-content h2 { font-size: 19px; line-height: 1.4; }
#view-discover .community-secondary .hero-content h2 br { display: none; }
#view-discover .community-secondary .hero-content p { margin: 9px 0; font-size: 12px; }
#view-discover .community-secondary .hero-button { margin-top: 5px; font-size: 12px; padding: 9px 14px; }
#view-discover .community-secondary .bottle-entry-card { min-height: 105px; }
#view-discover .community-secondary .bottle-entry-art { width: 155px; }
#view-discover .community-secondary .bottle-entry-copy strong { font-size: 18px; }
#view-discover .community-secondary .bottle-entry-copy small { display: none; }
#view-discover .community-secondary .match-panel { margin-top: 16px; padding: 18px; }
#view-discover .community-secondary .match-panel-head h2 { font-size: 18px; }
#view-discover .community-secondary .practice-hub { margin-top: 18px; }
#view-discover .community-secondary .section-heading { margin-top: 16px; }
#view-discover .community-secondary .section-heading h2 { font-size: 18px; }
#view-discover .community-people-list > .empty-state { padding: 36px 20px; }
#view-discover button:focus-visible,
#view-discover summary:focus-visible,
.learning-profile button:focus-visible { outline: 3px solid #55bca6; outline-offset: 4px; }
.learning-profile.person-dialog { background: #fff; border-color: #e0e9e2; color: #2c4338; }
.learning-profile .person-dialog-cover { height: 112px; background: linear-gradient(120deg,#d9eee6,#eef6ec); }
.learning-profile .person-dialog-body { padding: 0 28px 28px; }
.learning-profile .person-dialog-heading { margin-top: -30px; align-items: flex-end; }
.learning-profile .person-dialog-heading .avatar-profile { width: 88px; height: 88px; border: 4px solid #fff; border-radius: 23px; }
.learning-profile .person-dialog-heading h2 { font-size: 25px; }
.learning-profile .person-dialog-heading p { font-size: 12px; }
.learning-profile .person-dialog-actions { margin: 21px 0; align-items: center; }
.learning-profile .person-dialog-actions .social-button { min-height: 41px; font-size: 13px; padding: 9px 17px; }
.learning-profile .learning-profile-chat { background: #248e7a; color: #fff; border-color: #248e7a; }
.learning-profile .person-dialog-actions .community-ai-cost { flex: 1 1 100%; order: 1; font-size: 11px; }
.learning-profile .person-dialog-languages { display: none; }
.learning-profile .learning-profile-language-grid { display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); gap: 12px; align-items: center; background: #f3f9f4; border: 1px solid #e3eee5; border-radius: 13px; padding: 17px 19px; }
.learning-profile .learning-profile-language-grid small { display: block; font-size: 12px; color: #769182; }
.learning-profile .learning-profile-language-grid strong { display: block; margin-top: 7px; font-size: 18px; color: #2f765f; overflow-wrap: anywhere; }
.learning-profile .learning-profile-language-grid > span { color: #78a18c; font-size: 20px; text-align: center; }
.learning-profile .learning-profile-goal { margin-top: 19px; padding: 16px 18px; border: 1px solid #e5ece6; border-radius: 12px; }
.learning-profile .learning-profile-goal h3,
.learning-profile .learning-profile-detail h3 { margin: 0 0 8px; font-size: 13px; color: #3a5545; }
.learning-profile .learning-profile-goal p { margin: 0; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.learning-profile .person-dialog-signature { color: #657b69; font-size: 14px; }
.learning-profile .learning-profile-detail { margin-top: 21px; }
.learning-profile .learning-profile-detail p { font-size: 14px; line-height: 1.8; color: #607663; margin: 0; overflow-wrap: anywhere; }
.learning-profile .learning-profile-detail > small { display: block; margin-top: 6px; font-size: 11px; color: #91a08f; line-height: 1.7; }
@media (max-width: 900px) {
  #view-discover .community-person-row { grid-template-columns: 76px minmax(0,1fr); gap: 16px; padding: 21px; }
  #view-discover .community-avatar-button,
  #view-discover .community-person-avatar { width: 76px; height: 88px; }
  #view-discover .community-person-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; margin: -3px 0 0; }
  #view-discover .community-person-actions button { flex: 1 1 auto; width: auto; }
  #view-discover .community-person-actions .community-ai-cost { flex-basis: 100%; }
  #view-discover .community-filter-panel .social-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  #view-discover .community-heading { display: none; }
  #view-discover .community-discovery-tools { gap: 6px; align-items: flex-start; }
  #view-discover .discover-search-form { flex: 1 1 0; min-width: 0; gap: 4px; }
  #view-discover .discover-search-form input { min-height: 40px; font-size: 12px; padding: 8px; }
  #view-discover .discover-search-form button { min-height: 40px; padding: 8px 10px; font-size: 12px; border-radius: 9px; }
  #view-discover #discover-search-clear { width: 28px; flex: 0 0 28px; padding: 6px; font-size: 0; }
  #view-discover #discover-search-clear::after { content: "×"; font-size: 20px; }
  #view-discover .community-filter-panel { flex: 0 0 auto; border-radius: 9px; }
  #view-discover .community-filter-panel[open] { flex: 1 0 100%; }
  #view-discover .community-filter-panel summary { padding: 10px; min-height: 38px; line-height: 18px; font-size: 11px; }
  #view-discover .discover-ai-option { margin-top: 8px; font-size: 10px !important; line-height: 1.5; }
  #view-discover .discover-search-status { margin-top: 6px; font-size: 11px; line-height: 1.5; }
  #view-discover .community-modes { justify-content: space-between; gap: 8px; margin-top: 9px; }
  #view-discover .community-modes button { min-height: 35px; padding-bottom: 9px; font-size: 12px; }
  #view-discover .community-recommendation-section { margin-top: 10px; padding-bottom: 4px; }
  #view-discover .community-recommendations { gap: 10px; padding: 0 1px 5px; }
  #view-discover .community-recommendation { flex-basis: 65px; gap: 2px; position: relative; }
  #view-discover .community-strip-avatar { width: 50px; height: 50px; border-width: 2px; font-size: 20px; }
  #view-discover .community-recommendation strong,
  #view-discover .community-recommendation small { max-width: 65px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #view-discover .community-recommendation strong { font-size: 11px; line-height: 15px; margin-top: 2px; }
  #view-discover .community-recommendation small { font-size: 10px; line-height: 14px; }
  #view-discover .community-recommendation .community-strip-ai-badge { position: absolute; top: 34px; right: 2px; min-width: 23px; max-width: 30px; padding: 1px 4px; border: 2px solid #fff; border-radius: 6px; font-size: 9px; line-height: 13px; background: #eee6f8; color: #69538c; }
  #view-discover .community-strip-ai-badge::before,
  #view-discover .community-strip-ai-full { display: none; }
  #view-discover .community-strip-ai-short { display: inline; }
  #view-discover .community-strip-heading { align-items: center; margin-bottom: 7px; }
  #view-discover .community-strip-heading h3 { font-size: 12px; }
  #view-discover .community-strip-heading p { font-size: 9px; }
  #view-discover .community-results-heading { margin: 12px 0 8px; }
  #view-discover .community-results-heading h2 { font-size: 14px; margin: 0; line-height: 1.5; }
  #view-discover .community-results-heading p { margin: 3px 0 0; font-size: 10px; line-height: 1.5; }
  #view-discover .community-people-list { border-radius: 12px; }
  #view-discover .community-person-row { grid-template-columns: 59px minmax(0,1fr); padding: 13px 12px; column-gap: 11px; row-gap: 8px; }
  #view-discover .community-avatar-button,
  #view-discover .community-person-avatar { width: 59px; height: 72px; border-radius: 12px; }
  #view-discover .community-person-heading { gap: 6px; flex-wrap: nowrap; }
  #view-discover .community-name { font-size: 16px; line-height: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #view-discover .community-person-heading .ai-identity-badge { max-width: 110px; flex: none; font-size: 8px; padding: 2px 5px; line-height: 1.4; }
  #view-discover .community-person-meta { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 8px; margin-top: 2px; }
  #view-discover .community-person-meta .person-public-id { flex: none; margin: 0; font-size: 10px; line-height: 16px; }
  #view-discover .community-person-meta .community-person-location { font-size: 11px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #view-discover .community-languages { margin: 4px 0 3px; font-size: 12px; line-height: 18px; }
  #view-discover .community-language-line { display: flex; align-items: center; flex-wrap: wrap; column-gap: 7px; margin: 4px 0 3px; }
  #view-discover .community-language-line .community-languages { margin: 0; }
  #view-discover .community-language-line .community-level { margin-top: 0; }
  #view-discover .community-person-intro { font-size: 12px; line-height: 18px; -webkit-line-clamp: 1; }
  #view-discover .community-person-interests,
  #view-discover .community-match-reasons { display: none; }
  #view-discover .community-level { margin-top: 4px; padding: 1px 5px; line-height: 16px; font-size: 9px; }
  #view-discover .community-person-actions { grid-column: 1 / -1; gap: 7px; align-items: center; margin: 0; }
  #view-discover .community-person-actions button { min-height: 35px; padding: 7px 11px; font-size: 12px; flex: 0 1 auto; }
  #view-discover .community-person-actions .community-ai-cost { flex: 1 1 100px; min-width: 0; font-size: 9px; line-height: 1.5; }
  #view-discover .community-secondary > summary { padding: 16px; }
  #view-discover .community-secondary-body { padding: 0 13px 16px; }
  #view-discover .community-secondary .bottle-entry-art { display: none; }
  .learning-profile .person-dialog-body { padding: 0 18px 23px; }
  .learning-profile .person-dialog-cover { height: 96px; }
  .learning-profile .person-dialog-heading h2 { font-size: 23px; }
  .learning-profile .learning-profile-language-grid { padding: 15px; gap: 6px; }
  .learning-profile .learning-profile-language-grid strong { font-size: 16px; }
}
@media (max-width: 360px) {
  #view-discover .community-modes { gap: 4px; }
  #view-discover .community-modes button { font-size: 11px; }
  #view-discover .community-filter-panel .social-filters { grid-template-columns: minmax(0,1fr); }
  #view-discover .community-filter-panel summary { max-width: 74px; padding: 10px 7px; font-size: 10px; }
  #view-discover .community-person-row { grid-template-columns: 54px minmax(0,1fr); column-gap: 9px; padding: 12px 10px; }
  #view-discover .community-avatar-button,
  #view-discover .community-person-avatar { width: 54px; height: 65px; }
  #view-discover .community-person-actions button { padding-inline: 9px; font-size: 11px; }
  #view-discover .community-person-heading .ai-identity-badge { max-width: 96px; font-size: 7px; }
}

/* Conversation heights are measured from their actual viewport position. */
#view-chats .chat-list-pane,
#view-chats .chat-list { min-height: 0; }
#ai-chat-panel { min-height: 0; overflow: hidden; }
#ai-chat-panel .ai-chat-head,
#ai-chat-panel .mode-description,
#ai-chat-panel .ai-chat-foot { flex-shrink: 0; }
#ai-chat-panel .ai-thread { min-height: 0; }
body.ai-viewport-short #ai-chat-panel .mode-description,
body.ai-viewport-short #ai-chat-panel .ai-chat-foot { display: none; }
@media (max-width: 760px) {
  body.ai-keyboard-open { overflow: hidden; overscroll-behavior: none; }
  body.ai-keyboard-open .sidebar,
  body.ai-keyboard-open .topbar,
  body.ai-keyboard-open #view-ai > .ai-banner,
  body.ai-keyboard-open #view-ai > .ai-tabs { display: none; }
  body.ai-keyboard-open .app-shell { padding-bottom: 0; }
  body.ai-keyboard-open .main-content { padding: 0; }
  body.ai-keyboard-open #view-ai { animation: none; }
  body.ai-keyboard-open #ai-chat-panel { position: fixed; left: 0; right: 0; z-index: 45; width: 100%; border-radius: 0; border: 0; }
  body.ai-keyboard-open #ai-chat-panel .ai-chat-head { padding: 9px 13px 7px; }
  body.ai-keyboard-open #ai-chat-panel .ai-chat-head h3::before { content: "AI · "; }
  body.ai-keyboard-open #ai-chat-panel .ai-chat-head p,
  body.ai-keyboard-open #ai-chat-panel .mode-description,
  body.ai-keyboard-open #ai-chat-panel .ai-chat-foot { display: none; }
}
