.social-dialog{width:min(620px,94vw);max-height:88dvh;overflow:auto}.social-dialog form{display:grid;gap:14px;padding-top:16px}.social-dialog label{display:grid;gap:6px}.social-dialog label:has(input[type=checkbox]){display:flex;gap:10px;align-items:center}.social-dialog input:not([type=checkbox]),.social-dialog select{width:100%;box-sizing:border-box;padding:10px;min-height:40px}.social-dialog input[type=checkbox]{width:18px;min-height:18px}.social-dialog fieldset{border:1px solid var(--border);border-radius:8px;max-height:260px;overflow:auto;display:grid;gap:12px;padding:14px}.social-section-head,.messenger-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.social-section-head{margin:24px 0 14px}.social-card{border:1px solid var(--border);border-radius:12px;padding:16px;margin:12px 0;background:var(--card,var(--panel))}.social-card h3{margin:8px 0}.social-card button{margin:8px 8px 0 0;padding:8px 12px}.social-card small{display:block;color:var(--text-muted)}.social-card progress{display:block;width:100%;height:8px;accent-color:var(--accent)}.challenge-card{border-inline-start:3px solid var(--accent)}.developer-badge{display:inline-block;font-size:11px;color:var(--accent);border:1px solid currentColor;padding:3px 7px;border-radius:6px}.social-count{position:absolute;top:0;right:0;background:var(--accent);color:var(--bg);font-size:11px;min-width:16px;line-height:16px;border-radius:6px}.friends-nav{position:relative}.friend-chat-message strong{display:block;font-size:12px;color:var(--accent);margin-bottom:6px}.friend-chat-message small{display:block;font-size:10px;opacity:.65;text-align:end;margin-top:6px}.friend-chat-message.pending{opacity:.65}.friend-typing{min-height:22px;font-size:12px;color:var(--text-muted);display:flex;gap:6px;align-items:center}.friend-typing i{font-style:normal;letter-spacing:3px;animation:typing-dots 1s ease-in-out infinite}.friends-chat-pane form textarea{flex:1;min-width:0;resize:none;max-height:140px;padding:12px}.friends-chat-pane .messenger-head h2{font-size:18px;margin:0}.friends-chat-pane .messenger-head button{font-size:12px;padding:8px}.friends-chat-log{overscroll-behavior:contain}.hour-range-dialog{width:min(600px,94vw)}.hour-range-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:18px 0}.hour-range-grid button{min-height:40px!important}.hour-range-grid button[aria-pressed=true]{background:var(--accent)!important;color:var(--bg)!important}.hour-range-open{margin-top:10px}.social-error{color:var(--accent)}
@keyframes typing-dots{0%,100%{opacity:.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.friend-typing i{animation:none}}
.messenger-challenges{display:grid;gap:8px;max-height:170px;overflow:auto;flex-shrink:0;margin-top:12px}.messenger-challenges:empty{display:none}.messenger-challenges section{border:1px solid var(--border);border-inline-start:3px solid var(--accent);border-radius:8px;padding:10px}.messenger-challenges strong,.messenger-challenges small{display:block;overflow-wrap:anywhere}.messenger-challenges small{font-size:11px;color:var(--text-muted)}.messenger-challenges strong{font-size:12px}.messenger-challenges button{font-size:12px;padding:5px 10px;margin-top:5px}.social-card .friend-avatar{float:inline-start;margin-inline-end:12px}.social-dialog .catalog-chart{height:260px}
/* Equal friend cards, one explicit grant, theme-aware creator identity. */
html[data-theme] body .friends-grid {align-items:stretch;grid-auto-rows:1fr}
html[data-theme] body .friend-card {min-width:0;box-sizing:border-box;gap:12px;overflow:visible}
html[data-theme] body .friend-card.friend-developer {border:2px solid var(--accent)!important}
html[data-theme] body .friend-card .friend-preview {min-height:158px!important;padding:12px!important;display:flex!important;flex-direction:column;align-items:stretch;justify-content:space-between;border-radius:10px!important;box-sizing:border-box}
html[data-theme] body .friend-identity {position:relative;min-height:56px;align-items:flex-start;padding-top:6px;gap:10px}
html[data-theme] body .friend-identity>div {flex:1;min-width:0;padding-top:2px}
html[data-theme] body .friend-developer .friend-identity>div {padding-right:92px}
html[data-theme] body .friend-identity .developer-badge {position:absolute;right:0;top:0;font-size:11px;line-height:1.4;font-weight:850;color:var(--accent)!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;white-space:nowrap}
html[data-theme] body .friend-preview-stats {display:grid;grid-template-columns:1fr 1fr;gap:6px}
html[data-theme] body .friend-preview-stats span {min-width:0;font-size:11px;overflow-wrap:anywhere;line-height:1.5}
html[data-theme] body .friend-card :is(.friend-chat-open,.friend-activity-open) {width:100%;min-height:40px!important;margin:0;box-sizing:border-box;border-radius:10px!important}
html[data-theme] body .friend-card .friend-sharing-all {display:flex!important;align-items:center;gap:12px;min-height:68px;margin-top:auto;box-sizing:border-box;padding:12px 0;line-height:1.5;cursor:pointer}
html[data-theme] body .friend-sharing-all input[type=checkbox] {appearance:none!important;flex:0 0 38px;width:38px!important;min-width:38px!important;height:22px!important;min-height:22px!important;padding:0!important;margin:0!important;border-radius:7px!important;border:1px solid var(--border)!important;background:var(--card-2,var(--card))!important;box-shadow:none!important;position:relative;cursor:pointer}
html[data-theme] body .friend-sharing-all input::after {content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:4px;background:var(--text-muted);transform:none}
html[data-theme] body .friend-sharing-all input:checked {background:var(--accent-soft)!important;border-color:var(--accent)!important}
html[data-theme] body .friend-sharing-all input:checked::after {transform:translateX(16px);background:var(--accent)}
html[data-theme] body .friend-sharing-all input:focus-visible {outline:2px solid var(--accent);outline-offset:3px}
html[data-theme] body button:disabled {cursor:default}
html body dialog.shared-activity-dialog {width:min(1000px,94vw)!important;max-width:1000px!important;height:min(800px,88dvh)!important;max-height:88dvh!important;overflow:auto!important;padding:24px!important}
.shared-charts-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.shared-charts-grid>h3,.shared-charts-grid>p {grid-column:1/-1}
.shared-chart-card {min-width:0;padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--card)}
.shared-chart-card h4 {margin:0 0 10px}
.shared-chart-card .catalog-chart {height:280px;min-height:280px;overflow:auto}
html[data-theme] body .dashboard-clock {top:32%;gap:2px}
html[data-theme] body .dashboard-clock .creator-button {pointer-events:auto;margin:0 0 2px!important;min-height:26px!important;padding:3px 12px!important;font-size:11px!important;line-height:1.3;display:flex;align-items:center;gap:5px}
.dashboard-clock .creator-button svg {width:12px;height:12px}
html[data-theme=paper] body :is(.btn-mini.btn-cyan,.btn-mini.btn-danger-pill,.btn-mini.btn-cyan-pill,.swaga-send-btn) {background:var(--pencil)!important;color:var(--paper-stock)!important;border:1px solid var(--pencil)!important;border-radius:9px!important;box-shadow:1px 2px 0 #403d3626!important;font-weight:700!important}
html[data-theme=paper] body :is(button,input,select,textarea) {font-family:'Flowdeck Pencil',cursive!important}
.cloud-session-row {flex-wrap:wrap;overflow-wrap:anywhere}
.cloud-session-row small {flex-basis:100%;color:var(--text-muted)}
@media(max-width:700px){.shared-charts-grid{grid-template-columns:1fr}html[data-theme] body .dashboard-clock{position:static;transform:none;margin-inline:auto}.friend-identity .developer-badge{font-size:10px!important}}
html[data-theme=paper] body :is(#activeDayPanel,#card-subtasks-mandatory,#card-subtasks-general,#chatPanel) button.btn-mini:is(.btn-cyan,.btn-danger-pill,.btn-cyan-pill),html[data-theme=paper] body #chatPanel button.swaga-send-btn {background:var(--pencil)!important;color:var(--paper-stock)!important;border:1px solid var(--pencil)!important;border-radius:8px!important;box-shadow:1px 2px 0 #403d3626!important}
/* Keep the creator action prominent above the clock. */
html[data-theme] body .dashboard-clock {top:12%;gap:4px}
html[data-theme] body .dashboard-clock .creator-button {min-height:36px!important;padding:7px 20px!important;font-size:14px!important;font-weight:750!important;margin:0 0 3px!important}
html[data-theme] body .dashboard-clock .creator-button svg {width:17px;height:17px}
html[data-theme] body .friends-search {max-width:760px;flex-wrap:wrap}
html[data-theme] body .friends-search>button {min-height:40px!important;align-self:flex-end;white-space:nowrap}
@media(max-width:700px){html[data-theme] body .dashboard-clock{position:static;transform:none}html[data-theme] body .dashboard-clock .creator-button{min-height:34px!important;font-size:13px!important}.friends-search>button{align-self:stretch!important}}
.friends-nav{position:relative}
.friend-notification-badge:not([hidden]),.friend-chat-count:not([hidden]){
 display:inline-grid;place-items:center;min-inline-size:1.2rem;min-block-size:1.2rem;padding:0 3px;
 border-radius:5px;background:var(--accent);color:var(--bg-base);font:bold .65rem/1 system-ui,sans-serif;
}
.friend-notification-badge{position:absolute;inset-block-start:2px;inset-inline-end:2px}
.friend-chat-count{margin-inline-start:6px}
