.app-detail-main { flex: 1; padding: 116px 24px 104px; }
.app-detail-container { width: min(100%, 760px); margin: 0 auto; }
.app-detail-heading { margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.app-detail-title { min-width: 0; }
.app-detail-title h1 { font-size: 1.35rem; font-weight: 650; }
.app-detail-back { width: 34px; height: 34px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); background: var(--surface); }
.app-detail-back:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.app-detail-back:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.app-detail-back svg { width: 18px; height: 18px; }
.tool-card { min-height: 540px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tool-body { min-height: 0; flex: 1; padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.tool-body > * { width: 100%; }
.tool-btn { min-height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.tool-btn-primary { border-color: var(--primary); color: var(--on-primary); background: var(--primary); }
.tool-btn-primary:hover { background: var(--primary-dark); }
.tool-btn-secondary { border-color: var(--border); color: var(--text); background: var(--bg-secondary); }
.tool-btn-secondary:hover { background: var(--bg-tertiary); }

@media (max-width: 768px) {
    .app-detail-main { padding: 88px 12px calc(96px + env(safe-area-inset-bottom)); }
    .app-detail-heading { margin-bottom: 16px; }
    .app-detail-title h1 { font-size: 1.1rem; }
    .tool-card { min-height: 520px; }
    .tool-body { padding: 20px 14px; }
}

.pomodoro-display { text-align: center; }
.pomodoro-clock { margin-bottom: 20px; }
.pomodoro-current-time { display: block; color: var(--text); font-size: 2rem; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pomodoro-current-date { min-height: 1.4em; margin-top: 4px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.4; }
.pomodoro-progress { position: relative; width: 180px; height: 180px; margin: 0 auto 12px; }
.pomodoro-progress svg { transform: rotate(-90deg); }
.pomodoro-progress-bg { fill: none; stroke: var(--bg-tertiary); stroke-width: 8; }
.pomodoro-progress-bar { fill: none; stroke: var(--primary); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.pomodoro-timer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 2.75rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pomodoro-status { margin-top: 4px; color: var(--text-secondary); line-height: 1.4; }
.pomodoro-controls { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.pomodoro-settings { display: flex; justify-content: center; gap: 16px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.pomodoro-setting { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.85rem; }
.pomodoro-setting input { width: 70px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); font-size: 0.85rem; text-align: center; }
.pomodoro-setting input:focus { border-color: var(--primary); outline: none; }
.pomodoro-stats { display: flex; justify-content: center; gap: 32px; margin-top: 8px; color: var(--text-secondary); font-size: 0.85rem; }
.pomodoro-stats strong { color: var(--primary); font-size: 1rem; }
.pomodoro-reminder-controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; color: var(--text-secondary); font-size: 0.8rem; }
.pomodoro-sound-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.pomodoro-sound-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pomodoro-switch { position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--text-muted); transition: background 0.2s ease; }
.pomodoro-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.2s ease; }
.pomodoro-sound-toggle input:checked + .pomodoro-switch { background: var(--primary); }
.pomodoro-sound-toggle input:checked + .pomodoro-switch::after { transform: translateX(14px); }
.pomodoro-sound-toggle input:focus-visible + .pomodoro-switch { outline: 2px solid currentColor; outline-offset: 2px; }
.pomodoro-preview { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; border-radius: var(--radius); color: var(--text-secondary); background: var(--bg-secondary); cursor: pointer; transition: color var(--transition), background-color var(--transition); }
.pomodoro-preview:hover { color: var(--primary); background: var(--bg-tertiary); }
.pomodoro-preview svg { width: 17px; height: 17px; }
.pomodoro-toast { position: fixed; right: 24px; bottom: 24px; z-index: 200; width: min(360px, calc(100vw - 32px)); box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--text); background: var(--surface); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); transition: opacity var(--transition), transform var(--transition); }
.pomodoro-toast[hidden] { display: none; }
.pomodoro-toast.is-visible { opacity: 1; transform: translateY(0); }
.pomodoro-toast-icon { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--primary-dark); background: var(--primary-soft); }
.pomodoro-toast-icon svg { width: 19px; height: 19px; }
.pomodoro-toast-content { min-width: 0; display: flex; flex: 1; flex-direction: column; text-align: left; line-height: 1.35; }
.pomodoro-toast-content strong { font-size: 0.92rem; font-weight: 600; }
.pomodoro-toast-content span { margin-top: 2px; color: var(--text-secondary); font-size: 0.78rem; }
.pomodoro-toast-close { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; border-radius: var(--radius-sm); color: var(--text-muted); background: transparent; cursor: pointer; }
.pomodoro-toast-close:hover { color: var(--text); background: var(--bg-tertiary); }
.pomodoro-toast-close svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
    .pomodoro-toast { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); }
}
