:root{--bg:#f5f5f7;--panel:#fff;--ink:#1c1c1e;--line:#e8e8ed;--radius:22px;--shadow:0 4px 18px #00000006}
.field-caption{display:block;font-size:13px;font-weight:650;margin:8px 0 5px}
.date-control{min-width:0}.date-open{width:100%;justify-content:flex-start;text-align:left}
.date-options{padding:12px;margin-top:8px;border:1px solid var(--line);border-radius:16px;background:#fafafa}
.date-options[hidden]{display:none}.date-presets{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.date-options>label{display:block;font-size:13px;margin-bottom:6px}.date-options>input{width:100%;min-width:0;margin-bottom:10px}
.dictate{margin-top:6px}.dictation-status{display:block;font-size:12px;color:#666;margin-top:5px}
.bottom-nav{display:none}
@media(max-width:900px){
 body{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
 .bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:30;background:#fffffff5;border-top:1px solid #e6e6eb;padding:8px 4px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -3px 15px #00000005}
 .bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:48px;font-size:10px;font-weight:650;color:#65656d}
 .bottom-nav a[aria-current=page]{color:#007aff}.bottom-nav .nav-symbol{font-size:21px;line-height:24px}
 body.menu-open .bottom-nav{visibility:hidden}.card{border-radius:20px;padding:15px}.page-head h1{font-size:23px}.section-title{margin-top:20px}.section-title h2{font-size:17px}
 .textarea-large{min-height:125px!important}.topbar{padding-top:5px;padding-bottom:5px}.brand-logo{width:56px;height:56px}
}

.chat-compose{position:sticky;bottom:0;background:#fff;padding:12px 0;border-top:1px solid var(--line)}@media(max-width:900px){.chat-compose{bottom:calc(66px + env(safe-area-inset-bottom))}.chat-compose textarea{min-height:72px!important}}

.module-nav{margin:12px 0}.module-nav>summary{padding:12px;cursor:pointer}.card article{overflow-wrap:anywhere}.card form input[type=file]{max-width:100%}

.chat-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#eaf0fb;color:#152f57;font-size:14px;font-weight:700}
.chat-heading{display:flex;align-items:center;gap:12px}.chat-heading h2{min-width:0;overflow-wrap:anywhere}
.chat-preview{min-width:0;display:flex;flex-direction:column;gap:4px}.chat-preview small{overflow-wrap:anywhere}
.dm-person{gap:10px;align-items:center}.dm-message blockquote{margin:8px 0;padding:8px 10px;border-left:3px solid #7289aa;background:#ffffff75;border-radius:5px;white-space:pre-wrap;overflow-wrap:anywhere}
.dm-conversation .chat-compose{background:#fff;z-index:8}.dm-conversation>.stack{margin-top:12px}
.dm-message details form{margin:8px 0}.dm-message>div{white-space:pre-wrap;overflow-wrap:anywhere}
@media(min-width:901px){.dm-list>details:not([open])>summary{cursor:pointer}.dm-layout{align-items:start}.dm-list{position:sticky;top:115px}.dm-person .badge{flex-shrink:0}}
