/* Personal focus widgets, deliberately independent of the shared forms. */
.pomo-panel { border-top: 3px solid var(--accent); }
.pomo-panel .eyebrow { margin-bottom: 4px; }
.pomo-panel h2 { font-size: 1.05rem; }
.pomo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pomo-metrics > div { display: flex; flex-direction: column; gap: 8px; }
.pomo-metrics > div > span { color: var(--muted); font-size: .85rem; }
.pomo-metrics strong { font-size: 1.7rem; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; }
.pomo-metrics strong span { font-size: .82rem; font-weight: 400; }
.pomo-metrics small { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.pomo-dashboard-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.pomo-dashboard-bottom > p { font-size: .88rem; max-width: 600px; overflow-wrap: anywhere; line-height: 1.5; }
.pomo-dashboard-bottom .actions { flex-shrink: 0; }
.pomo-action-link { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pomo-count { font-size: .78rem; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
body.has-pomodoro-dock { padding-bottom: 180px; }
#pomodoro-dock { position: fixed; z-index: 12; right: 22px; bottom: 18px; width: min(420px, calc(100vw - 36px)); background: #fff; border: 1px solid #c6d3e1; border-top: 3px solid var(--accent); border-radius: 10px; padding: 15px 17px; box-shadow: 0 8px 35px #132b4624; }
.pomo-dock-main { display: flex; align-items: flex-start; gap: 18px; }
.pomo-dock-label { font-size: .7rem; color: var(--muted); display: block; }
.pomo-dock-main [data-pomodoro-clock] { display: block; font-size: 1.75rem; font-variant-numeric: tabular-nums; font-weight: 650; line-height: 1.35; min-width: 80px; }
.pomo-dock-text { min-width: 0; }
.pomo-dock-text b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .85rem; line-height: 1.45; }
.pomo-dock-text small { display: block; max-width: 285px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; color: var(--muted); margin-top: 4px; font-size: .76rem; }
.pomo-dock-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pomo-dock-note { font-size: .7rem; color: var(--muted); margin-top: 10px; }
.pomo-idle { display: flex; align-items: center; gap: 10px; }
.pomo-idle > span { flex: 1; }
.pomo-idle b { font-size: .85rem; }
.pomo-idle small { display: block; font-size: .72rem; margin-top: 4px; color: var(--muted); }
.pomo-error { margin-top: 10px; color: var(--danger); font-size: .78rem; line-height: 1.5; }
#pomodoro-cue { position: fixed; z-index: 13; right: 22px; top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 15px; max-width: min(560px, calc(100vw - 36px)); border: 1px solid #dcb58d; border-left: 4px solid var(--accent); border-radius: 8px; background: #fff8ef; box-shadow: var(--shadow); }
#pomodoro-cue > span { font-size: .88rem; flex: 1 1 230px; }
.pomo-controls { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; padding: 10px 20px 25px; }
.pomo-large-clock { font-size: clamp(3rem, 10vw, 5rem); font-weight: 500; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.pomo-controls h3, .pomo-controls p { overflow-wrap: anywhere; max-width: 100%; }
.pomo-controls p { line-height: 1.6; }
.pomo-goal { background: #f1f5fa; padding: 15px; border-radius: 6px; line-height: 1.5; overflow-wrap: anywhere; }
.pomo-summary .pomo-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
.pomo-summary > p { font-size: .83rem; line-height: 1.6; }
.pomo-summary details { border-top: 1px solid var(--line); padding: 18px 0; margin-top: 12px; }
.pomo-summary summary { font-weight: 600; cursor: pointer; }
.pomo-summary details > p { margin-top: 15px; font-size: .8rem; line-height: 1.5; }
.pomo-summary table { margin-top: 15px; }
.pomo-summary td:first-child { max-width: 350px; overflow-wrap: anywhere; }
.pomo-history { border-bottom: 1px solid var(--line); padding: 20px 0; }
.pomo-history:last-child { border-bottom: 0; }
.pomo-history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.pomo-history-head b { font-size: .93rem; overflow-wrap: anywhere; }
.pomo-history-head .tag { flex-shrink: 0; }
.pomo-history > small { font-size: .78rem; color: var(--muted); }
.pomo-history > p { margin-top: 10px; font-size: .88rem; overflow-wrap: anywhere; line-height: 1.5; }
@media (max-width: 650px) {
  .pomo-metrics { grid-template-columns: 1fr 1fr; gap: 18px; }
  .pomo-metrics > div:last-child:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; }
  .pomo-dashboard-bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
  #pomodoro-dock { right: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 12px 14px; }
  #pomodoro-cue { top: 10px; right: 10px; max-width: calc(100vw - 20px); }
  .pomo-panel .panel-head { align-items: flex-start; flex-wrap: wrap; }
  .pomo-action-link { flex-direction: column; align-items: flex-end; }
}
@media print { #pomodoro-dock, #pomodoro-cue, [data-pomodoro] { display: none !important; } body.has-pomodoro-dock { padding-bottom: 0; } }
