:root{color:#111827;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#fff;font-family:Hiragino Sans,Hiragino Kaku Gothic ProN,Yu Gothic,Noto Sans JP,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}html{min-height:100%}body{background:#fff;min-width:320px;min-height:100vh;margin:0}#root{min-height:100vh}button,textarea,input{font:inherit}img{max-width:100%;display:block}a{color:inherit}.app-shell{width:min(100%,44rem);padding:14px 14px calc(82px + env(safe-area-inset-bottom));margin:0 auto}.top-area{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-bottom:10px;display:grid}.tabs-scroll{scrollbar-width:thin;border-bottom:1px solid #d1d5db;overflow-x:auto}.mock-tabs{align-items:end;gap:6px;width:max-content;min-width:100%;display:flex}.mock-tab{color:#4b5563;height:36px;font:inherit;white-space:nowrap;background:linear-gradient(#eff3f7 0%,#e3e8ed 100%);border:1px solid #cbd5e1;border-bottom:none;border-radius:12px 12px 0 0;padding:0 14px;font-size:.88rem}.mock-tab.is-active{color:#111827;background:#fff;position:relative}.mock-tab.is-active:after{content:"";background:#fff;height:2px;position:absolute;bottom:-1px;left:0;right:0}.top-actions{align-items:end;gap:6px;display:flex}.debug-panel{background:#fffbeb;border:1px solid #f59e0b;border-radius:12px;margin:0 0 12px;padding:12px}.debug-title{color:#92400e;margin:0 0 10px;font-size:.92rem;font-weight:700}.debug-grid{gap:8px;display:grid}.debug-events{border-top:1px solid #fcd34d;margin-top:12px;padding-top:12px}.debug-subtitle{color:#92400e;margin:0 0 8px;font-size:.82rem;font-weight:700}.debug-empty{color:#7c5a10;margin:0;font-size:.78rem}.debug-item{gap:2px;display:grid}.debug-label{color:#92400e;font-size:.75rem;line-height:1.4}.debug-value{overflow-wrap:anywhere;color:#1f2937;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.75rem;line-height:1.45}.add-tab-icon{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;width:36px;height:36px}.clear-done-icon{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;width:36px;height:36px}.debug-toggle-icon{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;width:36px;height:36px}.debug-toggle-icon.is-active{color:#fff;background:#f59e0b;border-color:#f59e0b}.setup-note{color:#854d0e;background:#fef3c7;border-radius:10px;margin:0 0 10px;padding:10px 12px;font-size:.9rem}.setup-note p{margin:0}.setup-note ul{margin:8px 0 0;padding-left:18px}.status-message{color:#b91c1c;margin:0 0 8px;font-size:.9rem}.state-text{color:#6b7280;margin:8px 2px 10px;font-size:.92rem}.memo-list{gap:2px;margin:0;padding:0;list-style:none;display:grid}.memo-row{grid-template-columns:auto 1fr auto;align-items:center;gap:10px;min-height:44px;padding:2px 0;display:grid}.memo-row.is-dragging{opacity:.55}.memo-row.is-editing{background:#f8fafc;border-radius:10px;padding-left:6px;padding-right:2px}.memo-check{accent-color:#111827;width:20px;height:20px;margin:0}.memo-text-button{text-align:left;color:#111827;white-space:pre-wrap;word-break:break-word;cursor:text;background:0 0;border:none;width:100%;margin:0;padding:8px 2px;font-size:1rem;line-height:1.5}.memo-row.is-done .memo-text-button{color:#9ca3af;text-decoration:line-through}.memo-edit-input,.composer-input{color:#111827;width:100%;min-height:42px;font:inherit;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:0 12px}.memo-edit-input:focus,.composer-input:focus,.memo-check:focus,.memo-text-button:focus,.icon-button:focus{outline-offset:1px;outline:2px solid #cbd5e1}.row-actions{align-items:center;gap:2px;display:flex}.icon-button{color:#4b5563;cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;padding:0;transition:background-color .12s;display:inline-flex}.drag-handle{cursor:grab;touch-action:none}.drag-handle:active{cursor:grabbing}.icon-button svg{width:19px;height:19px}.icon-button:hover{background:#f3f4f6}.icon-button.is-danger{color:#dc2626}.icon-button:disabled{cursor:not-allowed;opacity:.45}.composer{padding:10px 0 calc(10px + env(safe-area-inset-bottom));background:linear-gradient(#fff0 0%,#ffffffeb 18%,#fff 100%);grid-template-columns:1fr auto;gap:8px;margin-top:8px;display:grid;position:sticky;bottom:0}.add-button{color:#fff;background:#111827;border-radius:10px;width:42px;height:42px}.add-button:hover{background:#1f2937}@media (width>=768px){.app-shell{padding-left:24px;padding-right:24px}}
