:root{
  --ink:#18372e;--green:#205944;--muted:#62716a;--paper:#fafaf6;--line:#dedfd5;--pale:#e9eee6;--white:#fffefa;--gold:#eff2b5;--radius:17px;--shadow:0 3px 12px #263e2505;
  font-family:"PingFang SC","Microsoft YaHei",Inter,system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:15px;line-height:1.55;
}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.53}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #729963;outline-offset:3px}button{border:0;background:none}svg{flex:none;vertical-align:middle}h1,h2,h3,p{margin:0}button,span,strong{overflow-wrap:anywhere}button{touch-action:manipulation}button:hover{filter:brightness(.973)}
#app-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}
#sidebar{position:sticky;top:0;align-self:start;height:100dvh;background:#193e33;color:#f6f7e9;display:flex;flex-direction:column;padding:30px 17px 17px;overflow:auto}
.brand,.group-switch,.nav-link,.sidebar-footer,.user-info,.group-switch-info,.header-leading,.breadcrumbs,.header-actions,.btn,.section-head,.item-row,.member-row,.aside-action,.stat-card,.filter-bar,.reply-count,.mode-pill,.date-tile,.dialog-head,.dialog-actions,.channel-card{display:flex;align-items:center}
.brand{padding:0 11px 30px;gap:10px}.brand-mark{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:#dae9b5;color:#1c4839}.brand-name{font-size:29px;line-height:1.1;font-weight:760;letter-spacing:-2px}.brand-plus{color:#dcecb5;font-size:28px}
.group-switch{border:1px solid #ffffff32;border-radius:13px;padding:11px 9px;gap:10px;width:100%;text-align:left;background:#ffffff09;color:inherit}.group-symbol{border-radius:9px;padding:7px;display:grid;place-items:center;background:#59744e;color:#edf6db}.group-switch-info,.user-info{flex-direction:column;align-items:flex-start;line-height:1.45;min-width:0;gap:2px}.group-switch-info{flex:1}.group-switch-info strong,.user-info strong{font-size:14px}.group-switch small,.sidebar-footer small{color:#bfcec1;font-size:11px}.nav-label{font-size:11px;color:#b2c6b5;letter-spacing:.13em;padding:29px 12px 9px}.nav-list{display:grid;gap:4px}.nav-link{width:100%;border-radius:9px;gap:13px;color:#d3dfd2;min-height:42px;padding:9px 13px;text-align:left;font-weight:520}.nav-link.active{background:#d9e6b8;color:#193e30;font-weight:700}.nav-link:not(.active):hover{background:#ffffff12}.sidebar-footer{color:inherit;border-top:1px solid #ffffff27;margin-top:auto;padding:18px 5px 0;gap:10px;text-align:left}
#workspace{min-width:0}#topbar{height:70px;border-bottom:1px solid var(--line);padding:0 clamp(20px,3.2vw,54px);display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--white)}.breadcrumbs,.header-leading,.header-actions{gap:10px}.breadcrumbs{font-size:12px;color:var(--muted)}.breadcrumbs strong{font-weight:600;color:var(--ink)}.btn,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;min-height:38px;padding:8px 14px;font-size:13px;font-weight:600;line-height:1.4}.btn.primary{background:var(--green);color:white}.btn.secondary,.icon-button{background:var(--white);border:1px solid var(--line)}.btn.ghost,.text-link{color:var(--green);background:transparent}.icon-button{width:38px;padding:7px}.mobile-only{display:none!important}
#workspace-body{max-width:1600px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 228px;gap:22px;align-items:start;padding:29px clamp(20px,3.2vw,54px) 50px}#main,#aside{min-width:0}#main{outline:0}#aside{display:grid;gap:16px}#aside:empty{display:none}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:8px 0 23px}.page-head h1{font-size:clamp(24px,2.5vw,38px);line-height:1.3;letter-spacing:-.035em;font-weight:730}.eyebrow{font-size:12px;color:var(--muted);margin:0 0 8px;letter-spacing:.03em}
.overview-hero{position:relative;isolation:isolate;overflow:hidden;margin:0 0 16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:24px 27px;min-height:192px;border-radius:var(--radius);border:1px solid #dadcca;background:#f2f0df}
.overview-hero::before{content:"";position:absolute;z-index:-1;inset:0 0 0 40%;background:url('/courtyard.webp') center 51%/cover no-repeat;mix-blend-mode:multiply;mask-image:linear-gradient(90deg,transparent,#000 23%)}.overview-hero h1{font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;font-size:clamp(30px,3vw,47px);letter-spacing:-.04em}.overview-hero>div:first-child{max-width:60%}.overview-hero .eyebrow{font-size:12px;color:#475946}.overview-hero .btn{font-size:12px;padding:8px 13px;min-height:35px}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.stat-card{position:relative;gap:11px;text-align:left;padding:16px;border-radius:var(--radius);border:1px solid var(--line);background:var(--white);box-shadow:var(--shadow);min-height:78px}.stat-icon,.item-icon{display:grid;place-items:center;border-radius:11px;width:38px;height:38px;background:#e7eee4;color:#38614a}.stat-orange .stat-icon{background:#f2e5c8;color:#86591e}.stat-blue .stat-icon{background:#e3ebef;color:#436679}.stat-info{display:flex;flex-direction:column;align-items:flex-start;line-height:1.3;gap:4px}.stat-label,.item-meta,.item-excerpt{color:var(--muted)}.stat-label{font-size:12px}.stat-value{font-family:Georgia,serif;font-weight:500;font-size:28px;line-height:1}.stat-card>svg{margin-left:auto;color:#829187}
.panel,.side-card,.channel-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--white);box-shadow:var(--shadow)}.panel{padding:17px 21px 7px;margin-bottom:17px;min-width:0}.section-head,.dialog-head{justify-content:space-between;gap:10px}.section-head{margin:0 0 10px}.section-head h2,.side-card h2{font-size:17px;font-weight:680;letter-spacing:-.035em}.text-link{display:inline-flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap;padding:4px}.item-list{min-width:0}.item-row{gap:12px;text-align:left;width:100%;padding:14px 0;border-top:1px solid #e9eae2}.item-row:hover{background:#f5f7ef}.item-info,.stat-info{min-width:0}.item-info{flex:1;display:grid;gap:4px}.item-title{font-size:15px;font-weight:620;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.item-meta,.item-excerpt,.reply-count,.row-end,.count{font-size:12px}.item-excerpt{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.item-meta{line-height:1.5}.reply-count,.row-end{color:#68796e;gap:5px}.overview-grid,.channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.overview-grid .panel{padding-inline:16px}.date-tile{flex:none;flex-direction:column;justify-content:center;border:1px solid #cbdac7;border-radius:9px;background:#eff2e4;width:42px;min-height:50px;color:var(--green);line-height:1.1}.date-tile small{font-size:10px}.date-tile strong{font:600 22px Georgia,serif}.task-indicator{width:17px;height:17px;border:1.5px solid #91a18e;border-radius:5px;flex:none;display:grid;place-items:center}.task-indicator.checked{background:var(--green);color:#fff}.is-done .item-title{text-decoration:line-through;color:var(--muted)}.avatar{width:38px;height:38px;display:inline-grid;place-items:center;flex:none;font-size:15px;font-weight:650;border-radius:50%;background:#e5e6ba;color:#526044}.avatar-sm{width:31px;height:31px;font-size:13px}.avatar-1{background:#f0dacf;color:#86573d}.avatar-2{background:#dae8dd;color:#41664f}.avatar-3{background:#d9e6ec;color:#476479}.avatar-4{background:#eae0e6;color:#755866}.avatar-5{background:#e8e1c8;color:#73623a}
.side-card{padding:18px}.side-card .section-head{margin-bottom:15px}.side-card .section-head>svg,.count{color:var(--muted)}.aside-group-name{display:block;font-size:19px;line-height:1.5;margin-bottom:7px}.mode-pill,.pill{display:inline-flex;gap:5px;border-radius:6px;padding:3px 8px;font-size:11px;color:#44674c;background:#eaf0e1}.aside-action{gap:9px;width:100%;padding:13px 2px 0;margin-top:16px;border-top:1px solid var(--line);font-size:13px}.aside-action>svg:last-child{margin-left:auto}.member-list{display:grid;gap:12px}.member-row{gap:9px;font-size:13px}.member-row small{font-size:10px;color:var(--muted);background:var(--pale);border-radius:5px;padding:1px 5px}.members-card .btn{width:100%;margin-top:12px;border-top:1px solid var(--line);border-radius:0}.count{background:var(--pale);border-radius:5px;padding:2px 7px}
.filter-bar{gap:6px;flex-wrap:wrap;margin:0 0 14px}.filter-chip{padding:6px 12px;font-size:13px;border:1px solid var(--line);border-radius:8px;background:var(--white)}.filter-chip.active{color:#fff;background:var(--green);border-color:var(--green)}.list-panel{padding-top:4px}.list-panel .item-row:first-child{border-top:0}.channel-card{flex-wrap:wrap;padding:17px;gap:10px;text-align:left}.channel-card small{color:var(--muted)}.channel-card>svg:last-child{margin-left:auto}.empty-state{text-align:center;padding:32px 10px;color:var(--muted);font-size:14px}.empty-state p{margin:8px 0}.empty-state>svg{color:#7d967b}
dialog{width:min(510px,calc(100% - 28px));max-height:88dvh;border:1px solid var(--line);border-radius:20px;padding:24px;background:var(--white);color:var(--ink);box-shadow:0 25px 100px #16302635}dialog::backdrop{background:#142c2475;backdrop-filter:blur(2px)}.dialog-head{margin-bottom:18px}.dialog-head h2{font-size:23px}.dialog-body,.field{display:grid;gap:9px}.dialog-body{gap:14px}.field{font-size:13px;font-weight:620;margin:12px 0}.field input,.field select,.field textarea,dialog input:not([type=checkbox]),dialog select,dialog textarea,#main input:not([type=checkbox]):not([type=radio]),#main textarea{width:100%;padding:10px 12px;border:1px solid #c8d1c8;border-radius:8px;background:#fff;font-size:15px;font-weight:400;min-width:0}.field textarea,dialog textarea{min-height:82px;resize:vertical}.dialog-actions{justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:17px}.dialog-body p,.detail-body{white-space:pre-wrap;overflow-wrap:anywhere}.dialog-body small,.help-text,.detail-meta{color:var(--muted);font-size:12px}.reply-list{display:grid;gap:8px}.reply-list>*{padding:10px 12px;border-radius:9px;background:#f1f3ec}.form-error,.error{color:#983d2c}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#toast{display:none;position:fixed;bottom:24px;left:50%;transform:translateX(-50%);border-radius:10px;color:#fff;background:var(--ink);padding:11px 16px;font-size:13px;box-shadow:0 8px 22px #11261d28;z-index:30}#toast.show{display:block}.nav-backdrop{position:fixed;inset:0;background:#16302366;z-index:10}
@media(min-width:1600px){#app-shell{grid-template-columns:245px minmax(0,1fr)}#workspace-body{grid-template-columns:minmax(0,1fr) 270px}}
@media(max-width:1180px){#app-shell{grid-template-columns:192px minmax(0,1fr)}#workspace-body{grid-template-columns:minmax(0,1fr) 185px;gap:15px;padding-inline:20px}.stat-card{padding:12px;gap:7px}.stat-card>svg{display:none}.side-card{padding:15px}}
@media(max-width:980px){#workspace-body{grid-template-columns:minmax(0,1fr)}#aside{grid-template-columns:repeat(2,minmax(0,1fr))}.members-card .member-list{display:flex;flex-wrap:wrap}.member-row{min-width:75px}}
@media(max-width:720px){#app-shell{display:block}#sidebar{position:fixed;top:0;bottom:0;left:0;width:245px;height:100dvh;transform:translateX(-105%);z-index:20;visibility:hidden}#sidebar.open{transform:none;visibility:visible}.mobile-only{display:inline-flex!important}#topbar{padding:0 14px;height:56px}.header-leading,.breadcrumbs{gap:6px}.header-actions .btn{min-height:34px;padding:7px 10px}.breadcrumbs{font-size:11px}.breadcrumbs span{max-width:32vw;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#workspace-body{padding:15px 13px 30px;gap:10px}.overview-hero{min-height:155px;padding:18px}.overview-hero h1{font-size:32px}.overview-hero:before{left:33%;background-position:48% 55%;mask-image:linear-gradient(90deg,transparent,#000 37%)}.overview-hero>div:first-child{max-width:72%}.stats-grid{gap:6px;margin-bottom:14px}.stat-card{gap:6px;padding:10px 8px;border-radius:12px;min-height:62px}.stat-icon{width:26px;height:29px;border-radius:7px}.stat-icon svg{width:15px;height:15px}.stat-value{font-size:23px}.stat-label{font-size:10px}.panel{padding:14px 13px 4px;margin-bottom:12px}.section-head h2,.side-card h2{font-size:16px}.item-row{gap:8px;padding-block:12px}.item-title{font-size:14px}.overview-grid{grid-template-columns:1fr;gap:0}.channel-grid{gap:8px}.page-head{margin-bottom:14px}.page-head.overview-hero{margin-top:0}.side-card{padding:13px}.group-card,.members-card{min-width:0}.members-card .member-list{display:grid}.member-row{min-width:0}.page-head .eyebrow{font-size:11px}.item-meta,.item-excerpt{font-size:11px}dialog{padding:17px}.btn{font-size:13px}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .13s,box-shadow .13s}#sidebar{transition:transform .18s}}
/* A conversation stays readable while the composer remains in reach. */
.chat-panel{padding:0;overflow:hidden}.chat-stream{padding:21px;max-height:min(52vh,545px);min-height:225px;overflow:auto;display:flex;flex-direction:column;gap:15px}.chat-message,.reply-row{display:flex;align-items:flex-start;gap:10px}.chat-message-body{max-width:min(83%,610px);min-width:0;display:grid;justify-items:start;gap:4px}.chat-byline{font-size:11px;color:var(--muted)}.chat-bubble{display:grid;gap:5px;text-align:left;padding:10px 14px;background:#edf1e8;border-radius:2px 13px 13px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-bubble small{font-size:11px;color:var(--muted)}.chat-message.own{flex-direction:row-reverse}.chat-message.own .chat-message-body{justify-items:end}.chat-message.own .chat-bubble{background:#dbe9d5;border-radius:13px 2px 13px 13px}.chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px;border-top:1px solid var(--line);padding:15px}.chat-composer textarea{resize:vertical;min-height:43px;max-height:150px}.chat-composer .form-error{grid-column:1/-1}
.calendar-panel{padding-bottom:16px}.calendar-toolbar,.calendar-controls,.detail-meta,.detail-line,.detail-actions,.source-preview,.hero-actions{display:flex;align-items:center;gap:8px}.calendar-toolbar{justify-content:space-between;margin:0 0 13px}.calendar-toolbar h2{font-size:17px}.calendar-controls button{padding:4px 8px;min-height:31px}.calendar-controls .icon-button{width:32px}.calendar-controls [data-act=calendar-prev] svg{transform:rotate(180deg)}.calendar-week,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-week span{text-align:center;font-size:12px;color:var(--muted);padding:5px}.calendar-grid{border-top:1px solid var(--line);border-left:1px solid var(--line)}.calendar-day,.calendar-blank{position:relative;min-height:58px;padding:5px;display:flex;flex-direction:column;gap:2px;align-items:flex-start;border-bottom:1px solid var(--line);border-right:1px solid var(--line)}.calendar-day{font-size:13px;font-variant-numeric:tabular-nums}.calendar-day:hover{background:#eff2e7}.calendar-day.today .day-number{border-radius:50%;background:var(--green);color:white}.day-number{min-width:23px;height:23px;text-align:center;line-height:23px}.day-events{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#e3ebd2;color:#36543c;padding:1px 4px;border-radius:4px;font-size:10px}.day-count{display:none}.calendar-day.selected{background:#eff4e4;box-shadow:inset 0 0 0 1.5px var(--green)}.calendar-blank{background:#f6f6ef}.group-choice,.setting-row,.settings-row{display:flex;align-items:center;text-align:left;gap:10px;width:100%;padding:12px 4px;border-bottom:1px solid var(--line)}.settings-list,.group-options{display:grid;gap:4px}.group-choice>span,.setting-row>span{flex:1}.detail-content{min-width:0}.detail-meta,.detail-line{color:var(--muted);font-size:12px;flex-wrap:wrap;margin-bottom:12px}.detail-content h3{font-size:21px;line-height:1.45;margin-bottom:9px}.detail-content .detail-text{margin-bottom:14px;white-space:pre-wrap;line-height:1.8}.detail-actions,.derive-actions,.hero-actions{flex-wrap:wrap}.derived-list,.reply-section{padding-top:12px;border-top:1px solid var(--line)}.reply-section h3{font-size:16px;margin-bottom:10px}.reply-row strong{font-size:13px}.reply-row p{font-size:14px;margin:2px 0 0}.source-preview{background:#eef2e5;padding:9px 10px;border-radius:8px;font-size:13px}.detail-actions{margin-bottom:9px}
@media(max-width:720px){.chat-stream{padding:13px;min-height:190px}.chat-composer{padding:10px}.calendar-panel{padding:12px 8px}.calendar-day,.calendar-blank{min-height:44px;padding:3px}.calendar-day .day-events{display:none}.calendar-day.has-events .day-count{display:block;border-radius:9px;padding:0 4px;background:#d9e8ca;color:#31593a;font-size:10px;line-height:14px}.hero-actions{gap:6px}.overview-hero .hero-actions{max-width:85%}.overview-hero .btn.secondary{background:#fffef1eb}}
.setting-row>span,.group-choice>span:not(.group-symbol){display:grid;gap:3px}.setting-row small,.group-choice small{display:block;color:var(--muted);font-size:12px}.group-choice>.group-symbol{flex:none}.group-choice>svg{margin-left:auto}.group-choice:hover,.setting-row:focus-within{background:#f2f5ec}.source-link{max-width:100%;text-align:left}.demo-label,.demo-badge{display:inline-flex;padding:1px 6px;border:1px solid #adb999;border-radius:5px;color:#465c40;font-size:11px;vertical-align:middle}.overview-hero .hero-actions{display:flex;gap:7px}.day-number{font-family:system-ui,sans-serif}
.collaboration-summary{margin-bottom:14px}.collaboration-summary:where(.overview-grid){grid-template-columns:repeat(2,minmax(0,1fr))}.search-prompt,.search-count{color:var(--muted);font-size:13px}.search-results{margin-top:8px}
.view-tabs{display:flex;gap:4px;margin:0 0 12px}.view-tabs .btn{padding:5px 15px;min-height:32px}
.inline-thread{font-size:13px;margin:0 0 8px 48px;border-left:2px solid var(--line);padding:2px 10px;color:var(--muted)}
.chat-message .inline-thread{margin:0}.inline-thread summary{cursor:pointer}.inline-thread p{overflow-wrap:anywhere;white-space:pre-wrap;margin:8px 0}
.anon-check{display:inline-flex;align-items:center;gap:4px;font-size:13px;white-space:nowrap}.chat-composer{grid-template-columns:minmax(0,1fr) auto auto}
.folder-title{margin:14px 0 4px;font-size:13px;color:var(--muted)}.group-file,.file-upload,.news-filter{display:flex;align-items:center;gap:12px}
.group-file .item-row{flex:1;min-width:0;text-decoration:none;color:inherit;overflow-wrap:anywhere}.group-file small,.group-file strong{display:block}
.file-upload,.news-filter{align-items:flex-end;flex-wrap:wrap}.file-upload .field,.news-filter .field{flex:1;min-width:125px}
.news-filter label{font-size:14px}.news-filter input[type=checkbox],.anon-check input{width:auto;min-height:auto}
.news-item{padding:15px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.news-item:last-child{border-bottom:0}.news-item small{color:var(--muted)}
.news-item [data-news-id]{display:block;color:var(--ink);font-weight:650;font-size:17px;margin:6px 0;text-align:start;background:none;padding:0}
.news-item p{white-space:pre-wrap;margin:6px 0}.tag-chip{padding:3px 8px;margin:4px 5px 0 0;border-radius:6px;color:#305740;background:#edf2e8;font-size:12px}
.nav-list .nav-section{font-size:11px;color:#b5c6b8;letter-spacing:.12em;padding:14px 10px 3px}
@media(max-width:720px){.chat-composer{grid-template-columns:minmax(0,1fr) auto}.chat-composer textarea{grid-column:1/-1}.group-file button{padding:5px}.news-filter .field{min-width:100px}}
#mobile-tabs{display:none}
.news-filter label:not(.field){display:inline-flex;align-items:center;gap:5px;min-height:40px}
@media(max-width:720px){
 #mobile-tabs:not(:empty){position:fixed;display:flex;justify-content:space-around;bottom:0;left:0;right:0;z-index:8;background:#fffef9f7;border-top:1px solid var(--line);padding:4px 2px max(4px,env(safe-area-inset-bottom))}
 #mobile-tabs button{display:grid;justify-items:center;align-content:center;gap:2px;min-height:44px;width:19%;background:none;color:#607064;font-size:10px}
 #mobile-tabs button[aria-current=page]{color:#173f35;font-weight:700;background:#e8efdf;border-radius:9px}
 #workspace{padding-bottom:calc(58px + env(safe-area-inset-bottom))}
 #toast{bottom:calc(68px + env(safe-area-inset-bottom))}
}
.group-folder .folder-title{cursor:pointer}.group-choice[hidden],.group-folder[hidden]{display:none}
.group-choice span:has(>strong){min-width:0}.group-choice small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.unread-count{font-size:11px;border-radius:9px;padding:1px 6px;background:#dfeccf;color:#26462c}
.invite-qr{display:grid;place-items:center;margin:2px auto 12px}.invite-qr svg{width:168px;height:168px}

/* First visit and group entry */
.is-arriving #app-shell,.is-arriving #workspace,.is-arriving #workspace-body{display:block;min-height:100dvh;padding:0;max-width:none}
.is-arriving #topbar,.is-arriving #sidebar,.is-arriving #mobile-tabs,.is-arriving #aside{display:none}
.arrival{box-sizing:border-box;min-height:100dvh;max-width:1320px;margin:auto;padding:0 clamp(24px,6vw,88px) 50px}
.arrival-head{display:flex;align-items:center;justify-content:space-between;min-height:100px;border-bottom:1px solid var(--line)}
.arrival-brand,.login-link,.demo-link,.room-meta,.entry-note{display:inline-flex;align-items:center;gap:9px}
.arrival-brand strong{font-size:27px;font-weight:760;letter-spacing:-.055em}.arrival-brand img{display:block}
.login-link,.demo-link{color:var(--green);min-height:44px;font-weight:600}.login-link{font-size:14px}
.arrival-card{margin:clamp(30px,7vh,80px) 0 0;display:grid;grid-template-columns:minmax(340px,.88fr) minmax(0,1.12fr);align-items:center;background:#f4f1e5;border:1px solid #dedfce;border-radius:26px;overflow:hidden;min-height:clamp(390px,56vh,570px)}
.arrival-art{grid-column:2;grid-row:1;align-self:stretch;position:relative;isolation:isolate;background:#f6f1de}
.arrival-art img{width:100%;height:100%;position:absolute;object-fit:cover;object-position:56% center}
.arrival-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#f4f1e5,transparent 18%)}
.arrival-copy{grid-column:1;grid-row:1;padding:clamp(26px,4.4vw,66px);padding-right:6px;position:relative}
.arrival-copy h1,.first-chat h2,.room-heading h1{font-family:"Songti SC","Noto Serif CJK SC",STSong,serif}
.arrival-copy h1{font-size:clamp(34px,3.6vw,58px);letter-spacing:-.055em;line-height:1.2;color:#163d30}
.arrival-copy>p{max-width:29em;font-size:clamp(15px,1.25vw,18px);line-height:1.9;color:#4a6052;margin:18px 0 25px}
.arrival-actions{display:flex;gap:10px;flex-wrap:wrap}.arrival-actions .btn{min-height:47px;padding-inline:18px}
.demo-link{margin-top:16px;padding-inline:0;font-weight:500;font-size:14px}.demo-link svg{transition:transform .16s}.demo-link:hover svg{transform:translateX(3px)}
.room-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px}.room-heading>div{min-width:0}
.room-heading h1{font-size:clamp(26px,3vw,42px);line-height:1.2;margin:6px 0 0;overflow-wrap:anywhere}.room-heading>.btn{flex:none}
.room-meta{color:var(--muted);font-size:13px;gap:5px}.first-chat{margin:auto;text-align:center;max-width:340px;padding:18px 12px 24px}
.first-chat-mark{display:grid;width:50px;height:50px;margin:0 auto 10px;align-items:center;justify-content:center;background:#e5eedc;color:#365d45;border-radius:16px}
.first-chat h2{font-size:25px}.first-chat p{font-size:14px;color:var(--muted);margin:6px 0 13px}.first-chat .btn{margin:auto}
.tool-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tool-directory button{border:1px solid var(--line);border-radius:12px;min-height:54px;display:flex;align-items:center;text-align:left;gap:10px;padding:8px;font-weight:600}
.tool-directory button span{display:grid;place-items:center;border-radius:9px;width:34px;height:34px;background:#eaf0e4;color:#3d624b;flex:none}
.entry-note,.invite-preview{border-radius:10px;background:#eef2e8;padding:10px 12px;line-height:1.5;font-size:14px;color:#3c5845;margin:0 0 16px}
.join-login{margin:0 0 8px;padding:0}.arrival .btn,.arrival .login-link,.arrival .demo-link{touch-action:manipulation}
@media(max-width:840px){
 .arrival{padding-inline:24px}.arrival-head{min-height:76px}.arrival-card{grid-template-columns:minmax(290px,.96fr) minmax(0,1.04fr)}
}
@media(max-width:620px){
 .arrival{padding:env(safe-area-inset-top) 18px max(22px,env(safe-area-inset-bottom))}.arrival-head{min-height:65px}.arrival-brand img{width:31px;height:31px}.arrival-brand strong{font-size:23px}
 .arrival-card{display:flex;flex-direction:column;align-items:stretch;min-height:0;margin-top:19px;border-radius:21px}
 .arrival-art{height:clamp(142px,27vh,245px);flex:none}.arrival-art img{object-position:center 48%}.arrival-art:after{background:linear-gradient(0deg,#f4f1e5,transparent 30%)}
 .arrival-copy{padding:18px 20px 14px}.arrival-copy h1{font-size:clamp(29px,8.4vw,42px)}.arrival-copy>p{line-height:1.75;margin:12px 0 19px;font-size:15px}
 .arrival-actions{display:grid;grid-template-columns:1fr}.arrival-actions .btn{justify-content:center;min-height:45px}.demo-link{margin-top:8px}
 .room-heading{margin-bottom:13px}.room-heading h1{font-size:28px}
 body[data-view=discussion] #aside{display:none}
 .chat-panel .chat-stream{min-height:clamp(205px,32dvh,360px);max-height:52dvh}
 .first-chat{padding:14px}.room-heading .btn{min-height:40px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.chat-day{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;align-self:stretch;justify-content:center}
.chat-day:before,.chat-day:after{content:"";display:block;width:32px;height:1px;background:var(--line)}
.guest-hint{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0;color:var(--muted);font-size:13px}
.guest-hint .icon-button{width:32px;height:32px;min-width:32px}.guest-hint .text-link{white-space:nowrap}
.personal-view #workspace-body{grid-template-columns:minmax(0,1fr);max-width:1150px}
.personal-view #aside:empty{display:none}
@media(max-width:620px){.guest-hint{gap:4px 12px}.guest-hint>span{flex:1;min-width:150px}}
.skip-content{position:fixed;left:12px;top:8px;z-index:30;transform:translateY(-160%);padding:10px 16px;border-radius:8px;color:white;background:#173f35}
.skip-content:focus{transform:translateY(0)}
.sync-status:not([hidden]){display:flex;align-items:center;justify-content:center;gap:12px;padding:4px 12px;background:#faf1d9;color:#594822;font-size:14px}
.sync-status button{text-decoration:underline;min-height:40px;white-space:nowrap}
@media(pointer:coarse){.guest-hint .icon-button,.room-heading>.btn{min-width:44px;min-height:44px}}
.room-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:620px){.page-head:has(.room-actions){flex-wrap:wrap;gap:12px}}
.discover-link{margin-top:12px;min-height:44px}
.browsing-first #sidebar,.browsing-first #mobile-tabs,.browsing-first #aside{display:none}
.browsing-first #app-shell{display:block}.browsing-first #topbar{justify-content:space-between;max-width:1150px;margin:auto}
.browsing-first #workspace-body{margin:auto}
.header-leading,.breadcrumbs{min-width:0}
.breadcrumbs span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.breadcrumbs strong,.breadcrumbs svg,.header-leading>.icon-button,.header-actions{flex-shrink:0}
.breadcrumbs strong,.header-actions .btn{white-space:nowrap}
.is-loading #sidebar,.is-loading #aside,.is-loading #topbar,.is-loading #mobile-tabs{display:none}
.is-loading #app-shell,.is-loading #workspace,.is-loading #workspace-body{display:block;margin:0;padding:0;max-width:none}
.is-loading #main{display:grid;align-content:center;justify-items:center;text-align:center;min-height:90dvh;padding:20px}
.launch-status{display:grid;justify-items:center;gap:14px;color:var(--muted);font-size:15px}
.group-notice{margin:0 0 14px}
.group-notice>button{display:flex;align-items:center;gap:12px;text-align:start;width:100%;padding:12px 16px;border-radius:12px;background:#eaf0e4;color:#204c39}
.group-notice button>span{display:grid;gap:3px;min-width:0;flex:1}.group-notice strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.group-notice small,.group-notice em{font-size:12px;font-style:normal}.group-notice em{flex:none}
.notice-confirm{padding:14px;margin:12px 0;background:#edf2e8;border-radius:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.notice-confirm details{width:100%}.notice-confirm summary{cursor:pointer}.notice-member{display:flex;justify-content:space-between;gap:16px;padding:5px 0}
.community-consent{box-sizing:border-box;max-width:min(460px,92vw);max-height:85dvh;padding:24px;background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:16px}
.community-consent p,.community-consent details{margin:14px 0;line-height:1.6}.community-consent iframe{width:100%;height:240px;border:1px solid var(--line)}
.community-consent::backdrop{background:#172e2670}
