:root{
  color-scheme:light;
  --bg:#f3f6f8;
  --panel:#ffffff;
  --line:#dce5e9;
  --text:#1b2b34;
  --muted:#71818a;
  --cyan:#51cbbb;
  --red:#dc4c58;
  --amber:#d69226;
}
body{background:linear-gradient(180deg,#eaf4f3 0,#f4f7f8 250px,var(--bg) 100%);color:var(--text)}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{width:100%;max-width:100%;overflow-x:hidden}
.shell{width:100%;max-width:860px;min-width:0}
.conversations{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
.conversation-card{min-width:0;max-width:100%}
.conversation-card-head,.conversation-card-foot,.conversation-copy,.conversation-names{min-width:0;max-width:100%}
.panel{background:var(--panel);border-color:var(--line);box-shadow:0 5px 18px #253b4610}
.eyebrow{color:#168f83}
.icon-button{background:#fff;border-color:var(--line);color:#168f83}
.login-panel p,.muted,.account,time,.message-count{color:var(--muted)}
#login-error[data-kind="pending"]{color:var(--muted)}
label{color:#435660}
input{background:#fff;color:var(--text);border-color:#cbd8de}
.primary,.secondary{background:#65d7c7;color:#103c39}
.secondary:disabled{background:#e3f3f0;color:#4f7c76}
.text-button{color:#647780}
.filter{border-color:#d1dee3;color:#52656e}
.filter.active{background:#d9f4ef;color:#13534d;border-color:#b8e9e0}
.badge{background:#e8eef1;color:#465a63}
.badge.warning{background:#fff1d7;color:#8a5a0d}
.badge.error,.badge.critical{background:#fde6e8;color:#a52d39}
.empty{color:var(--muted)}
footer{color:#7e8d94}
.conversation-card{color:var(--text)}
.conversation-card:hover{border-color:#a7d9d2}
.account-avatar{background:linear-gradient(145deg,#d5f1eb,#e6f0f3);color:#247c72}
.conversation-names .program{color:var(--muted)}
.preview{color:#687982}
.preview b{color:#384d56}
.back-button{background:#eaf2f4;color:#187e74}
.older-wrap .secondary{background:#eef4f6;color:#425861;border-color:#d4e0e4}
.chat-message{background:#fff;border-color:#dce5e9;box-shadow:0 3px 12px #253b460a}
.chat-message pre{color:#263942}
.chat-message.highlight{border-color:#33aa9c;box-shadow:0 0 0 2px #33aa9c22}
.loading{color:var(--muted)}
.conversation-heading #chat-updated{font-size:10px}
.shell.chat-open{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
body.chat-open{overflow:hidden}
.shell.chat-open .topbar{flex:0 0 auto;margin:0 0 12px}
.shell.chat-open #dashboard:not([hidden]){display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.shell.chat-open #conversation-view:not([hidden]){display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.shell.chat-open .conversation-toolbar{flex:0 0 auto}
.shell.chat-open .new-message-wrap{flex:0 0 auto}
.shell.chat-open .chat-timeline{flex:1 1 auto;height:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.shell.chat-open footer{display:none}
body.dashboard-open{height:100%;overflow:hidden;overscroll-behavior:none}
.shell.dashboard-open{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-top:calc(36px + env(safe-area-inset-top));padding-bottom:calc(10px + env(safe-area-inset-bottom))}
.shell.dashboard-open .topbar{flex:0 0 auto;margin:0 0 12px}
.shell.dashboard-open #dashboard:not([hidden]){display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.shell.dashboard-open #main-toolbar{flex:0 0 auto}
.shell.dashboard-open #inbox-view:not([hidden]){flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:4px}
.shell.dashboard-open #conversation-view:not([hidden]){display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.shell.dashboard-open footer{display:none}
.shell.dashboard-open.chat-open{padding-top:calc(8px + env(safe-area-inset-top))}
.shell.dashboard-open.chat-open .topbar{display:none}
.shell.dashboard-open.chat-open #main-toolbar,.shell.dashboard-open.chat-open #inbox-view{display:none}
html.chat-open{height:100%;overflow:hidden;overscroll-behavior:none}
body.chat-open{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
.shell.chat-open .chat-timeline{touch-action:pan-y}
.conversation-heading strong{font-size:19px}
.conversation-heading .muted{font-size:14px}
.shell.dashboard-open:not(.chat-open){padding-top:calc(10px + env(safe-area-inset-top))}
.shell.dashboard-open:not(.chat-open) .topbar{margin-top:0;margin-bottom:12px}
.shell.dashboard-open:not(.chat-open) #main-toolbar{padding:10px 16px 6px}
.shell.dashboard-open:not(.chat-open) #main-toolbar .text-button{padding:4px 8px}
