.tea-page{--tea-line:#a99a7c65;--tea-accent:#a6553b;color:#332e28;font:20px/1.7 var(--reading-font);min-height:600px}.tea-page button,.tea-dialog button{font:inherit;min-height:44px;cursor:pointer}.tea-page button:focus-visible,.tea-dialog :focus-visible{outline:2px solid #9c533e;outline-offset:3px}.tea-page h1,.tea-page h2,.tea-page h3,.tea-dialog h2,.tea-dialog h3{font-family:var(--heading-font);font-weight:400}.tea-header{position:relative;display:flex;align-items:center;gap:26px;padding:0 65px 28px 0}.tea-header h1{font-size:38px;letter-spacing:4px;margin:0 auto 0 0;border-left:7px solid var(--tea-accent);padding-left:20px;white-space:nowrap}.tea-header .primary{white-space:nowrap;padding-inline:26px}.tea-search{display:flex;align-items:center;border:1px solid #9a8b7580;border-radius:4px;max-width:370px;min-width:160px}.tea-search input{background:transparent;border:0;min-width:0;width:100%;padding:8px 12px;font:inherit}.tea-search button{font-size:16px;padding:5px 12px}.tea-page .tea-tassel{position:absolute;right:-10px;top:-38px;display:block;width:24px;height:146px;padding:0;border:0;background:none}.tea-tassel img{width:24px;height:100%;object-fit:contain}.tea-tassel .category-caption{right:-26px;top:39px;font-size:20px;writing-mode:vertical-rl}.tea-mine-menu{position:absolute;right:0;top:78px;z-index:10;width:190px;padding:18px;background:#f3ead9 url(/static-assets/454085d196becd4c86b8-xuan-paper.webp) center/cover;border:1px solid var(--tea-line);box-shadow:0 3px 9px #49352226}.tea-mine-menu button{display:block;width:100%;text-align:left;border-bottom:1px solid var(--tea-line)}.tea-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.42fr);gap:34px}.tea-feed{min-width:0}.tea-filter{display:flex;gap:8px 18px;flex-wrap:wrap;margin-bottom:12px}.tea-filter button{font-size:17px;padding:3px 0;border-bottom:2px solid transparent;color:#77654e}.tea-filter button[aria-pressed=true]{border-color:var(--tea-accent);color:#7a3b29}.tea-feed-heading{display:flex;align-items:center;gap:16px}.tea-feed-heading h2{font-size:22px;color:#766a55;margin:5px auto 8px 0}.tea-feed-heading>button{font-size:16px}.tea-post{position:relative;margin:0 0 22px;padding:22px 27px 18px;border:1px solid #b6a58c62;border-radius:9px;background:#fffaf145;box-shadow:0 2px 5px #6c4e2720}.tea-post:after{content:'';position:absolute;right:8px;top:12px;width:135px;height:75px;background:url(/static-assets/ccbb837484af0a8ae1e6-icon-mountain.webp) center/contain no-repeat;opacity:.15;pointer-events:none}.tea-post h3{position:relative;z-index:1;margin:0 0 10px;font-size:28px;line-height:1.5;padding-left:15px;border-left:5px solid var(--tea-accent);overflow-wrap:anywhere}.tea-post h3 button{text-align:left;padding:0;font:inherit;line-height:inherit;color:inherit}.tea-post-category{font-size:15px;color:#8f523c;letter-spacing:1px;display:block;margin-bottom:6px}.tea-preview{white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:8px 0 15px}.tea-post footer{display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap;font-size:16px;color:#746957}.tea-post footer>button{font-size:16px}.tea-topics h2{font-size:29px;margin:12px 0 15px}.tea-topics{padding:0 16px 22px}.tea-topics button{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;padding:4px 0;gap:10px;font-size:19px}.tea-topics small{color:#877b67;font-size:14px;white-space:nowrap}.tea-board{padding:22px;background:#fffaf145;border:1px solid var(--tea-line);border-radius:7px;box-shadow:0 2px 5px #6c4e2720}.tea-board-tabs{display:flex;gap:20px;border-bottom:1px solid var(--tea-line)}.tea-board-tabs button{font:27px var(--heading-font);padding:0 0 12px;color:#887b66}.tea-board-tabs button[aria-pressed=true]{color:#362c23;box-shadow:inset 0 -3px var(--tea-accent)}.tea-periods{display:flex;justify-content:space-between;gap:6px;margin:12px 0}.tea-periods button{font-size:17px;padding:3px 0}.tea-periods button[aria-pressed=true]{color:#994a31;border-bottom:2px solid var(--tea-accent)}.tea-ranks{list-style:none;padding:0;margin:12px 0}.tea-ranks li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid var(--tea-line);padding:12px 0;font-size:18px;overflow-wrap:anywhere}.tea-ranks strong{font-size:16px;font-weight:400}.tea-rank{font-family:var(--heading-font);color:#934a34}.tea-empty{text-align:center;padding:32px 18px;color:#7e725f}.tea-empty img{display:block;width:150px;height:85px;object-fit:contain;opacity:.4;margin:0 auto 12px}.tea-empty h3{font-size:25px;margin:10px 0;color:#514636}.tea-empty p{font-size:16px;margin:8px auto;max-width:340px}.tea-board .tea-empty{padding:16px 0}.tea-board .tea-empty img{width:95px;height:55px}.tea-board .tea-empty h3{font-size:21px}.tea-board-more{width:100%;border-top:1px solid var(--tea-line);font-size:20px!important}.tea-small{display:block;font-size:14px!important;margin:auto;color:#816a53}.tea-pagination{display:flex;gap:20px;justify-content:center;padding-top:12px}.tea-dialog{--tea-line:#a99a7c65;width:min(860px,calc(100vw - 40px));max-height:calc(100dvh - 60px);padding:26px 36px 32px;border:1px solid #ab9b7e;border-radius:5px;background:#f4eddf url(/static-assets/454085d196becd4c86b8-xuan-paper.webp) center/cover;color:#362e24;box-shadow:0 14px 50px #251b1760;font:20px/1.7 var(--reading-font);overflow:auto;overscroll-behavior:contain}.tea-dialog::backdrop{background:#312a2560}.tea-dialog>header{display:flex;gap:20px;align-items:center;border-bottom:1px solid var(--tea-line);margin-bottom:24px}.tea-dialog>header h2{font-size:30px;margin:0 auto 14px 0}.tea-dialog>header button{font:30px/1 sans-serif;min-width:44px;align-self:start}.tea-dialog label{display:grid;gap:8px;margin-bottom:18px}.tea-dialog :is(input,textarea,select){font:inherit;color:inherit;border:1px solid #aa977871;background:#fffaf170;width:100%;min-width:0;padding:8px 12px;border-radius:3px}.tea-dialog textarea{resize:vertical}.tea-dialog .tea-check{display:flex;align-items:center;gap:12px;font-size:18px}.tea-check input{width:20px;height:20px;accent-color:#8e4933}.tea-note{font-size:15px;line-height:1.7;color:#7a6b54}.tea-dialog [role=alert]{color:#9a3e2e;font-size:16px}.tea-dialog details{border-block:1px solid var(--tea-line);padding:12px 0;margin-bottom:20px;font-size:16px}.tea-detail h3{font-size:32px;line-height:1.5;margin:10px 0;overflow-wrap:anywhere}.tea-meta{font-size:16px;color:#81715b}.tea-full-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;margin:24px 0}.tea-detail-actions{display:flex;flex-wrap:wrap;gap:24px;border-block:1px solid var(--tea-line);padding:6px 0;font-size:17px}.tea-replies>h3{font-size:24px;margin-top:28px}.tea-reply{border-bottom:1px solid var(--tea-line);padding:14px 0}.tea-reply header{display:flex;gap:20px;justify-content:space-between;font-size:17px}.tea-reply header time{font-size:14px;color:#7e6d55}.tea-reply>p{margin:10px 0}.tea-reply>button{font-size:15px;margin-right:20px;color:#7a4e35}.tea-reply-form{margin-top:25px}.tea-discard{position:sticky;bottom:0;background:#efe0c3;border:1px solid #a85d40;padding:15px;font-size:17px}.tea-discard button{margin-right:15px}.tea-page [hidden],.tea-dialog [hidden]{display:none!important}.workspace.community-view>.topbar,.workspace.community-view>#thought-view-menu,.workspace.community-view>#category-strip{display:none!important}.workspace.community-view>main{padding-top:35px}.workspace.community-view{padding-bottom:220px}.tea-nav-icon{width:36px;height:32px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5}
@media(min-width:901px){.inkstone-face>nav{gap:10px;top:21%}.sidebar.inkstone-sidebar .inkstone-face nav>.nav-item{height:70px!important;min-height:70px!important;padding-block:8px!important}}
@media(max-width:1250px){.tea-layout{grid-template-columns:minmax(0,1fr) 250px;gap:22px}.tea-header{flex-wrap:wrap;gap:14px}.tea-header h1{width:100%;font-size:32px}.tea-header .tea-search{flex:1;max-width:none}.tea-post{padding:18px}.tea-post h3{font-size:25px}.tea-board{padding:18px}.tea-board-tabs{gap:18px}.tea-board-tabs button{font-size:24px}}
@media(max-width:900px){.inkstone-face>nav{grid-template-columns:repeat(5,minmax(0,1fr))}.tea-nav-icon{width:26px;height:25px}.tea-layout{grid-template-columns:minmax(0,1fr)}.tea-aside{display:grid;grid-template-columns:1fr 1fr;gap:22px}.tea-header{padding-right:35px}.tea-header h1{font-size:30px}.tea-page .tea-tassel{top:0;right:6px;height:95px;width:20px}.tea-tassel .category-caption{right:-21px;top:22px;font-size:16px}.tea-header .primary{padding-inline:17px}.tea-page{font-size:18px}.tea-mine-menu{top:100px;right:20px}.workspace.community-view>main{padding-top:25px}.workspace.community-view{padding-bottom:180px}.tea-dialog{padding:20px;width:calc(100vw - 24px);max-height:calc(100dvh - 110px);font-size:18px}.tea-dialog>header h2{font-size:26px}}
@media(max-width:600px){.tea-aside{grid-template-columns:1fr}.tea-post{padding:18px 15px}.tea-post h3{font-size:23px}.tea-filter{gap:4px 14px}.tea-filter button{font-size:15px}.tea-header{gap:12px}.tea-search{min-width:100px}.tea-search input{font-size:16px;padding-inline:8px}.tea-search button{font-size:14px;padding:4px}.tea-header .primary{font-size:18px;padding-inline:12px}.tea-post footer{font-size:14px;gap:8px 12px}.tea-detail h3{font-size:27px}.tea-ranks li{font-size:17px}.tea-dialog>header{margin-bottom:15px}.tea-dialog .tea-check{font-size:16px}.tea-topics{padding:0 6px 10px}.tea-board-tabs button{font-size:27px}}
.tea-search button{white-space:nowrap;flex-shrink:0}.tea-page .tea-tassel{width:44px;height:123px;top:-34px;right:5px}.tea-page .tea-tassel img{position:absolute;width:66.4px;height:auto;max-width:none;left:-19.3px;top:-6.7px;object-fit:initial}.tea-tassel .category-caption{right:-15px;top:30px}.tea-header .primary,.tea-dialog .primary{position:relative;isolation:isolate;border:0;border-radius:0;background:transparent;color:#fffdf5;box-shadow:none}.tea-header .primary:before,.tea-dialog .primary:before{content:'';position:absolute;inset:-4px -7px;z-index:-1;background:url(/static-assets/8995c4789cf03813cfda-ink-button.webp) center/100% 100% no-repeat;filter:saturate(0)}
@media(max-width:900px){.tea-page .tea-tassel{top:-12px;right:0;width:28px;height:110px}.tea-tassel .category-caption{right:-17px;top:25px}.tea-header{padding-right:45px}}

/* Same in-flow category strip as the other scroll sections. */
.tea-page>.tea-mine-menu{position:static;inset:auto;width:auto;max-width:none;display:flex;flex-wrap:wrap;gap:8px 18px;padding:10px 0 18px;margin:0 0 18px;border:0;border-bottom:1px solid #ad9e7b66;box-shadow:none;background:transparent;animation:tea-strip-in .18s ease-out}.tea-page>.tea-mine-menu[hidden]{display:none}.tea-page>.tea-mine-menu button{width:auto;min-height:40px;padding:5px 8px;margin:0}.tea-page>.tea-mine-menu button:hover{background:#ded2b455}@keyframes tea-strip-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.tea-page>.tea-mine-menu{animation:none}}

/* Expand at the scroll edge, above the page title, as requested. */
@media(min-width:901px){.inkstone-face nav>.nav-item{justify-content:flex-start!important;padding-left:clamp(9px,calc((100% - 160px)/2),29px)!important}}
.workspace>#tea-mine-menu{position:relative;inset:auto;width:100%;padding:12px 64px;display:block;border:0;border-bottom:1px solid #887f6544;background:#fffcf333;box-shadow:0 7px 12px #6455440b;animation:tea-strip-in .18s ease-out}.workspace>#tea-mine-menu[hidden]{display:none!important}.tea-mine-menu .tea-filter{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0;gap:4px 12px}.tea-mine-menu .tea-filter button{width:auto;flex:1;text-align:center;font:24px var(--heading-font);white-space:nowrap;color:#332e28;border:0}.tea-mine-menu .tea-filter button[aria-pressed=true]{color:#994a31}.tea-record-options{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 20px;border-top:1px solid #ad9e7b33;margin-top:5px;padding-top:4px}.tea-record-options button{font:16px var(--reading-font);width:auto;flex:none;border:0;min-height:38px;color:#75634c}.tea-record-options button+button:before{display:none}.tea-mine-menu button:hover{background:#ded2b455}/* Match the shared icon slot; balance the denser cup and low visual center. */
.nav-item[data-page=teahouse] .nav-gaiwan{overflow:visible;transform:translateY(-10%)}
.nav-item[data-page=teahouse] .nav-gaiwan image{filter:none;opacity:.82}
@media(max-width:1250px){.workspace>#tea-mine-menu{padding:10px 30px}}@media(max-width:900px){.workspace>#tea-mine-menu{padding:8px 20px}.tea-mine-menu .tea-filter button{font-size:20px}.tea-record-options{gap:0 12px}.tea-record-options button{font-size:15px}}@media(prefers-reduced-motion:reduce){.workspace>#tea-mine-menu{animation:none}}

/* The strip stays at the scroll edge. Its inner wrapper supplies the spacing so
   the outer height can reach zero cleanly in either animation direction. */
.workspace>#tea-mine-menu{padding:0;overflow:hidden;border:0;box-sizing:border-box;animation:none}
.tea-menu-content{padding:12px 64px;border-bottom:1px solid #887f6544}
.tea-topics button[aria-pressed=true]{color:#994a31;font-weight:600}
@media(max-width:1250px){.tea-menu-content{padding:10px 30px}}
@media(max-width:900px){.tea-menu-content{padding:8px 20px}}
@media(prefers-reduced-motion:reduce){.workspace>#tea-mine-menu{animation:none;transition:none}}
