/* Mellow paper system: quiet geometry; handwritten Chinese at display sizes.
   Type is never warped, masked or arbitrarily stretched. Layer order:
   content 0, sidebar 10, mobile nav 20, notices 30, native dialog top layer. */
@font-face{font-family:MellowHand;src:url('/fonts/wenkai-regular.woff') format('woff');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:MellowHand;src:url('/fonts/wenkai-medium.woff') format('woff');font-style:normal;font-weight:600 800;font-display:swap}
:root{--page:#f8f6f0;--paper:#fdfcf9;--ink:#182232;--muted:#58676b;--edge:#e5e5dd;--line:rgba(24,34,50,.13);--sage:#d4e4cb;--butter:#f5edc9;--blush:#f6e0d6;--blue:#e3e9f5;--green:#3e7459;--green-soft:#e0eddc;--input:#fffefb;--danger:#a03830;--danger-bg:#fceae5;--hand:MellowHand,"PingFang SC","Microsoft YaHei",sans-serif;--body:system-ui,-apple-system,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;--shadow:0 12px 44px rgba(42,52,39,.08);font-synthesis:none;color-scheme:light}
:root[data-theme=dark]{--page:#1c2425;--paper:#253031;--ink:#f1f2e9;--muted:#bac8c4;--edge:#3a4947;--line:rgba(232,242,233,.16);--sage:#364e3e;--butter:#4a4630;--blush:#503e37;--blue:#394653;--green:#b0d9b3;--green-soft:#384e3e;--input:#202b2c;--danger:#ffc1b5;--danger-bg:#4c3330;color-scheme:dark;--shadow:0 12px 44px rgba(15,20,18,.12)}
:root[data-font=easy]{--hand:var(--body)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--page);color:var(--ink);font-family:var(--body);font-size:14px;line-height:1.75;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}body::before{content:"";position:fixed;inset:0;background:url('/assets/paper-texture.webp') repeat;opacity:.095;mix-blend-mode:multiply;pointer-events:none;z-index:0}body.dialog-open{overflow:hidden}button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{color:var(--green)}img{display:block;max-width:100%;object-fit:contain}svg{flex:none;vertical-align:middle}h1,h2,h3,h4{font-family:var(--hand);font-weight:700;line-height:1.38;overflow-wrap:anywhere}h1{font-size:36px;margin:0 0 8px}h2{font-size:27px;margin:0 0 12px}h3{font-size:22px;margin:12px 0 8px}h4{font-size:19px;margin:8px 0}p{margin:8px 0 16px;overflow-wrap:anywhere}small,.meta{display:block;font-size:12px;color:var(--muted);line-height:1.6}strong{font-weight:650}hr{height:1px;border:0;background:var(--line);margin:22px 0}pre,code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;background:var(--input);padding:18px;border:1px solid var(--line);border-radius:14px}code{font-size:.93em}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}button:disabled{cursor:wait;opacity:.55}button[aria-busy=true]{opacity:.65}button[aria-busy=true]::after{content:' …'}[hidden]{display:none!important}.skip{position:fixed;top:-100px;left:20px;background:var(--ink);color:var(--paper);padding:10px;z-index:40}.skip:focus{top:10px}.muted{color:var(--muted)}.grow{flex:1;min-width:0}.row{display:flex;align-items:center;gap:12px;min-width:0}.spread{justify-content:space-between}.center{justify-content:center}.center-text{text-align:center}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.paper{--surface-color:var(--paper);--surface-edge:var(--edge);padding:26px;min-width:0}.paper.sage,.sage{--surface-color:var(--sage)}.paper.butter,.butter{--surface-color:var(--butter)}.paper.blush,.blush{--surface-color:var(--blush)}.paper.blue,.blue{--surface-color:var(--blue)}
.button{border:1px solid var(--line);background:var(--paper);border-radius:15px 18px 16px 14px;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 19px;font-weight:650;line-height:1.5;white-space:nowrap;gap:7px;color:var(--ink);transition:transform .15s,background .15s}.button:hover{background:var(--green-soft);color:var(--ink)}.button:active{transform:translateY(1px)}.button.primary{background:var(--ink);border-color:var(--ink);color:var(--paper);font-family:var(--hand);font-size:19px;padding:10px 23px}.button.primary:hover{background:var(--green);border-color:var(--green);color:var(--paper)}.button.secondary{background:var(--paper)}.button.text,.text-button{border:0;background:transparent;color:var(--green);padding:7px 4px;font-size:13px;min-height:36px}.text-button{display:inline;cursor:pointer;font-weight:650}.button.danger{color:var(--danger);border-color:var(--line)}.button.danger.text{border:0}.button.small{font-size:13px;padding:8px 13px;min-height:40px}.button.icon-button{border:0;background:transparent;width:44px;height:44px;padding:0;flex:none;font-size:26px;color:var(--muted)}.button.selected{background:var(--green-soft);border-color:transparent;color:var(--green)}
.shell{max-width:1760px;margin:0 auto;display:grid;grid-template-columns:228px minmax(0,1fr);gap:28px;padding:16px 27px 26px 17px;position:relative}.sidebar{position:sticky;top:16px;height:calc(100dvh - 32px);min-height:700px;display:flex;flex-direction:column;padding:26px 18px 19px;z-index:10}.brand{display:flex;align-items:center;gap:10px;font-family:var(--hand);font-size:28px;font-weight:700;white-space:nowrap}.brand-mark{width:42px;height:42px;display:grid;place-items:center;background:var(--ink);color:var(--paper);font:700 30px/1 var(--hand);border-radius:47% 52% 48% 44%;transform:rotate(-6deg)}.sidebar .brand{margin:0 9px 27px}.navigation{display:flex;flex-direction:column;gap:5px}.navigation a{min-height:47px;display:flex;align-items:center;gap:13px;padding:9px 14px;font-family:var(--hand);font-size:18px;font-weight:700;border-radius:16px 14px 19px 13px}.navigation a:hover{background:var(--green-soft)}.navigation a.active{background:var(--green-soft);color:var(--green)}.sidebar-bottom{margin-top:auto;padding-top:22px}.sidebar-note{padding:19px 20px;margin-bottom:20px}.sidebar-note>span{font-size:22px;color:#a76c2a}.sidebar-note p{font-family:var(--hand);font-size:21px;line-height:1.6;font-weight:700;margin:3px 0 0}.sidebar-profile{display:flex;align-items:center;gap:9px;padding:4px 8px}.sidebar-profile>span:last-child{margin-left:auto;font-size:22px}.sidebar-profile strong{font-size:13px}.sidebar-profile small{font-size:11px}.main{min-width:0;padding:17px 0 0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:69px;margin-bottom:18px}.topbar-heading small{font-size:12px;letter-spacing:.08em;font-weight:650}.topbar h1{font-size:33px;margin:2px 0 0}.topbar h1.compact{font-size:24px}.topbar-actions{display:flex;gap:12px;align-items:center}.top-search{display:flex;align-items:center;gap:9px;padding:9px 13px;border:1px solid var(--line);border-radius:16px;background:var(--paper);width:265px;height:43px}.top-search input{width:100%;min-width:0;border:0;background:transparent;padding:0;font-size:12px;outline-offset:5px}.notification-button{width:44px;height:44px;position:relative;border:1px solid var(--line);border-radius:50%;background:var(--paper);display:grid;place-items:center}.notification-button>span{position:absolute;right:6px;top:7px;width:7px;height:7px;border-radius:50%;background:#c35442;border:1px solid var(--paper)}.mobile-nav{display:none}.app-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:11px;color:var(--muted);padding:34px 9px 7px}.app-footer .button{font-size:11px}#page-error,.form-error,.action-error{background:var(--danger-bg);color:var(--danger);border:1px solid currentColor;border-radius:12px;padding:12px 15px;margin:12px 0;font-size:14px;line-height:1.65}#network{position:fixed;top:0;left:0;right:0;background:var(--danger-bg);color:var(--danger);padding:9px 20px;text-align:center;z-index:30;font-size:13px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--paper);padding:13px 22px;max-width:min(580px,90vw);border-radius:17px;box-shadow:var(--shadow);z-index:30;font-size:14px;line-height:1.6}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin:15px 2px 27px}.page-heading p{margin:3px 0 0;color:var(--muted);font-size:14px}.page-heading .actions{justify-content:flex-end}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:27px 3px 14px}.section-heading h2{font-size:24px;margin:0}.two-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.three-grid,.post-grid,.note-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.detail-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:24px;align-items:start}.detail-grid>aside{display:grid;gap:20px;min-width:0}.detail-grid>div{min-width:0}.detail-grid .two-grid{grid-template-columns:1fr}.empty{padding:44px 25px;text-align:center;grid-column:1/-1}.empty h2{font-size:25px}.empty p{max-width:44ch;margin:8px auto 22px;color:var(--muted)}.empty-mark{width:68px;height:68px;display:grid;place-items:center;background:var(--green-soft);color:var(--green);border-radius:24px 26px 20px 30px;margin:0 auto 18px}.badge{display:inline-flex;align-items:center;justify-content:center;font-size:11px;line-height:1.6;white-space:nowrap;background:var(--page);color:var(--muted);border-radius:8px 10px 7px 12px;padding:4px 9px}.badge.green{background:var(--green-soft);color:var(--green)}.tags{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.tile-icon{display:inline-grid;place-items:center;background:var(--surface-color,var(--green-soft));color:var(--green);width:46px;height:46px;border-radius:45% 49% 43% 52%;flex:none}.avatar{width:40px;height:40px;border-radius:50% 45% 51% 47%;background:var(--green-soft);overflow:hidden;flex:none;display:inline-block}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.small{width:30px;height:30px}.avatar.large{width:90px;height:90px}.person{display:flex;align-items:center;gap:10px;min-width:0}.person>div{min-width:0}.person a:not(.avatar){font-size:13px;font-weight:650}.person small{font-size:11px;max-width:230px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.avatar-stack{display:flex;align-items:center;padding-left:4px}.avatar-stack>.avatar{margin-left:-4px;border:2px solid var(--paper)}.avatar-stack small{margin-left:8px;font-size:11px}.quiet-note{color:var(--muted);font-size:13px;background:var(--page);border-radius:12px;padding:13px 15px;line-height:1.8}.warning-note{background:var(--butter);padding:15px 18px;border-radius:14px;font-size:14px;line-height:1.8}.form-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:23px}.form-footer small{max-width:60%;font-size:12px}.field{display:flex;flex-direction:column;gap:7px;margin:0 0 17px;min-width:0}.field>span,.field>legend{font-weight:650;font-size:14px}.field input,.field textarea,.field select,textarea#codes-output{border:1px solid var(--line);border-radius:13px 15px 11px 14px;background:var(--input);color:var(--ink);padding:10px 13px;width:100%;min-height:44px;font-size:15px;line-height:1.6;transition:border-color .15s}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--green)}.field textarea{resize:vertical;min-height:100px}.field small{font-size:12px}.field input::placeholder,.field textarea::placeholder,input::placeholder,textarea::placeholder{color:var(--muted);opacity:.9}.required{color:var(--danger)}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.filterbar{display:flex;align-items:flex-end;gap:13px;margin:0 0 25px;flex-wrap:wrap}.filterbar .field{margin:0;min-width:130px}.filterbar .field>span{font-size:11px;color:var(--muted)}.filterbar .field select{font-size:13px;padding:10px 12px;min-height:45px}.search-field{display:flex;align-items:center;gap:10px;background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:11px 13px;min-height:45px;flex:1;min-width:180px}.search-field input{border:0;background:transparent;width:100%;min-width:0;outline-offset:7px;font-size:13px}.tabs{display:flex;gap:14px;align-items:center;margin:0 0 23px;flex-wrap:wrap}.page-end{text-align:center;color:var(--muted);font-size:13px;margin:27px 0}.loading-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.skeleton{padding:15px}.skeleton>div{height:220px;background:var(--green-soft);border-radius:18px;margin-bottom:20px}.skeleton>span{display:block;height:14px;background:var(--edge);border-radius:5px;width:85%;margin:10px 0}.skeleton>span:last-child{width:50%}
/* Dashboard compositions retain the supplied visual anchor. */
.dashboard{display:grid;grid-template-columns:minmax(0,1fr) 276px;gap:23px}.dashboard-main{min-width:0}.dashboard-aside{display:grid;gap:20px;align-content:start;min-width:0}.hero{min-height:322px;position:relative;padding:30px 30px;overflow:hidden}.hero-copy{position:relative;z-index:1;width:61%;max-width:510px}.hero-kicker{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:var(--ink)}.live-dot{width:7px;height:7px;background:var(--green);border-radius:50%}.hero h2{font-size:39px;margin:15px 0 12px;line-height:1.35}.hero-copy>p{font-size:13px;color:var(--muted);max-width:330px;margin-bottom:21px}.hero-details{display:flex;gap:18px;margin:17px 0 22px;font-size:12px;font-weight:650;flex-wrap:wrap}.hero-details>span{display:flex;align-items:center;gap:7px}.hero .button{position:relative;z-index:2}.hero-art{position:absolute;right:6px;bottom:22px;width:48%;height:auto;max-height:230px;object-fit:contain;object-position:right bottom;z-index:0}.hero-sticker{position:absolute;right:29px;top:36px;background:var(--paper);color:var(--ink);border:2px solid var(--ink);padding:7px 12px;border-radius:53% 44% 49% 35%;font-family:var(--hand);font-size:14px;transform:rotate(5deg)}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:17px}.stat{display:flex;align-items:center;gap:12px;padding:18px 16px}.stat strong{font-family:var(--hand);font-size:27px;line-height:1.2;display:block}.stat small{font-size:10px;margin-top:3px}.stat .tile-icon{width:39px;height:39px}.today-goal{min-height:234px;position:relative;padding:25px 24px;overflow:hidden}.today-goal h3{font-size:25px;max-width:195px;margin-top:18px;position:relative;z-index:1}.today-goal p{font-size:12px;color:var(--muted);max-width:185px;position:relative;z-index:1}.objects{position:absolute;right:3px;bottom:14px;width:120px;height:86px;object-fit:contain}.today-goal .button{position:relative;z-index:1}.people-aside h3,.passport-aside h3{font-size:25px}.people-aside p,.passport-aside p{color:var(--muted);font-size:12px}.mini-circle{display:block;border-bottom:1px dashed var(--line);padding:10px 0;margin-bottom:12px}.mini-circle strong{font-size:14px;display:block}.mini-circle small{font-size:11px}.passport-aside{padding:24px}.plan-card{padding:20px}.plan-card h3{font-size:21px;margin:1px 0}.plan-card small{font-size:11px}.check{width:34px;height:34px;border:1.5px solid var(--green);border-radius:46% 53% 43% 49%;display:grid;place-items:center;background:var(--paper);color:var(--green);flex:none;font-size:22px}.check.checked{background:var(--green);color:var(--paper)}.crossed{text-decoration:line-through;color:var(--muted)}
/* Cards preserve cover / title / description hierarchy rather than a chat feed. */
.post-card{padding:9px 9px 12px}.cover-link{display:block}.cover{height:215px;position:relative;padding:24px;border-radius:19px 21px 16px 19px;background:var(--surface-color);overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}.cover strong{font-family:var(--hand);font-size:28px;line-height:1.4;font-weight:700;max-width:96%;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.cover-caption{font-size:11px;letter-spacing:.08em;color:var(--muted)}.cover-sign{display:flex;align-items:center;justify-content:space-between;font-family:var(--hand);font-size:13px}.cover.photo{padding:0;background:var(--page)}.cover.photo>img{width:100%;height:100%;object-fit:cover}.card-copy{padding:14px 13px 5px}.card-copy h3{font-size:22px;line-height:1.45;margin:5px 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-copy .meta{font-size:10px}.excerpt{color:var(--muted);font-size:13px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:8px 0 16px;min-height:45px}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.post-card .person>.avatar{width:29px;height:29px}.post-card .person small{display:none}.post-card .person a:not(.avatar){font-size:11px}.save{min-height:38px;border:0;background:transparent;color:var(--muted);padding:7px 3px;font-size:11px;white-space:nowrap}.save.selected{color:var(--green);font-weight:700}.post-detail{padding:12px}.post-detail .cover{height:325px}.post-detail .cover strong{font-size:39px}.post-body{padding:24px}.prose{line-height:1.95;font-size:15px;overflow-wrap:anywhere;word-break:normal}.prose h2{font-size:26px;margin:25px 0 13px}.prose h3{font-size:23px;margin:23px 0 10px}.prose h4{font-size:20px}.prose p{margin:12px 0}.prose blockquote,blockquote{border-left:3px solid var(--green);margin:15px 0;padding:5px 15px;color:var(--muted)}.prose code{background:var(--green-soft);padding:2px 4px;border-radius:4px}.prose pre code{background:transparent;padding:0}.prose .md-bullet,.prose .md-task{margin:4px 0}.comments-panel{padding:25px}.comment{padding:17px 0;border-bottom:1px dashed var(--line)}.comment p{font-size:14px;margin:12px 0}.comment small{font-size:11px}.comments-panel form{margin-top:20px}.upload-row{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.upload-row .field{flex:1}.upload-row img{border-radius:12px;object-fit:cover;max-height:100px;width:140px}.upload-row input[type=file]{font-size:12px;padding:10px}.upload-row input::file-selector-button{background:var(--green-soft);color:var(--ink);border:0;border-radius:6px;padding:7px;margin-right:10px}#upload-state{font-size:12px;color:var(--muted)}
.pact-card h3,.circle-card h3{font-size:27px;margin:18px 0 7px}.pact-time{display:flex;align-items:center;gap:10px;font-size:12px;border-top:1px dashed var(--line);padding-top:17px;margin-top:20px;color:var(--muted);flex-wrap:wrap}.goal-strip{margin:16px 0 20px;padding:15px;background:var(--page);border-radius:14px 16px 13px 17px}.goal-strip small{font-size:11px;margin-bottom:4px}.goal-strip strong{font-family:var(--hand);font-size:20px;line-height:1.6;display:block}.circle-card{padding:27px}.circle-banner{min-height:256px;display:flex;justify-content:space-between;align-items:center;padding:28px 33px;position:relative;margin-bottom:24px}.circle-banner-copy{max-width:65%;position:relative;z-index:1}.circle-banner h2{font-size:30px;margin:14px 0 7px}.circle-banner p{font-family:var(--hand);font-size:22px;margin-bottom:23px}.circle-art{width:33%;max-height:195px;object-fit:contain;align-self:flex-end}.member-row{padding:15px 0;border-bottom:1px dashed var(--line)}.member-row:last-child{border:0}.member-row .actions{margin-top:8px;justify-content:flex-end}.application{padding:18px 0;border-top:1px dashed var(--line)}.application>a{font-weight:650}.application p{font-size:13px;color:var(--muted)}.application .actions{margin-top:12px}.aside-note p{color:var(--muted);font-size:13px}.study-room{padding:25px 30px 29px;text-align:center}.room-art{height:180px;width:330px;max-width:100%;margin:0 auto 15px}.room-art img{width:100%;height:100%;object-fit:contain}.study-room>.row{margin:12px 0}.timer-ring{width:250px;height:250px;margin:22px auto;background:var(--page);border:9px solid var(--green-soft);outline:1px solid var(--line);border-radius:50% 49% 48% 50%;display:flex;align-items:center;justify-content:center;flex-direction:column}.timer-ring strong{font-family:var(--hand);font-size:59px;font-variant-numeric:tabular-nums;line-height:1.3}.timer-ring span{font-family:var(--hand);font-size:17px}.study-room>.actions{margin-top:22px}.study-room .center-text.muted{font-size:12px}.room-chat-callout{margin-top:19px}.room-chat-callout h2{font-size:23px}.room-chat-callout p{font-size:13px;color:var(--muted);margin-bottom:0}.goal-panel .facts{display:grid;grid-template-columns:95px 1fr;gap:12px;font-size:13px}.goal-panel .facts span{color:var(--muted)}.goal-panel .prose{white-space:pre-wrap;font-size:14px}.person-card{padding:28px}.person-card .person a{font-size:22px;font-family:var(--hand)}.person-card .person small{margin-top:5px;font-size:12px}.profile-panel{padding:33px;margin-bottom:30px}.profile-top{display:flex;align-items:center;gap:24px}.profile-top h2{font-size:36px;margin:0}.profile-top p{color:var(--muted);margin:5px 0}.profile-bio{font-family:var(--hand);font-size:25px;line-height:1.8;margin:25px 0}.profile-boundary{border-top:1px dashed var(--line);padding-top:20px}.profile-boundary strong{font-family:var(--hand);font-size:21px;display:block;margin-top:7px}
/* Conversation windows preserve textarea and scroll state during SSE updates. */
.messenger{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;min-height:640px;height:calc(100dvh - 230px);max-height:880px}.room-list{padding:20px 13px;overflow:auto}.room-list h2{font-size:22px;margin:5px 12px 15px}.room-item{display:flex;align-items:center;gap:10px;padding:14px 12px;border-radius:15px;margin-bottom:5px;min-height:78px}.room-item.selected{background:var(--green-soft)}.room-item:hover{background:var(--green-soft)}.room-item .tile-icon{width:36px;height:36px}.room-item strong{font-size:14px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-item small{font-size:11px;max-width:165px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.unread{display:inline-grid;place-items:center;min-width:19px;height:19px;border-radius:50%;background:var(--green);color:var(--paper);font-size:10px;padding:0 4px}.conversation{display:flex;flex-direction:column;padding:24px 26px;min-height:0}.conversation>.empty{margin:auto 0}.conversation-header{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--line);padding-bottom:16px}.conversation-header h2{font-size:25px;margin:0 0 4px}.conversation-header .actions{justify-content:flex-end}.conversation-header small{font-size:11px}.conversation-context{margin:17px 0 6px;padding:15px 18px;background:var(--butter);border-radius:17px 14px 19px 15px}.conversation-context strong{font-family:var(--hand);font-size:19px;display:block;margin-top:3px}.conversation-context p{font-size:11px;color:var(--muted);margin:4px 0 0}.invitation-panel{padding:19px 0}.invitation-panel h3{font-size:23px;margin:0}.invitation-panel p{font-size:13px;color:var(--muted)}.message-scroll{flex:1;overflow:auto;min-height:130px;padding:18px 4px 14px;overscroll-behavior:contain;scrollbar-width:thin}.message-row{display:flex;align-items:flex-start;gap:9px;margin:14px 0;max-width:90%}.message-row>div{min-width:0;max-width:100%}.message-row.mine{margin-left:auto;justify-content:flex-end;text-align:right}.message-row small{font-size:10px;margin-bottom:5px}.message-row time{margin-left:6px}.bubble{--surface-color:var(--page);--surface-edge:var(--line);padding:11px 17px;text-align:left;display:inline-block;min-width:45px;max-width:100%;font-size:14px}.bubble.sage{--surface-color:var(--green-soft)}.bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.message-actions{display:flex;gap:8px}.mine .message-actions{justify-content:flex-end}.message-actions .button{font-size:10px;min-height:26px;padding:3px 2px}.delivery-error{font-size:11px;color:var(--danger);margin:4px 0}.message-form{border-top:1px solid var(--line);padding-top:13px}.message-form>label{font-size:11px;color:var(--muted);display:block;margin-bottom:5px}.message-form>textarea{width:100%;resize:vertical;min-height:90px;max-height:180px;background:var(--input);border:1px solid var(--line);border-radius:13px;padding:10px 13px;font-size:14px;line-height:1.7}.message-form small{font-size:10px}.message-form .row{margin-top:7px}.mobile-back{display:none!important}.load-older{display:block;margin:0 auto}
/* Knowledge base, versioned editor and private learning passport. */
.note-card{padding:24px}.note-card h3{font-size:25px}.note-card small{font-size:11px}.editor-status{font-size:12px;color:var(--muted);margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}.editor-status #remote-note{background:var(--butter);padding:8px 12px;border-radius:10px}.note-toolbar{display:flex;align-items:end;gap:20px}.note-toolbar>.field{width:32%}.note-toolbar .grow .field{margin-bottom:17px}.note-toolbar input[name=title]{font-family:var(--hand);font-size:24px}.note-permissions{margin-bottom:2px;gap:20px}.note-permissions>.field{min-width:180px}.note-permissions select{font-size:13px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.editor-pane>span{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:8px}.editor-pane>span small{font-size:10px}.editor-pane>textarea{font-family:var(--body);font-size:15px;line-height:1.9;min-height:500px;padding:20px;tab-size:2}.preview-pane{min-width:0;border:1px solid var(--line);border-radius:17px;background:var(--paper);padding:21px;max-height:720px;overflow:auto}.preview-label{font-size:11px;color:var(--muted);display:block;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:15px}.preview-pane .prose{font-size:14px}.reading-note{padding:35px;max-width:860px}.reading-note .prose{margin-top:25px}.history-entry{border-bottom:1px solid var(--line);padding:14px 0}.history-entry summary{cursor:pointer;font-weight:650}.history-entry pre{font-size:13px;max-height:350px;overflow:auto}.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.compare-grid h3{font-size:21px}.compare-grid pre{font-size:12px;max-height:340px;overflow:auto}.passport-cover{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:37px 39px;min-height:300px}.passport-label{font-size:10px;letter-spacing:.16em;font-weight:650;color:var(--muted)}.passport-cover h2{font-size:39px;line-height:1.5;margin:14px 0 9px}.passport-cover p{font-family:var(--hand);font-size:20px;margin:8px 0 17px}.stamp-group{display:flex;align-items:center;gap:16px}.stamp{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;text-align:center;width:122px;height:137px;border:2px dashed var(--muted);border-radius:24% 16% 27% 21%;transform:rotate(-5deg);color:var(--muted)}.stamp:nth-child(2){transform:rotate(4deg);margin-top:32px}.stamp.green{color:var(--green);border-color:var(--green)}.stamp strong{font-family:var(--hand);font-size:26px;line-height:1.3}.stamp span{font-size:10px}.timeline{display:grid;gap:20px}.timeline-row{display:grid;grid-template-columns:110px 1fr;gap:21px;align-items:start}.timeline-date{padding:23px 0 0 12px}.timeline-date strong{font-family:var(--hand);font-size:21px;display:block}.timeline-date small{font-size:11px}.record-card{padding:25px 29px}.record-card h3{font-size:25px;margin:0}.record-card>.prose{white-space:pre-wrap;font-size:14px}.next-step{background:var(--green-soft);padding:13px 17px;border-radius:12px;margin:17px 0}.next-step small{font-size:10px;margin-bottom:5px}.next-step strong{font-family:var(--hand);font-size:21px}.record-card>.row>small{font-size:11px}.record-card .actions{gap:13px}.record-card .actions .button{font-size:11px}.settings-card{padding:28px}.settings-card h2{font-size:26px}.settings-card p{font-size:13px;color:var(--muted)}.report-result{margin:16px 0;border-bottom:1px dashed var(--line);padding:12px 0}.report-result blockquote{font-size:13px}.avatar-options{display:flex;gap:17px;padding:10px 0;border:0;margin:13px 0 18px}.avatar-options legend{font-size:14px;font-weight:650;margin-bottom:8px}.avatar-options label{display:flex;gap:8px;align-items:center;cursor:pointer}.avatar-options img{border-radius:50%}
/* Administration has the same surface language, not a separate design system. */
.admin-panel{padding:30px}.admin-panel p{color:var(--muted);font-size:13px}.admin-table{margin-top:20px}.admin-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(140px,.9fr) 85px minmax(80px,auto);align-items:center;gap:15px;padding:18px 4px;border-bottom:1px solid var(--line);font-size:12px}.admin-row:last-child{border:0}.admin-row strong{font-size:14px}.admin-row small{font-size:11px;margin-top:4px}.admin-row .button{font-size:12px}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.report-card{padding:27px}.report-card h3{font-size:24px}.report-card p{font-size:13px;color:var(--muted)}.report-card details{margin:14px 0 21px}.report-card summary{font-size:13px;cursor:pointer}.report-snapshot{font-size:13px;max-height:280px;overflow:auto}.audit-row{display:grid;grid-template-columns:140px 1fr;gap:4px 20px;padding:18px 0;border-bottom:1px dashed var(--line)}.audit-row small{font-size:11px}.audit-row strong{font-size:13px}.audit-row p{grid-column:2;font-size:11px;margin:0}.notifications a{display:block;border-bottom:1px dashed var(--line);padding:18px 5px}.notifications a.seen{color:var(--muted)}.notifications strong{font-size:14px}.notifications small{margin-top:7px;font-size:11px}
/* Native top-layer dialogs provide focus trapping, Escape and keyboard access. */
dialog{margin:auto;width:min(660px,calc(100vw - 32px));max-height:calc(100dvh - 52px);padding:0;background:var(--paper);color:var(--ink);border:1px solid var(--edge);border-radius:25px 28px 23px 27px;box-shadow:var(--shadow);overflow:auto}dialog::backdrop{background:rgba(26,35,32,.35);backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:25px 29px 14px;position:sticky;top:0;background:var(--paper);z-index:1}.dialog-heading h2{font-size:29px;margin:4px 0 0}.dialog-body{padding:2px 29px 29px}.dialog-body>.prose{font-size:14px}.dialog-body>.prose h3{margin-top:20px}.dialog-body>form>.muted{font-size:13px;margin:3px 0 23px}.more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.more-grid a{display:flex;flex-direction:column;align-items:center;gap:10px;background:var(--green-soft);padding:18px 8px;border-radius:15px;font-size:14px}.checkbox-label{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.8;flex-wrap:wrap;margin:17px 0}.checkbox-label input{accent-color:var(--green);width:17px;height:17px;flex:none;margin-top:3px}.checkbox-label .text-button{padding:0;font-size:12px;min-height:0;line-height:1.8}.checkbox-label{display:block}.checkbox-label input{vertical-align:text-bottom;margin-right:7px}
/* Authentication is part of the product, not a generic admin login. */
.auth-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(390px,1fr);max-width:1260px;min-height:100dvh;margin:0 auto;padding:48px 45px;gap:65px;align-items:center;position:relative}.auth-welcome{align-self:stretch;display:flex;flex-direction:column;padding:10px 0 0}.auth-welcome .brand{font-size:35px}.auth-welcome .brand-mark{width:46px;height:46px;font-size:33px}.auth-intro{margin:auto 0;position:relative;padding-top:70px}.handnote{font-family:var(--hand);font-size:22px;color:var(--green)}.auth-intro h1{font-size:64px;line-height:1.32;letter-spacing:.01em;margin:19px 0}.auth-intro p{color:var(--muted);font-size:17px;line-height:1.95}.auth-intro img{width:100%;max-width:530px;height:auto;margin-top:5px;position:relative}.auth-values{font-size:12px;color:var(--muted);padding-top:29px;margin:0}.auth-card{padding:38px 36px}.auth-card>small{font-size:12px;color:var(--green);margin-bottom:13px}.auth-card h2{font-size:32px;line-height:1.4}.auth-card>p{font-size:13px;color:var(--muted);margin:10px 0 23px}.auth-card .field{margin-bottom:16px}.auth-submit{width:100%;margin-top:13px}.auth-links{display:flex;justify-content:space-between;gap:15px;margin-top:19px;flex-wrap:wrap}.font-warning{padding:12px;background:var(--butter);border-radius:12px;font-size:11px!important}.boot{display:grid;place-items:center;min-height:100dvh;font-family:var(--hand);font-size:24px}
@media(min-width:1600px){.hero{min-height:355px}.hero h2{font-size:45px}.hero-art{max-height:260px}.home-posts .cover{height:222px}.dashboard{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:1390px){.shell{grid-template-columns:206px minmax(0,1fr);gap:23px;padding-right:20px}.sidebar{padding-left:14px;padding-right:14px}.navigation a{font-size:17px;padding-left:12px}.dashboard{grid-template-columns:minmax(0,1fr) 245px;gap:18px}.hero{padding:28px 27px;min-height:310px}.hero h2{font-size:35px}.hero-art{width:47%;bottom:24px}.hero-copy{width:63%}.hero-copy>p{font-size:12px;max-width:265px}.hero-sticker{right:21px;top:29px;font-size:12px}.stat{padding:16px 13px;gap:10px}.stat strong{font-size:24px}.stat .tile-icon{width:35px;height:35px}.home-posts .cover{height:175px;padding:17px}.home-posts .cover strong{font-size:23px}.home-posts .card-copy{padding:11px 8px 4px}.home-posts .card-copy h3{font-size:19px}.home-posts .excerpt{font-size:11px;min-height:38px}.home-posts .person a:not(.avatar){font-size:10px}.stamp{width:110px;height:125px}.stamp-group{gap:13px}.passport-cover h2{font-size:34px}.passport-cover{padding:33px}.messenger{grid-template-columns:250px minmax(0,1fr)}.top-search{width:220px}}
@media(max-width:1180px){.dashboard{grid-template-columns:1fr}.dashboard-aside{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-aside .paper{padding:23px}.dashboard-aside h3{font-size:22px}.dashboard-aside .today-goal{min-height:235px}.dashboard-aside .objects{width:98px}.hero{min-height:300px;padding:29px 32px}.hero h2{font-size:40px}.hero-copy{width:60%}.hero-copy>p{font-size:13px;max-width:320px}.hero-art{width:44%;max-height:230px;bottom:17px;right:12px}.hero-sticker{right:43px}.stat{padding:20px;gap:14px}.stat strong{font-size:29px}.stat small{font-size:11px}.home-posts .cover{height:190px}.post-grid,.note-grid{gap:15px}.cover{height:186px;padding:20px}.cover strong{font-size:25px}.card-copy h3{font-size:20px}.card-copy{padding:12px 9px}.detail-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:18px}.passport-cover{flex-wrap:wrap}.stamp-group{width:100%;justify-content:space-around;padding-bottom:5px}.passport-cover h2 br{display:none}.stamp:nth-child(2){margin-top:5px}.circle-banner-copy{max-width:72%}.circle-art{width:29%}.profile-top{flex-wrap:wrap}.profile-top>.actions{width:100%}.editor-grid{gap:14px}.editor-pane>span small{display:none}.messenger{grid-template-columns:225px minmax(0,1fr);gap:14px}.conversation{padding:21px}.conversation-header>.actions .button{font-size:11px}.admin-row{grid-template-columns:minmax(135px,1fr) 135px 80px;gap:12px}.admin-row>.actions,.admin-row>.button{grid-column:3}.admin-panel{padding:26px}.topbar h1{font-size:31px}}
@media(max-width:980px){.shell{grid-template-columns:177px minmax(0,1fr);gap:18px;padding:12px 16px 23px 12px}.sidebar{top:12px;height:calc(100dvh - 24px);padding:23px 12px;min-height:680px}.sidebar .brand{font-size:25px;margin-left:6px;margin-right:0;gap:8px}.sidebar .brand-mark{width:35px;height:35px;font-size:27px}.navigation a{font-size:16px;padding:9px 10px;gap:10px;min-height:45px}.navigation svg{width:19px;height:19px}.sidebar-note{padding:16px}.sidebar-note p{font-size:18px}.sidebar-profile{gap:7px;padding:2px 4px}.sidebar-profile .avatar{width:31px;height:31px}.sidebar-profile strong{font-size:12px}.sidebar-profile small{font-size:10px}.main{padding-top:13px}.topbar{gap:15px}.topbar-actions{gap:8px}.top-search{width:184px}.topbar h1{font-size:28px}.topbar h1.compact{font-size:23px}.page-heading{align-items:flex-start;gap:15px;flex-wrap:wrap}.page-heading h1{font-size:32px}.page-heading p{font-size:13px}.page-heading .actions{justify-content:flex-start}.hero h2{font-size:34px}.hero{padding:28px;min-height:300px}.hero-copy>p{max-width:260px;font-size:12px}.hero-details{gap:9px;font-size:11px}.hero-sticker{font-size:11px;right:24px}.hero-art{width:46%}.post-grid,.note-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.home-posts .post-card:nth-child(3){display:none}.home-posts .cover{height:190px}.dashboard-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-aside>.paper:last-child{grid-column:1/-1;min-height:0}.dashboard-aside .passport-aside{display:none}.stat{padding:18px 12px;gap:8px}.stat strong{font-size:25px}.stat .tile-icon{width:32px;height:32px}.stat small{font-size:10px}.two-grid{gap:16px}.pact-card,.circle-card{padding:23px}.pact-card h3,.circle-card h3{font-size:24px}.pact-card .card-bottom{align-items:flex-start;flex-direction:column}.circle-card .card-bottom{flex-wrap:wrap}.detail-grid{grid-template-columns:1fr}.detail-grid>aside{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid>aside>.comments-panel{grid-column:1/-1}.study-room .room-art{height:190px}.post-detail .cover{height:310px}.messenger{grid-template-columns:200px minmax(0,1fr);gap:10px}.room-list{padding:18px 8px}.room-item{padding:12px 8px;gap:7px}.room-item .tile-icon{width:29px;height:29px}.room-item .tile-icon svg{width:18px;height:18px}.room-item strong{font-size:13px}.room-item small{font-size:10px;max-width:120px}.conversation{padding:19px 17px}.conversation-header{flex-wrap:wrap;gap:6px}.conversation-header h2{font-size:23px}.message-form>textarea{font-size:14px}.editor-grid{grid-template-columns:1fr}.preview-pane{max-height:420px}.note-toolbar{flex-wrap:wrap;gap:0}.note-toolbar>.field{width:100%}.note-permissions{flex-wrap:wrap;gap:10px}.note-permissions>.field{flex:1}.timeline-row{grid-template-columns:86px 1fr;gap:12px}.timeline-date{padding-left:4px}.timeline-date strong{font-size:18px}.record-card{padding:24px}.record-card>.row{flex-wrap:wrap}.record-card>.row>small{width:100%}.record-card h3{font-size:23px}.auth-layout{gap:35px;padding:35px 30px;grid-template-columns:minmax(0,1fr) 370px}.auth-card{padding:30px 28px}.auth-intro h1{font-size:53px}.auth-intro{padding-top:40px}.auth-intro>p{font-size:15px}.auth-card h2{font-size:28px}}
@media(max-width:760px){.shell{display:block;padding:0 17px 100px}.sidebar{display:none}.main{padding:0;min-height:85dvh}.topbar{min-height:82px;margin-bottom:7px;padding-top:11px}.topbar h1{font-size:29px}.topbar h1.compact{font-size:22px}.topbar-heading small{font-size:10px}.top-search{display:none}.notification-button{width:42px;height:42px}.mobile-nav{position:fixed;bottom:9px;left:10px;right:10px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));z-index:20;background:var(--paper);border:1px solid var(--edge);border-radius:23px 25px 19px 24px;padding:5px 4px calc(4px + env(safe-area-inset-bottom));box-shadow:0 5px 23px rgba(28,44,30,.08);height:76px}.mobile-nav>a,.mobile-nav>button{border:0;background:transparent;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:6px 2px;font-size:11px;line-height:1.3;border-radius:18px}.mobile-nav>a.active{color:var(--green);background:var(--green-soft)}.mobile-nav svg{width:21px;height:21px}.mobile-nav .avatar{width:24px;height:24px}.mobile-nav>button .avatar{display:block}.app-footer{padding:28px 1px 6px;flex-wrap:wrap;justify-content:center;gap:6px 20px;font-size:10px}.app-footer>.button{font-size:10px}.page-heading{margin:10px 1px 21px;gap:13px}.page-heading h1{font-size:30px}.page-heading p{font-size:12px}.page-heading .actions{gap:9px}.page-heading .button{font-size:13px;min-height:40px;padding:8px 12px}.page-heading .button.primary{font-family:var(--hand);font-size:17px}.dashboard{gap:22px}.hero{min-height:290px;padding:27px 26px}.hero h2{font-size:37px;line-height:1.4;margin:15px 0 12px}.hero-copy{width:64%}.hero-copy>p{font-size:12px;max-width:270px}.hero-art{width:47%;right:3px;bottom:27px;max-height:200px}.hero .button.primary{font-size:17px;min-height:44px;padding:9px 17px}.hero-sticker{font-size:11px;right:25px;top:39px}.hero-details{max-width:260px}.hero-kicker{font-size:11px}.stats{gap:9px;margin-top:12px}.stat{padding:16px 13px;gap:10px}.stat strong{font-size:25px}.stat small{font-size:10px}.section-heading{margin:24px 2px 12px}.section-heading h2{font-size:23px}.section-heading .button{font-size:11px}.two-grid{gap:15px}.post-grid,.note-grid{gap:15px}.post-card{padding:7px 7px 9px}.cover{height:194px;padding:19px;border-radius:16px 18px 14px 17px}.cover strong{font-size:25px}.cover-caption{font-size:10px}.cover-sign{font-size:12px}.cover-sign svg{width:22px;height:22px}.card-copy{padding:12px 8px 4px}.card-copy h3{font-size:21px}.excerpt{font-size:12px;margin:7px 0 12px;min-height:42px}.card-bottom{gap:7px;margin-top:10px}.post-card .person{gap:6px}.post-card .person>.avatar{width:25px;height:25px}.post-card .person a:not(.avatar){font-size:11px}.save{font-size:11px}.filterbar{gap:11px;margin-bottom:19px}.filterbar>.search-field{flex-basis:100%;width:100%}.filterbar>.field{flex:1;min-width:110px}.filterbar>.button{min-height:44px;padding:8px 14px;font-size:13px}.filterbar>.field select{font-size:12px}.dashboard-aside{gap:14px}.dashboard-aside .paper{padding:23px}.dashboard-aside h3{font-size:24px}.plan-card{padding:18px}.plan-card h3{font-size:21px}.plan-card .button{width:26px;min-width:0;font-size:23px}.plan-card .check{width:30px;height:30px}.plan-card>.row{gap:10px}.plan-card small{font-size:10px}.pact-card,.circle-card{padding:24px}.pact-card h3,.circle-card h3{font-size:25px}.pact-card .pact-time{font-size:11px;gap:8px}.circle-banner{padding:27px;min-height:240px;margin-bottom:20px;overflow:hidden}.circle-banner-copy{max-width:100%}.circle-banner-copy>p{max-width:72%;font-size:21px}.circle-banner h2{font-size:28px;max-width:80%}.circle-banner .actions{max-width:90%;position:relative;z-index:2}.circle-banner .button{font-size:13px}.circle-art{position:absolute;right:5px;top:30px;width:34%;opacity:.85}.members-panel,.applications{padding:24px}.detail-grid{gap:17px}.detail-grid>aside{gap:15px}.study-room{padding:25px}.study-room .timer-ring{width:237px;height:237px}.study-room .room-art{height:170px}.study-room .timer-ring strong{font-size:56px}.room-chat-callout{padding:24px}.room-chat-callout .row{flex-wrap:wrap}.post-detail .cover{height:300px}.post-body{padding:22px 18px}.post-detail .cover strong{font-size:36px}.comments-panel{padding:24px}.prose{font-size:14px}.messenger{display:block;min-height:0;height:auto;max-height:none}.messenger .room-list{min-height:430px;padding:23px 15px}.messenger:not(.has-room)>.conversation{display:none}.messenger.has-room>.room-list{display:none}.messenger.has-room>.conversation{min-height:580px;height:calc(100dvh - 250px);padding:22px 19px}.room-item .tile-icon{width:40px;height:40px}.room-item .tile-icon svg{width:22px;height:22px}.room-item strong{font-size:16px}.room-item small{font-size:12px;max-width:100%}.room-item{gap:14px;padding:17px 13px}.conversation-header{flex-wrap:nowrap}.conversation-header h2{font-size:25px}.conversation-header .actions{max-width:120px}.conversation-header small{font-size:10px}.mobile-back{display:inline-flex!important;padding:0!important;font-size:11px!important;min-height:27px!important}.message-scroll{min-height:160px}.message-form>textarea{font-size:16px;max-height:170px;min-height:90px}.message-form .button{font-size:17px}.message-form small{font-size:10px}.bubble{font-size:14px}.message-row{max-width:95%}.message-actions .button{min-height:29px}.message-scroll{padding-top:10px}.note-card{padding:23px}.note-card h3{font-size:25px}.editor-pane>textarea{min-height:430px;font-size:16px;padding:17px}.preview-pane{padding:21px}.note-permissions>.field{min-width:130px}.editor-status{font-size:11px}.note-toolbar input[name=title]{font-size:23px}.passport-cover{padding:30px 29px;gap:20px}.passport-cover h2{font-size:34px}.passport-cover h2 br{display:block}.passport-cover p{font-size:21px}.stamp-group{gap:10px;justify-content:space-between}.stamp{width:110px;height:116px;border-width:1.6px;gap:7px}.stamp strong{font-size:25px}.stamp span{font-size:10px}.stamp svg{width:25px;height:25px}.passport-label{font-size:9px}.timeline-row{grid-template-columns:1fr;gap:6px}.timeline-date{display:flex;align-items:center;gap:13px;padding:4px 8px}.timeline-date strong{font-size:20px}.timeline-date small{font-size:11px}.record-card{padding:25px}.record-card h3{font-size:25px}.record-card>.row{gap:10px}.record-card>.row>small{font-size:10px}.record-card .actions{gap:15px}.record-card .actions .button{font-size:11px}.settings-card{padding:25px}.settings-card h2{font-size:25px}.settings-card .actions{gap:10px}.settings-card .button{font-size:13px}.profile-panel{padding:28px 26px}.profile-top{gap:16px}.profile-top h2{font-size:31px}.profile-top>.avatar{width:76px;height:76px}.profile-top p{font-size:12px}.profile-bio{font-size:24px;margin:22px 0}.profile-boundary strong{font-size:20px}.profile-top .actions{gap:9px}.profile-top .button{font-size:13px}.person-card{padding:25px}.person-card .actions{gap:9px}.person-card .button{font-size:13px}.admin-panel{padding:26px 23px}.admin-row{grid-template-columns:1fr 105px;gap:8px 14px}.admin-row>span:nth-child(2){font-size:11px}.admin-row .badge{justify-self:start}.admin-row>.actions,.admin-row>.button{grid-column:auto;justify-self:end}.admin-row .actions{gap:7px}.admin-row .actions .button{font-size:11px}.report-grid{grid-template-columns:1fr}.audit-row{grid-template-columns:1fr;gap:8px}.audit-row p{grid-column:1}.report-card{padding:26px}.tabs{gap:10px}.tabs .button{font-size:13px;padding:8px 14px}.tabs .button.text{padding:8px 2px}.auth-layout{display:block;max-width:620px;min-height:100dvh;padding:25px 23px 37px}.auth-welcome{padding:0}.auth-welcome .brand{font-size:29px;gap:8px}.auth-welcome .brand-mark{width:36px;height:36px;font-size:26px}.auth-intro{margin:0;padding-top:32px;min-height:216px}.auth-intro h1{font-size:41px;line-height:1.35;margin:10px 0 13px}.auth-intro .handnote{font-size:16px}.auth-intro p{font-size:12px;max-width:230px;line-height:1.8}.auth-intro img{position:absolute;right:0;bottom:5px;width:48%;max-height:160px;object-fit:contain}.auth-values{display:none}.auth-card{padding:29px 25px;margin-top:17px}.auth-card h2{font-size:28px}.auth-card>p{font-size:12px}.auth-card .field>span{font-size:13px}.auth-card .field input,.auth-card .field select{font-size:16px}.auth-card .field small{font-size:11px}.auth-links .button{font-size:12px}.auth-submit{font-size:19px!important}.auth-card>small{font-size:11px}.auth-intro>h1 br{display:block}dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 26px);border-radius:23px}.dialog-heading{padding:21px 22px 13px;gap:12px}.dialog-heading h2{font-size:26px;line-height:1.45}.dialog-heading .button{width:34px;height:36px;min-height:36px}.dialog-body{padding:2px 22px 24px}.dialog-body>.prose{font-size:13px}.dialog-body>.prose h3{font-size:22px}.field input,.field textarea,.field select{font-size:16px}.field>span{font-size:13px}.field small{font-size:11px}.two-fields{gap:12px}.form-footer{gap:12px;align-items:flex-end}.form-footer small{font-size:11px;max-width:55%}.form-footer>.button{font-size:17px;padding:10px 17px}.compare-grid{grid-template-columns:1fr}.compare-grid pre{max-height:230px}.avatar-options{gap:12px}.avatar-options img{width:53px;height:53px}.avatar-options label{gap:6px}.more-grid{gap:10px}.more-grid a{font-size:13px}.upload-row img{width:100px;height:76px}.upload-row .field{flex-basis:100%}#toast{bottom:96px;font-size:13px;width:calc(100vw - 34px);max-width:560px;text-align:center}.loading-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.skeleton:nth-child(3){display:none}.skeleton>div{height:190px}}
@media(max-width:480px){.shell{padding:0 13px 97px}.topbar{padding-top:10px;min-height:78px}.topbar h1{font-size:27px}.hero{min-height:287px;padding:24px 22px}.hero h2{font-size:32px;line-height:1.45;margin-top:15px}.hero-copy{width:70%}.hero-copy>p{font-size:11px;max-width:205px;margin-bottom:17px;line-height:1.85}.hero-details{font-size:10px;gap:6px;max-width:190px;margin:12px 0 17px}.hero-details svg{width:17px;height:17px}.hero-art{width:47%;bottom:36px;right:0;max-height:150px}.hero-sticker{right:18px;top:36px;font-size:10px;padding:5px 8px;transform:rotate(7deg)}.hero-kicker{font-size:10px}.hero .button.primary{font-size:16px;min-height:42px;padding:9px 13px}.stats{gap:7px}.stat{display:block;padding:16px 13px}.stat .tile-icon{width:30px;height:30px;margin-bottom:8px}.stat .tile-icon svg{width:19px;height:19px}.stat strong{font-size:27px}.stat small{font-size:9px;line-height:1.6;margin-top:3px}.section-heading h2{font-size:22px}.section-heading>.button{font-size:10px}.dashboard-main>.two-grid{grid-template-columns:1fr}.plan-card{padding:20px}.plan-card h3{font-size:22px}.plan-card small{font-size:11px}.home-posts .cover,.cover{height:173px;padding:17px 14px}.home-posts .cover strong,.cover strong{font-size:24px}.cover-caption{font-size:9px}.cover-sign{font-size:10px}.cover-sign svg{width:21px;height:21px}.home-posts .card-copy h3,.card-copy h3{font-size:20px}.card-copy,.home-posts .card-copy{padding:10px 7px 3px}.card-copy .meta{font-size:9px}.excerpt,.home-posts .excerpt{font-size:11px;line-height:1.9;min-height:41px;margin:7px 0 10px}.card-bottom{gap:5px}.post-card .person{gap:5px}.post-card .person>.avatar{width:23px;height:23px}.post-card .person a:not(.avatar),.home-posts .person a:not(.avatar){font-size:10px}.post-card .save{font-size:9px}.post-grid,.note-grid{gap:13px 10px}.post-card{padding:6px}.dashboard-aside{gap:12px}.dashboard-aside .paper{padding:22px 19px}.dashboard-aside h3{font-size:23px;line-height:1.5}.dashboard-aside .people-aside{display:none}.dashboard-aside{grid-template-columns:1fr}.dashboard-aside .today-goal{min-height:195px}.dashboard-aside .today-goal h3{max-width:230px}.dashboard-aside .objects{width:120px;height:100px;right:10px}.dashboard-aside .today-goal p{max-width:240px}.two-grid{grid-template-columns:1fr}.page-heading h1{font-size:29px}.page-heading p{font-size:12px;line-height:1.8}.page-heading .actions{gap:10px}.page-heading .button.text{padding:5px 2px;min-height:35px;font-size:11px}.filterbar{gap:10px}.filterbar .field{min-width:105px}.filterbar .field select{padding:10px 9px;font-size:12px}.filterbar>.button{font-size:12px;padding:8px 12px}.tabs{gap:9px}.tabs .button{font-size:12px;padding:8px 11px}.tabs .button.text{padding:8px 2px;font-size:11px}.pact-card h3,.circle-card h3{font-size:27px}.pact-card .card-bottom{flex-direction:row;align-items:center}.pact-card .excerpt,.circle-card .excerpt{font-size:13px}.pact-card .pact-time{font-size:12px}.circle-banner{padding:25px 23px;min-height:260px}.circle-banner h2{font-size:27px}.circle-banner-copy>p{font-size:23px;max-width:80%;line-height:1.8}.circle-art{top:15px;right:0;width:35%;opacity:.65}.circle-banner .actions{max-width:100%;gap:8px}.detail-grid>aside{grid-template-columns:1fr}.study-room{padding:24px 21px}.room-art{height:170px}.study-room .timer-ring{width:225px;height:225px}.study-room .timer-ring strong{font-size:57px}.study-room>.actions .button{font-size:15px}.study-room .center-text.muted{font-size:11px}.post-detail .cover{height:250px}.post-detail .cover strong{font-size:31px}.post-detail .cover-caption{font-size:11px}.post-detail .cover-sign{font-size:12px}.post-body{padding:21px 15px}.prose{font-size:14px;line-height:2}.comments-panel h2{font-size:25px}.comment p{font-size:14px}.person-card .person a{font-size:25px}.profile-panel{padding:25px}.profile-top h2{font-size:31px}.profile-top>.avatar{width:66px;height:66px}.profile-top p{font-size:11px}.profile-bio{font-size:23px}.profile-top .actions .button{font-size:12px;min-height:42px;padding:9px 11px}.note-grid{grid-template-columns:1fr}.note-card h3{font-size:27px}.note-card .excerpt{font-size:13px;min-height:0}.note-card .meta{font-size:11px}.passport-cover{padding:29px 25px}.passport-cover h2{font-size:34px}.stamp{width:91px;height:105px;gap:6px}.stamp strong{font-size:23px}.stamp span{font-size:9px}.stamp svg{width:23px;height:23px}.stamp-group{gap:8px}.record-card{padding:24px}.record-card h3{font-size:25px}.record-card .actions{gap:13px}.record-card .actions .button{font-size:11px}.timeline{gap:18px}.message-row{max-width:97%}.bubble{font-size:14px;padding:10px 14px}.message-form>textarea{font-size:16px}.conversation-header h2{font-size:23px}.conversation-header>.actions{max-width:92px}.conversation-header .button.text{font-size:10px;min-height:30px}.conversation-context strong{font-size:19px}.conversation-context{padding:13px 15px}.messenger.has-room>.conversation{padding:21px 17px;height:calc(100dvh - 255px);min-height:570px}.message-form small{font-size:9px}.form-footer{flex-wrap:wrap}.form-footer small{max-width:100%}.form-footer button{margin-left:auto}.two-fields .field select{font-size:14px}.auth-layout{padding:25px 19px 37px}.auth-intro{min-height:220px;padding:29px 5px 0}.auth-intro h1{font-size:42px}.auth-intro img{width:51%;bottom:1px;right:-4px}.auth-intro p{font-size:12px;max-width:180px}.auth-intro .handnote{font-size:17px}.auth-card{padding:30px 24px}.auth-card h2{font-size:29px}.auth-card .field{margin-bottom:16px}.dialog-heading h2{font-size:25px}.dialog-body,.dialog-heading{padding-left:21px;padding-right:21px}.button.primary{font-size:18px}.admin-panel{padding:25px 21px}.page-end{font-size:12px}.checkbox-label{font-size:11px}}
@media(max-width:360px){.hero h2{font-size:29px}.hero-copy>p{max-width:188px}.hero-art{width:43%}.hero-sticker{right:13px;font-size:9px}.topbar h1{font-size:25px}.cover strong,.home-posts .cover strong{font-size:21px}.cover,.home-posts .cover{height:158px}.card-copy h3,.home-posts .card-copy h3{font-size:18px}.stamp{width:79px;height:94px}.stamp strong{font-size:20px}.stamp span{font-size:8px}.two-fields{grid-template-columns:1fr}.form-footer>.button{font-size:16px}.note-permissions{display:block}.hero-details{max-width:178px}.auth-card{padding:25px 22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
@media print{.sidebar,.mobile-nav,.topbar,.app-footer,.actions,.button,#network,#toast{display:none!important}.shell{display:block}.paper{break-inside:avoid}.main{width:100%}body{background:white;color:black}}

/* Chinese display uses actual WenKai outlines. Body and form text stay neutral. */
:root:not([data-font="easy"]) .hero h2,:root:not([data-font="easy"]) .auth-intro h1,:root:not([data-font="easy"]) .topbar h1,:root:not([data-font="easy"]) .passport-cover h2{-webkit-text-stroke:.22px currentColor}

/* A variable-length agreement and validation errors must not push the composer
   outside the paper mask. On phones the page scrolls; only the message history
   has its own bounded scroll area. Never fix the height of the entire panel. */
.conversation-header,.conversation-context,.message-form{flex-shrink:0}
.conversation-context{max-height:190px;overflow:auto}
@media(max-width:767px){
 .messenger.has-room>.conversation{height:auto;min-height:0}
 .messenger .message-scroll{flex:0 0 auto;height:clamp(200px,32dvh,320px);min-height:200px}
 .messenger .message-form{padding-bottom:4px}
}
/* Off-screen-only positioning can leak into full-page captures after scrolling.
   Keep the keyboard skip link truly clipped until it receives focus. */
.skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;padding:0;overflow:hidden}
