
:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN",Meiryo,sans-serif;color:#293b30;background:#f8f8f5;font-size:15px}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:default}a{color:#2a6847}.container{max-width:1040px;margin:0 auto;padding-left:20px;padding-right:20px}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.muted,.small{color:#77847b}.small{font-size:13px;line-height:1.6}.site-header{background:#fff;border-bottom:1px solid #e9ede8}.brandbar{display:flex;align-items:center;gap:13px;padding-top:17px;padding-bottom:17px}.brandmark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#dcebdd;color:#2c6c4c;font-weight:800;font-size:19px}h1{font-size:22px;letter-spacing:.02em;margin:0}.brandbar p{margin:3px 0 0;color:#78877d;font-size:12px}.main{padding-top:24px;padding-bottom:120px}h2,h3{letter-spacing:.01em}.hero{padding:25px 28px 22px;background:#eaf2e8;border:1px solid #d9e9d9;border-radius:22px}.eyebrow{font-size:12px;font-weight:750;color:#4a8360;letter-spacing:.1em}.hero h2{font-size:25px;margin:7px 0}.hero p{color:#657969;font-size:13px;margin:0 0 20px}.ingredient-input{display:flex;gap:8px;align-items:center;background:#fff;border:1px solid #d4ded4;border-radius:14px;padding:4px 8px 4px 0;max-width:660px}input,textarea,select{border:1px solid #d5ded5;border-radius:12px;padding:12px 13px;background:#fff;color:#263e2f;width:100%;outline-offset:2px}input:focus,textarea:focus,select:focus{border-color:#5a9a6d;outline:2px solid #ddf0e3}.ingredient-input input{border:none;background:transparent;outline:none;padding-left:16px}.ingredient-input input:focus{border:0;outline:none}.text-button{border:0;background:none;color:#607568;font-size:13px;white-space:nowrap;padding:8px}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.chips button{border:1px solid #bfd2c3;border-radius:999px;padding:8px 12px;color:#376448;background:#f9fcf9;font-size:13px;line-height:1.1;min-height:32px}.chips button.selected{background:#36794f;color:#fff;border-color:#36794f}.browse-tools{margin:23px 0 21px}.search-label{display:block;color:#42584a;font-size:14px;font-weight:700;margin:0 0 9px}.keyword{max-width:520px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.filters button{border:1px solid #e0e6df;background:white;color:#617269;border-radius:999px;padding:8px 15px;font-size:13px}.filters button.active{background:#315e42;border-color:#315e42;color:#fff}.result-heading{display:flex;justify-content:space-between;align-items:end;gap:10px;margin:25px 0 8px}.result-heading h2{font-size:19px;margin:0 0 5px}.count{font-size:12px;color:#758277}.sort-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#78847a;white-space:nowrap}.sort-label select{width:auto;min-width:118px;padding:9px;font-size:13px}.subtle-help{color:#89958b;font-size:12px;margin:8px 0 20px;line-height:1.6}.recipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.recipe-item{min-height:116px;display:flex;align-items:stretch;border-radius:16px;background:#fff;border:1px solid #e4e9e2;box-shadow:0 2px 6px rgba(30,65,42,.025);overflow:hidden}.recipe-main{display:flex;align-items:center;text-align:left;flex:1;gap:13px;border:0;background:transparent;padding:16px;width:100%;color:inherit}.recipe-main:hover{background:#f8fbf8}.recipe-symbol{height:49px;width:49px;flex-shrink:0;display:grid;place-items:center;border-radius:13px;background:#eff4e9;color:#658e68;font-size:25px}.recipe-copy{display:flex;flex-direction:column;align-items:flex-start;gap:7px;flex:1;min-width:0}.recipe-title{font-weight:750;font-size:15px;line-height:1.5;overflow-wrap:anywhere}.recipe-origin{color:#879289;font-size:11px;word-break:break-word}.recipe-tags{display:flex;gap:6px;flex-wrap:wrap}.recipe-tag{font-size:11px;padding:4px 8px;border-radius:8px;background:#f2f5f0;color:#637866}.recipe-tag.ready{color:#2d794c;background:#e7f4ea}.recipe-tag.missing{color:#92622c;background:#fff4e6}.recipe-arrow{font-size:21px;color:#a8b7ab;align-self:center}.recipe-empty{grid-column:1/-1;background:white;border-radius:16px;padding:30px;border:1px solid #e5eae4}.recipe-empty p{margin:6px 0;color:#79887a;line-height:1.6}.panel{padding:22px;background:#fff;border:1px solid #e5e9e4;border-radius:17px;margin:18px 0}.panel h3{font-size:17px;margin:0 0 8px}.panel textarea{min-height:95px}.manage-view>h2{margin:0;font-size:22px}.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}button:not(.recipe-main):not(.close-button):not(.text-button):not(.filters button):not(.chips button),.btn{border:1px solid #d8e3d9;border-radius:11px;background:#fff;color:#345a41;padding:10px 13px}button.primary,.actions .primary,.detail-actions .primary{background:#326a49!important;border-color:#326a49!important;color:#fff!important}.bottom{position:fixed;bottom:0;left:0;right:0;display:flex;gap:10px;justify-content:center;background:#ffffffeb;border-top:1px solid #e4e9e4;padding:11px 14px calc(11px + env(safe-area-inset-bottom));backdrop-filter:blur(14px);z-index:5}.bottom button{flex:1;max-width:230px;border-radius:11px!important;font-size:13px!important}.bottom button.active{background:#e6f0e8!important;color:#285b3c!important;border-color:#b6d0bc!important;font-weight:800}dialog{width:min(95vw,650px);max-height:90vh;overflow:auto;border:0;border-radius:20px;padding:24px;box-shadow:0 20px 70px #26382b40;color:#29402f}dialog::backdrop{background:#15241c99}.detail-top{display:flex;align-items:center;justify-content:space-between}.close-button{font-size:25px;padding:2px 9px;border:0;background:none;color:#657366}.detail-dialog h2{font-size:25px;line-height:1.4;margin:11px 0}.detail-badges{display:flex;gap:8px;flex-wrap:wrap;color:#667d6b;font-size:13px}.detail-badges span{background:#edf4ec;border-radius:8px;padding:6px 10px}.detail-section{margin-top:26px;padding-top:17px;border-top:1px solid #e8eee8}.detail-section h3{margin:0 0 15px;font-size:17px}.ingredients-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;list-style:none}.ingredients-list li{border-radius:10px;background:#f4f7f2;padding:10px 12px;font-size:14px;line-height:1.6}.ingredients-list li.have{background:#e4f3e8;color:#286e45}.ingredients-list li.not-have{background:#fff4e8;color:#91612d}.detail-muted{font-size:14px;color:#879288;line-height:1.7}.detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:26px}.detail-foot{margin-top:20px;border-top:1px solid #e8eee8;padding-top:10px;text-align:right}.danger{color:#9a6257!important}.editor-dialog label{display:block;font-weight:650;font-size:13px;margin:15px 0 6px}.editor-dialog textarea{min-height:90px}.dialog-title h2{margin:0 0 5px}.notice{background:#edf4eb;padding:12px;border-radius:12px;font-size:13px;line-height:1.7}.notice label{display:block}.warn{color:#955f36}.editor-dialog .actions button{padding:10px 14px}details summary{cursor:pointer}.row{display:flex;justify-content:space-between;align-items:center;gap:10px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:690px){.container{padding-left:15px;padding-right:15px}.brandbar{padding-top:12px;padding-bottom:12px}h1{font-size:21px}.main{padding-top:15px}.hero{padding:21px 17px;border-radius:17px}.hero h2{font-size:21px}.hero p{font-size:12px}.recipe-grid{grid-template-columns:1fr;gap:9px}.recipe-item{min-height:97px}.recipe-main{padding:12px;gap:12px}.recipe-symbol{width:44px;height:44px;font-size:23px}.recipe-title{font-size:15px}.result-heading{margin-top:20px}.result-heading h2{font-size:18px}.sort-label{font-size:0}.sort-label select{font-size:12px;min-width:110px}.chips{gap:7px}.chips button{padding:8px 10px}.ingredients-list{grid-template-columns:1fr}.detail-dialog h2{font-size:22px}.detail-actions{flex-direction:column}.detail-actions button{width:100%}dialog{padding:20px 16px}.panel{padding:16px}}
.recipe-group-title{grid-column:1/-1;display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 12px;margin:13px 0 0;color:#345a41}.recipe-group-title b{font-size:16px}.recipe-group-title span{font-size:12px;color:#78877d}.recipe-match-note{font-size:11px;color:#53775e;line-height:1.4;overflow-wrap:anywhere}
.hero .search-label{margin:0 0 8px}.hero .search-example{margin:8px 0 0;font-size:12px;color:#657969}.hero .chips{margin-top:13px}.result-heading{margin-top:24px}
.recipe-grid.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-grid .recipe-item{min-height:0}.photo-grid .recipe-main{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0}.recipe-photo{display:grid;place-items:center;aspect-ratio:16/10;overflow:hidden;background:#e9f0e6;color:#728875;font-size:13px;width:100%}.recipe-photo img{width:100%;height:100%;object-fit:cover}.photo-grid .recipe-copy{padding:11px 12px 13px;width:100%}.photo-grid .recipe-arrow{display:none}.photo-grid .recipe-title{font-size:14px}.photo-grid .recipe-origin{font-size:10px}.photo-grid .recipe-tag{font-size:10px}.photo-grid .recipe-match-note{font-size:10px}#viewToggle{font-size:12px;white-space:nowrap}.detail-dialog{padding-bottom:30px}.detail-top{align-items:flex-start}.detail-top h2{margin-top:0}.detail-photo,#detailPhoto img{display:block;width:100%;max-height:340px;object-fit:cover;border-radius:12px}#detailPhoto img{aspect-ratio:16/10}.detail-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.detail-meta span{background:#edf4ec;border-radius:8px;padding:7px 10px;font-size:13px}.ingredients-list{grid-template-columns:1fr}.ingredients-list li{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.ingredients-list strong{text-align:right;font-weight:650;min-width:70px}.ingredients-list a{font-size:12px;font-weight:400}.cooking-steps{list-style:none;counter-reset:step;padding:0;margin:0}.cooking-steps li{counter-increment:step;border-bottom:1px solid #e8eee8;padding:12px 0}.cooking-steps label{display:flex;align-items:flex-start;gap:12px;line-height:1.65}.cooking-steps label::before{content:counter(step);flex:none;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e4f1e5;color:#2a6847;font-weight:700;font-size:12px}.cooking-steps input{width:20px;height:20px;flex:none;margin:3px 0 0;accent-color:#397b51}.cooking-steps input:checked+span{text-decoration:line-through;color:#89968d}.detail-fetch{margin-top:20px}.detail-source{border-top:1px solid #e8eee8;margin-top:22px;padding-top:18px;display:flex;justify-content:space-between;align-items:center;gap:10px}.detail-candidate{margin:10px 0}.detail-candidate details{max-height:250px;overflow:auto}.detail-candidate ol,.detail-candidate ul{padding-left:20px}
@media(max-width:690px){.recipe-grid.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.photo-grid .recipe-copy{padding:9px}.photo-grid .recipe-title{font-size:13px}.photo-grid .recipe-origin{font-size:10px}.photo-grid .recipe-tag{padding:3px 5px}.detail-meta span{font-size:12px}.detail-source{flex-direction:column;align-items:stretch}.detail-source button{width:100%}}

[hidden] { display: none !important; }
.recipe-grid.photo-grid { max-width: 720px; }
.photo-grid .recipe-item { flex-direction: column; }
.photo-grid .recipe-main { min-height: 76px; }
.recipe-photo {
  aspect-ratio: auto;
  height: clamp(60px, 18vw, 96px);
}
.photo-grid .recipe-photo.photo-button,
#detailPhoto .photo-button {
  background: #e9f0e6;
  padding: 0;
  border: 0;
  overflow: hidden;
}
.photo-grid .recipe-photo.photo-button { border-radius: 0; }
.photo-button img { display: block; width: 100%; height: 100%; object-fit: cover; }
#detailPhoto .detail-thumbnail { width: min(100%, 230px); height: 112px; }
#detailPhoto .detail-thumbnail img { height: 100%; aspect-ratio: auto; border-radius: 0; }
.photo-zoom { width: min(95vw, 850px); }
.photo-zoom h2 { font-size: 17px; overflow-wrap: anywhere; }
.photo-zoom img { display: block; width: 100%; max-height: 72vh; object-fit: contain; }
.step-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cooking-steps input[hidden] + span { color: inherit; text-decoration: none; }
#detailBatchReady, #detailBatchProblems { margin-top: 14px; }
#detailBatchRows ul { padding-left: 20px; }
#detailBatchRows li { margin: 8px 0; }
