.widget-layer{position:fixed;inset:0;pointer-events:none;z-index:80}
.floating-widget{position:absolute;pointer-events:auto;width:min(310px,calc(100vw - 16px));max-height:min(470px,calc(100dvh - 16px));overflow:auto;background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 35px #0002}
.floating-widget header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 16px;cursor:move;touch-action:none;position:sticky;top:0;background:var(--pale);z-index:1}
.floating-widget header button{font-size:22px;min-width:32px}
.widget-body{padding:14px 16px}.widget-body p{margin:8px 0;line-height:1.5}.widget-body small{color:var(--muted)}
.widget-clock{display:block;font-size:28px;color:var(--blue);font-variant-numeric:tabular-nums;margin:10px 0}
.widget-body summary{cursor:pointer;margin-top:12px}.widget-current{font-weight:700;color:var(--blue)}.widget-activity{padding:12px 0;border-bottom:1px solid var(--line)}
.widget-controls{display:flex;gap:12px;flex-wrap:wrap}.widget-switch{display:flex;align-items:center;gap:10px}.widget-switch svg{width:24px;height:24px}.widget-switch[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--blue)}
#widget-settings{margin-top:22px}.progress-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px}
.progress-card{display:grid;gap:12px}.progress-card h3{margin:0}.progress-card progress{width:100%;height:10px;accent-color:var(--blue)}.progress-card small{color:var(--muted)}
@media print{.widget-layer{display:none}}
.widget-switch{width:48px;height:48px;padding:0;justify-content:center}

/* Profile tools stay beneath the account card, independent of password height. */
.profile-account-column{display:flex;flex-direction:column;gap:20px;min-width:0}.profile-account-column>section:first-child{flex:1}.profile-account-column #widget-settings{margin:0}
.workspace-shell .tabs{display:flex;flex-wrap:wrap;max-width:100%;width:fit-content;box-sizing:border-box;gap:4px}.workspace-shell .tab{min-width:0;white-space:normal;overflow-wrap:anywhere;flex:0 1 auto}
@media(max-width:600px){.workspace-shell .tabs{width:100%}.workspace-shell .tab{flex:1 1 110px;padding:10px 12px}}
.progress-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:16px;margin-bottom:16px}.progress-filters label{display:grid;gap:7px;min-width:0;color:var(--muted);font-size:13px}.progress-filters select{width:100%;min-width:0}
.floating-widget header button{display:grid;place-items:center;padding:4px}.floating-widget header svg{width:20px;height:20px}
.bells-body{text-align:center}.bells-body>p{font-size:13px}.bells-body .widget-clock{display:table;margin:10px auto 16px;padding:6px 12px;border-radius:12px;background:var(--pale);font-size:26px}.bells-toggle{display:flex;justify-content:center;padding:7px;background:var(--pale);border-radius:9px;list-style:none}.bells-toggle::-webkit-details-marker{display:none}.bells-toggle svg{width:20px;height:20px}.bells-body details[open] .bells-toggle svg{transform:rotate(180deg)}.bell-row{display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;margin:10px 0;font-size:13px}.bell-time{white-space:nowrap;background:var(--pale);padding:6px 8px;border-radius:9px;font-variant-numeric:tabular-nums}
.widget-body textarea{display:block;box-sizing:border-box;width:100%;min-height:150px;resize:vertical;max-height:260px;line-height:1.5;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px}.notes-footer{display:flex;justify-content:space-between;gap:8px;margin-top:8px}

.ui-icon{display:inline-block;width:18px;height:18px;vertical-align:middle;flex-shrink:0}.button .ui-icon{margin-right:6px}.quiet .ui-icon{pointer-events:none}

.floating-widget[data-widget="bells"]{max-height:min(620px,calc(100dvh - 16px))}
