/* HK-FOOD-001/HK-EXP-001: private food experiences, not clinical classifications. */
.hk-recipe-profile-check{padding:24px;margin:28px 0;border:1px solid #d8e2ec;border-radius:16px;background:#f8fafc;color:#111827;box-sizing:border-box}
.hk-recipe-profile-check h3{font-size:1.3rem;line-height:1.3;margin:0 0 8px}
.hk-recipe-profile-check>p{font-size:.93rem;line-height:1.6;margin:0 0 15px}
.hk-recipe-profile-start,.hk-recipe-profile-run{background:#175cd3;color:white;border:1px solid #175cd3;border-radius:9px;padding:10px 18px;min-height:44px;font-weight:650;font-size:14px;cursor:pointer}
.hk-recipe-profile-start:hover,.hk-recipe-profile-run:hover{background:#1247a6;color:white}
.hk-recipe-profile-start:disabled,.hk-recipe-profile-run:disabled{opacity:.6;cursor:wait}
.hk-recipe-profile-check button:focus-visible,.hk-recipe-profile-check select:focus-visible,.hk-exp-overlay button:focus-visible,.hk-exp-overlay textarea:focus-visible,.hk-exp-overlay input:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.hk-recipe-profile-controls{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;margin:18px 0}
.hk-recipe-profile-controls label{display:flex;flex:1 1 190px;flex-direction:column;gap:7px;max-width:370px;font-size:14px;font-weight:650}
.hk-recipe-profile-select{min-height:46px;min-width:0;width:100%;box-sizing:border-box;padding:8px 12px;border:1px solid #aab8ca;border-radius:9px;background:white;color:#111827}
.hk-recipe-profile-status{font-size:13px;color:#475569;margin:12px 0 0}
.hk-recipe-profile-result-heading{font-size:1.09rem;margin:18px 0 12px}
.hk-food-counts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.hk-food-count{display:inline-flex;align-items:center;gap:7px;border-radius:100px;padding:5px 12px;background:#e2e8f0;color:#334155;font-size:13px}
.hk-food-count strong{font-size:15px;font-variant-numeric:tabular-nums}
.hk-food-count.hk-state-avoid{background:#fff1f2;color:#991b1b}
.hk-food-count.hk-state-review{background:#fef3c7;color:#92400e}
.hk-food-count.hk-state-prefer{background:#dbeafe;color:#1e40af}
.hk-food-coverage{font-size:14px;margin:0 0 5px;font-weight:600}
.hk-food-coverage-note,.hk-exp-private-notice{font-size:13px;line-height:1.55;color:#475569;margin:0 0 12px}
.hk-exp-private-notice{padding:9px 11px;background:#eff6ff;border-left:3px solid #175cd3;border-radius:5px}
.hk-food-cards{list-style:none!important;padding:0!important;margin:0!important;display:grid;gap:11px}
.hk-food-card{list-style:none!important;border:1px solid #cbd5e1;border-radius:13px;background:white;overflow:hidden;margin:0!important}
.hk-food-card-avoid{border-color:#fda4af}.hk-food-card-review{border-color:#f3c67b}.hk-food-card-prefer{border-color:#93c5fd}.hk-food-card-unknown{border-color:#cbd5e1}
.hk-food-card-toggle{border:0!important;border-radius:0!important;background:#f8fafc!important;color:#111827!important;width:100%;min-height:73px;padding:13px 16px!important;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;cursor:pointer;box-shadow:none!important}
.hk-food-card-avoid .hk-food-card-toggle{background:#fff5f5!important}
.hk-food-card-review .hk-food-card-toggle{background:#fffbeb!important}
.hk-food-card-prefer .hk-food-card-toggle{background:#eff6ff!important}
.hk-food-card-toggle:hover{filter:brightness(.984)}
.hk-food-card-title-wrap{display:flex;align-items:center;gap:12px;min-width:0}
.hk-food-card-indicator{width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:#64748b;position:relative}
.hk-food-card-indicator:after{content:'?';color:white;font-weight:800;font-size:18px;position:absolute;inset:0;display:grid;place-items:center}
.hk-food-card-avoid .hk-food-card-indicator{background:#e11d48}.hk-food-card-avoid .hk-food-card-indicator:after{content:'!'}
.hk-food-card-review .hk-food-card-indicator{background:#d97706}.hk-food-card-review .hk-food-card-indicator:after{content:'!'}
.hk-food-card-prefer .hk-food-card-indicator{background:#175cd3}.hk-food-card-prefer .hk-food-card-indicator:after{content:'★';font-size:15px}
.hk-food-card-title-block{display:grid;gap:3px;min-width:0}
.hk-food-card-name{font-size:15px;font-weight:700;overflow-wrap:anywhere}
.hk-food-card-meta{font-size:12px;color:#475569;line-height:1.35;overflow-wrap:anywhere}
.hk-food-my-experience{font-size:12px;color:#175cd3;font-weight:700;line-height:1.3}
.hk-food-card-right{display:flex;align-items:center;gap:13px;flex-shrink:0}
.hk-food-card-badge{border-radius:22px;padding:5px 9px;white-space:nowrap;font-size:12px;font-weight:750;background:#e2e8f0;color:#334155}
.hk-food-card-avoid .hk-food-card-badge{color:#991b1b;background:#ffe4e6}.hk-food-card-review .hk-food-card-badge{color:#92400e;background:#fef3c7}
.hk-food-card-prefer .hk-food-card-badge{color:#1d4ed8;background:#dbeafe}
.hk-food-card-chevron{font-size:23px;line-height:1;color:#475569}
.hk-food-card-detail{border-top:1px solid #e2e8f0;padding:17px 20px;background:white}
.hk-food-card-detail[hidden]{display:none!important}
.hk-food-card-detail p{line-height:1.55;font-size:14px;margin:0 0 10px;color:#334155}
.hk-food-card-detail .hk-food-card-guidance{font-size:13px;color:#475569}
.hk-food-card-detail .hk-food-card-warning{font-size:13px;color:#92400e}
.hk-exp-row-history{margin:16px 0 8px;padding-top:12px;border-top:1px solid #e2e8f0}
.hk-exp-list-title{font-size:14px;font-weight:700;margin:0 0 9px;color:#0f172a}
.hk-exp-empty{color:#64748b!important;font-size:13px!important}
.hk-exp-list{list-style:none!important;padding:0!important;margin:0!important;display:grid;gap:8px}
.hk-exp-entry{margin:0!important;padding:12px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:9px;display:flex;flex-direction:column;gap:6px}
.hk-exp-entry-head{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.hk-exp-entry-head strong{font-size:13px}.hk-exp-entry-head time{font-size:12px;color:#64748b}
.hk-exp-entry p{font-size:12px;margin:0;color:#475569;overflow-wrap:anywhere}
.hk-exp-delete{border:1px solid #cbd5e1!important;border-radius:6px;padding:5px 10px!important;background:#fff!important;color:#9f1239!important;align-self:flex-end;font-size:12px;cursor:pointer}
.hk-exp-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.hk-exp-action{border:1px solid #cbd5e1!important;background:white!important;color:#1f2937!important;padding:10px 14px!important;min-height:44px;border-radius:9px!important;font-size:13px;font-weight:650;cursor:pointer}
.hk-exp-action:hover{background:#f1f5f9!important}.hk-exp-reaction{border-color:#fda4af!important}.hk-exp-tolerated{border-color:#93c5fd!important}
.hk-exp-not-owner{font-size:13px!important;color:#64748b!important}
.hk-recipe-profile-disclaimer{margin:16px 0 0;color:#475569;font-size:13px;line-height:1.6}
/* Dialog. Designed around an accessible 2-step private reaction log; no external scripts. */
body.hk-exp-dialog-open{overflow:hidden}
.hk-exp-overlay{position:fixed;inset:0;z-index:100002;background:rgba(15,23,42,.54);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.hk-exp-dialog{background:#fff;color:#111827;border-radius:15px;box-shadow:0 24px 80px rgba(0,0,0,.24);width:min(600px,100%);max-height:min(850px,96dvh);display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}
.hk-exp-dialog-head{flex-shrink:0;display:flex;align-items:flex-start;justify-content:space-between;padding:18px 21px 14px;border-bottom:1px solid #e2e8f0;gap:12px}
.hk-exp-dialog-head h3{margin:0;font-size:19px;line-height:1.3;color:#0f172a}
.hk-exp-dialog-head p{font-size:13px;color:#64748b;margin:5px 0 0}
.hk-exp-dialog-close{min-height:40px;min-width:40px;border:0!important;background:transparent!important;border-radius:8px!important;color:#475569!important;font-size:29px;line-height:1;cursor:pointer}
.hk-exp-progress{flex-shrink:0;display:flex;justify-content:space-around;gap:8px;border-bottom:1px solid #e2e8f0;padding:12px 20px;font-size:13px;color:#64748b}
.hk-exp-progress-active{color:#175cd3;font-weight:800}.hk-exp-progress-done{color:#15803d;font-weight:700}
.hk-exp-dialog-body{padding:20px 22px;overflow:auto;flex:1 1 auto;min-height:0}
.hk-exp-dialog-body h4{font-size:16px;margin:0 0 10px;color:#0f172a}
.hk-exp-muted{color:#64748b!important;font-size:13px!important;line-height:1.5!important;margin:0 0 16px!important}
.hk-exp-symptoms{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hk-exp-symptom{border:1px solid #d8e2ec;border-radius:11px;background:#fff;padding:11px}
.hk-exp-symptom-selected{border-color:#175cd3;background:#eff6ff}
.hk-exp-symptom-toggle{width:100%;min-height:50px;text-align:left;border:0!important;padding:5px!important;background:transparent!important;color:#111827!important;font-size:13px;font-weight:650;cursor:pointer}
.hk-exp-symptom-toggle:before{content:'○';color:#64748b;font-size:20px;margin-right:8px;vertical-align:-2px}
.hk-exp-symptom-selected .hk-exp-symptom-toggle:before{content:'●';color:#175cd3}
.hk-exp-intensity{display:flex;align-items:center;gap:5px;font-size:12px;color:#475569;flex-wrap:wrap}
.hk-exp-level{border:1px solid #cbd5e1!important;background:#fff!important;color:#334155!important;border-radius:7px;padding:5px 10px!important;min-width:35px;min-height:36px;font-weight:600;cursor:pointer}
.hk-exp-level-active{background:#175cd3!important;color:#fff!important;border-color:#175cd3!important}
.hk-exp-fixed-food{border:1px solid #dbe4f0;border-radius:9px;background:#f8fafc;padding:12px;margin-bottom:16px;display:grid;gap:5px;font-size:14px;font-weight:700}
.hk-exp-fixed-food small{font-size:12px;color:#64748b;font-weight:400}
.hk-exp-field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;margin:0 0 16px;color:#334155}
.hk-exp-field textarea,.hk-exp-field input{font:inherit;font-weight:400;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#111827;width:100%;box-sizing:border-box;padding:11px;min-height:44px}
.hk-exp-dialog-foot{border-top:1px solid #e2e8f0;flex-shrink:0;padding:15px 20px;display:flex;justify-content:flex-end;gap:9px;background:#fff;flex-wrap:wrap}
.hk-exp-primary{border:1px solid #175cd3!important;background:#175cd3!important;color:white!important;border-radius:9px!important;padding:11px 17px!important;min-height:44px;font-size:14px;font-weight:700;cursor:pointer}
.hk-exp-primary:disabled{opacity:.55;cursor:not-allowed}
.hk-exp-cancel{border:1px solid #cbd5e1!important;background:white!important;color:#334155!important;border-radius:9px!important;padding:11px 15px!important;min-height:44px;font-size:14px;cursor:pointer}
.hk-exp-error{color:#b91c1c!important;background:#fef2f2;padding:9px;border-radius:7px;margin:0 0 10px;font-size:13px}
.hk-exp-error[hidden]{display:none}
.hk-food-private-log{margin:22px 0;padding:15px 0;border-top:1px solid #d8e2ec}
.hk-food-private-log p{font-size:13px;color:#475569}.hk-food-private-log-list{list-style:none!important;margin:0!important;padding:0!important;display:grid;gap:8px}
.hk-food-private-log-list li{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #e2e8f0;border-radius:8px;padding:9px}
.hk-food-private-log-list small{display:block;color:#64748b;font-size:12px;overflow-wrap:anywhere}
@media(max-width:600px){.hk-recipe-profile-check{padding:16px 12px}.hk-food-card-toggle{padding:12px!important;min-height:66px}.hk-food-card-badge{white-space:normal;text-align:center;max-width:104px}.hk-food-card-detail{padding:13px 14px}.hk-food-card-right{gap:7px}.hk-exp-overlay{padding:0;align-items:stretch}.hk-exp-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.hk-exp-dialog-head{padding:13px 15px}.hk-exp-dialog-body{padding:15px}.hk-exp-dialog-foot{padding:11px 14px}.hk-exp-symptoms{gap:8px}.hk-exp-symptom{padding:7px}.hk-exp-primary{flex:1 1 auto}.hk-exp-intensity{gap:3px}.hk-exp-level{padding:4px 8px!important;min-width:30px}}
@media(max-width:370px){.hk-food-card-name{font-size:13px}.hk-food-card-meta{font-size:11px}.hk-food-card-indicator{width:28px;height:28px;flex-basis:28px}.hk-food-card-title-wrap{gap:7px}.hk-food-card-badge{font-size:11px;padding:4px 6px}.hk-exp-symptoms{grid-template-columns:1fr}}
@media print{.hk-recipe-profile-check,.hk-exp-overlay{display:none!important}}
