/* YPA Medical — mobile first; no CSS margin properties anywhere in this file. */
.ypa-med,.ypa-med *,.ypa-med-access,.ypa-med-access * {box-sizing:border-box;min-width:0;}
.ypa-med{--med-text:#202d3d;--med-sub:#687586;--med-line:#e4e9f0;--med-accent:#287a71;display:flex;flex-direction:column;gap:13px;width:100%;min-height:0;max-width:100%;padding:14px 12px 95px;color:var(--med-text);overflow-x:hidden;overflow-y:auto;background:#f5f7f9;}
.ypa-med h1,.ypa-med h2,.ypa-med p,.ypa-med small,.ypa-med h3{padding:0;}
.ypa-med h1{font-size:20px;font-weight:800;line-height:1.15;}
.ypa-med h2{font-size:16px;font-weight:800;}
.ypa-med a{text-decoration:none;}
.ypa-med-hero,.ypa-med-welcome,.ypa-med-tile,.ypa-med-panel,.ypa-diet-card{background:#fff;border:1px solid var(--med-line);border-radius:14px;padding:14px;}
.ypa-med-hero,.ypa-med-head{display:flex;align-items:center;gap:11px;}
.ypa-med-hero>div,.ypa-med-head>div{display:flex;flex-direction:column;gap:4px;}
.ypa-med-hero p,.ypa-med-head p{font-size:11px;color:var(--med-sub);}
.ypa-med-hero small,.ypa-med-head small{font-size:10px;letter-spacing:1px;font-weight:800;color:var(--med-accent);}
.ypa-med-icon{height:43px;width:43px;flex:0 0 43px;display:grid;place-items:center;background:#e5f2ef;color:var(--med-accent);border-radius:12px;font-size:21px;}
.ypa-med-welcome{display:flex;gap:12px;align-items:center;}
.ypa-med-welcome>i{font-size:22px;color:var(--med-accent);}
.ypa-med-welcome>div{display:flex;flex-direction:column;gap:3px;}
.ypa-med-welcome strong{font-size:14px;}
.ypa-med-welcome span,.ypa-med-tile span{font-size:11px;color:var(--med-sub);}
.ypa-med-subtitle{padding-top:7px!important;}
.ypa-med-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.ypa-med-tile{display:flex;flex-direction:column;gap:9px;color:var(--med-text);align-items:flex-start;}
.ypa-med-tile>i{display:grid;place-items:center;width:38px;height:38px;background:#e5f2ef;color:var(--med-accent);border-radius:11px;font-size:17px;}
.ypa-med-tile strong{font-size:13px;line-height:1.25;}
.ypa-med-tile span{line-height:1.4;flex:1;}
.ypa-med-tile b{font-size:11px;color:var(--med-accent);display:flex;gap:6px;align-items:center;}
.ypa-med-head>a{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:#fff;border:1px solid var(--med-line);color:var(--med-text);}
.ypa-med-field{display:flex;flex-direction:column;gap:5px;width:100%;font-size:12px;font-weight:700;}
.ypa-med-field>span{color:#455466;}
.ypa-med-field input,.ypa-med-field select,.ypa-med-field textarea{width:100%;max-width:100%;min-height:42px;padding:10px 11px;border:1px solid #d8dfe8;border-radius:10px;background:#fff;color:var(--med-text);font-size:14px;font-family:inherit;resize:vertical;}
.ypa-med-field input:focus,.ypa-med-field select:focus,.ypa-med-field textarea:focus{outline:2px solid #a2d9cb;outline-offset:0;}
.ypa-med-panel,.ypa-diet-card,.ypa-diet-form,.ypa-diet-days,.ypa-diet-list{display:flex;flex-direction:column;gap:11px;}
.ypa-med-panel h2{display:flex;align-items:center;gap:7px;}
.ypa-med-panel h2 i{color:var(--med-accent);}
.ypa-diet-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.ypa-diet-button{border:1px solid #dae3ea;border-radius:10px;min-height:39px;padding:9px 12px;background:#fff;color:var(--med-text);display:inline-flex;justify-content:center;align-items:center;gap:7px;font-size:12px;font-weight:750;cursor:pointer;font-family:inherit;}
.ypa-diet-button.primary{background:var(--med-accent);color:#fff;border-color:var(--med-accent);}
.ypa-diet-button.danger{color:#aa3c39;background:#fff7f7;border-color:#f1d2d2;}
.ypa-diet-button:disabled{opacity:.55;cursor:wait;}
.ypa-diet-tabs{display:flex;gap:5px;overflow-x:auto;padding-bottom:3px;}
.ypa-diet-tabs button{border:1px solid var(--med-line);border-radius:10px;padding:9px 12px;white-space:nowrap;background:#fff;font-size:11px;cursor:pointer;}
.ypa-diet-tabs button.selected{background:var(--med-accent);color:#fff;border-color:var(--med-accent);}
.ypa-diet-cardtop{display:flex;align-items:start;justify-content:space-between;gap:8px;}
.ypa-diet-cardtop strong{font-size:14px;overflow-wrap:anywhere;}
.ypa-diet-cardtop strong i{color:var(--med-accent);}
.ypa-diet-status{border-radius:9px;padding:5px 8px;font-size:10px;font-weight:800;white-space:nowrap;}
.ypa-diet-status.active{color:#14744f;background:#e8f7ed;}
.ypa-diet-status.inactive{color:#7b5b16;background:#fff4da;}
.ypa-diet-status.deleted{color:#8e3333;background:#ffebeb;}
.ypa-diet-meta{display:flex;flex-wrap:wrap;gap:7px 12px;font-size:11px;color:var(--med-sub);}
.ypa-med-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.ypa-med-check{display:flex;gap:10px;align-items:center;padding:11px;border:1px solid var(--med-line);border-radius:10px;background:#f5f9f8;}
.ypa-med-check input{width:19px;height:19px;accent-color:var(--med-accent);}
.ypa-med-check span{display:flex;flex-direction:column;gap:3px;}
.ypa-med-check small{font-size:11px;color:var(--med-sub);}
.ypa-diet-sectionbar,.ypa-diet-dayhead,.ypa-diet-mealhead{display:flex;align-items:center;justify-content:space-between;gap:9px;}
.ypa-diet-sectionbar>div{display:flex;flex-direction:column;gap:5px;}
.ypa-diet-sectionbar p{color:var(--med-sub);font-size:11px;}
.ypa-diet-dayhead strong,.ypa-diet-mealhead strong{font-size:13px;}
.ypa-diet-dayhead button,.ypa-diet-mealhead button{width:34px;height:34px;display:grid;place-items:center;background:#fff7f7;border:1px solid #f1d2d2;border-radius:9px;color:#a33;}
.ypa-med-meals{display:flex;flex-direction:column;gap:10px;}
.ypa-med-meal{display:flex;flex-direction:column;gap:9px;padding:12px;border:1px solid var(--med-line);border-radius:12px;background:#f8fafb;}
.ypa-med-message{padding:12px;border-radius:11px;background:#e5f2ef;color:#165e53;font-size:12px;overflow-wrap:anywhere;}
.ypa-med-message.error{background:#ffebeb;color:#9c3333;}
.ypa-med-empty,.ypa-med-access{border-radius:12px;padding:24px 15px;background:#fff;color:#748092;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;}
.ypa-med-loading{font-size:12px;color:var(--med-sub);}
.ypa-med-info,.ypa-med-guidance p,.ypa-med-clientmeal p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6;}
.ypa-med-guidance{display:flex;flex-direction:column;gap:6px;padding:11px;background:#eff8f5;border-radius:10px;}
.ypa-diet-clientdays{display:flex;flex-direction:column;gap:8px;}
.ypa-diet-clientdays summary{cursor:pointer;font-size:13px;font-weight:800;display:flex;gap:7px;align-items:center;}
.ypa-diet-clientdays summary small{font-size:11px;font-weight:500;color:var(--med-sub);}
.ypa-med-clientmeal{display:flex;flex-direction:column;gap:5px;padding:10px;border-radius:10px;background:#f8fafb;}
.ypa-med-clientmeal strong{font-size:12px;}
.ypa-med-clientmeal small{font-weight:500;color:var(--med-sub);}
.ypa-medical-tab{display:flex;align-items:center;justify-content:center;gap:2px;flex-direction:column;}
.bottombar .ypa-medical-tab span{display:none;}
.bottombar a.ypa-medical-tab{min-width:0;padding:5px 0;}
.bottombar a.ypa-medical-tab i{font-size:19px;}
@media(min-width:700px){.ypa-med{padding:20px 24px 98px;gap:16px;}.ypa-med-grid{max-width:700px;}.ypa-med-tile{padding:20px;}.ypa-diet-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}.ypa-diet-app[data-diet-view="editor"] .ypa-diet-form{max-width:920px;}}
@media(max-width:350px){.ypa-med{padding-inline:9px;}.ypa-med-grid{gap:7px;}.ypa-med-tile{padding:10px;}.ypa-med-two{grid-template-columns:1fr;}.ypa-diet-actions>.ypa-diet-button{flex:1;}}
