/* Lebensmittel-Farben aus dem CAPYS-Logo. */
:root{--logo-yellow:#ffcf24;--logo-orange:#ff8718;--logo-red:#bb3336;--logo-turquoise:#009fb8}
body{background:#fffaf1}
.daily-top{border-top:6px solid transparent;border-image:linear-gradient(90deg,#003880 0% 25%,#ffcf24 25% 45%,#ff8718 45% 65%,#bb3336 65% 82%,#009fb8 82%) 1}
.daily-top .daily-header{background:linear-gradient(110deg,#fff8d8,#fff1e4 55%,#e1f5fa)}
.daily-top .account>span{background:#ffcf24;color:#12345b}
.daily-top .daily-nav>a[aria-current],.daily-top .daily-nav .report-dropdown>summary.active,.daily-top .daily-nav .report-dropdown[open]>summary{background:#ffcf24;border-color:#ffcf24;color:#12345b}
.daily-summary{background:#fff;border:0;padding:0;gap:12px}
.daily-summary>div{padding:20px;border-radius:10px;border-top:5px solid #009fb8;background:#e1f5fa}
.daily-summary>div:nth-child(2){border-color:#ffcf24;background:#fff5cb}
.daily-summary>div:nth-child(3){border-color:#ff8718;background:#ffebd7}
.daily-weight{background:#fff4cb;border-color:#ebcf77;border-left:6px solid #ffb900}
.daily-weight .badge{background:#ffe28a;color:#624500}
.daily-weight-actions .primary{background:#ffcf24;color:#12345b;border:1px solid #d7a700}
.daily-meal{--meal-accent:#ffcf24;--meal-bg:#fff4c5;--meal-ink:#604600;border-top:5px solid var(--meal-accent);border-radius:10px}
.daily-meal:nth-child(2){--meal-accent:#ff8718;--meal-bg:#ffe5cd;--meal-ink:#743600}
.daily-meal:nth-child(3){--meal-accent:#009fb8;--meal-bg:#d9f3f8;--meal-ink:#005567}
.daily-meal:nth-child(4){--meal-accent:#bb3336;--meal-bg:#fbe3e4;--meal-ink:#852128}
.daily-meal>.section-line{background:var(--meal-bg);border-bottom-color:var(--meal-accent)}
.daily-meal>.section-line h2,.daily-meal>.section-line .muted{color:var(--meal-ink)}
.daily-meal .daily-add{background:var(--meal-bg);color:var(--meal-ink);border:1px solid var(--meal-accent);font-weight:700}
.daily-meal .daily-add:hover{filter:brightness(.96)}
.recipe-card:nth-child(4n+1){border-top-color:#ffcf24}.recipe-card:nth-child(4n+2){border-top-color:#ff8718}.recipe-card:nth-child(4n+3){border-top-color:#009fb8}.recipe-card:nth-child(4n){border-top-color:#bb3336}
.stat-grid>.stat:nth-child(4n+1){background:#e1f5fa;border-top:4px solid #009fb8}.stat-grid>.stat:nth-child(4n+2){background:#fff5cb;border-top:4px solid #ffcf24}.stat-grid>.stat:nth-child(4n+3){background:#ffebd7;border-top:4px solid #ff8718}.stat-grid>.stat:nth-child(4n){background:#fbe3e4;border-top:4px solid #bb3336}
.control-sidebar nav>a[aria-current],.control-sidebar .report-dropdown>summary.active{background:#ffcf24;color:#12345b}
.control-sidebar .brand{border-bottom:5px solid #ff8718}
.control-topbar{background:linear-gradient(110deg,#fff8d8,#fff1e4 55%,#e1f5fa)}
.entry-mode-switch button:nth-child(1).active{background:#003880;color:white}.entry-mode-switch button:nth-child(2).active{background:#ffcf24;color:#12345b;border-color:#d7a700}.entry-mode-switch button:nth-child(3).active{background:#ff8718;color:#422100;border-color:#d56b08}
@media(max-width:760px){.daily-summary>div{padding:16px}.daily-summary .daily-intake{border-bottom:0}}

.header-account-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-width:0}.header-logout{background:#fff;color:#12345b;border:1px solid #9db1c9;border-radius:8px;padding:10px 15px;font-weight:600;white-space:nowrap}.header-logout:hover{background:#fff4cb;border-color:#d7a700}.header-account-actions .account{max-width:none;min-width:0;margin:0}.header-logout:focus-visible{outline:3px solid #003880;outline-offset:3px}@media(max-width:760px){.header-account-actions{gap:8px;flex:1}.header-logout{padding:9px 10px;font-size:.76rem}.daily-top .header-account-actions .account,.control-topbar .header-account-actions .account{max-width:none;font-size:.76rem;overflow-wrap:anywhere}.daily-top .header-account-actions .account>span{flex-shrink:0;width:40px;height:40px}}

.message-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;margin-left:5px;background:#ffcf24;color:#12345b;border-radius:99px;font-weight:800}.daily-nav a[aria-current] .message-count{background:#12345b;color:white}.unread-message-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 0;padding:22px 26px;background:#fff1b5;border:2px solid #e4ad00;border-left:8px solid #ff8718;border-radius:12px;color:#12345b}.unread-message-banner strong{font-size:1.2rem}.unread-message-banner p{margin:5px 0 0}.unread-message-banner a{white-space:nowrap}@media(max-width:650px){.unread-message-banner{align-items:stretch;flex-direction:column;padding:18px}.unread-message-banner a{text-align:center}}

.chat-history{display:flex;flex-direction:column;gap:14px;padding:22px;background:#edf3f8;border:1px solid #d3dfea;border-radius:14px;max-height:60vh;overflow-y:auto}.chat-bubble{max-width:80%;padding:13px 17px;border-radius:16px;background:white;box-shadow:0 2px 5px #12345b12;overflow-wrap:anywhere}.chat-in{align-self:flex-start;border-bottom-left-radius:3px}.chat-out{align-self:flex-end;background:#d5eff6;border-bottom-right-radius:3px}.chat-bubble small{display:block;color:#50657b;font-size:.7rem}.chat-bubble .feedback-body{white-space:pre-wrap;margin:8px 0}.chat-bubble .text-button{display:block;margin-top:8px;font-size:.75rem}.chat-compose{display:flex;align-items:flex-end;gap:12px;margin:14px 0;flex-wrap:wrap}.chat-compose textarea{flex:1;min-width:160px;border-radius:12px;margin:0}.chat-compose .form-error{flex-basis:100%}@media(max-width:650px){.chat-history{padding:12px}.chat-bubble{max-width:92%}}

.chat-compose .chat-attachment{flex-basis:100%;min-width:0}.chat-attachment input{max-width:100%}.chat-attachment small{display:block;color:#50657b;font-weight:400}
