/* AlltagsPilot V14 · Life Hub. Local-only tools. */
.ap14-home{margin:17px 0 20px;padding:20px;border:1px solid rgba(112,197,192,.31);border-radius:22px;background:linear-gradient(132deg,rgba(21,60,66,.82),rgba(20,35,63,.92));box-shadow:0 14px 42px #030d1b20}
.ap14-home-head{display:flex;align-items:start;justify-content:space-between;gap:15px}
.ap14-kicker{display:block;font-size:10px;letter-spacing:1.6px;color:#97e7d8;font-weight:850;margin-bottom:10px}
.ap14-home h3{color:#f2f9fc;margin:0 0 8px;letter-spacing:-.8px;font-size:clamp(19px,3.5vw,25px)}
.ap14-home p{margin:0;color:#bad0d9;font-size:13px;line-height:1.6}
.ap14-chip{display:inline-flex;flex-shrink:0;align-items:center;padding:8px 10px;border:1px solid #406d75;background:#183e4a;color:#b5f5e7;border-radius:90px;font-size:10px;letter-spacing:.7px;font-weight:800;line-height:1.2;max-width:100%;text-align:center}
.ap14-home-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:17px}
.ap14-home-actions button{min-width:0;min-height:88px;background:rgba(21,44,64,.85);border:1px solid #3b5c6e;color:#e7f6fc;border-radius:15px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:10px 4px;transition:border-color .2s,background .2s,transform .2s}
.ap14-home-actions button:hover,.ap14-home-actions button:focus-visible{background:#20495a;border-color:#88d5c9}.ap14-home-actions button:active{transform:scale(.98)}
.ap14-home-actions button span{font-size:24px;line-height:1.2;color:#8fe4d4}.ap14-home-actions button strong{font-size:12px;line-height:1.25;text-align:center;overflow-wrap:anywhere}
.ap14-page{padding-bottom:32px}.ap14-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin:0 0 24px}
.ap14-heading h2{font-size:clamp(27px,4vw,40px);line-height:1.14;letter-spacing:-1.3px;margin:0 0 12px;color:#f6fbff}
.ap14-heading p{font-size:14px;line-height:1.6;margin:0;max-width:600px;color:#b1c7d4}
.ap14-columns{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:18px;align-items:start}
.ap14-panel{min-width:0;overflow:hidden}.ap14-panel h3{margin:0 0 14px;font-size:20px;letter-spacing:-.65px;color:#f2f9ff}
.ap14-panel label:not(.ap14-label-inline){display:block;font-size:13px;font-weight:780;margin:14px 0 8px;color:#d5e6f0}
.ap14-field{display:block;width:100%;min-width:0;min-height:48px;padding:12px 13px;background:#0b2034;border:1px solid #45617a;border-radius:13px;color:#f2fbff;font-size:16px;line-height:1.45;outline-offset:2px;color-scheme:dark}
.ap14-textarea{min-height:120px;resize:vertical}
.ap14-field::placeholder{color:#8ba4b8;opacity:1}
.ap14-two{display:grid;grid-template-columns:1fr 1fr;gap:11px;min-width:0}
.ap14-full{width:100%;display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:16px;text-align:center}
.ap14-status{min-height:20px;color:#a4edde;font-size:13px;line-height:1.5;margin:12px 0 0;overflow-wrap:anywhere}
.ap14-hint{color:#acc0d0;font-size:12px;line-height:1.65;margin:14px 0 0;overflow-wrap:anywhere}
.ap14-list{display:flex;flex-direction:column;gap:10px}.ap14-empty{border:1px dashed #496578;border-radius:13px;padding:19px 13px;color:#b5c5d3;font-size:13px;line-height:1.55}
.ap14-row{border:1px solid #3c596d;border-radius:14px;padding:13px 14px;background:rgba(12,32,51,.7);display:flex;flex-direction:column;gap:10px;min-width:0}
.ap14-row-head{display:flex;gap:8px;align-items:start;justify-content:space-between;min-width:0}
.ap14-row-head strong{font-size:14px;color:#f1f8fc;overflow-wrap:anywhere;min-width:0}
.ap14-row-head small{font-size:12px;line-height:1.5;color:#a8c2d1}
.ap14-row-head>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.ap14-row-actions,.ap14-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ap14-small{border:1px solid #456b7a;background:#1b3a4a;color:#e7f8f6;border-radius:10px;font-size:12px;font-weight:760;padding:9px 11px;min-height:42px;line-height:1.3}
.ap14-small:hover{border-color:#8bd7c9;background:#275265}.ap14-small.is-danger{border-color:#604b5a;color:#f0ced1;background:#2f2638}
.ap14-small.is-done{background:#1d4a45;color:#b1f8e5;border-color:#4c8d80}
.ap14-count{font-size:12px;background:#254e58;border:1px solid #487e81;color:#c9fcf0;display:inline-block;border-radius:100px;padding:4px 8px;vertical-align:middle;margin-left:7px}
.ap14-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:19px}
.ap14-stats>div{border:1px solid #416071;border-radius:16px;background:linear-gradient(140deg,#173544,#18283e);padding:16px;min-width:0;display:flex;flex-direction:column;gap:8px}
.ap14-stats small{color:#b6cbd6;font-size:12px}.ap14-stats strong{font-size:24px;line-height:1.2;letter-spacing:-.7px;overflow-wrap:anywhere;color:#f0f9ff}
.ap14-meta-badge{font-size:11px;font-weight:720;border-radius:100px;border:1px solid #4a697c;padding:5px 9px;background:#1d364d;color:#bbd7e2;white-space:nowrap}
.ap14-meta-badge.warn{background:#3d302e;border-color:#8c6656;color:#ffd5ad}.ap14-meta-badge.danger{background:#3c2937;border-color:#8b576c;color:#ffc0cd}.ap14-meta-badge.done{background:#1c4543;border-color:#417e71;color:#aff2db}
.ap14-progress{height:9px;border-radius:20px;background:#0b1b2c;overflow:hidden;border:1px solid #36546a;margin-top:3px}
.ap14-progress>span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#62d9ba,#99b7ff);transition:width .2s ease}
.ap14-number-line{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#bcd7de}
.ap14-number-line b{color:#f1fcfd}
.ap14-add-field{max-width:145px;min-height:42px;font-size:16px;padding:8px 10px}
.ap14-goal-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ap14-mealbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
.ap14-mealbar strong{font-size:14px;min-width:175px;color:#e6f7ff}.ap14-mealbar button{min-height:42px}
.ap14-meal-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ap14-meal-card{border:1px solid #3e596b;border-radius:13px;padding:14px;background:rgba(12,35,54,.82);min-width:0;display:flex;flex-direction:column;gap:8px}
.ap14-meal-date{display:block;color:#9ddccd;font-size:11px;font-weight:800;letter-spacing:.4px}
.ap14-meal-card strong{font-size:15px;line-height:1.35;overflow-wrap:anywhere;color:#f4f9ff}
.ap14-meal-card p{font-size:12px;line-height:1.55;color:#aec6d1;margin:0;overflow-wrap:anywhere;flex:1}
.ap14-meal-card .ap14-actions{margin-top:auto}
.ap14-privacy{border:1px solid #3e6873;background:#15323f;padding:15px 18px;border-radius:16px;color:#bddbdc;font-size:13px;line-height:1.65;margin-top:19px}
.ap14-privacy strong{color:#e4f9f2}
#ap14-backup-file{padding:11px;max-width:100%}
@media (max-width:790px){.ap14-columns{grid-template-columns:1fr}.ap14-meal-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:510px){.ap14-home{padding:16px;margin-top:17px}.ap14-home-head{gap:8px}.ap14-home-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.ap14-home-actions button{min-height:81px}.ap14-home-actions button strong{font-size:11px}.ap14-heading{gap:11px;flex-direction:column}.ap14-heading h2{font-size:30px}.ap14-panel{padding:17px}.ap14-stats{gap:8px}.ap14-stats>div{padding:12px 9px}.ap14-stats small{font-size:10px}.ap14-stats strong{font-size:18px}.ap14-meal-list{grid-template-columns:1fr}.ap14-two{grid-template-columns:1fr}.ap14-mealbar strong{min-width:140px}.ap14-home p{font-size:12px}}
@media (max-width:345px){.ap14-home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.ap14-stats{grid-template-columns:1fr 1fr}.ap14-stats>div:last-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.ap14-home-actions button,.ap14-progress>span{transition:none}}
html[data-v8-theme="light"] .ap14-home,html[data-v8-theme="light"] .ap14-stats>div{background:#edf9f8;border-color:#b7d1d5}
html[data-v8-theme="light"] .ap14-home h3,html[data-v8-theme="light"] .ap14-heading h2,html[data-v8-theme="light"] .ap14-panel h3,html[data-v8-theme="light"] .ap14-stats strong{color:#19374c}
html[data-v8-theme="light"] .ap14-home p,html[data-v8-theme="light"] .ap14-heading p,html[data-v8-theme="light"] .ap14-hint,html[data-v8-theme="light"] .ap14-stats small{color:#436274}
html[data-v8-theme="light"] .ap14-field{background:#fff;color:#172c3d;color-scheme:light;border-color:#b7cdd7}
html[data-v8-theme="light"] .ap14-field::placeholder{color:#5a7285}
html[data-v8-theme="light"] .ap14-row,html[data-v8-theme="light"] .ap14-meal-card,html[data-v8-theme="light"] .ap14-home-actions button{background:#f9fefe;border-color:#bed4da;color:#1c3444}
html[data-v8-theme="light"] .ap14-row strong,html[data-v8-theme="light"] .ap14-meal-card strong,html[data-v8-theme="light"] .ap14-row-head strong,html[data-v8-theme="light"] .ap14-home-actions strong{color:#233d4d}
html[data-v8-theme="light"] .ap14-row small,html[data-v8-theme="light"] .ap14-meal-card p{color:#476576}
html[data-v8-theme="light"] .ap14-panel label{color:#234758}
