.new-genre-fields{border:1px dashed #94bdf5;border-radius:10px;padding:14px;background:#f5f9ff}.new-genre-fields .editor{margin-top:10px}.genre-row small{display:block}.genre-row b{overflow-wrap:anywhere}button:disabled{opacity:.45;cursor:not-allowed}h2>.emoji{font-size:26px}h2>.photo{width:30px;height:30px;vertical-align:middle}.tabs button.fixed-tab{background:#fff0dc;border-color:#f3cf9c;color:#775019}.tabs button.fixed-tab.on{background:#ffe0b4;border-color:#d99b42;color:#5f3c0e;box-shadow:inset 0 0 0 1px #d99b42}.fixed-genre-label{background:#fff0dc;color:#775019;border-radius:12px;padding:5px 12px;font-size:12px}.dialog-header{align-items:flex-start;margin-bottom:14px}.dialog-header h2{flex:1;margin-bottom:0}.dialog-actions{display:flex;gap:8px;align-items:center;margin-left:auto}.dialog-actions button{white-space:nowrap}.list-top-actions{display:flex;justify-content:flex-end;margin-bottom:16px}
:root{color:#253143;background:#f4f7fb;font-family:'Segoe UI','Yu Gothic UI',sans-serif}button{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}.container{max-width:960px}.panel{box-shadow:0 4px 20px #24395705}.tile{min-height:108px;touch-action:none;-webkit-touch-callout:none;gap:4px;background:linear-gradient(#fff,#f7faff)}.tile-name{white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.35}.content{font-size:11px;color:#64748b;overflow-wrap:anywhere;max-width:95%}.emoji{font-size:36px;line-height:1.2;pointer-events:none}.photo{width:48px;height:48px;object-fit:cover;border-radius:9px;pointer-events:none;flex-shrink:0}.tile .emoji.texticon{font-size:18px;max-width:100%;word-break:break-all}.tile.held{outline:3px solid #60a5fa;background:#eff6ff}.tile.dragging{opacity:.5;outline:3px dashed #2563eb}.tile.dragover{outline:3px solid #10b981;background:#ecfdf5}.add-tile{border:2px dashed #b7d4fa;color:#2563eb}.tabs button.on{background:#2563eb;color:#fff}.buy .emoji,.row>.emoji{font-size:30px;min-width:36px}.buy small,.grow small,.history-price small{display:block;color:#64748b;font-size:11px;margin-top:3px}.buy{min-height:62px}.buy span:nth-child(2){overflow-wrap:anywhere}.quantity{display:flex;gap:6px}.price-edit{display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}.price-edit input{width:105px;padding:8px;border:1px solid #cbd5e1;border-radius:8px}.history-price{text-align:right;font-size:13px}.row{flex-wrap:wrap}.grow{overflow-wrap:anywhere}.test-banner{padding:8px 16px;text-align:center;background:#fff3d6;color:#795014;font-size:13px}.date small{color:#2563eb}.toast{white-space:normal;width:max-content;max-width:92vw}.toast button{white-space:nowrap}dialog{border:0;border-radius:20px;padding:24px;width:min(600px,calc(100vw - 24px));max-height:85dvh;overflow-y:auto;box-shadow:0 24px 100px #182b4d40;color:#253143}dialog::backdrop{background:#15274170}dialog h2{margin-top:5px}.editor{grid-template-columns:1fr 1fr}.editor label{font-size:13px}.editor input,.editor select{background:#fff;font-size:16px;color:#253143}.editor fieldset{border:1px solid #d6dce5;border-radius:10px;max-height:260px;overflow:auto}.editor .ingredient{display:flex;align-items:center;gap:10px;font-size:15px;margin:10px 0}.editor .ingredient input{display:inline;width:auto}.preview{background:#f4f7fb;padding:16px;border-radius:12px;text-align:center}.preview img{width:70px;height:70px}#editor-error{color:#be123c;white-space:pre-wrap}input[type=date]{font-size:16px;padding:9px;border:1px solid #cbd5e1;border-radius:8px}input[type=checkbox]{width:18px;height:18px;vertical-align:middle}.home{margin-bottom:16px}.help{font-size:13px}.nav{box-shadow:0 -4px 20px #24395705}@media(max-width:650px){.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.tile{min-height:103px;padding:7px 3px}.container{padding:12px 12px 110px}.panel{padding:12px}.editor{grid-template-columns:1fr}.editor .wide{grid-column:1}.price-edit{width:100%;justify-content:flex-end}.history-price{margin-left:auto}.row>.grow{min-width:90px}.toast{bottom:85px}.buy{gap:7px;padding:8px}.quantity button{padding:9px}.tile-name{font-size:12px}.content{font-size:11px}}@media(min-width:651px){.grid{grid-template-columns:repeat(7,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.genre-manager-header{align-items:flex-start}.genre-manager-header h2{flex:1;min-width:80px;overflow-wrap:anywhere;margin:0}.genre-manager-header .dialog-actions{flex-shrink:0}
.genre-launchers{display:flex;flex-direction:column;align-items:flex-end;gap:12px}.genre-sort{touch-action:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}.genre-sort:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}.genre-held{outline:3px solid #60a5fa!important}.genre-dragging{opacity:.5}.genre-drop{outline:3px solid #10b981!important}.editor .money-input{display:flex;align-items:center;border:1px solid #cbd5e1;border-radius:8px;margin-top:4px;overflow:hidden}.editor .money-input input{margin:0;border:0;border-radius:0;min-width:0;flex:1;width:100%}.money-input>span{padding:8px 12px;color:#64748b;user-select:none}.photo{object-fit:contain}.photo-preview{background-color:#fff;background-image:linear-gradient(45deg,#e5e7eb 25%,transparent 25%),linear-gradient(-45deg,#e5e7eb 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e5e7eb 75%),linear-gradient(-45deg,transparent 75%,#e5e7eb 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.tile .emoji{max-width:100%;overflow-wrap:anywhere}

.toast button{color:#1f2937;background:#fff;-webkit-text-fill-color:currentColor;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;font-weight:600;padding:9px 12px}.toast button:focus-visible{outline:3px solid #fbbf24;outline-offset:3px}
.loop-select{display:flex;align-items:stretch;gap:6px;margin-top:4px;min-width:0}.editor .loop-select select{flex:1;min-width:0;margin:0;width:0}.select-loop-controls{display:flex;gap:3px;flex-shrink:0}.select-loop-button{border:1px solid #cbd5e1;border-radius:8px;background:#f1f5f9;color:#334155;min-width:44px;min-height:44px;padding:6px;touch-action:manipulation}.select-loop-button:active{background:#dbeafe}
