/* Keep activation and second-factor controls accessible on mobile keyboards. */
#login-form [hidden],#modal [hidden]{display:none!important}
#login-mfa120:not([hidden]){display:grid!important;gap:8px}
#login-form input,#invite-check173 input,#invite-activate173 input{min-height:46px;font-size:16px;touch-action:manipulation}
#login-mfa120 input{letter-spacing:.25em;direction:ltr;text-align:center}
.project-grid .project-card{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;padding:18px;align-content:start}
.project-grid .project-cover{width:64px!important;height:64px!important;min-height:0!important;border-radius:50%;overflow:hidden;align-self:start;background:var(--ws-surface)}
.project-grid .project-cover img{width:100%!important;height:100%!important;object-fit:cover!important;position:static!important}
.project-grid .project-category{display:none}
.project-grid .project-body{padding:0;min-width:0}
.project-grid .project-body h3{margin:2px 0 12px}
.project-grid .project-body>p:not(.notice){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.8}
.project-grid .project-body .actions{margin-top:10px}
.project-grid .project-body>button[data-project-history120]{margin-top:10px}
.team-page .conversation-head{min-height:72px!important;padding:12px 16px!important;display:flex!important;gap:12px;align-items:center;justify-content:space-between}
.team-page .conversation-head>div:first-child{flex:1;min-width:0}
.team-page .conversation-head h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:18px!important;margin:4px 0!important;word-break:normal!important}
.team-page .conversation-head #members{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin:0;font-size:11px}
.team-page .header-actions{display:flex;flex-wrap:wrap;gap:6px;flex-shrink:0}
.team-page #rooms .room-row{min-height:70px!important;padding:10px!important;border-radius:0!important;margin:0!important;border-width:0 0 1px!important;gap:10px!important;align-items:center!important}
.team-page #rooms .room-avatar{width:44px!important;height:44px!important;min-width:44px!important;border-radius:50%!important;overflow:hidden}
.team-page #rooms .room-copy169 b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.team-page #rooms .room-snippet{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:11px}
.team-page #send{padding:8px!important;gap:6px!important}
.team-page #message-content{min-height:44px!important;max-height:140px;resize:vertical;font-size:16px}
@media(max-width:600px){.project-grid{grid-template-columns:1fr!important}.project-grid .project-card{padding:14px;grid-template-columns:56px minmax(0,1fr);gap:10px}.project-grid .project-cover{width:52px!important;height:52px!important}.team-page .conversation-head{flex-wrap:wrap}.team-page .header-actions{width:100%}.login-wrap{min-height:100svh;height:auto;padding:12px}.login-form-side{padding:24px 18px!important}dialog{max-height:90svh}}

/* Prevent Chromium automatic darkening for intentionally light palettes. */
:root:not([data-theme=dark]):not([data-theme=spadana-dark]):not([data-theme=cyberpunk]):not([data-theme=oldmoney]){color-scheme:only light!important}
