/* CallUp 1.5 release candidate: UI refinement, no structural layout changes. */
:root{--blue:#1d58d8;--blue-dark:#1746b5;--muted:#596b84;--line:#dce4ef;--paper:#f1f5fb;--cu-focus:#1d58d8;--cu-shadow:0 4px 16px #152d5510,0 1px 2px #152d5508;--cu-surface:#fff;--cu-stroke:#dce4ef}
html[data-theme=dark]{--cu-focus:#9bbcff;--cu-shadow:0 5px 18px #0003;--cu-surface:#172236;--cu-stroke:#35465e;--muted:#a8b8cf}
.button:not(.secondary):not(.ghost):not(.dark):not(.danger):not(.admin-danger-button){background:linear-gradient(135deg,#2865ee,#174dc8);box-shadow:0 3px 8px #174dc829}
.button:not(.secondary):not(.ghost):not(.dark):not(.danger):not(.admin-danger-button):hover{background:#1746b5}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--cu-focus);outline-offset:3px}
.button.secondary{border-color:var(--cu-stroke);box-shadow:0 1px 2px #152d5508}
.button,.icon-button{transition:background .15s,border-color .15s,box-shadow .15s,transform .15s}
.button:active:not(:disabled),.icon-button:active:not(:disabled){transform:translateY(0) scale(.98)}
.modal{border:1px solid var(--cu-stroke);border-radius:22px;box-shadow:0 20px 64px #0b193b35;color:inherit;max-height:calc(100dvh - 28px);overscroll-behavior:contain}
.modal-heading{padding-bottom:15px;border-bottom:1px solid var(--cu-stroke);margin-bottom:20px;gap:12px}
.modal-heading h2{font-weight:760;line-height:1.25;overflow-wrap:anywhere;min-width:0}
.close-dialog{width:44px;height:44px;background:#edf2fa;color:#253956;border:1px solid transparent}
.close-dialog:hover{background:#dfe9fa}
html[data-theme=dark] .close-dialog{background:#24374f;color:#e1ebff}
.form-error{font-size:13px;overflow-wrap:anywhere}
.field input,.field select,.field textarea{border-color:var(--cu-stroke)}
.field label{font-size:13px}
/* Social feed / workspace: existing one top mobile menu and no right sidebar. */
.workspace:not(.admin-workspace) .social-sidebar{background:linear-gradient(175deg,#141f32 0%,#0d1522 100%);box-shadow:2px 0 14px #0c18361a}
.primary-side button.active{background:linear-gradient(115deg,#2867f4,#1b50d2);box-shadow:0 6px 18px #0b52dd36}
.primary-side button:focus-visible,.social-sidebar a:focus-visible{outline-color:#a3c2ff}
.primary-top button.active{font-weight:740}
.workspace:not(.admin-workspace) .topbar{box-shadow:0 3px 12px #1425420b}
.sc-root{--sc-muted:#586d88;--sc-border:#dce4ef}
html[data-theme=dark] .sc-root{--sc-muted:#adbed6;--sc-border:#35465e}
.sc-composer,.sc-post,.sc-team-card,.sc-profile-card,.team-card,.doc-card,.settings-card,.stat-card,.managed-user,.managed-group,.admin-quick,.admin-mfa-card{box-shadow:var(--cu-shadow);border-color:var(--cu-stroke)}
.sc-composer,.sc-post,.team-card{border-radius:19px}
.sc-post-header .sc-author{min-width:0}
.sc-post-body{line-height:1.65;letter-spacing:.01em}
.sc-post-actions button{min-height:44px;font-size:13px;font-weight:620;padding:4px 8px}
.sc-post-actions button:hover{background:#eaf0fc}
html[data-theme=dark] .sc-post-actions button:hover{background:#263d5a}
.sc-post-photos{overflow:hidden;border-radius:13px}
.sc-composer>textarea{border-color:var(--cu-stroke)}
.sc-composer>textarea:focus{box-shadow:0 0 0 3px #246bfd20}
.team-card-actions button{min-height:44px}
.directory-heading h1,.admin-view-title h1{letter-spacing:-.035em}
/* More readable search list and visible focus on light and dark themes. */
.global-search-modal .helper{margin-top:13px;color:var(--muted)}
.global-search-result{border-color:var(--cu-stroke);border-radius:13px;padding:13px;gap:12px;box-shadow:0 1px 3px #12234a08}
.global-search-result:hover,.global-search-result:focus-visible{background:#f0f5ff;border-color:#5886e6}
.global-search-result small,.search-detail-meta{color:#526985;font-size:12px}
.global-search-result strong{font-size:15px;line-height:1.35}
.search-snippet{font-size:13px;line-height:1.5;color:#41536e}
html[data-theme=dark] .global-search-result small,html[data-theme=dark] .search-detail-meta,html[data-theme=dark] .search-snippet{color:#b6c7dd}
html[data-theme=dark] .global-search-result:hover,html[data-theme=dark] .global-search-result:focus-visible{background:#243852}
.search-filters select{min-height:44px;font-size:14px}
/* Administration and public presentation retain their own navigation. */
.admin-workspace .stat-card strong{font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.admin-workspace .admin-quick,.admin-workspace .managed-user,.admin-workspace .managed-group{border-radius:15px}
.admin-workspace .admin-row-actions button{min-height:40px}
.admin-workspace .admin-view-title p{color:var(--muted)}
.landing-nav .button,.hero-actions .button{box-shadow:0 8px 20px #1d58d829}
.landing-nav a:focus-visible{outline-offset:5px}
@media(max-width:720px){
 .modal{padding:18px;width:calc(100% - 20px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:18px}
 .modal-heading{margin-bottom:15px;padding-bottom:11px}
 .modal-heading h2{font-size:20px}
 .modal input:not([type=checkbox]):not([type=radio]),.modal select,.modal textarea{font-size:16px}
 .global-search-result{padding:11px;gap:10px}
 .global-search-modal .global-search-results{max-height:36dvh}
 .global-search-modal .helper{font-size:12px;line-height:1.55}
 .sc-post-actions button{font-size:12px;min-height:44px;padding:4px 3px;gap:5px}
 .sc-post,.sc-composer{border-radius:16px}
 .workspace:not(.admin-workspace) .app-search-button{width:38px;height:38px;border-radius:12px}
 .primary-top button{min-height:44px}
 .admin-workspace .admin-row-actions button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.button,.icon-button,.sc-post,.team-card{transition:none!important;transform:none!important}}
/* The story strip previously remained white in dark mode. */
html[data-theme=dark] .clips-stories{--clip-ink:#e0ebfb;--clip-muted:#adbed6;--clip-line:#35465e;--clip-blue:#9bbcff;background:#172236;color:#e0ebfb;border-color:#35465e}
html[data-theme=dark] .clips-stories>header span{background:#294165;color:#b8d0ff}
html[data-theme=dark] .clips-story-ring b{border-color:#172236;background:#243b60;color:#b6d4ff}
html[data-theme=dark] .clips-story-ring i{background:#243b60;border-color:#486080;color:#b6d4ff}
html[data-theme=dark] .clips-story-add>span{background:#20324c;border-color:#739ddd;color:#b6d4ff}
html[data-theme=dark] .clips-story-add>strong,html[data-theme=dark] .clips-story-empty,html[data-theme=dark] .clips-story-ring>small{color:#b4c7e0}
.clips-stories>header .clips-text-button{min-height:36px}

/* 1.6: dedicated search, larger touch target; no language selector inside app. */
.workspace:not(.admin-workspace) .app-search-button{display:grid!important;width:44px;height:44px;border-radius:14px;border:1px solid var(--cu-stroke);background:var(--cu-surface);color:var(--blue);box-shadow:var(--cu-shadow)}
.workspace:not(.admin-workspace) .app-search-button:hover{background:#eaf0fc}html[data-theme=dark] .workspace:not(.admin-workspace) .app-search-button{color:#a6c4ff;background:#243650}
@media(min-width:821px){.workspace:not(.admin-workspace) .primary-top{flex:1;justify-content:center}.workspace:not(.admin-workspace) .primary-top button{padding-inline:clamp(6px,1vw,16px)}}
