/* 0.6.1 visual refinement, following the accepted 0.6.0 interaction model. */
:root{--teal:#28684f;--teal-dark:#1e513d;--teal-light:#e9f3ed;--muted:#61736a;--border:#e0e8e3;--sidebar:272px;--header:72px;--page-pad:38px;--surface:#fff;--surface-soft:#f7f9f8;--surface-hover:#eef5f1;--stroke-strong:#b9cfc2;--radius-control:10px;--radius-card:14px;--radius-dialog:18px;--shadow-float:0 16px 48px #183e2d1a,0 2px 6px #183e2d08;--focus-ring:#3c8a68;color:#293e35;background:var(--surface-soft)}
body{line-height:1.65}input,select,textarea{color:#293e35;border-color:#d5e0d8;border-radius:10px}input::placeholder,textarea::placeholder{color:#5c6962}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:#609b7f}
.button{border-color:#d7e2d9;border-radius:10px;color:#446153;box-shadow:none}.button:hover{background:#f1f6f0;border-color:#b7cebd}.button.primary{color:#fff;box-shadow:0 3px 8px #235c4410}.button.subtle{color:#62756b}.button.danger{color:#a24945;border-color:#e9d4d0}.button.danger:hover{background:#fcf2ef;border-color:#d8b0a7}.button.solid-danger{color:#fff;background:#a95149;border-color:#a95149}.button.solid-danger:hover{background:#91453f;border-color:#91453f}
.app-header{padding:0 26px;gap:20px;background:#fff;border-bottom-color:#e0e8e1}.app-header .brand{font-size:22px;letter-spacing:3px;gap:11px;min-width:110px;color:#284c3a}.header-caption{font-size:13px;color:#5a6960}.header-divider{height:18px}.header-right .button{font-size:13px;padding:8px 12px}.user-chip{font-size:13px;color:#526c5e;max-width:190px}.user-avatar{background:#e9f2e8;color:#4d785b}.connection{color:#5d6e62}.connection.online i{background:#6a9d77;box-shadow:0 0 0 3px #eef5ec}
.sidebar{background:#f4f7f2;border-right-color:#e0e8e1}.group-panel{padding:18px 14px 0}.group-current{background:#fff;border-color:#dce7dc;border-radius:13px;padding:13px 14px;box-shadow:0 2px 7px #244f3604}.group-current>span:first-child{color:#5d6e61}.group-current strong{font-size:14px;color:#355942}.group-current:hover{background:#f9fbf6}.module-nav{padding:18px 12px;gap:5px;border-bottom-color:#e0e8df}.module-nav button{padding:12px 15px;border-radius:10px;font-size:14px;color:#586d5c}.module-nav button>span{font-size:14px}.module-nav button .nav-icon{color:#586b5c}.module-nav button.selected{background:#e3eee1;color:#386344}.module-nav button.selected .nav-icon{color:#4d7b54}.module-nav button.selected:before{background:#74976e;width:3px;top:16px;bottom:16px}
#sidebar-content{padding-top:22px}.sidebar-heading h2{font-size:12px;letter-spacing:.4px;color:#586b5b}.sidebar-search input{border-color:#dce6db;border-radius:10px;font-size:13px}.tree-row{border-radius:9px;margin:3px 0}.tree-row.selected{background:#e2eddf;color:#356144}.tree-room{font-size:13px;line-height:1.65}.tree-row:hover{background:#eaf1e6}.sidebar-add{font-size:12px;border-radius:10px;background:#fafcf7}.sidebar-footer{padding:12px 17px;gap:8px;border-top-color:#e0e8df;color:#5a6b5c;font-size:11px}.sidebar-footer .button{font-size:12px;padding:7px 10px}.private-conversation{border-radius:11px;border-color:#dde6dc}.private-conversation.selected{background:#e7f0e3;border-color:#b5ccb0}
.main-content{background:#fff}.room-header{padding-top:30px;padding-bottom:26px;gap:24px}.breadcrumbs{font-size:12px;margin-bottom:13px;color:#5f6d62}.breadcrumbs button{font-size:12px;color:#586d5e}.title-line h1{font-size:27px;font-weight:650;letter-spacing:-.4px;color:#2b4434;line-height:1.5}.room-description{font-size:14px;line-height:1.85;color:#5d6e62;max-width:70ch;margin-top:12px}.paper-metadata{font-size:13px;color:#5c695d;line-height:1.8}.room-actions{gap:8px;max-width:440px;padding-top:23px}.room-actions .button{font-size:12px;padding:8px 13px}.badge{font-size:11px;padding:4px 9px;background:#edf3e9;color:#586b58;border-radius:6px}.storage-line{padding-top:12px;padding-bottom:12px;background:#fcfdf9;color:#5f6d5e;font-size:11px;border-bottom-color:#e9efe5}.storage-badge{background:#edf4e6;color:#5c704f;font-size:11px;padding:4px 8px}
.room-tabs{gap:14px;min-height:61px;border-bottom-color:#e2e9df}.room-tabs button{font-size:14px;padding:0 13px;color:#5e6e60}.room-tabs button.selected{color:#3d6e49}.room-tabs button.selected:after{background:#668a5d;height:2px}
.message-search{padding:8px 0;border-bottom-color:#e8eee3}.message-search input{font-size:13px;color:#566e5c}.message-search>span{color:#5c6c5c}.message-search .button{font-size:12px}.message-history{padding-top:6px;padding-bottom:8px}.message{padding:8px 0;gap:10px}.avatar{width:32px;height:32px;flex-basis:32px;border-radius:10px;border-color:#e2eadf;background:#f0f5ed;color:#5a6b54;font-size:13px}.own-message .avatar{background:#e9f1e2;border-color:#dce8d2;color:#596e45}.message-meta{gap:2px 8px;margin-bottom:2px}.message-meta strong{font-size:13px;color:#4d6b53}.message-meta time,.message-edited{font-size:11px;color:#5e695c}.message-text{font-size:15px;line-height:1.65;color:#3e5543}.message[data-message-id] .message-content{max-width:calc(100% - 42px)}.message-attachments{gap:6px;margin-top:6px}.message .small-note{margin:5px 0 0}.message-edit-button{font-size:11px;color:#5e6c5b}.message-edit-button:hover{background:#edf4e6;color:#4d7646}
.composer{margin-top:16px;border-color:#d2dfcb;border-radius:15px;box-shadow:0 5px 20px #3f642a05;background:#fff}.composer textarea{font-size:15px;padding:17px 17px 5px;min-height:94px;line-height:1.85}.composer:focus-within{border-color:#9cb78b;box-shadow:0 0 0 3px #f0f6e9}.composer-toolbar{padding:10px 12px;gap:10px}.composer-toolbar>.button{font-size:13px;padding:8px 13px}.composer-toolbar>.button.primary{min-width:74px}.composer-hint{font-size:11px;color:#5f6958}.file-link{border-color:#dde7d6;background:#fafcf7;color:#526d47;border-radius:10px;font-size:13px}.file-link:hover{background:#eef5e7;border-color:#bdcfae}.file-mark{border-color:#e0e9d7;background:#f2f6ec;color:#5f6f4e}.file-table{border-radius:13px}.file-table-head,.file-row{border-bottom-color:#e6eddf}.file-table-head{background:#f6f9f0}.file-row{font-size:12px}.files-pane,.nodes-pane{padding-top:26px}
.section-papers{background:#fbfcf8;padding-top:28px;padding-bottom:32px}.section-caption h2{font-size:14px;color:#596d50}.section-caption p{font-size:12px;color:#606c58}.paper-grid{gap:19px}.paper-card{border-color:#e0e8d8;border-radius:15px;padding:23px;box-shadow:0 4px 12px #3d642003;background:#fff}.paper-card:hover{border-color:#bdcfa9;box-shadow:0 6px 20px #3d642008}.paper-card h3{font-size:16px;line-height:1.75;color:#455f38}.paper-card-meta,.paper-card-description{font-size:12px;line-height:1.85;color:#606b54}.paper-card-top{margin-bottom:17px}.paper-card-icon{background:#eef4e5;color:#5c6e4c;border-radius:10px}.paper-card-stats{font-size:11px;border-top-color:#ecf1e5;color:#5f6954}
.calendar-heading h1{font-size:28px;color:#3a5431}.calendar-heading .muted,.calendar-toolbar .button{font-size:13px}.calendar-grid{border-color:#dde7d2;border-radius:14px}.weekdays{background:#f5f8ed;color:#5d6a4c;font-size:12px;border-bottom-color:#e1e9d5}.weekdays span{padding:13px 8px}.calendar-day{border-color:#e6eddb}.calendar-day.other-month{background:#fbfcf7}.calendar-day.selected-day{background:#f1f6e8;box-shadow:inset 0 0 0 1px #d9e6c5}.calendar-day.today .day-number{background:#7a955a}.calendar-event{font-size:11px;line-height:1.7;background:#eff4e7;color:#5a6d42;border-radius:6px}.calendar-event.all-day{background:#eaf2dc;color:#5c713b}.event-card{border-color:#dfe8d3;border-radius:13px;padding:18px 19px}.event-title{font-size:14px;color:#56723f}.event-description{font-size:13px;color:#606d50}.event-time{font-size:12px;color:#606d51}.room-reference{background:#eff5e4;color:#5b6e3d;font-size:11px;border-radius:7px}
.auth-layout{background:radial-gradient(ellipse at 15% 25%,#eaf1e5 0,transparent 55%),#f6f8f2;gap:88px}.auth-intro .brand{color:#3f6335;letter-spacing:3px}.auth-intro h1{font-size:40px;color:#48643b;line-height:1.55}.auth-intro>p{color:#606d54}.auth-card{border-color:#dfe8d5;border-radius:21px;width:424px;padding:35px 34px 29px;box-shadow:0 18px 55px #49642d08}.auth-card h2{font-size:25px;color:#46643a}.auth-card>.muted{font-size:13px;line-height:1.85;color:#606b53}.auth-card label{font-size:14px;color:#596e4b}.auth-card input{background:#fbfdf8;border-color:#d8e4ca;font-size:14px}.auth-tabs{background:#eff4e7;border-color:#e7eedc}.auth-tabs button{font-size:14px;color:#606b50}.auth-tabs button.selected{color:#577b3e}.intro-items{color:#5c6a4d}.intro-items small{color:#5f6954}
.modal{border-color:#dce6d2;border-radius:18px;box-shadow:0 24px 80px #314d2222}.modal-heading h2{color:#4a693a}.modal-heading .eyebrow{color:#5e6a50}.modal form label{color:#5a6f4c}.small-note{line-height:1.85}.modal .small-note{color:#5e6a50}.group-welcome{background:linear-gradient(145deg,#eff4e7,#fafcf6)}.group-welcome-card{border-color:#dfe8d2;border-radius:20px;box-shadow:0 14px 46px #45612208}.group-welcome-card h1{color:#4b683a}.group-start-card{border-color:#dde7ce;border-radius:14px}.group-start-card strong{color:#57703f}.group-start-card:hover,.group-choice:hover{background:#f2f7e9;border-color:#b8cd9e}
.delete-title{font-size:17px;font-weight:600;color:#415b39;overflow-wrap:anywhere;margin:2px 0 13px}.delete-scope{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:22px 0}.delete-scope>div{background:#f6f8f1;border:1px solid #e4ebd9;border-radius:11px;padding:12px;text-align:center}.delete-scope dt{font-size:12px;color:#5f6952}.delete-scope dd{font-size:23px;font-weight:600;color:#597042;margin:5px 0 0}.trash-list{display:flex;flex-direction:column;gap:10px;padding:12px 0}.trash-item{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid #e1e9d6;border-radius:12px;background:#fcfdf9}.trash-item>div{flex:1;min-width:0}.trash-item h3{font-size:15px;line-height:1.8;margin:8px 0 5px;overflow-wrap:anywhere}.trash-item p{font-size:11px;color:#606d51;margin:0}.trash-item>.button{flex-shrink:0}.trash-empty{text-align:center;color:#606e52;padding:35px 10px}
@media(min-width:1450px){:root{--sidebar:284px;--page-pad:48px}.room-header{padding-top:35px;padding-bottom:29px}.message-text{max-width:1000px}}
@media(max-width:1120px){:root{--sidebar:248px;--page-pad:27px}.room-header{gap:16px}.room-actions{padding-top:0;max-width:none}.title-line h1{font-size:25px}}
@media(max-width:800px){:root{--header:64px;--page-pad:20px}.app-header{padding:0 13px;gap:9px}.app-header .brand{font-size:21px;letter-spacing:2px;gap:8px;min-width:0}.header-right .button{font-size:12px;padding:8px}.header-right{gap:5px}.user-chip{font-size:11px}.room-header{padding-top:23px;padding-bottom:21px;gap:14px}.title-line h1{font-size:24px}.room-description{font-size:13px}.breadcrumbs,.breadcrumbs button{font-size:11px}.room-actions{gap:7px}.room-actions .button{font-size:12px;padding:8px 11px}.room-tabs{gap:5px;min-height:57px}.room-tabs button{font-size:13px;padding:0 11px}.message-search{padding:8px 0}.message-search input{font-size:13px}.message{gap:10px;padding:8px 0}.avatar{width:30px;height:30px;flex-basis:30px;border-radius:10px;font-size:12px}.message[data-message-id] .message-content{max-width:calc(100% - 40px)}.message-meta strong{font-size:12px}.message-meta time,.message-edited{font-size:10px}.message-text{font-size:14px;line-height:1.65}.composer textarea{font-size:15px;min-height:91px;padding:15px 13px 4px}.composer-toolbar{padding:9px}.composer-toolbar>.button{font-size:12px}.paper-card{padding:22px}.paper-grid{gap:14px}.calendar-heading h1{font-size:25px}.calendar-grid{margin-left:10px;margin-right:10px}.weekdays span{padding:12px 2px;font-size:11px}.calendar-event{font-size:10px}.event-card{padding:15px 12px;gap:8px}.auth-layout{padding:22px 17px}.auth-card{padding:29px 24px;width:100%;border-radius:18px}.auth-card .mobile-brand{justify-content:center;margin-bottom:26px}.auth-card h2{font-size:25px}.auth-card input{font-size:16px}.auth-card label{font-size:14px}.group-panel{padding-top:13px}.modal{border-radius:16px}.delete-scope{gap:8px}.trash-item{padding:13px;gap:10px}}
@media(max-width:620px){.app-header .user-chip{display:none}.header-right{gap:6px}}
@media(max-width:480px){.delete-scope{grid-template-columns:repeat(2,minmax(0,1fr))}.trash-item{align-items:flex-start}.trash-item>.button{margin-top:5px}.paper-grid{grid-template-columns:minmax(0,1fr)}.message-meta{gap:2px 8px}}
@media print{.room-actions,.sidebar,.app-header{display:none!important}.message-text{color:#111}}
.activity-bell{position:relative;flex:0 0 44px;min-width:44px;min-height:44px;color:#446153}.activity-count{position:absolute;right:0;top:0;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:#a14d43;color:#fff;font:11px/18px system-ui;text-align:center;pointer-events:none}.activity-count[hidden]{display:none}.activity-toolbar,.push-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.activity-list{display:grid;gap:10px;margin:18px 0}.activity-item{display:flex;align-items:center;gap:13px;width:100%;min-height:90px;padding:16px;text-align:left;border:1px solid #e0e8d8;border-radius:13px;background:#fcfdf9;color:#3e5543}.activity-item:hover{background:#f1f6eb;border-color:#b7ceaa}.activity-item.unread{background:#eff5e8;border-color:#cadcba}.activity-item>span:nth-child(2){flex:1;min-width:0;display:grid;gap:3px;overflow-wrap:anywhere}.activity-item strong{font-size:15px}.activity-item small,.activity-item time{font-size:12px;color:#5c6a53}.activity-item>span:nth-child(2)>span{font-size:13px}.activity-dot{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#d4ddcc}.activity-item.unread .activity-dot{background:#487746}.push-settings{border-top:1px solid #e0e8d8;margin-top:22px;padding-top:14px}.push-settings h3,.install-help h3{font-size:16px;margin:6px 0 10px}.install-help section{margin:18px 0}.install-help p{font-size:14px;line-height:1.9}.push-actions .button,.activity-toolbar .button{min-height:44px}.auth-install{display:block;margin:14px auto 0;min-height:44px}.modal-content:has([data-activity-center]){overflow-wrap:anywhere}
@media(max-width:380px){.app-header{gap:5px;padding-left:8px;padding-right:8px}.header-right{gap:2px}.app-header .brand{gap:5px;font-size:20px;letter-spacing:1px}.header-right .button{padding-left:7px;padding-right:7px}.activity-bell{flex-basis:44px}.push-actions>.button{width:100%}}
.workspace>[data-storage-banner]{grid-column:1/-1;grid-row:2;min-width:0}.workspace.storage-warning-visible{grid-template-rows:var(--header) auto minmax(0,1fr)}.workspace.storage-warning-visible .sidebar,.workspace.storage-warning-visible .main-content{grid-row:3}.storage-capacity-warning{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 25px;background:#fff4dc;border-bottom:1px solid #ead5aa;color:#72501f;font-size:13px;line-height:1.7}.storage-capacity-warning>span{display:grid;gap:2px;min-width:0}.storage-capacity-warning strong{font-size:14px}.storage-capacity-warning .button{flex-shrink:0;min-height:44px;border-color:#d4b980;background:#fffaf0;color:#72501f}.storage-settings-warning{color:#8a4e1b!important;background:#fff0ce!important;box-shadow:inset 0 0 0 1px #d9b676!important}.storage-settings-warning:after{content:"";display:inline-block;width:7px;height:7px;margin-left:5px;border-radius:50%;background:#a65c24}.storage-capacity-settings{border-top:1px solid #e0e8d8;margin-top:22px;padding-top:16px}.storage-capacity-settings h3{font-size:16px;margin:6px 0 10px}.storage-capacity-value{margin:12px 0 5px;color:#3c5c47}.storage-capacity-value strong{font-size:24px}.storage-capacity-value>span{font-size:14px;color:#5f6d60}.storage-capacity-settings progress{appearance:none;width:100%;height:10px;border:0;border-radius:8px;overflow:hidden;background:#edf2e8}.storage-capacity-settings progress::-webkit-progress-bar{background:#edf2e8}.storage-capacity-settings progress::-webkit-progress-value{background:#60866b;border-radius:8px}.storage-capacity-settings progress::-moz-progress-bar{background:#60866b;border-radius:8px}.storage-capacity-near-limit progress::-webkit-progress-value{background:#b17b32}.storage-capacity-near-limit progress::-moz-progress-bar{background:#b17b32}.storage-capacity-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.storage-capacity-details>div{min-width:0}.storage-capacity-details dt{font-size:12px;color:#63725e}.storage-capacity-details dd{font-size:14px;font-weight:600;margin:4px 0;overflow-wrap:anywhere}.storage-capacity-status{font-size:13px;padding:10px 12px;border-radius:8px;background:#fff4dc;color:#72501f}.storage-capacity-settings>.button{min-height:44px}
@media(max-width:800px){.storage-capacity-warning{padding:12px 16px;gap:10px;align-items:flex-start;font-size:12px}.storage-capacity-warning strong{font-size:13px}.storage-capacity-warning .button{padding:8px 10px;font-size:12px}.group-welcome>[data-storage-banner]{margin:16px -16px 0}}
@media(max-width:420px){.storage-capacity-details{grid-template-columns:1fr;gap:7px}.storage-capacity-details>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.storage-capacity-details dd{margin:0}}
@media print{[data-storage-banner]{display:none!important}}
/* Group switching stays in view on every client, including narrow phones. */
.group-switcher{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:180px;max-width:300px;min-height:52px;padding:7px 14px;border:1px solid #abc8b4;border-radius:12px;background:#edf5ee;color:#28563d;text-align:left;flex:0 1 300px}.group-switcher:hover{background:#e0efe3;border-color:#7aa68a}.group-switcher-copy{display:flex;flex-direction:column;min-width:0}.group-switcher-copy small{font-size:10px;color:#556f5d;line-height:1.4}.group-switcher-copy strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-switcher-action{font-size:13px;font-weight:650;flex:0 0 auto}.group-settings-entry{width:100%;min-height:48px!important}.group-choice-title{display:flex;align-items:center;gap:10px;width:100%;min-width:0}.group-choice-title strong{font-size:15px;color:#31523a;overflow-wrap:anywhere}.group-leader-badge{display:inline-block;border-radius:5px;background:#e0eddd;padding:1px 6px;white-space:nowrap}.group-picker-search{margin:0}.group-picker-search input{min-height:48px}.group-picker-list[data-group-choices]{max-height:48dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:3px}.group-choice{min-height:76px!important;flex-shrink:0;justify-content:center}.group-invitation,.group-admin-settings,.group-delete-zone{margin:22px 0 0;padding-top:20px;border-top:1px solid #e0e8df}.group-invitation h3,.group-admin-settings h3,.group-delete-zone h3{font-size:15px;margin:0 0 10px}.invitation-copy{display:flex;gap:8px;align-items:center;min-width:0}.invitation-copy input{letter-spacing:1px;font-family:Consolas,monospace;min-height:48px;flex:1;min-width:0;background:#f7faf4}.invitation-copy .button{min-height:48px!important;flex:0 0 auto}.group-leader-fieldset{border:1px solid #e0e8df;border-radius:12px;margin:24px 0 18px;padding:15px 14px}.group-leader-fieldset legend{font-size:15px;font-weight:600;padding:0 6px}.group-member-list{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto}.modal form .group-member-choice{display:flex;gap:12px;align-items:center;min-height:56px;margin:0;padding:8px 10px;border-radius:8px;background:#f7faf5;cursor:pointer}.group-member-choice input{flex:0 0 22px;width:22px;height:22px;min-height:22px;margin:0}.group-member-choice>span:first-of-type{min-width:0;flex:1}.group-member-choice strong{display:block;overflow-wrap:anywhere;font-size:13px}.group-member-choice small{display:block;color:#627266;font-size:11px;font-weight:400;overflow-wrap:anywhere}.group-leader-label{font-size:12px;flex:0 0 auto;color:#627266}.group-delete-zone{border-top-color:#ead5d1}.group-admin-actions{display:flex;flex-wrap:wrap;gap:10px}.group-admin-actions .button{min-height:48px!important}.group-delete-ack{display:flex;align-items:flex-start;gap:12px;min-height:48px;cursor:pointer}.modal form .group-delete-ack input{flex:0 0 22px;min-height:22px;width:22px;height:22px;margin:2px 0 0}.group-delete-ack span{font-size:13px;line-height:1.8;font-weight:400}.group-trash-list{display:flex;flex-direction:column;gap:12px;max-height:58dvh;overflow:auto}.group-trash-row{border:1px solid #e0e8df;border-radius:12px;padding:16px;min-width:0}.group-trash-row h3{font-size:15px;overflow-wrap:anywhere;margin:0 0 6px}.group-trash-row p{overflow-wrap:anywhere;margin:0 0 12px}.group-trash-actions{display:flex;flex-wrap:wrap;gap:8px}.group-trash-actions .button{min-height:48px!important}
@media(max-width:1120px) and (min-width:801px){.group-switcher{max-width:235px;min-width:150px;flex-basis:235px;gap:10px}.app-header{gap:14px}}
@media(max-width:800px){:root{--header:124px}.app-header{flex-wrap:wrap;align-content:center;row-gap:4px;padding-top:4px;padding-bottom:6px}.app-header .group-switcher{order:5;flex:0 0 100%;max-width:none;min-width:0;min-height:50px!important;padding:6px 14px}.group-switcher-copy{flex-direction:row;align-items:baseline;gap:10px}.group-switcher-copy small{font-size:11px;white-space:nowrap}.group-switcher-copy strong{font-size:14px;max-width:calc(100vw - 170px)}.group-switcher-action{font-size:14px}.group-member-list{max-height:30dvh}.invitation-copy{flex-wrap:wrap}.invitation-copy input{flex-basis:150px}.group-trash-actions .button{flex:1}.group-admin-actions .button{flex:1}.group-delete-zone .button{min-height:48px!important}.group-picker-list[data-group-choices]{max-height:42dvh}}

/* Discussion and attachment actions stay reachable with mouse, keyboard and touch. */
.content-context-menu{position:fixed;z-index:10000;display:grid;gap:6px;width:min(292px,calc(100vw - 16px));padding:10px;border:1px solid #c9d9c3;border-radius:13px;background:#fff;box-shadow:0 14px 45px #233c2830}.content-context-menu .button{width:100%;min-height:48px;justify-content:flex-start;text-align:left}.content-menu-note{margin:0;padding:7px 9px;font-size:12px;line-height:1.7;color:#61705a;overflow-wrap:anywhere}.file-row-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}.file-row-actions .button,.file-row-actions .file-rename-button{min-height:44px;padding:8px 12px}.file-row-actions .file-rename-button{position:static;margin:0}.file-row:focus-visible,.message:focus-visible{outline:2px solid #709668;outline-offset:-2px;border-radius:8px}[data-reader-delete]:disabled{opacity:.55}.message-reader .modal-actions{flex-wrap:wrap}.message-reader [data-reader-delete-reason]{line-height:1.7}

/* Personal identity remains reachable on every screen size. */
.app-header .user-chip{display:flex;align-items:center;gap:8px;min-width:44px;min-height:44px;padding:4px 8px;border:1px solid transparent;border-radius:12px;background:transparent;color:#304a36;cursor:pointer}.app-header .user-chip:hover{background:#edf4e8;border-color:#cfddc7}.user-avatar,.avatar,.profile-avatar{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;font-weight:650;letter-spacing:.3px}.user-avatar img,.avatar img,.profile-avatar img{width:100%;height:100%;object-fit:cover}.user-avatar{width:34px;height:34px;border-radius:10px;font-size:12px}.message-meta strong{color:#111;font-size:15px}.message-read-meta strong{color:#111;font-size:15px}.profile-modal .modal-content{overflow:hidden}.profile-panel{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:4px;scroll-padding-block:12px}.profile-modal form{flex:0 0 auto;overflow:visible;min-height:auto}.profile-modal .modal-form-body{flex:0 0 auto;overflow:visible}.profile-avatar-panel{display:flex;gap:16px;padding:6px 0 22px;margin-bottom:22px;border-bottom:1px solid #dce6d7}.profile-avatar-panel>div:last-of-type{flex:1;min-width:0}.profile-avatar{width:72px;height:72px;border-radius:20px;font-size:26px}.profile-avatar-actions,.profile-group-actions{display:flex;flex-wrap:wrap;gap:8px}.profile-avatar-actions .button,.profile-group-actions .button,.profile-settings-entry{min-height:44px}.profile-avatar-panel .small-note{margin:7px 0 10px}.profile-color-field{display:flex!important;align-items:center;gap:15px}.profile-color-field input[type=color]{width:64px;height:44px;min-height:44px;padding:4px;cursor:pointer}.profile-groups{margin-top:26px;padding-top:22px;border-top:1px solid #dce6d7}.profile-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.profile-section-heading h3{font-size:17px;margin:0 0 5px}.profile-section-heading .small-note{margin:0 0 12px}.profile-group-list{display:grid;gap:8px;margin-top:13px}.profile-group-row{display:flex;align-items:center;gap:9px;border:1px solid #dce6d7;border-radius:11px;padding:5px 8px 5px 12px;background:#fcfdf9;min-width:0}.profile-group-select{flex:1;min-width:0;text-align:left;min-height:60px;display:flex;flex-direction:column;justify-content:center;gap:4px}.profile-group-select strong{font-size:14px;overflow-wrap:anywhere;color:#31553a}.profile-group-select span{font-size:12px;color:#67775e}.profile-group-row>.button{min-height:44px;flex:0 0 auto}.profile-settings-entry{width:100%;margin:0 0 18px}.trash-retention-note{padding:10px 12px;background:#fff6e4;color:#795d2a;border-radius:9px;font-size:12px;line-height:1.8}.trash-expiry{display:block;margin-top:5px;font-size:12px;color:#7c6234}.auth-name-fields{margin:0}
@media(max-width:800px){.app-header .user-chip{display:flex;flex:0 0 44px;padding:4px;justify-content:center}.user-chip-name{display:none}.user-avatar{width:34px;height:34px}.header-right{gap:2px}.app-header .activity-bell{flex-basis:40px;min-width:40px}.message-meta strong,.message-read-meta strong{font-size:14px}.profile-avatar-panel{gap:12px}.profile-avatar{width:60px;height:60px;border-radius:17px;font-size:22px}.profile-panel .form-columns{gap:10px}.profile-avatar-actions .button{padding-left:9px;padding-right:9px}.profile-modal .modal-content{padding-left:16px;padding-right:16px}.composer-hint{font-size:10px}}

.user-avatar{flex:0 0 34px}.profile-logout{width:100%;min-height:44px;margin:12px 0 4px}@media(max-width:420px){.app-header [data-action="logout"]{display:none}}

/* A separate, short-lived administrator workspace never shares ordinary content panels. */
.admin-entry-compact{display:none}.admin-entry{min-height:44px!important;white-space:nowrap}.admin-onboarding-entry{display:flex;justify-content:flex-end;max-width:1100px;margin:12px auto;padding:0 24px}.admin-console{min-height:100dvh;background:#f5f7f1;color:#314a36;padding-bottom:36px}.admin-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:20px max(20px,calc((100vw - 1080px)/2));background:#284d39;color:#fff}.admin-header .brand{color:#fff;font-size:21px}.admin-header .button{min-height:44px;background:#fff;color:#284d39;flex-shrink:0}.admin-banner{display:flex;gap:16px;align-items:center;padding:14px max(20px,calc((100vw - 1080px)/2));background:#fff0cb;border-bottom:1px solid #e5cf96;font-size:13px;line-height:1.8;color:#73551f}.admin-banner strong{white-space:nowrap;font-size:16px}.admin-nav{display:flex;gap:9px;flex-wrap:wrap;max-width:1120px;margin:0 auto;padding:20px}.admin-nav .button{min-height:48px;padding:10px 18px}.admin-main{max-width:1120px;margin:0 auto;padding:0 20px;min-width:0}.admin-main h1{font-size:25px;line-height:1.6;margin:0 0 16px}.admin-main h2{font-size:20px;margin:24px 0 12px}.admin-main label{display:flex;flex-direction:column;gap:8px;font-size:14px;margin-bottom:18px}.admin-main input,.admin-main select{font-size:16px;min-height:46px;width:100%;max-width:100%}.admin-main input[type=checkbox]{min-height:22px;width:22px;height:22px;flex:0 0 22px;margin:0}.admin-main fieldset{margin:22px 0;padding:18px;border:1px solid #d4e0cc;border-radius:13px;min-width:0}.admin-main legend{padding:0 8px;font-weight:650}.admin-main .button{min-height:44px}.admin-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.admin-section-heading h1{margin:0}.admin-card-list{display:grid;gap:12px;margin:18px 0}.admin-card,.admin-user-card{display:flex;flex-direction:column;gap:7px;text-align:left;padding:18px;border:1px solid #d9e3d1;background:#fff;border-radius:13px;overflow-wrap:anywhere;min-width:0}.admin-card{min-height:105px;color:#31543b}.admin-card:hover{background:#edf4e8;border-color:#abc59d}.admin-card strong,.admin-user-card strong{font-size:17px}.admin-card span,.admin-card small,.admin-user-card span{font-size:13px;color:#61745a}.admin-members{display:grid;gap:8px}.admin-member{display:grid;grid-template-columns:minmax(0,1fr) 96px 96px;gap:12px;align-items:center;padding:10px 12px;border:1px solid #e0e8d8;border-radius:10px;background:#fff}.admin-member>span{min-width:0;overflow-wrap:anywhere}.admin-member strong{display:block;font-size:14px}.admin-member small{display:block;color:#63765b;font-size:12px;margin-top:4px}.admin-member label{display:flex;flex-direction:row;gap:9px;align-items:center;min-height:44px;margin:0}.admin-form-actions,.admin-file-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.admin-files{margin-top:30px;padding-top:18px;border-top:1px solid #d4e0cc}.admin-file-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid #d9e3d1;border-radius:12px;background:#fff;min-width:0}.admin-file-card>div:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.admin-file-card strong{display:block;font-size:15px}.admin-file-card span{display:block;font-size:12px;color:#63765b;margin-top:6px}.admin-main .admin-upload-label{position:relative;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;min-height:44px;margin:0;overflow:hidden}.admin-upload-label input{position:absolute;inset:0;opacity:0;cursor:pointer}.admin-upload-status{display:grid;gap:8px;background:#eef4e8;border:1px solid #d4e0cc;border-radius:10px;padding:14px;margin:15px 0;overflow-wrap:anywhere}.admin-upload-status progress{width:100%;height:10px}.admin-upload-status span{font-size:12px}.admin-error,.admin-notice{padding:12px 15px;border-radius:9px;line-height:1.8;overflow-wrap:anywhere}.admin-error{color:#8b4036;background:#faebe7;border:1px solid #ebd0c9}.admin-notice{color:#365e39;background:#e9f3e3}.admin-error[hidden],.admin-notice[hidden]{display:none}.admin-trash-card{display:flex;align-items:center;gap:16px;border:1px solid #d9e3d1;border-radius:12px;padding:9px 16px;background:#fff;min-width:0}.admin-trash-open{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:7px;padding:10px 0;min-height:100px;text-align:left;overflow-wrap:anywhere}.admin-trash-open strong{font-size:15px;overflow-wrap:anywhere;max-width:100%}.admin-trash-open span,.admin-trash-open small{font-size:12px;color:#647559}.admin-trash-card>.button{flex-shrink:0}.admin-trash-detail{border:1px solid #cfddc4;border-radius:13px;background:#fff;padding:18px;margin-top:24px;overflow-wrap:anywhere}.admin-trash-detail h2{margin-top:0}.admin-published-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.9;max-height:50dvh;overflow:auto;background:#f6f8f2;border-radius:9px;padding:16px}.admin-invite-result{background:#fff;border:1px solid #d9e3d1;border-radius:12px;padding:18px;margin:18px 0}.admin-invite-result input{font-family:Consolas,monospace}.admin-console [disabled]{opacity:.58;cursor:default}
@media(max-width:800px){.admin-entry-label{display:none}.admin-entry-compact{display:inline}.admin-header{padding:16px;gap:12px}.admin-header .brand{font-size:19px}.admin-banner{padding:12px 16px;gap:9px;align-items:flex-start;flex-direction:column;font-size:12px}.admin-banner strong{font-size:15px}.admin-nav{padding:16px;gap:8px}.admin-nav .button{flex:1 1 140px;padding:10px;font-size:13px}.admin-main{padding:0 16px}.admin-main h1{font-size:22px}.admin-section-heading{align-items:flex-start}.admin-section-heading>.button{max-width:145px}.admin-main fieldset{padding:12px}.admin-member{grid-template-columns:1fr 1fr;gap:5px 12px;padding:12px}.admin-member>span{grid-column:1/-1}.admin-member label{min-height:48px}.admin-file-card{flex-direction:column;align-items:stretch;gap:14px}.admin-file-card .admin-file-actions .button{flex:1}.admin-form-actions .button{flex:1}.admin-trash-card{padding:8px 12px;gap:10px}.admin-trash-card>.button{min-width:60px}.admin-published-body{font-size:14px;padding:12px}.admin-onboarding-entry{padding:0 16px}.admin-header>.button{font-size:13px}.admin-main form>button{width:100%}.admin-main input,.admin-main select{font-size:16px}}
@media(max-width:420px){.admin-header{align-items:stretch}.admin-header .brand{width:100%}.admin-header>.button{width:100%}.admin-nav .button{flex-basis:120px}}

/* Keep one bounded native scroll area. An unconstrained inner container with
   overscroll containment can swallow wheel input before it reaches the dialog. */
html.dialog-open,html.dialog-open body{overflow:hidden;overscroll-behavior:none}
.modal{overscroll-behavior:contain}
.profile-panel,.message-read-body,.group-picker-list[data-group-choices],.group-member-list,.group-trash-list{overscroll-behavior:auto}
@media(max-width:800px){
  .modal:not(.reading-modal):not(.profile-modal) .modal-content{overflow:auto;overscroll-behavior:auto}
}

/* These long reading/settings views use the dialog itself as their one scroll
   container, so wheels over headings, padding and actions work like body text. */
.modal.profile-modal[open],.modal.reading-modal[open]{overflow-y:auto;overflow-x:hidden;scroll-padding-block:12px}
.modal.profile-modal .modal-content,.modal.reading-modal .modal-content{display:block;height:auto;min-height:0;max-height:none;overflow:visible}
.modal.profile-modal .profile-panel,.modal.reading-modal .message-reader,.modal.reading-modal .message-read-body{display:block;flex:none;height:auto;min-height:0;max-height:none;overflow:visible}

/* Replies and member suggestions share the same large, native pointer targets. */
.message-reply{display:flex;flex-direction:column;gap:3px;align-items:flex-start;width:100%;max-width:100%;min-height:48px;padding:10px 12px;margin:5px 0 10px;border:1px solid #dce6d7;border-left:3px solid #83a886;border-radius:8px;background:#f4f8f0;text-align:left;white-space:normal;overflow-wrap:anywhere;color:#45614c}
.message-reply strong{font-size:12px;color:#263e2c}.message-reply span{font-size:13px;line-height:1.65;white-space:pre-wrap}.message-reply.unavailable{background:#f6f7f3;border-left-color:#b2bdae;color:#6c7667;cursor:default}.message-reply:hover{background:#eaf2e4}
.message-reply .message-reply-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;white-space:normal}.message-reply time{font-size:11px;color:#687968;white-space:normal}
[data-reply-preview]:empty{display:none}.composer-reply{display:flex;gap:8px;align-items:center;padding:10px 12px;border-bottom:1px solid #dfe8d8}.composer-reply .message-reply{flex:1;min-width:0;margin:0}.composer-reply>.button{flex:0 0 auto;min-height:44px;white-space:normal}.message-read-body>.message-reply{margin:0 0 18px}
.mention-menu{position:fixed;z-index:1200;max-width:calc(100vw - 16px);padding:6px;border:1px solid #c5d7bd;border-radius:12px;background:#fff;box-shadow:0 12px 36px #263d2a26;overflow:auto;overscroll-behavior:contain}
.mention-option{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;min-height:56px;padding:9px 12px;border-radius:8px;text-align:left;white-space:normal;overflow-wrap:anywhere}.mention-option strong{font-size:14px;color:#25472f}.mention-option small{font-size:11px;color:#60715c}.mention-option[aria-selected=true]{background:#e8f1df;box-shadow:inset 0 0 0 1px #b7cda9}.mention-empty{font-size:13px;color:#62735d;padding:12px;margin:0}
.auth-client-actions{display:grid;gap:8px;margin-top:14px}.auth-client-actions .auth-install{width:100%;margin:0;min-height:48px!important}.modal.client-distribution-modal[open]{overflow-y:auto;overflow-x:hidden;scroll-padding-block:12px}.modal.client-distribution-modal .modal-content{display:block;height:auto;min-height:0;max-height:none;overflow:visible}.client-distribution{overflow-wrap:anywhere}.client-channel{padding:12px 14px;border:1px solid #c9ddce;border-radius:10px;background:#eff6ef;color:#2a563b;font-weight:650}.client-channel-development{background:#fff5dc;border-color:#e2c98e;color:#75531c}.client-download-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.client-download-card{min-width:0;padding:16px;border:1px solid #dce6d7;border-radius:12px;background:#fcfdf9}.client-download-card h3,.client-addresses h3,.client-web-install h3{font-size:16px;margin:0 0 10px}.client-release{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:15px;font-weight:600}.client-release span{padding:3px 7px;border-radius:5px;background:#eef1e5;font-size:11px;font-weight:400}.client-package-link{display:flex;justify-content:center;align-items:center;width:100%;min-height:48px;white-space:normal;text-align:center}.client-selection-note{font-size:12px;line-height:1.8;margin:12px 0 0;color:#71551d}.client-addresses,.client-web-install{padding-top:20px;margin-top:22px;border-top:1px solid #dce6d7}.client-addresses dl{margin:14px 0}.client-addresses dl>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;padding:10px 0}.client-addresses dt{font-weight:600;font-size:13px}.client-addresses dd{margin:0;font-size:13px;min-width:0}.client-addresses a{display:block;min-height:44px;padding:8px 10px;border:1px solid #dae5d7;border-radius:8px;background:#f7faf4;color:#315a3f;line-height:1.6}.client-addresses small{display:block;margin-top:5px;color:#63725e;line-height:1.7}.client-distribution .button{min-height:48px!important}.client-download-error{padding:12px;border-radius:10px;background:#fff3e8;color:#79502d;line-height:1.8}
@media(max-width:520px){.client-download-grid{grid-template-columns:1fr}.client-addresses dl>div{grid-template-columns:1fr;gap:4px}}
.password-field-label{margin:0 0 18px}.password-field-label>label{display:block;margin:0 0 7px}.password-field{display:flex;gap:8px;align-items:stretch;min-width:0}.password-field input{flex:1;width:0;min-width:0;min-height:48px;margin:0}.password-field .password-toggle{flex:0 0 64px;min-width:64px!important;min-height:48px!important;padding:8px;color:#365941;background:#f5f8f1;white-space:nowrap}.password-field .password-toggle[aria-pressed=true]{background:#e6f0e2;border-color:#abc6a0}.auth-card .password-field-label{margin-bottom:16px}.auth-card .password-field-label>label{margin-bottom:7px}.auth-card .password-field input{min-height:48px}
@media(max-width:800px){.composer-reply{padding:9px;align-items:flex-start}.composer-reply>.button{max-width:80px;padding:8px}.message-reply{padding:9px 10px}.mention-option{min-height:56px}}

/* Downloads and campus access remain one visible, authenticated header action. */
.client-download-entry{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-width:48px;min-height:48px!important;padding:10px 14px;border-color:#b9d4c3;background:#edf6ef;color:#245f47!important;white-space:nowrap}.client-download-entry:hover{background:#e3f0e7;border-color:#91b8a1}.client-download-entry svg{flex:0 0 19px}.client-download-compact{display:none}.group-welcome-header>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:1120px){.client-download-label{display:none}.client-download-compact{display:inline}.header-right{min-width:0}.app-header .user-chip{max-width:48px;min-width:48px;padding:4px;justify-content:center}.app-header .user-chip-name{display:none}.app-header .connection span{display:none}.app-header .install-button{display:none}}
@media(min-width:801px) and (max-width:1120px){.app-header .admin-entry{display:none}.app-header .group-switcher{flex-basis:180px;max-width:200px;min-width:140px}.app-header .header-right{gap:6px}}
@media(max-width:800px){.app-header .client-download-entry{padding:8px;gap:5px}.app-header .mobile-menu,.app-header .activity-bell,.app-header .user-chip{min-width:48px;min-height:48px;flex:0 0 48px}.app-header .mobile-menu{height:48px}.app-header .install-button{display:none}}
@media(max-width:620px){.app-header [data-action="settings"],.app-header [data-action="logout"],.app-header .connection{display:none}.group-welcome-header{gap:12px;flex-wrap:wrap}.group-welcome-header>div{gap:6px}}
@media(max-width:420px){.app-header .admin-entry{display:none}}

/* Recovery is a bounded view over each group's existing records, not a second archive. */
.admin-recovery-group-deleted{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;padding:10px 12px;background:#fff0dc;border:1px solid #ead2aa;border-radius:7px;margin:0 0 10px;font-size:12px}.admin-recovery-group-deleted>.button{margin-left:auto;font-size:12px}
.admin-group-row{min-width:0}.admin-group-row .admin-card{width:100%}.admin-group-deleted{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 4px;font-size:12px;color:#81562d}.admin-group-navigation{margin:0 0 20px}.admin-recovery-breadcrumb{font-size:13px;margin:0 0 3px;color:#67745c;overflow-wrap:anywhere}.admin-recovery-sections,.admin-recovery-content-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.admin-recovery-sections .button,.admin-recovery-content-tabs .button{padding:7px 12px;min-height:40px}.admin-recovery-layout{display:grid;grid-template-columns:minmax(190px,250px) minmax(0,1fr);gap:14px;align-items:start}.admin-recovery-layout.is-calendar{grid-template-columns:minmax(0,1fr)}.admin-recovery-directory,.admin-recovery-content{min-width:0;border:1px solid #d7e0d0;background:#fff;border-radius:9px;padding:10px}.admin-recovery-directory form,.admin-recovery-content-search{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-end;margin:0 0 8px}.admin-recovery-directory form label,.admin-recovery-content-search label{margin:0;flex:1 1 140px;gap:4px;font-size:12px}.admin-recovery-directory form .button,.admin-recovery-content-search .button{padding:6px 10px;min-height:40px}.admin-recovery-directory form input,.admin-recovery-content-search input{min-height:40px;padding:6px 9px;font-size:14px}.admin-recovery-rooms{display:flex;flex-direction:column;gap:2px;max-height:60dvh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.admin-recovery-room{min-width:0;border-bottom:1px solid #edf0e9;padding:3px;display:flex;flex-direction:column;gap:2px}.admin-recovery-room.is-selected{background:#e9f1e4;border-radius:6px}.admin-recovery-room>button:first-child{display:flex;flex-wrap:wrap;gap:4px;align-items:center;width:100%;min-height:44px;text-align:left;padding:5px 6px;color:#2c4a37;border:0;background:transparent;overflow-wrap:anywhere}.admin-recovery-room>button:first-child strong{font-size:14px}.admin-recovery-room small{display:block;flex-basis:100%;font-size:11px;color:#687460}.admin-recovery-room>.button{align-self:flex-end;min-height:36px;padding:4px 10px;font-size:12px}.admin-recovery-room-heading{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.admin-recovery-room-heading h2{font-size:18px;margin:0}.admin-recovery-room-heading p{flex-basis:100%;font-size:12px;color:#65705d;margin:2px 0;overflow-wrap:anywhere}.admin-recovery-items{max-height:65dvh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.admin-recovery-message,.admin-recovery-event{min-width:0;padding:8px 3px;border-bottom:1px solid #e4eadd}.admin-recovery-message>header,.admin-recovery-event>header{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;min-width:0}.admin-recovery-message>header>strong,.admin-recovery-event>header>strong{font-size:14px;color:#161b17;overflow-wrap:anywhere}.admin-recovery-message time,.admin-recovery-quote time{font-size:11px;color:#72786c}.admin-recovery-row-actions{display:flex;align-items:center;justify-content:flex-end;flex:1 1 auto;gap:4px;min-width:0}.admin-recovery-row-actions .button{font-size:12px;padding:4px 10px;min-height:34px}.admin-recovery-deleted,.admin-recovery-expired{font-size:11px;color:#9a542b;background:#fff0dc;padding:1px 5px;border-radius:4px;white-space:nowrap}.admin-recovery-expired{color:#8e4242;background:#f9e6e5}.admin-recovery-meta{display:block;color:#71796a;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.admin-recovery-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.55;margin:4px 0;color:#283d2c}.admin-recovery-blocked{font-size:11px;color:#8b6849;overflow-wrap:anywhere}.admin-recovery-expired-body{font-size:12px;color:#8a5d4a;line-height:1.6;margin:4px 0}.admin-recovery-quote{margin:5px 0;padding:4px 8px;border-left:2px solid #b6c9ad;background:#f3f6ef;font-size:12px;color:#64745b;max-height:80px;overflow:auto}.admin-recovery-quote span{display:block;white-space:pre-wrap;overflow-wrap:anywhere}.admin-recovery-file{display:flex;align-items:center;gap:8px;justify-content:space-between;border-bottom:1px solid #e4eadd;padding:8px 3px;min-width:0}.admin-recovery-file>div:first-child{min-width:0;flex:1;overflow-wrap:anywhere}.admin-recovery-file strong{font-size:13px}.admin-recovery-file.is-inline{background:#f7f9f4;padding:5px 8px;border-radius:5px;margin-top:4px}.admin-recovery-file .admin-recovery-row-actions{flex:0 1 auto}.admin-recovery-pager{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:9px}.admin-recovery-pager>span{font-size:10px;color:#6e7866;text-align:center}.admin-recovery-pager .button{min-height:36px;padding:4px 7px;font-size:11px;white-space:nowrap}
.admin-file-version-label{display:inline-block;font-size:11px;line-height:1.5;padding:1px 5px;border-radius:4px;background:#edf0e9;color:#616d5d;white-space:nowrap}.admin-file-version-label.is-current{background:#dfeee4;color:#275d46}.admin-file-versions{border:1px solid #c7d9c6;border-radius:7px;background:#fafcf8;padding:8px;margin:4px 0 10px;min-width:0}.admin-file-versions>header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px}.admin-file-versions>header>div:first-child{flex:1 1 180px;min-width:0;overflow-wrap:anywhere}.admin-file-versions>header strong{font-size:14px;color:#294b34}.admin-file-versions>.small-note{font-size:12px;line-height:1.5;margin:6px 0}.admin-file-versions .admin-recovery-file{padding:5px 2px}
@media(max-width:700px){.admin-recovery-layout{grid-template-columns:minmax(0,1fr)}.admin-recovery-rooms{max-height:210px}.admin-recovery-items{max-height:60dvh}.admin-recovery-message>header{gap:4px}.admin-recovery-content,.admin-recovery-directory{padding:8px}.admin-recovery-sections .button{flex:1 1 100px}.admin-recovery-file{flex-wrap:wrap}.admin-recovery-file>.admin-recovery-row-actions{flex:1 1 auto}.admin-recovery-content-search label{flex-basis:100%}}
.admin-recovery-tree-node{position:relative;min-width:0}.admin-recovery-tree-row{display:flex;align-items:center;gap:2px;min-width:0;width:100%}.admin-recovery-tree-title{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:3px 5px;min-height:44px;padding:4px;text-align:left;border:0;background:transparent;color:#2c4a37;overflow-wrap:anywhere}.admin-recovery-tree-title strong{font-size:14px}.admin-recovery-tree-title small{flex-basis:100%;font-size:11px;color:#687460}.admin-recovery-expand{flex:0 0 32px;min-height:44px;border:0;background:transparent;color:#38674f;cursor:pointer}.admin-recovery-tree-leaf{flex:0 0 18px;text-align:center;color:#8c9b87}.admin-recovery-tree-children{position:relative;margin-left:var(--tree-indent,18px)}.admin-recovery-tree-children::before{content:"";position:absolute;left:-2px;top:0;bottom:0;border-left:2px solid #9db8a7;pointer-events:none}.admin-recovery-tree-children>.admin-recovery-tree-node::before{content:"";position:absolute;left:-2px;top:25px;width:12px;border-top:2px solid #9db8a7;pointer-events:none}.admin-recovery-tree-children>.admin-recovery-tree-node:last-of-type::after{content:"";position:absolute;left:-2px;top:27px;bottom:0;width:2px;background:#fff;pointer-events:none}.admin-recovery-branch-pager{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px;padding:3px;font-size:10px;color:#6e7866}.admin-recovery-branch-pager .button{padding:3px 5px;min-height:36px;font-size:11px}.admin-recovery-dates{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:8px 0;padding:7px;background:#f5f8f1;border-radius:6px;min-width:0}.admin-recovery-date-shortcuts{display:flex;flex-wrap:wrap;gap:4px}.admin-recovery-dates .button{min-height:36px;padding:4px 8px;font-size:12px}.admin-recovery-dates label{margin:0;display:flex;align-items:center;gap:5px;font-size:12px;min-width:0}.admin-recovery-dates input{min-height:36px;padding:4px 6px;font-size:12px;max-width:165px;min-width:0}.admin-recovery-dates>small{flex-basis:100%;font-size:11px;color:#687460}
@media(max-width:380px){.app-header .client-download-entry svg{display:none}.app-header .client-download-entry{width:48px;padding:8px}.app-header .header-right{gap:2px}}

/* A directory level has one shared style; no room IDs or stored per-item CSS. */
.room-tree{padding:2px 0 4px}.room-tree .tree-row{margin:1px 0;min-height:48px;align-items:center;padding-left:0;border-radius:10px}.room-tree .tree-room{min-height:48px!important;padding:5px 5px 5px 0;line-height:1.35;gap:6px;justify-content:flex-start;text-align:left}.room-tree .tree-room>span:nth-child(2){flex:1 1 0;text-align:left}.room-tree .tree-room>span:nth-child(2){white-space:normal;overflow-wrap:anywhere;text-overflow:clip;text-align:left}.room-tree .tree-dot{width:12px;flex:0 0 12px;font-size:.72em}.room-tree .tree-spacer{width:44px;flex-basis:44px}.room-tree .tree-expander{font-size:18px;align-self:center}.room-tree .tree-add{font-size:20px}.room-tree [data-project-depth]>.tree-room{font-size:var(--project-size,16px);font-weight:var(--project-weight,500);color:var(--project-color,#405a50)}.room-tree [data-typography-role=paperSection]>.tree-room{font-size:var(--ty-paperSection-size,17px);font-weight:var(--ty-paperSection-weight,700);color:var(--ty-paperSection-color,#355b4d)}.room-tree [data-typography-role=paper]>.tree-room{font-size:var(--ty-paper-size,16px);font-weight:var(--ty-paper-weight,500);color:var(--ty-paper-color,#405a50)}.room-tree .tree-room small{font-size:var(--ty-metadata-size,12px);font-weight:var(--ty-metadata-weight,400);color:var(--ty-metadata-color,#6b7c71);line-height:1.35}.sidebar-search{margin-bottom:10px}.room-tree+.archive-toggle{margin-top:12px}.room-tree{--tree-line:#9db8a7;--tree-surface:#f4f7f2}.room-tree .tree-node{position:relative;min-width:0}.room-tree>.tree-node+.tree-node{margin-top:5px}.room-tree-children{position:relative;margin-left:var(--tree-indent,18px)}.room-tree-children::before{content:"";position:absolute;top:0;bottom:0;left:-2px;border-left:2px solid var(--tree-line);pointer-events:none}.room-tree-children>.tree-node::before{content:"";position:absolute;top:24px;left:-2px;width:14px;border-top:2px solid var(--tree-line);pointer-events:none}.room-tree-children>.tree-node:last-child::after{content:"";position:absolute;top:26px;bottom:0;left:-2px;width:2px;background:var(--tree-surface);pointer-events:none}.room-tree .tree-expander,.room-tree .tree-spacer,.room-tree .tree-add{align-self:flex-start}.room-tree .tree-spacer{height:48px}.room-tree .tree-room>span:nth-child(2){min-width:0}

.room-tree-children>.tree-node[data-tree-compact-node]::after,.admin-recovery-tree-children>.admin-recovery-tree-node[data-tree-compact-node]::after{display:none}.room-tree .tree-room .tree-level{display:block;margin:0;font-size:11px;line-height:1.5;font-weight:500;color:#657c6c}.admin-recovery-tree-title .admin-recovery-tree-level{display:block;font-size:10px;line-height:1.5;color:#657c6c}

/* Semantic typography changes display only. Text content and identity stay intact. */
html[data-typography] .workspace :is(.pane-toolbar p,.private-conversation strong){font-size:var(--ty-interface-size);font-weight:var(--ty-interface-weight);color:var(--ty-interface-color)}
html[data-typography] :is(.workspace,.group-welcome) .title-line h1{font-size:var(--ty-heading-size);font-weight:var(--ty-heading-weight);color:var(--ty-heading-color)}
html[data-typography] :is(.workspace,.modal:not(.typography-modal)) :is(.message-meta strong,.message-read-meta strong){font-size:var(--ty-author-size);font-weight:var(--ty-author-weight);color:var(--ty-author-color)}
html[data-typography] :is(.workspace,.modal:not(.typography-modal)) :is(.message-text,.message-read-text){font-size:var(--ty-message-size);font-weight:var(--ty-message-weight);color:var(--ty-message-color)}
html[data-typography] :is(.workspace,.modal:not(.typography-modal)) .file-name{font-size:var(--ty-file-size);font-weight:var(--ty-file-weight);color:var(--ty-file-color)}
html[data-typography] .workspace :is(.event-title,.calendar-event){font-size:var(--ty-event-size);font-weight:var(--ty-event-weight);color:var(--ty-event-color)}

/* The editor keeps stable controls while samples and the workspace preview change. */
.modal.typography-modal{width:min(900px,calc(100vw - 28px))}.modal.typography-modal[open]{overflow-y:auto;overflow-x:hidden;scroll-padding-block:12px}.modal.typography-modal .modal-content{display:block;height:auto;min-height:0;max-height:none;overflow:visible}.modal.typography-modal form,.modal.typography-modal .modal-form-body{display:block;flex:none;height:auto;min-height:0;max-height:none;overflow:visible}.typography-modal .modal-heading h2{font-size:24px;color:#254d3c;font-weight:700}.typography-modal .typography-intro{font-size:14px;color:#405a50;line-height:1.8;margin:0 0 8px}.typography-modal .small-note{font-size:12px;color:#66766b;line-height:1.7}.typography-preview-note{font-size:13px;padding:10px 12px;background:#edf5eb;border:1px solid #cbdcc6;border-radius:9px;color:#355c3d}.typography-tree{margin:22px 0}.typography-branch{border-left:2px solid #c6d9c1;padding-left:15px;margin:24px 0}.typography-branch h3{font-size:17px;font-weight:700;color:#365d42;margin:0 0 10px}.typography-branch>.small-note{margin:0 0 8px}.typography-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid #e4ebe0;min-width:0}.typography-row-name{display:grid;gap:5px;min-width:0}.typography-row-name>strong{font-size:13px;line-height:1.5;color:#52644f;font-weight:600}.typography-sample{display:block;overflow-wrap:anywhere;line-height:1.45;min-width:0}.typography-controls{display:flex;align-items:end;gap:9px}.typography-modal .typography-controls label{display:block;font-size:12px;color:#53654e;margin:0;line-height:1.5}.typography-controls label>span{color:#71816c;font-size:11px}.typography-modal .typography-controls input,.typography-modal .typography-controls select{display:block;min-height:44px;height:44px;margin-top:4px;font-size:14px;padding:6px 8px;border:1px solid #cbdcc6;border-radius:8px;background:#fff;color:#34513b;box-sizing:border-box}.typography-modal .typography-controls input[type=number]{width:75px}.typography-modal .typography-controls input[type=color]{width:54px;padding:4px;cursor:pointer}.typography-modal .typography-controls select{width:84px}.typography-file-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}.typography-file-actions .button,.typography-add-level{min-height:48px!important;font-size:13px}.typography-modal .form-error{font-size:13px;line-height:1.7}.typography-modal .modal-actions{display:flex;gap:10px;position:static;bottom:auto;margin-bottom:0;background:#fff;padding:12px 0;box-shadow:0 -8px 12px #ffffffeb}.typography-modal .modal-actions .button{min-height:48px!important;font-size:14px}.typography-modal .modal-actions .primary{margin-left:auto}
@media(max-width:600px){.modal.typography-modal{width:calc(100vw - 20px)}.modal.typography-modal .modal-content{padding:20px 15px}.typography-branch{padding-left:10px}.typography-row{grid-template-columns:minmax(0,1fr);gap:10px;padding:14px 0}.typography-controls{justify-content:flex-start;gap:10px}.typography-controls label:last-child{flex:1}.typography-modal .typography-controls select{width:100%;min-width:80px}.typography-file-actions .button{flex:1 1 120px}.typography-modal .modal-actions .primary{flex:1}.typography-modal .modal-actions>.button{white-space:normal}.room-tree .tree-room{min-height:48px!important}.room-tree .tree-spacer{width:44px;flex-basis:44px}}

/* Direct font shortcuts retain the same personal semantic rules as Settings. */
.modal.typography-shortcut-modal{width:min(650px,calc(100vw - 28px))}.typography-shortcut-modal .modal-heading h2{overflow-wrap:anywhere}.typography-shortcut-row{margin:18px 0 8px}.typography-shortcut-row .typography-row{grid-template-columns:minmax(0,1fr);gap:12px;border-top:0;padding:8px 0}.typography-shortcut-row .typography-controls{justify-content:flex-start;gap:12px}.typography-shortcut-modal .typography-shortcut-reset{font-size:13px;min-height:48px!important}.typography-shortcut-modal .typography-intro{overflow-wrap:anywhere}
@media(max-width:600px){.modal.typography-shortcut-modal{width:calc(100vw - 20px)}.typography-shortcut-modal .modal-heading h2{font-size:21px}.typography-shortcut-row .typography-controls{gap:10px}}
.sidebar-heading{gap:8px;flex-wrap:wrap}.sidebar-heading .sidebar-create{min-height:48px;padding:8px 10px;font-size:12px;line-height:1.4;max-width:100%;white-space:normal}

/* Shared visual language. Geometry and surfaces stay separate from the
   personal typography rules below, and existing scroll containers stay intact. */
.button{border-radius:var(--radius-control);border-color:var(--border);box-shadow:0 1px 2px #1b3e2c04}
.button.primary{background:var(--teal);border-color:var(--teal);box-shadow:inset 0 1px 0 #ffffff12,0 2px 4px #1e513d12}
.button.primary:hover{background:var(--teal-dark);border-color:var(--teal-dark)}
.button.subtle{box-shadow:none}
.button.danger{background:var(--surface);border-color:#ead7d4}
.button.solid-danger{background:#a54c44;border-color:#a54c44;color:#fff}
.button.solid-danger:hover{background:#913f38;border-color:#913f38}
button:disabled{cursor:not-allowed}
.button:disabled{box-shadow:none}
.icon-button{border-radius:var(--radius-control)}
:is(button,a,input,textarea,select,summary):focus-visible{outline-color:var(--focus-ring)}
input:not([type=checkbox]):not([type=color]),select{border-radius:var(--radius-control);border-color:var(--border);background:var(--surface)}
input::placeholder,textarea::placeholder{color:#78867e}
input[type=checkbox]{accent-color:var(--teal)}
.nav-icon{width:20px;height:20px;flex-basis:20px}

.app-header{border-bottom-color:var(--border);box-shadow:0 1px 0 #213e2b03}
.group-switcher{border-color:#b9d3c3;border-radius:12px;background:#eff6f1}
.group-switcher:hover{border-color:#87ad98;background:#e7f2eb}
.group-switcher-action{padding-left:12px;border-left:1px solid #cee0d5}
.sidebar{background:var(--surface-soft);border-right-color:var(--border)}
.module-nav{padding-top:14px;padding-bottom:14px;border-bottom-color:var(--border)}
.module-nav button{border-radius:var(--radius-control)}
.module-nav button.selected{background:var(--teal-light);box-shadow:inset 0 0 0 1px #d2e5d9}
.module-nav button.selected:before{background:var(--teal);top:14px;bottom:14px;border-radius:0 3px 3px 0}
.sidebar-search input{background:var(--surface);border-color:var(--border)}
.room-tree .tree-row.selected{background:var(--teal-light);box-shadow:inset 0 0 0 1px #d2e5d9}
.room-tree .tree-row:hover{background:var(--surface-hover)}
.room-tree .tree-row.selected:hover{background:#e3efe7}
.tree-expander,.tree-add{border-radius:8px}
.sidebar-add{background:var(--surface);border-color:#c8d9ce}
.private-conversation{background:var(--surface);border-color:var(--border);border-radius:var(--radius-control)}
.private-conversation.selected{background:var(--teal-light);border-color:#b8d3c1}

.room-header{padding-top:24px;padding-bottom:20px}
.room-actions{padding-top:17px}
.storage-line{padding-top:8px;padding-bottom:8px;background:var(--surface-soft);border-bottom-color:var(--border)}
.room-tabs{min-height:56px;gap:10px;border-bottom-color:var(--border)}
.room-tabs button{border-radius:8px 8px 0 0}
.room-tabs button.selected{background:#f4f8f5}
.room-tabs button.selected:after{height:3px;border-radius:3px 3px 0 0;background:var(--teal)}
.message-search{border-bottom-color:var(--border)}
.message[data-message-id]{border-radius:var(--radius-control)}
.message[data-message-id]:focus-visible{background:var(--surface-hover)}
.message-reply{background:var(--surface-soft);border-color:var(--border);border-left-color:#7da78b;border-radius:var(--radius-control)}
.message-reply:hover{background:var(--surface-hover)}
.composer{border-color:#cbdccf;border-radius:var(--radius-card);box-shadow:0 2px 8px #1b422a06}
.composer:focus-within{border-color:#70a384;box-shadow:0 0 0 3px #e7f2eb}
.composer textarea{min-height:78px;padding:14px 16px 4px;line-height:1.65}
.composer-toolbar{padding-top:8px;padding-bottom:8px}
.avatar{border-radius:12px;box-shadow:inset 0 0 0 1px #12302108}

.section-papers{background:var(--surface-soft)}
.paper-grid{gap:16px}
.paper-card{padding:20px;border-radius:var(--radius-card);border-color:var(--border);box-shadow:0 1px 3px #24432e04;background:var(--surface)}
.paper-card:hover{background:var(--surface);border-color:var(--stroke-strong);box-shadow:0 4px 14px #24432e0b}
.paper-card-top{margin-bottom:12px}
.paper-card-icon{background:#eef5f0;border-radius:var(--radius-control)}
.paper-card-stats{border-top-color:var(--border)}
.file-link{background:var(--surface-soft);border-color:var(--border);border-radius:var(--radius-control)}
.file-link:hover{background:var(--surface-hover);border-color:var(--stroke-strong)}
.file-mark{background:#eef5f0;border-color:#dce8df;border-radius:7px}
.file-table,.calendar-grid{border-color:var(--border);border-radius:var(--radius-card)}
.file-table-head,.weekdays{background:var(--surface-soft);border-bottom-color:var(--border)}
.file-row{border-bottom-color:var(--border)}
.file-row:hover{background:#fafcfb}
.calendar-day{border-color:var(--border)}
.calendar-day.other-month{background:#fafcfb}
.calendar-day.selected-day{background:#eff6f1;box-shadow:inset 0 0 0 1px #bed7c6}
.calendar-day.today .day-number{background:var(--teal);color:#fff}
.calendar-event,.calendar-event.all-day{background:#eaf3ed;border-radius:7px}
.event-card{padding:14px 16px;border-color:var(--border);border-radius:var(--radius-card)}
.event-card:hover,.event-card:focus-within{background:var(--surface-soft);border-color:var(--stroke-strong)}
.segmented{border-color:var(--border);background:#eef3f0;border-radius:var(--radius-control)}
.segmented button{border-radius:7px}
.segmented button.selected{box-shadow:0 1px 3px #1d422d12}

.auth-layout{background:radial-gradient(ellipse at 18% 25%,#e9f2ec 0,transparent 55%),var(--surface-soft)}
.auth-intro h1,.auth-card h2{color:#254a37}
.auth-intro>p,.auth-card>.muted{color:var(--muted)}
.auth-card,.group-welcome-card{border-color:var(--border);border-radius:var(--radius-dialog);box-shadow:0 12px 40px #1d422d08,0 1px 3px #1d422d04}
.auth-card input{background:#fcfdfc;border-color:var(--border)}
.auth-card input:focus{background:var(--surface)}
.auth-tabs{background:#eef3f0;border-color:var(--border)}
.group-welcome{background:var(--surface-soft)}
.group-start-card,.group-choice,.settings-toggle{border-color:var(--border);border-radius:var(--radius-card)}
.group-start-card:hover,.group-choice:hover{background:var(--surface-hover);border-color:var(--stroke-strong)}
.modal{border-color:var(--border);border-radius:var(--radius-dialog);box-shadow:var(--shadow-float)}
.modal::backdrop{background:#152c224d}
.modal-actions{border-top-color:var(--border)}
.modal :is(fieldset,.settings-toggle,.client-download-card){border-color:var(--border);border-radius:var(--radius-card)}
.typography-branch{border-left-color:#c7dacf}
.typography-branch>summary{padding:10px 12px;background:var(--surface-soft);border-radius:var(--radius-control)}
.typography-branch>summary:hover{background:var(--surface-hover)}
.typography-branch[open]>summary{background:#edf5ef}
.typography-row{border-top-color:var(--border)}
.typography-controls .typography-row-reset{background:var(--surface-soft);border-color:var(--border);box-shadow:none}
.typography-controls .typography-row-reset:hover{background:var(--surface-hover);border-color:var(--stroke-strong)}
.typography-preview-note{background:#eff6f1;border-color:#ccdfd2;border-radius:var(--radius-control)}

/* One floating surface, with quiet rows rather than nested outlined cards. */
.content-context-menu{padding:6px;gap:2px;border-color:var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow-float)}
.content-context-menu .button{justify-content:flex-start;padding:10px 12px;min-height:48px!important;border-color:transparent;border-radius:8px;background:transparent;box-shadow:none;white-space:normal}
.content-context-menu .button:not(:disabled):hover{background:var(--surface-hover);border-color:transparent}
.content-context-menu .button.danger:not(:disabled):hover{background:#fcf0ed;border-color:transparent}
.content-context-menu .content-menu-note{padding:6px 10px;margin:0 0 4px;border-bottom:1px solid var(--border)}
.mention-menu{border-color:var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow-float)}
.mention-option[aria-selected=true]{background:var(--teal-light);box-shadow:inset 0 0 0 1px #c5ddce}
.toast{border-radius:12px;background:#234f3d;box-shadow:0 6px 22px #173d2c24}
:is(.sidebar,.main-content,.modal,.message-history,.group-picker-list){scrollbar-color:#b8ccc0 transparent}
@media(max-width:800px){
  .room-header{padding-top:20px;padding-bottom:16px}
  .room-actions{padding-top:0}
  .room-tabs{gap:4px;min-height:54px}
  .group-switcher-action{padding-left:10px}
  .event-card{padding:12px}
  .paper-card{padding:16px}
}

/* Independent text roles; each reset affects only its own semantic category. */
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.module-nav button,.module-nav button>span){font-size:var(--ty-navigation-size);font-weight:var(--ty-navigation-weight);color:var(--ty-navigation-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.sidebar-heading h2){font-size:var(--ty-directoryHeading-size);font-weight:var(--ty-directoryHeading-weight);color:var(--ty-directoryHeading-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.room-tabs button){font-size:var(--ty-tabs-size);font-weight:var(--ty-tabs-weight);color:var(--ty-tabs-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.room-description){font-size:var(--ty-description-size);font-weight:var(--ty-description-weight);color:var(--ty-description-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.empty-state p,.sidebar-hint,.pinned-files-hint,.section-caption p,.overview-heading>.muted,.calendar-heading .muted){font-size:var(--ty-helper-size);font-weight:var(--ty-helper-weight);color:var(--ty-helper-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(h1[data-typography-text="headingProject"]){font-size:var(--ty-headingProject-size);font-weight:var(--ty-headingProject-weight);color:var(--ty-headingProject-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(h1[data-typography-text="headingSubproject"]){font-size:var(--ty-headingSubproject-size);font-weight:var(--ty-headingSubproject-weight);color:var(--ty-headingSubproject-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(h1[data-typography-text="headingSection"]){font-size:var(--ty-headingSection-size);font-weight:var(--ty-headingSection-weight);color:var(--ty-headingSection-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(h1[data-typography-text="headingPaper"]){font-size:var(--ty-headingPaper-size);font-weight:var(--ty-headingPaper-weight);color:var(--ty-headingPaper-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(h1[data-typography-text="headingPrivate"]){font-size:var(--ty-headingPrivate-size);font-weight:var(--ty-headingPrivate-weight);color:var(--ty-headingPrivate-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.overview-heading h1:not([data-typography-text]),.group-welcome-card h1){font-size:var(--ty-headingOverview-size);font-weight:var(--ty-headingOverview-weight);color:var(--ty-headingOverview-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.calendar-heading h1){font-size:var(--ty-headingCalendar-size);font-weight:var(--ty-headingCalendar-weight);color:var(--ty-headingCalendar-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.composer textarea){font-size:var(--ty-composer-size);font-weight:var(--ty-composer-weight);color:var(--ty-composer-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.message-reply strong){font-size:var(--ty-quoteAuthor-size);font-weight:var(--ty-quoteAuthor-weight);color:var(--ty-quoteAuthor-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.message-reply-text,.message-reply>span:not(.message-reply-meta)){font-size:var(--ty-quoteBody-size);font-weight:var(--ty-quoteBody-weight);color:var(--ty-quoteBody-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.message-reply time){font-size:var(--ty-quoteTime-size);font-weight:var(--ty-quoteTime-weight);color:var(--ty-quoteTime-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.message-meta time,.message-read-meta time){font-size:var(--ty-messageTime-size);font-weight:var(--ty-messageTime-weight);color:var(--ty-messageTime-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.file-uploader){font-size:var(--ty-fileUploader-size);font-weight:var(--ty-fileUploader-weight);color:var(--ty-fileUploader-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.file-row>time){font-size:var(--ty-fileTime-size);font-weight:var(--ty-fileTime-weight);color:var(--ty-fileTime-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.file-size,.file-row>span:last-child,.pinned-file-details>span){font-size:var(--ty-fileSize-size);font-weight:var(--ty-fileSize-weight);color:var(--ty-fileSize-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.pinned-file-summary-description,.pinned-file-description textarea){font-size:var(--ty-fileDescription-size);font-weight:var(--ty-fileDescription-weight);color:var(--ty-fileDescription-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.event-time){font-size:var(--ty-eventTime-size);font-weight:var(--ty-eventTime-weight);color:var(--ty-eventTime-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.event-description){font-size:var(--ty-eventDescription-size);font-weight:var(--ty-eventDescription-weight);color:var(--ty-eventDescription-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.paper-card :is(h2,h3,strong)){font-size:var(--ty-paperCardTitle-size);font-weight:var(--ty-paperCardTitle-weight);color:var(--ty-paperCardTitle-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.paper-metadata,.paper-card-meta){font-size:var(--ty-paperInfo-size);font-weight:var(--ty-paperInfo-weight);color:var(--ty-paperInfo-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.paper-card-description){font-size:var(--ty-paperDescription-size);font-weight:var(--ty-paperDescription-weight);color:var(--ty-paperDescription-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.paper-card-stats){font-size:var(--ty-paperStats-size);font-weight:var(--ty-paperStats-weight);color:var(--ty-paperStats-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.breadcrumbs){font-size:var(--ty-breadcrumb-size);font-weight:var(--ty-breadcrumb-weight);color:var(--ty-breadcrumb-color)}
html[data-typography] :is(.workspace,.group-welcome,.modal:not(.typography-modal)) :is(.file-name,.pinned-file-name){font-size:var(--ty-file-size);font-weight:var(--ty-file-weight);color:var(--ty-file-color)}
.typography-branch>summary{min-height:48px;cursor:pointer;padding:8px 0;font-size:17px;line-height:1.5;font-weight:700;color:#365d42;overflow-wrap:anywhere}.typography-branch>summary small{font-size:12px;font-weight:400;color:#687c68;margin-left:8px}.typography-branch-content{padding-top:8px;min-width:0}.typography-row-description{font-size:12px;line-height:1.6;color:#68776b;overflow-wrap:anywhere}.typography-controls{flex-wrap:wrap}.typography-controls .typography-row-reset{min-height:48px!important;font-size:12px;padding:8px 10px;line-height:1.5;white-space:normal;max-width:100%}
@media(max-width:600px){.typography-controls .typography-row-reset{flex:1 0 100%;width:100%}.typography-controls label:has(select){flex:1}.typography-branch>summary{font-size:16px}.typography-row-description{font-size:12px}}

/* Conversation bubbles: presentation only; the stored message, reply and file
   records are shared with the existing context-menu and recovery workflows.
   Scope this surface to the normal discussion, leaving admin/read views intact. */
.discussion .message-search-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;flex:0 0 auto;padding:0 0 6px}
.discussion .message-search-toggle{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;font-size:12px;line-height:1.4;border:1px solid #e2eae4;border-radius:10px;background:#f7faf8}
.discussion .message-search-toggle:hover{background:#edf5ef;border-color:#c5d9cd}
.discussion .message-search-toggle[aria-expanded="true"]{background:#eaf3ed;border-color:#c5d9cd}
.discussion .message-search[hidden]{display:none}
.discussion .message-search{flex:0 0 auto;min-width:0;margin-bottom:8px;padding:6px 8px;background:#f7faf8;border:1px solid #e2eae4;border-radius:10px}
.discussion .message-search input{min-width:0}
.discussion .message-history{padding:12px 14px 18px;background:transparent;border-radius:12px}
.discussion .message[data-message-id]{display:flex;align-items:flex-start;gap:9px;width:100%;margin:0;padding:6px 0;background:transparent;border-radius:0}
.discussion .message[data-message-id].own-message{flex-direction:row-reverse}
.discussion .message[data-message-id]>.avatar{width:34px;height:34px;flex:0 0 34px;margin-top:1px;border-radius:9px}
.discussion .message[data-message-id]>.message-content{display:flex;flex:0 1 auto;flex-direction:column;align-items:flex-start;min-width:0;width:fit-content;max-width:min(82%,720px)}
.discussion .message.own-message>.message-content{align-items:flex-end}
.discussion .message-meta{display:flex;min-width:0;max-width:100%;gap:0;margin:0 0 3px;padding:0 2px;line-height:1.45}
.discussion .message-meta strong{font-size:var(--ty-author-size,12px);font-weight:var(--ty-author-weight,400);color:var(--ty-author-color,#66756d);overflow-wrap:anywhere}
.discussion .message-bubble{position:relative;min-width:0;max-width:100%;padding:9px 12px;border:1px solid #e0e7e2;border-radius:4px 12px 12px;background:#fff;box-shadow:0 1px 2px #173a2605;text-align:left}
.discussion .own-message .message-bubble{border-color:#c5decf;border-radius:12px 4px 12px 12px;background:#dff0e5}
.discussion .message-bubble::before{content:"";position:absolute;top:12px;left:-4px;width:7px;height:7px;transform:rotate(45deg);background:inherit;border-left:1px solid #e0e7e2;border-bottom:1px solid #e0e7e2;pointer-events:none}
.discussion .own-message .message-bubble::before{left:auto;right:-4px;border:0;border-top:1px solid #c5decf;border-right:1px solid #c5decf}
.discussion .message[data-message-id]:focus-visible{outline:none;background:transparent}
.discussion .message[data-message-id]:focus-visible .message-bubble{outline:2px solid var(--focus-ring);outline-offset:2px}
.discussion .message-text{min-width:0;max-width:100%;font-size:var(--ty-message-size,15px);font-weight:var(--ty-message-weight,400);color:var(--ty-message-color,#263c31);line-height:1.6;overflow-wrap:anywhere;word-break:normal}
.discussion .message-bubble>.message-reply{margin:0 0 7px;max-width:100%;background:#f5f8f6;padding:8px 10px}
.discussion .own-message .message-bubble>.message-reply{background:#ffffffa8;border-color:#bfd7c7;border-left-color:#7ba58b}
.discussion .message-attachments{min-width:0;max-width:100%;gap:6px;margin-top:7px}
.discussion .message-attachments:first-child{margin-top:0}
.discussion .message-attachments .file-link{display:grid;grid-template-columns:34px minmax(0,1fr) 16px;column-gap:8px;row-gap:2px;flex:1 1 240px;width:320px;max-width:100%;min-width:0;min-height:56px;padding:8px 9px;background:#f8faf9}
.discussion .message-attachments .file-mark{grid-column:1;grid-row:1/3;align-self:center}
.discussion .message-attachments .file-name{grid-column:2;min-width:0;max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.45}
.discussion .message-attachments .file-size{grid-column:2;grid-row:2;min-width:0;line-height:1.4}
.discussion .message-attachments .file-download-icon{grid-column:3;grid-row:1/3;align-self:center;margin:0}
.discussion .message-bubble>.small-note{margin:5px 0 0;font-size:12px;overflow-wrap:anywhere}
@media(max-width:800px){
  .discussion .message-history{padding:10px 9px 14px;border-radius:10px}
  .discussion .message[data-message-id]{gap:8px;padding:5px 0}
  .discussion .message[data-message-id]>.avatar{width:30px;height:30px;flex-basis:30px;border-radius:8px}
  .discussion .message[data-message-id]>.message-content{max-width:calc(100% - 44px)}
  .discussion .message-bubble{padding:8px 10px}
  .discussion .message-meta{margin-bottom:2px}
  .discussion .message-attachments .file-link{column-gap:6px;padding:8px;grid-template-columns:30px minmax(0,1fr) 16px}
  .discussion .message-attachments .file-mark{width:30px;flex-basis:30px}
}

/* Compact workspace chrome; saved text styles and touch target sizes stay intact. */
@media screen{
  .workspace .room-header{padding:10px var(--page-pad);gap:10px;align-items:flex-start;flex-wrap:wrap}
  .workspace .room-heading{flex:1 1 240px;min-width:0}
  .workspace .breadcrumbs{margin:0;gap:3px;line-height:1.35}
  .workspace .breadcrumbs button{padding:0 4px}
  .workspace .title-line{gap:6px}
  .workspace .title-line h1{overflow-wrap:anywhere}
  .workspace .room-description{margin-top:4px;line-height:1.65}
  .workspace .paper-metadata{margin:4px 0 0}
  .workspace .room-actions{padding:0;margin-left:auto;gap:4px;max-width:100%;align-self:flex-start;justify-content:flex-end}
  .workspace .room-actions .button{padding:5px 8px}
  .workspace .room-tabs{height:auto;min-height:44px;gap:2px}
  .workspace .room-tabs button{min-height:44px!important;padding:0 8px}
  .workspace .group-panel{padding:10px 8px 0}
  .workspace .group-current{padding:8px 10px}
  .workspace .module-nav{padding:8px;gap:2px}
  .workspace .module-nav button{padding:6px 10px;gap:8px}
  .workspace #sidebar-content{padding:12px 8px 10px}
  .workspace .sidebar-heading{padding:0 0 6px;gap:6px}
  .workspace .sidebar-heading .sidebar-create{padding:5px 8px;min-height:44px}
  .workspace .sidebar-search{margin:0 0 6px}
  .workspace .sidebar-search input{padding:6px 10px}
  .workspace .tree-row{min-height:44px;margin:1px 0}
  .workspace .tree-room{padding:6px 4px}
  .workspace .archive-toggle{margin:8px 0 0;padding:4px 0}
  .workspace .sidebar-add{margin:8px 0 0;padding:5px 8px;max-width:100%}
  .workspace .sidebar-footer{padding:8px 10px}
  .workspace .overview-heading{padding:14px var(--page-pad) 6px}
  .workspace .overview-heading h1{margin-bottom:4px}
  .workspace .section-papers{padding:12px var(--page-pad) 16px}
  .workspace .section-caption{gap:8px;margin-bottom:10px}
  .workspace .section-caption p{margin-top:2px}
  .workspace .paper-grid{gap:12px}
  .workspace .paper-card{padding:16px}
  .workspace .files-pane,.workspace .nodes-pane{padding:12px 0}
  .workspace .pane-toolbar{gap:8px;margin-bottom:8px}
  .workspace .pane-toolbar h2{margin-bottom:2px}
  .workspace .pane-toolbar .button,.workspace .calendar-toolbar .button,.workspace .calendar-heading>.button{padding:5px 8px}
  .workspace .calendar-heading{padding:12px var(--page-pad) 10px;gap:8px}
  .workspace .calendar-heading h1{margin-bottom:3px}
  .workspace .calendar-toolbar{padding:0 var(--page-pad) 10px;gap:8px}
  .workspace .discussion .message-search-tools{gap:6px;padding-bottom:4px}
  .workspace .composer{margin-top:8px}
  .workspace .composer textarea{padding:10px 12px 2px;min-height:70px;line-height:1.6}
  .workspace .composer-toolbar{padding:6px 8px;gap:8px}
  .workspace .composer-toolbar>.button{padding:5px 8px}
}
@media screen and (min-width:801px){
  .workspace{--page-pad:18px;--sidebar:248px;--header:64px}
  .workspace .app-header{padding:0 14px;gap:10px}
  .workspace .app-header .brand{min-width:96px;gap:8px}
  .workspace .app-header .group-switcher{flex-basis:240px;max-width:260px;min-width:140px}
  .workspace .header-right{gap:6px}
  .workspace .header-right .button{padding:5px 8px}
  .workspace .room-header{flex-direction:row}
}
@media screen and (max-width:800px){
  .workspace{--page-pad:12px}
  .workspace .room-header{padding-top:8px;padding-bottom:8px;gap:6px;flex-direction:column}
  .workspace .room-heading{flex:none;width:100%}
  .workspace .room-actions{align-self:flex-end}
  .workspace .room-tabs{min-height:48px}
  .workspace .room-tabs button{min-height:48px!important}
  .workspace .calendar-heading{padding-top:10px;padding-bottom:8px}
}

/* Files share one compact row; narrow screens scroll this list, not the page. */
.files-pane .pane-toolbar{margin-bottom:6px}
.file-help{position:relative;flex:0 0 auto}
.file-help-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;list-style:none;cursor:pointer;color:var(--muted,#627680);border-radius:8px}
.file-help-toggle::-webkit-details-marker{display:none}
.file-help-toggle::marker{content:""}
.file-help-toggle>span{display:flex;align-items:center;justify-content:center;width:19px;height:19px;border:1px solid currentColor;border-radius:50%;font-size:13px;font-weight:650;line-height:1}
.file-help-toggle:hover,.file-help[open]>.file-help-toggle{background:var(--surface-soft,#f5f8f6)}
.file-help-toggle:focus-visible{outline:2px solid var(--focus-ring,#2c735a);outline-offset:2px}
.file-help-content{position:absolute;top:100%;left:0;z-index:5;width:min(360px,calc(100vw - 48px));padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:0 8px 24px #173a261c;font-size:12px;line-height:1.7;color:var(--muted,#627680)}
.file-help-content p{margin:0}
.file-help-content p+p{margin-top:6px}
.compact-file-table{margin-top:0;overflow-x:auto;max-width:100%;border-radius:8px;overscroll-behavior-x:contain}
.compact-file-table table{width:100%;min-width:660px;border-collapse:collapse;text-align:left}
.compact-file-table .file-table-head,.compact-file-table .file-row{display:table-row;padding:0}
.compact-file-table th{font-size:12px;font-weight:500;color:var(--muted,#627680)}
.compact-file-table :is(th,td){padding:4px 8px;vertical-align:middle;white-space:nowrap}
.compact-file-table th{padding-top:8px;padding-bottom:8px}
.compact-file-table .file-name-cell{width:100%;min-width:180px;max-width:0}
.compact-file-table .file-link{width:100%;padding:0;gap:7px;min-height:44px}
.compact-file-table .file-mark{width:27px;height:28px;flex-basis:27px;font-size:8px;border-radius:5px}
.compact-file-table .file-name{max-width:none;flex:1 1 auto}
.compact-file-table .file-download-icon{flex:0 0 16px}
.compact-file-table .file-uploader{display:block;width:108px;max-width:108px}
.compact-file-table .file-size-cell{min-width:66px}
.compact-file-table .file-size-cell>.file-size{display:block;font-size:12px;white-space:nowrap}
.compact-file-table .file-row-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:4px;margin:0}
.compact-file-table .file-row-actions :is(.button,.file-rename-button){min-height:44px;padding:5px 7px;font-size:12px;white-space:nowrap}
.compact-file-table .file-row-actions .file-pin-button{min-width:88px!important}
@media print{.file-help,.compact-file-table td:last-child,.compact-file-table th:last-child{display:none}.compact-file-table{overflow:visible}.compact-file-table table{min-width:0}}
