.shell{max-width:1480px}.view[hidden],[hidden]{display:none!important}.pv-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}.pv-card{background:linear-gradient(135deg,#182b38,#14232d);border:1px solid #34505c;border-radius:18px;padding:20px;min-width:0}.pv-card strong{display:block;font-size:1.5rem;margin:12px 0}.pv-card small,.pv-title small{color:#a8c3cd}.pv-title h1{font-size:2rem}.pv-card[data-process-light]{display:none}.pv-timeline{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.pv-timeline span{padding:8px;border:1px solid #34505c;border-radius:9px}.pv-timeline .current{background:#26694e}.pv-timeline .skipped{opacity:.5}.program-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.program-list .tile{min-width:0;overflow-wrap:anywhere}.program-list button{margin-top:12px}.scroll{overflow:auto}table{border-collapse:collapse;width:100%}td,th{text-align:left;border-bottom:1px solid #34505c;padding:10px}input,select,textarea{max-width:100%;box-sizing:border-box}#detail{margin-top:20px}#preview{max-height:260px;max-width:100%;object-fit:contain}#chart svg{width:100%;height:auto}dialog{background:#14232d;color:#e3f1f5;border:1px solid #34505c;border-radius:20px;padding:24px;max-width:min(560px,90vw)}dialog::backdrop{background:#000a}dialog label{display:block;margin:14px 0}#bankSelect{display:block;width:100%;padding:10px}#message:empty,#alarm:empty{display:none}#message,#alarm{white-space:pre-wrap;overflow-wrap:anywhere}.stage-table input{min-width:65px;width:100%}.stage-table th{white-space:nowrap}.metrics{margin-top:20px}.ai-result{white-space:pre-wrap}.top-actions{flex-wrap:wrap}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}@media(max-width:600px){.topbar{align-items:flex-start;flex-direction:column}.tabs{flex-wrap:wrap}.tab{white-space:normal}.program-list{grid-template-columns:1fr}.pv-grid{grid-template-columns:1fr 1fr}.pv-card{padding:12px}.pv-card strong{font-size:1.1rem}.notice{flex-wrap:wrap}.tile{padding:16px}.ai-premium-hero h1{font-size:2.2rem}}
.tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));overflow:visible;grid-auto-flow:row}.tabs .tab{min-width:0;width:auto;white-space:normal}@media(max-width:600px){.tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 0.30: recipe structure and category navigation, matching the series 5 flow. */
#detail{padding:clamp(18px,3vw,42px);scroll-margin-top:20px;overflow-wrap:anywhere}
.recipe-detail-heading{display:flex;gap:24px;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #45616f;padding-bottom:24px;margin-bottom:28px}.recipe-detail-heading h2{font-size:clamp(25px,3vw,38px);line-height:1.2;max-width:28ch;margin:12px 0}.recipe-detail-heading p{max-width:65ch;line-height:1.65;color:#bdd3df}.recipe-detail-heading button{flex-shrink:0}
.recipe-detail-layout{display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,2fr);gap:36px;align-items:start}.recipe-ingredients{padding:22px;border:1px solid #45616f;border-radius:18px;background:#132a36}.recipe-ingredients h3,.recipe-section h3{font-size:21px;margin:0 0 18px}.recipe-ingredients ul{padding-left:21px;margin:0}.recipe-ingredients li{padding:0 0 16px;line-height:1.7}.recipe-method{min-width:0}.recipe-section{margin:0 0 28px}.recipe-section p{max-width:75ch;line-height:1.8;white-space:pre-line;margin:0 0 16px}.recipe-steps{list-style:none;counter-reset:recipe-step;padding:0;margin:0}.recipe-steps li{counter-increment:recipe-step;position:relative;padding:0 0 24px 48px;line-height:1.8;max-width:80ch}.recipe-steps li::before{content:counter(recipe-step);position:absolute;left:0;top:1px;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#24647a;color:#e7fcff;font-weight:800}.recipe-notes{border-left:3px solid #e4b56e;padding-left:20px}.recipe-section summary{cursor:pointer;padding:16px;background:#203b49;border-radius:10px;margin-bottom:16px;font-weight:700}.setting-table{max-width:760px;background:#132a36;border-radius:12px}.setting-table th,.setting-table td{padding:15px 18px;line-height:1.6}.setting-table tbody th{width:65%;font-weight:500}.setting-table td{font-weight:800;color:#9eeae4;white-space:nowrap}.setting-unit{font-weight:400;color:#bcd3de}.setting-table input[type=number]{width:130px}.recipe-actions{display:flex;gap:12px;flex-wrap:wrap;border-top:1px solid #45616f;padding-top:22px}.s4-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin:24px 0}.s4-category{display:flex;flex-direction:column;gap:14px;align-items:flex-start;text-align:left;border:1px solid #5b7888;border-radius:20px;padding:22px;color:#f0f7fa;min-height:150px}.s4-category strong{font-size:19px}.s4-category small{color:#d5e2ea}.category-icon{font-size:27px}.tone-0{background:#304a5b}.tone-1{background:linear-gradient(135deg,#785134,#3e3934)}.tone-2{background:linear-gradient(135deg,#78515b,#42333d)}.tone-3{background:linear-gradient(135deg,#285b71,#233d4b)}.tone-4{background:linear-gradient(135deg,#625078,#373148)}.tone-5{background:linear-gradient(135deg,#396451,#233c36)}.s4-category:hover,.s4-category.selected{border-color:#8aeae8;box-shadow:0 0 0 2px #8aeae833}.s4-category:focus-visible,button:focus-visible{outline:3px solid #ffcd80;outline-offset:3px}
@media(max-width:700px){.recipe-detail-layout{grid-template-columns:1fr;gap:24px}.recipe-detail-heading{flex-direction:column}.recipe-detail-heading button{width:100%}.s4-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.s4-category{padding:16px;min-height:125px}.recipe-actions button{width:100%}.setting-table th,.setting-table td{padding:12px 10px}.recipe-steps li{padding-left:40px}.setting-table input[type=number]{width:100%;min-width:70px}}

.s4-recipe-card{display:flex;flex-direction:column;overflow:hidden}.s4-recipe-card>p{flex:1;line-height:1.7}.s4-recipe-photo{margin:0 0 20px;position:relative;overflow:hidden;border-radius:14px;background:#1b3542}.s4-recipe-photo img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.s4-recipe-photo figcaption{position:absolute;bottom:0;left:0;right:0;padding:18px 12px 8px;background:linear-gradient(transparent,#091720c9);color:white;font-size:11px}.recipe-ingredients .s4-recipe-photo{margin:-6px -6px 22px}.s4-recipe-card h2{font-size:23px;line-height:1.3}.s4-recipe-card .primary{width:100%}

#programs{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.recipe-tools{margin:24px 0 18px;align-items:center;gap:16px}.recipe-tools input[type=search]{background:#203744;border:1px solid #537484;color:#e8f7fa;padding:14px 18px;border-radius:12px;font:inherit;min-width:0}.recipe-tools input::placeholder{color:#b1c9d7}.recipe-tools label{white-space:nowrap}.recipe-tools input[type=checkbox]{width:18px;height:18px;accent-color:#59cdd9}.s4-recipe-card{padding:20px}#v-process .process-notice{margin:18px 0}.tabs{grid-auto-flow:row!important}.s4-categories{margin:20px 0}.s4-category{min-height:125px}.sectionhead h1{line-height:1.15}@media(max-width:1050px){#programs{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#programs{grid-template-columns:1fr}.recipe-tools{flex-wrap:wrap}.recipe-tools input[type=search]{width:100%}.s4-recipe-photo img{aspect-ratio:16/9}}
