/* UTIL-005 Pomodoro — kế thừa font Arial của bộ giao diện tiện ích; không ghi đè font icon. */
.pd-stage{position:relative;container-type:inline-size;display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 16px 22px;border:1px solid var(--sou-line);border-radius:18px;background:#fff4f2;text-align:center;--pd-accent:#b3261e;--pd-accent-dark:#911d17}
.pd-stage[data-current-phase=short]{background:#ecf8f0;--pd-accent:#167542;--pd-accent-dark:#0f5a32}
.pd-stage[data-current-phase=long]{background:#edf3ff;--pd-accent:#1948c6;--pd-accent-dark:#1239a0}
.pd-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;width:100%}
.pd-tabs{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--sou-line);border-radius:14px;background:rgba(255,255,255,.75)}
.pd-tabs button{min-height:44px;padding:8px 16px;border:0;border-radius:10px;background:transparent;color:var(--sou-ink);font:700 15px Arial,"Helvetica Neue",Helvetica,sans-serif;cursor:pointer}
.pd-tabs button:hover{background:rgba(16,36,94,.06)}
.pd-tabs button[aria-pressed=true]{background:var(--pd-accent);color:#fff}
.pd-fs{min-height:44px}
.pd-phase{margin:8px 0 0;font-size:15px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--pd-accent)}
.pd-time{margin:0;font-weight:700;line-height:1;white-space:nowrap;color:var(--sou-ink);font-variant-numeric:tabular-nums;font-size:clamp(56px,19vw,150px);font-size:clamp(56px,26cqw,150px)}
.pd-cycle{margin:0;font-weight:700;color:var(--sou-ink)}
.pd-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;min-height:12px}
.pd-dot{width:12px;height:12px;border:2px solid var(--pd-accent);border-radius:50%;background:transparent}
.pd-dot.is-done{background:var(--pd-accent)}
.pd-dot.is-current{box-shadow:0 0 0 3px rgba(179,38,30,.2)}
.pd-task{display:none}
.pd-next{margin:0;color:var(--sou-muted);font-size:15px}
.pd-auto{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;padding:10px 14px;border:1px solid var(--sou-line);border-radius:12px;background:#fff;font-weight:700;color:var(--sou-ink)}
.pd-auto .sou-button{min-height:44px}
.pd-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;width:100%;max-width:560px;margin-top:6px}
.pd-controls .sou-button{flex:1 1 auto;min-height:50px;white-space:nowrap}
.pd-controls .pd-main{flex:2 1 200px;font-size:18px;background:var(--pd-accent)}
.pd-controls .pd-main:hover{background:var(--pd-accent-dark)}
.pd-stage.is-fs{justify-content:center;min-height:100vh;padding:24px;border:0;border-radius:0}
.pd-stage.is-fs .pd-time{font-size:min(24vw,38vh)}
.pd-stage.is-fs .pd-task:not(:empty){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:min(90vw,900px);margin:0;font-size:min(4vw,28px);font-weight:700;color:var(--sou-ink);overflow-wrap:anywhere;unicode-bidi:plaintext}
.pd-label-field{max-width:640px;margin-top:16px}
.pd-pending p,.pd-conflict p{margin:0 0 8px}
.pd-stats{margin-top:20px}
.pd-stats-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.pd-stats-head h2{font-size:20px}
.pd-links{display:flex;flex-wrap:wrap;gap:8px}
.pd-links .sou-button{min-height:44px}
.pd-stats .sou-help{margin-top:8px}
.pd-settings{display:none;margin-top:14px;padding:16px;border:1px solid var(--sou-line);border-radius:16px;background:#fbfcff}
.pd-settings.is-open{display:block}
.pd-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.pd-sheet-head h2{font-size:18px}
.pd-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:4px 16px}
.pd-grid>*{min-width:0}
.pd-settings .sou-check{align-items:center}
.pd-settings .sou-check input{margin:0}
.pd-settings .sou-toolbar .sou-button{min-height:44px}
.pd-danger{margin-top:14px;padding-top:12px;border-top:1px solid var(--sou-line)}
.pd-danger .sou-button{min-height:44px}
.pd-backdrop{display:none}
@media (max-width:860px){
 .pd-settings,.pd-settings.is-open{margin:0}
 .pd-settings.is-open{position:fixed;left:0;right:0;bottom:0;z-index:10001;max-height:86vh;overflow:auto;padding:16px 16px calc(20px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:#fff;box-shadow:0 -12px 40px rgba(16,36,94,.25)}
 .pd-backdrop{display:block;position:fixed;inset:0;z-index:10000;background:rgba(16,36,94,.45)}
 .pd-settings.is-open>.sou-status{position:sticky;bottom:0;margin:12px 0 0;box-shadow:0 -6px 18px rgba(16,36,94,.12)}
}
@media (max-width:600px){
 .pd-stage{padding:12px 10px 18px}
 .pd-top{flex-wrap:nowrap;gap:6px}
 .pd-tabs{flex:1 1 auto;flex-wrap:nowrap;min-width:0}
 .pd-tabs button{flex:1 1 0;min-width:0;padding:8px 4px;font-size:14px}
 .pd-fs{flex:none;width:46px;padding:0}
 .pd-fs [data-fs-label]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .pd-controls .sou-button{flex:1 1 40%}
 .pd-controls .pd-main{flex:1 1 100%}
 .pd-links{width:100%}
 .pd-links .sou-button{flex:1 1 auto}
 .pd-settings .sou-toolbar .sou-button{flex:1 1 100%}
}
@media print{.pd-top,.pd-controls,.pd-auto,.pd-links,.pd-settings,.pd-label-field{display:none!important}}
