/* Geometry is shared by every material; circles belong only to avatars and swatches. */
html[data-theme] body :is(button,select,input:not([type=checkbox]):not([type=radio]),textarea){border-radius:8px!important;font-family:inherit}
html[data-theme] body :is(.snap-card,.panel,.draggable-card,.kpi-card,.added-panel,.custom-add-tile,.catalog-gallery>button,dialog,.friend-card,.friend-preview,.swaga-message){border-radius:12px!important}
html[data-theme] body .catalog-gallery>button{overflow:hidden;aspect-ratio:auto;text-align:start;padding:14px!important;min-width:0}
html[data-theme] body .custom-add-tile{min-height:220px}
html[data-theme] body :is(.snap-card,.added-panel){padding-top:14px!important}
html[data-theme] body .center-day-header{align-items:flex-start;margin-top:0!important;padding-top:0!important}
html[data-theme=clay] body{font-family:'Nunito Sans',sans-serif;font-weight:600}
html[data-theme=clay] body :is(h1,h2,h3,strong){font-weight:800}
html[data-theme=clay] body button{background:var(--material-control,var(--panel));box-shadow:var(--material-control-shadow,4px 4px 7px #0003,-3px -3px 7px #fff9)!important}
html[data-theme=paper] body{font-family:Caveat,cursive}
html[data-theme=pop] body{font-family:Rubik,sans-serif;font-weight:700;color:#111}
html[data-theme=matrix] body,html[data-theme=retro] body{font-family:Consolas,monospace}
html[data-theme=studio] body,html[data-theme=glass] body{font-family:Inter,sans-serif}
html[data-screen=fhd] body :is(input,select,button,textarea){font-size:14px!important;min-height:36px}
html[data-screen=fhd] body :is(h3,.panel-header,.center-day-header){font-size:18px!important}
html.account-required .app-layout-wrapper{visibility:hidden;pointer-events:none}
.account-dialog form,.security-dialog form{display:grid;gap:14px}.account-dialog label,.security-dialog label{display:grid;gap:6px}.account-dialog input,.security-dialog input{width:100%;box-sizing:border-box;min-height:40px}.security-dialog{width:min(500px,94vw)}.security-dialog pre{white-space:pre-wrap;user-select:all}.security-dialog canvas{max-width:100%;background:white}
.friends-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,390px);gap:24px;height:calc(100vh - 260px);min-height:400px}.friends-list-pane{overflow:auto;min-width:0;padding:6px 12px 20px 4px}.friends-chat-pane{border:1px solid var(--border);border-radius:12px;background:var(--panel);display:flex;flex-direction:column;min-height:0;padding:16px}.friends-chat-log{flex:1;overflow:auto;min-height:0;display:flex;flex-direction:column;gap:12px;padding:12px 0}.friend-chat-message{padding:12px;border:1px solid var(--border);border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:90%}.friend-chat-message.mine{align-self:flex-end;background:var(--accent-soft)}.friends-chat-pane form{display:flex;gap:8px}.friends-chat-pane input{min-width:0;flex:1}.friend-chat-open{margin:12px 0}.friends-space{min-width:0}
@media(max-width:850px){.friends-layout{grid-template-columns:1fr;height:auto}.friends-chat-pane{height:480px}.friends-list-pane{max-height:60vh}}
html[data-theme=clay]{--theme-font:'Flowdeck Nunito',sans-serif;--theme-heading-font:'Flowdeck Nunito',sans-serif}
html[data-theme=pop]{--theme-font:'Flowdeck Rubik',sans-serif;--theme-heading-font:'Flowdeck Rubik',sans-serif}
html[data-theme=studio],html[data-theme=glass]{--theme-font:'Flowdeck Inter',sans-serif;--theme-heading-font:'Flowdeck Inter',sans-serif}
html[data-theme=matrix],html[data-theme=retro]{--theme-font:Consolas,monospace;--theme-heading-font:Consolas,monospace}
html[data-theme][data-scheme] body :is(#daysPanel,#activeDayPanel,#chatPanel,#card-discord,#card-subtasks-mandatory,#card-subtasks-general,.snap-card,.kpi-card,.monthly-overview,.custom-add-tile,.catalog-gallery>button,.added-panel,dialog){border-radius:12px!important}
html[data-theme][data-scheme] body :is(#daysPanel,#activeDayPanel,#chatPanel,#card-discord,#card-subtasks-mandatory,#card-subtasks-general){padding-top:14px!important}
html[data-theme][data-scheme] body :is(.catalog-gallery>button,.custom-add-tile){border-radius:12px!important}
@media(min-width:851px){
 .friends-space:not([hidden]){display:flex;flex-direction:column;overflow:hidden;padding-block-end:12px}
 .friends-space>.friends-head{flex:none}
 .friends-space>.friends-layout{flex:1;min-height:0;height:auto}
 .friends-list-pane{min-height:0;padding-bottom:10px}
}
html[data-theme][data-screen=fhd] body :is(#daysPanel,#activeDayPanel,#chatPanel,#card-subtasks-mandatory,#card-subtasks-general,header,.custom-space,.friends-space) :is(button,input,select,textarea){font-size:16px!important;min-height:40px}
html[data-theme][data-screen=fhd] body :is(#activeDayPanel,.snap-card) h2{font-size:25px!important}
html[data-theme][data-screen=qhd] body :is(#daysPanel,#activeDayPanel,#chatPanel,#card-subtasks-mandatory,#card-subtasks-general,header,.custom-space,.friends-space) :is(button,input,select,textarea){font-size:14px!important;min-height:34px}
.account-dialog input[type=checkbox]{width:18px;min-height:18px;height:18px}.account-dialog label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}
html[data-theme][data-screen=qhd] body :is(#activeDayPanel,#daysPanel,#chatPanel,#card-subtasks-mandatory,#card-subtasks-general,header,.custom-space) :is(#swaga-scale-priority,button,input,select,textarea){font-size:14px!important}
html[data-theme][data-screen=fhd] body :is(#activeDayPanel,#daysPanel,#chatPanel,#card-subtasks-mandatory,#card-subtasks-general,header,.custom-space) :is(#swaga-scale-priority,button,input,select,textarea){font-size:16px!important}
html[data-theme] body .creator-dialog .creator-portrait>span{color:#fff!important;background:#171a20!important;opacity:1!important;text-shadow:none!important;border:1px solid #ffffff66!important;font-weight:700!important}
