/* 番茄钟与白噪音 */
.app-card--pomodoro { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.app-icon.pomo-mini {
    border: 0; padding: 0; cursor: pointer; background: transparent; overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px rgba(15,23,42,.16), 0 1px 3px rgba(15,23,42,.12);
    transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease;
}
.app-icon.pomo-mini:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 14px 28px rgba(15,23,42,.22); }
.app-icon.pomo-mini img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }

/* 2x2 实时番茄卡片 */
.app-card--pomodoro.is-2x2 { align-items: stretch; }
.pomo-big {
    position: relative; width: 100%; aspect-ratio: 1 / 1; border: 0; border-radius: 22px; padding: 14px;
    background: linear-gradient(145deg, #ff6b6b 0%, #e03131 100%); color: #fff; cursor: pointer;
    display: flex; flex-direction: column; justify-content: space-between; text-align: left;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 26px rgba(224,49,49,.28);
    transition: transform .18s ease, box-shadow .18s ease;
}
.pomo-big:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 16px 32px rgba(224,49,49,.34); }
.pomo-big-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; opacity: .9; font-weight: 500; }
.pomo-big-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); }
.pomo-big.is-running .pomo-big-dot { background: #69db7c; box-shadow: 0 0 0 4px rgba(105,219,124,.28); }
.pomo-big-time { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .5px; line-height: 1.1; }
.pomo-big-sub { font-size: 11.5px; opacity: .88; display: flex; justify-content: space-between; align-items: center; }

/* 弹窗 */
.pm-panel {
    position: relative; width: min(440px, 100%); max-height: calc(100vh - 48px); overflow-y: auto;
    border-radius: 18px; background: #fff; color: #1a1f2e;
    box-shadow: 0 28px 80px rgba(8,12,22,.34);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
.pm-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 20px; border-bottom: 1px solid rgba(15,23,42,.06); }
.pm-title { margin: 0; font-size: 15px; font-weight: 600; }
.pm-body { padding: 18px 22px 22px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pm-modes { display: inline-flex; padding: 4px; border-radius: 12px; background: #f1f5f9; gap: 4px; }
.pm-modes button {
    border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font: inherit; font-size: 13px;
    color: #64748b; cursor: pointer; font-weight: 500; transition: all .15s ease;
}
.pm-modes button.is-active { background: #fff; color: #e03131; box-shadow: 0 2px 6px rgba(15,23,42,.08); }
.pm-ring-wrap { position: relative; width: 210px; height: 210px; display: grid; place-items: center; }
.pm-ring { width: 210px; height: 210px; transform: rotate(-90deg); }
.pm-ring-bg { fill: none; stroke: #f1f5f9; stroke-width: 10; }
.pm-ring-fg { fill: none; stroke: #ef4444; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .35s linear, stroke .2s ease; }
.pm-ring-fg.is-break { stroke: #10b981; }
.pm-dial-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.pm-clock { font-size: 42px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; line-height: 1; }
.pm-state { font-size: 12.5px; color: #64748b; }
.pm-controls { display: flex; align-items: center; gap: 10px; }
.pm-btn {
    border: 0; border-radius: 11px; height: 40px; padding: 0 22px; font: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; background: #f1f5f9; color: #334155; transition: transform .12s ease, opacity .15s ease;
}
.pm-btn:hover { opacity: .92; }
.pm-btn:active { transform: scale(.97); }
.pm-btn.is-primary { background: linear-gradient(135deg, #ff6b6b, #e03131); color: #fff; min-width: 120px; box-shadow: 0 6px 18px rgba(224,49,49,.28); }
.pm-btn.is-break { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 6px 18px rgba(16,185,129,.28); }
.pm-noise { width: 100%; background: #f8fafc; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.pm-noise-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #475569; font-weight: 500; }
.pm-noise-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pm-noise-chips button {
    border: 1px solid #e2e8f0; background: #fff; color: #475569; border-radius: 8px; padding: 5px 11px;
    font: inherit; font-size: 12px; cursor: pointer; transition: all .15s ease;
}
.pm-noise-chips button.is-active { background: #1e293b; color: #fff; border-color: #1e293b; }
.pm-vol { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #64748b; }
.pm-vol input { flex: 1; accent-color: #ef4444; }
.pm-stats { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #64748b; padding-top: 4px; border-top: 1px solid rgba(15,23,42,.06); }
.pm-stats b { color: #1e293b; font-weight: 600; }
:root[data-theme="dark"] .pm-panel { background: #1b1f26; color: #f1f5f9; }
:root[data-theme="dark"] .pm-head { border-bottom-color: rgba(255,255,255,.08); }
:root[data-theme="dark"] .pm-modes, :root[data-theme="dark"] .pm-noise { background: rgba(255,255,255,.06); }
:root[data-theme="dark"] .pm-modes button.is-active { background: #2d3440; color: #ff8787; }
:root[data-theme="dark"] .pm-ring-bg { stroke: rgba(255,255,255,.08); }
:root[data-theme="dark"] .pm-btn { background: rgba(255,255,255,.1); color: #e2e8f0; }
:root[data-theme="dark"] .pm-noise-chips button { background: #242a34; border-color: rgba(255,255,255,.1); color: #cbd5e1; }
:root[data-theme="dark"] .pm-noise-chips button.is-active { background: #ef4444; border-color: #ef4444; color: #fff; }
:root[data-theme="dark"] .pm-stats { border-top-color: rgba(255,255,255,.08); }
:root[data-theme="dark"] .pm-stats b { color: #f8fafc; }
