/* Routine Studio v1.1: larger diary, guided completion, single recommendation. */
.anp-routine .rn-diary-guide{display:flex;flex-direction:column;gap:7px;background:#ebf1e6;border:1px solid #d0dfcc;border-radius:12px;padding:14px 18px;margin:0 0 18px}
.anp-routine .rn-diary-guide>b{font:900 12px/1.4 'DM Sans',Arial,sans-serif;color:#2f543b}
.anp-routine .rn-diary-guide span{font-size:11px;line-height:1.6;color:#516e57}
.anp-routine .rn-diary-guide span b{color:#385a3d;font-weight:900}
.anp-routine .rn-food-search{margin:0 0 13px}
.anp-routine .rn-food-search>label{display:block;color:#9d7948;letter-spacing:.11em;font:900 10px/1.5 'DM Sans',Arial,sans-serif;margin-bottom:8px}
.anp-routine .rn-food-search-input-wrap{display:flex;align-items:center;gap:9px;background:#fff!important;border:1.5px solid #b8cdb3;border-radius:11px;padding:0 11px;transition:border-color .2s,box-shadow .2s}
.anp-routine .rn-food-search-input-wrap:focus-within{border-color:#aa8754;box-shadow:0 0 0 3px #d4bb8b3d}
.anp-routine .rn-food-search-input-wrap>span{font-size:27px;color:#8b9c85;font-weight:700}
.anp-routine .rn-food-search-input-wrap input{border:0!important;box-shadow:none!important;background:transparent!important;outline:0!important;height:52px!important;min-width:0;flex:1;font-size:13px!important;padding:0 4px!important}
.anp-routine .rn-food-search-input-wrap input:focus{border:0!important;box-shadow:none!important}
.anp-routine .rn-food-search-input-wrap>button{border:0;background:#eef1e9;border-radius:50%;height:25px;width:25px;font-size:10px;color:#74876f}
.anp-routine .rn-food-search>small{display:block;margin-top:7px;font-size:10px;color:#839487}
.anp-routine .rn-food-tabs{margin-bottom:1px}
.anp-routine .rn-food-list{max-height:none;gap:9px;margin-bottom:9px}
.anp-routine .rn-food-row{transition:transform .2s,border-color .2s,box-shadow .2s}
.anp-routine .rn-food-row:hover{transform:translateY(-2px);border-color:#aabd9d}
.anp-routine .rn-food-row:has(input[data-food-id]:not([value="0"])){border-color:#b9d2b4}
.anp-routine .rn-food-row .rn-food-control input{background:#f8faf5!important}
.anp-routine .rn-no-food-match{grid-column:1/-1;padding:20px;border:1px dashed #cdd9c7;border-radius:12px;color:#758672;font-size:12px}
.anp-routine .rn-more-foods{width:100%;text-align:center;border:1px dashed #bdcdb8;background:#f8faf6;color:#406344;border-radius:10px;padding:12px;font-weight:900;font-size:11px;margin:0 0 18px}
.anp-routine .rn-more-foods:hover{background:#edf3e8}
.anp-routine .rn-lookup{padding:16px 19px;border-radius:13px;border:1px solid #e5decf;background:#fffcf5;margin:18px 0}
.anp-routine .rn-lookup>strong{display:block;color:#294836;font-size:12px;font-weight:900;margin-bottom:5px}
.anp-routine .rn-lookup>p{margin:0 0 11px;color:#788879;font-size:11px;line-height:1.65}
.anp-routine .rn-lookup .rn-lookup-btn{min-height:39px!important;font-size:10px!important}
.anp-routine .rn-lookup>small{display:block;font-size:9px;line-height:1.65;color:#8b9585;margin-top:11px}
.anp-routine .rn-lookup>small a{color:#997646!important;text-decoration:underline}
.anp-routine .rn-lookup-results{margin-top:12px;display:grid;gap:7px}
.anp-routine .rn-lookup-results p{margin:0;color:#718170;font-size:11px;line-height:1.6}
.anp-routine .rn-lookup-hit{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;background:#fff;border:1px solid #d5e0d0;border-radius:9px;padding:11px 13px;color:#344d38;transition:background .2s,border-color .2s}
.anp-routine .rn-lookup-hit:hover{background:#eaf3e6;border-color:#acc4a2}
.anp-routine .rn-lookup-hit>span{min-width:0;display:flex;flex-direction:column;gap:4px}
.anp-routine .rn-lookup-hit strong{font-size:11px;line-height:1.4;overflow-wrap:break-word}
.anp-routine .rn-lookup-hit small{font-size:10px;color:#778976}
.anp-routine .rn-lookup-hit>b{flex-shrink:0;color:#946e3d;font-size:11px}
.anp-routine .rn-food-summary{margin-bottom:10px}
.anp-routine .rn-food-nextbar{
 position:sticky;bottom:10px;z-index:20;
 display:flex;align-items:stretch;gap:10px;flex-direction:column;
 margin:16px -12px 0;
 background:linear-gradient(135deg,#234334,#183023);
 color:#fcf9ed;
 border:1px solid #345743;border-radius:14px;padding:17px;
 box-shadow:0 8px 26px #08230e34
}
.anp-routine .rn-food-nextbar .rn-checkline{margin:0!important;align-items:center}
.anp-routine .rn-food-nextbar .rn-checkline input{accent-color:#dbb776!important}
.anp-routine .rn-food-nextbar .rn-checkline span{font-size:11px!important;color:#e3ebdf!important;line-height:1.45}
.anp-routine .rn-food-nextbar .rn-checkline b{color:#e9cc94}
.anp-routine .rn-food-nextbar strong{font-size:13px;color:#fff7df;font-weight:900}
.anp-routine .rn-food-nextbar>small{color:#bed0bd;font-size:10px}
.anp-routine .rn-food-nextbar .rn-btn{width:100%;min-height:51px!important;font-size:13px!important;justify-content:space-between!important;margin-top:2px}
.anp-routine .rn-food-nextbar:has(.rn-check-needed) {border-color:#e6b26e}
.anp-routine .rn-check-needed{background:#9f6e3933;border-radius:8px;padding:7px}
.anp-routine .rn-gap-summary{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 18px}
.anp-routine .rn-gap-summary span{background:#edf3e8;border:1px solid #d8e5d4;border-radius:99px;color:#4f6d51;padding:9px 13px;font-size:11px}
.anp-routine .rn-gap-summary b{font-weight:900;color:#24472d}
.anp-routine .rn-match-none{border:1px solid #dce5d5;border-radius:13px;padding:19px;background:#f0f4eb;color:#2c4b32;margin:18px 0}
.anp-routine .rn-match-none strong{font-size:14px}
.anp-routine .rn-match-none p{font-size:11px;color:#728376;line-height:1.6;margin:6px 0 0}
.anp-routine .rn-recommendation{margin:22px 0 9px;overflow:hidden;border-radius:17px;background:#142e21;border:1px solid #2f5039;box-shadow:0 16px 37px #152f1f24}
.anp-routine .rn-recommend-head{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:16px 19px;border-bottom:1px solid #d4ba853a;color:#e6c789}
.anp-routine .rn-recommend-head span{font-size:10px;font-weight:900;letter-spacing:.1em}
.anp-routine .rn-recommend-head span:last-child{border:1px solid #d4bc866b;border-radius:99px;padding:6px 11px}
.anp-routine .rn-rec-layout{display:grid;grid-template-columns:minmax(120px,.38fr) minmax(0,.62fr);gap:0}
.anp-routine .rn-rec-visual{display:grid;place-items:center;min-width:0;min-height:300px;padding:18px;background:radial-gradient(circle at 52% 55%,#c6d3bd,#5f8669)}
.anp-routine .rn-rec-visual img{width:100%;max-width:240px;max-height:285px;height:auto;object-fit:contain;filter:drop-shadow(0 13px 18px #152c1999);transition:transform .35s}
.anp-routine .rn-rec-visual:hover img{transform:translateY(-5px) scale(1.03)}
.anp-routine .rn-rec-visual>span{color:#f4e6c2;font-size:24px;font-weight:900}
.anp-routine .rn-rec-copy{min-width:0;padding:22px 23px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.anp-routine .rn-rec-eyebrow{font-size:9px;font-weight:900;letter-spacing:.1em;color:#d8b779}
.anp-routine .rn-rec-copy h3{font-size:clamp(20px,2.4vw,28px)!important;font-weight:900!important;line-height:1.19!important;letter-spacing:-.04em!important;color:#f8f7ec!important;text-transform:none!important;margin:12px 0!important}
.anp-routine .rn-rec-copy>p{font-size:11px;line-height:1.7;color:#d8e2d1;margin:0 0 14px}
.anp-routine .rn-rec-product{display:flex;flex-direction:column;gap:4px;background:#ffffff12;border:1px solid #d5bd8357;border-radius:10px;width:100%;padding:11px 14px;margin:0 0 14px}
.anp-routine .rn-rec-product span{font-size:9px;color:#d7b97c;font-weight:900;letter-spacing:.1em}
.anp-routine .rn-rec-product strong{font-size:13px;color:#fff9e6;font-weight:900}
.anp-routine .rn-rec-product small{font-size:11px;color:#d5e2d2}
.anp-routine .rn-rec-shop{display:flex!important;align-items:center;justify-content:space-between;gap:9px;border-radius:10px;padding:14px 16px;background:#d5ae70!important;color:#1b3023!important;width:100%;font-size:12px!important;font-weight:900!important;line-height:1.3;text-decoration:none!important;transition:background .2s,transform .2s}
.anp-routine .rn-rec-shop:hover{background:#ebcc98!important;transform:translateY(-3px)}
.anp-routine .rn-rec-shop>b{font-size:17px}
.anp-routine .rn-rec-note{font-size:9px;line-height:1.5;color:#b2c4b0;margin-top:10px}
@media(max-width:760px){
 .anp-routine .rn-rec-layout{grid-template-columns:1fr}
 .anp-routine .rn-rec-visual{min-height:205px;padding:14px}
 .anp-routine .rn-rec-visual img{max-height:190px}
 .anp-routine .rn-rec-copy{padding:20px}
 .anp-routine .rn-rec-copy h3{font-size:23px!important}
 .anp-routine .rn-food-nextbar{margin:12px -6px 0}
}
@media(max-width:480px){
 .anp-routine .rn-food-search-input-wrap input{font-size:11px!important}
 .anp-routine .rn-food-nextbar{bottom:5px;padding:13px;border-radius:10px}
 .anp-routine .rn-food-nextbar .rn-btn{font-size:12px!important}
 .anp-routine .rn-gap-summary span{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.anp-routine .rn-rec-visual img,.anp-routine .rn-rec-shop{transition:none!important;transform:none!important}}
