:root{--accent: #ff7a00;--accent-weak: #ffefe3;--break-accent: #40a9ff;--break-accent-weak: #e6f7ff;--text: #222;--muted: #666;--border: #eee;--bg: #fff}*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Hiragino Sans,Noto Sans JP,Yu Gothic UI,Yu Gothic,Meiryo,sans-serif;color:var(--text);background:var(--bg)}.page{min-height:100vh;display:flex;flex-direction:column}.center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px}.app-header{display:grid;grid-template-columns:minmax(36px,1fr) auto minmax(88px,1fr);align-items:center;padding:12px 14px}.app-title{position:static;transform:none;justify-self:center;font-weight:700;font-size:14px;color:var(--text);display:flex;flex-direction:column;line-height:1.2;align-items:center;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60vw}.right-icons{justify-self:end}.app-subtitle{font-size:10px;color:var(--muted);font-weight:500;margin-top:2px;text-align:center}.right-icons{display:flex;gap:8px;align-items:center}.icon-btn{border:none;background:#fff;border-radius:10px;width:36px;height:36px;display:grid;place-items:center;color:var(--text);padding:0;line-height:0}.icon-btn.ok{color:var(--accent);background:var(--accent-weak)}.icon-btn svg{display:block}.icon-btn img{display:block;width:22px;height:22px}.icon-btn:focus,.icon-btn:active{outline:none;box-shadow:none}.circle{width:280px;height:280px;border-radius:50%;display:grid;place-items:center;position:relative;box-shadow:0 10px 28px #00000014;background:linear-gradient(180deg,#fff,#fafafa)}.circle-time{font-variant-numeric:tabular-nums;font-size:64px;font-weight:800;transform:translateY(6px)}.circle-mode{position:absolute;bottom:32px;font-size:12px;color:var(--accent);background:var(--accent-weak);border:none;padding:2px 10px;border-radius:999px;font-weight:600}.circle-mode.break{color:var(--break-accent);background:var(--break-accent-weak)}.circle-time,.circle-mode{position:relative;z-index:1}.ring{position:absolute;top:0;right:0;bottom:0;left:0;transform:rotate(-90deg);pointer-events:none}.ring-track{stroke:var(--accent-weak)}.ring-track.break{stroke:var(--break-accent-weak)}.ring-progress{stroke:var(--accent)}.ring-progress.break{stroke:var(--break-accent)}.controls{display:flex;gap:16px;margin-top:22px}.ctrl-btn{border:none;background:#fff;color:var(--text);width:56px;height:56px;border-radius:999px;display:grid;place-items:center;padding:0;line-height:0}.ctrl-btn.primary{background:var(--accent);color:#fff}.ctrl-btn svg{display:block}.ctrl-btn:focus,.ctrl-btn:active{outline:none;box-shadow:none}.title{margin:0 0 8px;font-size:22px}.subtitle{margin:0;color:var(--muted);font-size:13px}.timer{display:flex;align-items:center;justify-content:center;gap:12px;margin:28px 0 12px}.time{font-variant-numeric:tabular-nums;font-size:64px;font-weight:700}.mode{display:inline-block;padding:4px 10px;border-radius:999px;border:1px solid var(--border);background:var(--accent-weak);color:var(--accent);font-weight:600;font-size:12px}.row{display:flex;gap:10px;flex-wrap:wrap}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:#fff;color:var(--text);padding:10px 14px;border-radius:10px;cursor:pointer;font-weight:600;outline:none}button:hover{background:#fafafa}button.primary{background:var(--accent);color:#fff}button.ghost{background:transparent}.section{padding-top:8px;border-top:1px solid var(--border);margin-top:12px}.notice{font-size:12px;color:var(--muted)}.small-note{font-size:11px;color:var(--muted);margin-top:4px;max-width:240px}.nobr{display:inline-block;white-space:nowrap}.decision{margin-top:16px;margin-bottom:24px;padding:10px;border-radius:14px;background:#fff;box-shadow:0 2px 10px #0000000f;min-height:140px;width:clamp(320px,92vw,420px);align-self:center;display:flex;flex-direction:column;justify-content:flex-start;position:relative}.spacer{height:8px}.corner-icon{position:absolute;right:10px;bottom:10px;width:40px;height:40px;pointer-events:none;opacity:.35}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.choice-card{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:#fff;border:1px solid var(--border);text-align:left;transition:background-color .15s ease,color .15s ease,border-color .15s ease}.choice-card.primary{background:var(--accent);border-color:var(--accent);color:#fff}.choice-card.primary .choice-title{color:#fff}.choice-card.primary .choice-desc{color:#ffffffe6}.choice-card.disabled{opacity:.5;pointer-events:none}.choice-card:not(.primary):hover{background:#fafafa}.choice-card.primary:hover{background:#ff8a1a;border-color:#ff8a1a;color:#fff}.choice-card.primary:hover .choice-title{color:#fff}.choice-card.primary:hover .choice-desc{color:#fffffff2}.choice-icon{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;background:#fff;color:var(--accent);border:1px solid var(--border)}.choice-card:not(.primary) .choice-icon{color:var(--text)}.choice-icon img{width:20px;height:20px;display:block}.choice-title{font-weight:700}.choice-desc{font-size:11px;color:var(--muted);font-weight:400}@media (max-width: 480px){.choice-grid{grid-template-columns:1fr}}.panel{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000000d;display:flex;z-index:1000}.panel.left{justify-content:flex-start}.panel.right{justify-content:flex-end}.panel-card{width:320px;background:#fff;height:100%;border-left:1px solid var(--border);border-right:1px solid var(--border);padding:16px;box-shadow:0 0 24px #00000014}.panel-title{font-weight:700;margin-bottom:10px}.panel-item{display:flex;align-items:center;width:100%;text-align:left;padding:10px 12px;border:none;border-radius:10px;background:#fff;margin-bottom:8px;min-height:40px;color:var(--text);font-weight:600}.panel-item:hover{background:#fafafa}a.panel-item{text-decoration:none}.panel-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--border);border-radius:10px;padding:10px 12px;margin-bottom:8px;min-height:56px}.panel-row input[type=number]{width:72px;height:36px;border:1px solid var(--border);border-radius:8px;padding:0 10px;font-weight:600}.panel-row button{height:36px}button:focus,button:active{outline:none;box-shadow:none}button:focus-visible,.icon-btn:focus-visible,.ctrl-btn:focus-visible{outline:2px solid var(--accent-weak);outline-offset:2px}button::-moz-focus-inner{border:0}
