/* AlltagsPilot V13 Life Suite: all-new panels intentionally match Signature Midnight. */
.ap13-kicker{display:block;font-size:10px;letter-spacing:1.6px;color:#91e8d5;font-weight:800;margin-bottom:9px}
.ap13-mini-tag{display:inline-block;align-self:flex-start;border-radius:30px;border:1px solid #3b6870;background:rgba(60,122,118,.14);color:#a6f0df;font-size:10px;font-weight:790;letter-spacing:1.1px;padding:8px 10px;white-space:nowrap}
.ap13-home{border:1px solid rgba(111,176,179,.29);background:linear-gradient(125deg,rgba(24,57,62,.68),rgba(19,37,61,.72));padding:20px;border-radius:21px;margin:12px 0 20px;position:relative;overflow:hidden}
.ap13-home-head{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:16px}
.ap13-home h3{font-size:clamp(19px,3.4vw,23px);line-height:1.2;margin:0;color:#f0f8ff;letter-spacing:-.65px}
.ap13-home-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ap13-home-links button{border:1px solid #3b5c69;border-radius:15px;background:#172d40;color:#edf8ff;padding:13px 9px;display:flex;align-items:center;gap:4px;flex-direction:column;min-width:0;min-height:96px;transition:background .2s,border-color .2s,transform .2s}
.ap13-home-links button>span{font-size:22px;line-height:1.3;color:#9ae8d7}.ap13-home-links strong{font-size:12px}.ap13-home-links small{font-size:10px;color:#a6bdc8;white-space:normal;text-align:center}
.ap13-home-links button:hover,.ap13-home-links button:focus-visible{background:#234252;border-color:#84bdb9}.ap13-home-links button:active{transform:scale(.98)}
.ap13-page{padding-bottom:35px}.ap13-heading{display:flex;justify-content:space-between;gap:18px;align-items:start;margin:2px 0 24px}.ap13-heading h2{font-size:clamp(27px,3.8vw,39px);letter-spacing:-1.3px;line-height:1.12;margin:0 0 10px}.ap13-heading p{font-size:14px;color:#acc1d1;line-height:1.6;margin:0;max-width:560px}
.ap13-layout{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.2fr);gap:17px}.ap13-panel{min-width:0}.ap13-panel h3{font-size:20px;letter-spacing:-.6px;margin:0 0 13px;color:#f1f8fd}.ap13-panel label:not(.ap13-import-button){display:block;font-size:13px;font-weight:750;color:#d7e7f2;margin:17px 0 8px}
.ap13-panel input:not([type=checkbox]),.ap13-panel select,.ap13-inline input,.ap13-item-form input{width:100%;border:1px solid #3e5870;border-radius:12px;min-height:47px;background:#0d2034;color:#f6fbff;padding:11px 12px;font-size:16px;min-width:0;appearance:auto}
.ap13-panel input::placeholder,.ap13-inline input::placeholder,.ap13-item-form input::placeholder{color:#92a7ba}
.ap13-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:11px}.ap13-full{width:100%;min-height:48px;margin-top:20px}
.ap13-dim{font-size:13px;color:#a3bbcb;line-height:1.55;margin:5px 0 15px}
.ap13-feedback{color:#a4e7d6;font-size:12px;min-height:18px;line-height:1.5;margin:10px 0 0}
.ap13-section-row{display:flex;align-items:start;gap:10px;justify-content:space-between;margin-bottom:14px}.ap13-section-row h3{margin:0}
.ap13-habit-score{font-size:22px;font-weight:800;color:#a4e9dc}.ap13-progress{height:8px;background:#0b1a2e;border-radius:22px;overflow:hidden;border:1px solid #2d4b59;margin-bottom:19px}.ap13-progress>span{width:0;height:100%;display:block;background:linear-gradient(90deg,#69cdb5,#9fb8ed);border-radius:22px;transition:width .35s}
.ap13-item-list{display:flex;flex-direction:column;gap:9px}.ap13-row{display:flex;justify-content:space-between;gap:9px;align-items:center;background:rgba(12,31,50,.65);border:1px solid #335067;border-radius:14px;padding:12px 13px;min-width:0}
.ap13-row-main{display:flex;flex-direction:column;min-width:0;gap:5px}.ap13-row-main strong{font-size:14px;overflow-wrap:anywhere;color:#eff8ff}.ap13-row-main small{font-size:12px;color:#a5bbc9;line-height:1.5;overflow-wrap:anywhere}
.ap13-row-actions{display:flex;gap:6px;align-items:center;flex-shrink:0}
.ap13-small-primary,.ap13-done{background:#254f50;border:1px solid #5c9b92;border-radius:10px;color:#d3fff0;padding:9px 10px;font-weight:750;font-size:12px;min-height:42px}
.ap13-done{background:#153e3b;color:#9ce6d2}
.ap13-icon-danger,.ap13-item-remove{display:grid;place-items:center;min-height:42px;min-width:42px;padding:0;color:#d8bbc1;background:#182c40;border:1px solid #486077;border-radius:10px;font-size:23px;line-height:1}
.ap13-icon-danger:hover,.ap13-item-remove:hover{border-color:#ebabb3}
.ap13-empty{font-size:13px;color:#aabfcd;line-height:1.65;margin:0;padding:14px;border-radius:13px;border:1px dashed #3a526c}
.ap13-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:17px}.ap13-stat{padding:17px;border-radius:16px;background:linear-gradient(135deg,#173345,#162539);border:1px solid #3c5a6d;min-width:0;display:flex;flex-direction:column;gap:11px}.ap13-stat small{font-size:12px;color:#b5c7d3}.ap13-stat strong{font-size:clamp(19px,3vw,28px);color:#eaf9ff;line-height:1.1;overflow-wrap:anywhere}
.ap13-template-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}.ap13-template-row button{color:#b8f4e7;background:#173d42;border:1px solid #436c72;border-radius:13px;padding:11px 14px;font-size:14px;font-weight:750;min-height:46px}
.ap13-inline{display:flex;gap:11px;margin:0 0 8px}.ap13-inline .primary{flex-shrink:0}
.ap13-checklist-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:17px}.ap13-checkbox-list{display:flex;flex-direction:column;gap:5px}.ap13-check-item{display:flex;align-items:center;justify-content:space-between;gap:7px;border-radius:10px;border:1px solid #2c475c;padding:2px 6px 2px 9px}.ap13-check-item label{display:flex!important;align-items:center;gap:10px;margin:0!important;min-width:0;flex:1;font-size:14px!important;font-weight:500!important;padding:8px 0;overflow-wrap:anywhere}.ap13-check-item label input{width:19px;height:19px;accent-color:#91e7d7;flex-shrink:0}.ap13-check-item label .is-done{text-decoration:line-through;color:#9ab6bd}
.ap13-item-remove{min-height:32px;min-width:32px;font-size:20px}.ap13-item-form{display:flex;gap:8px;margin-top:13px}.ap13-item-form button{min-width:43px;font-size:20px}
.ap13-agenda-item{border:1px solid #335168;background:#10263a;border-radius:13px;padding:13px 14px;color:#f5fcff;text-align:left;display:grid;grid-template-columns:90px minmax(0,1fr) auto;align-items:center;gap:9px;min-width:0}.ap13-agenda-date{color:#a5e7dc;font-size:12px}.ap13-agenda-name{overflow-wrap:anywhere;font-size:13px;font-weight:750}.ap13-agenda-type{font-size:10px;color:#adc2d0;border:1px solid #39566c;border-radius:20px;padding:6px 8px}.ap13-summary-line{display:flex;justify-content:space-between;align-items:baseline;gap:15px;border-bottom:1px solid #2f495f;padding:13px 0;color:#b2c9d6;font-size:13px}.ap13-summary-line strong{color:#ebfafc;font-size:13px;text-align:right}.ap13-backup-actions{display:flex;flex-wrap:wrap;gap:8px}.ap13-import-button{cursor:pointer;display:inline-flex;align-items:center;min-height:42px}.ap13-privacy{font-size:12px;color:#b1c8d5;line-height:1.65;margin-top:20px}
.ap13-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
@media(max-width:780px){.ap13-layout{grid-template-columns:1fr}.ap13-checklist-grid{grid-template-columns:1fr}.ap13-home-links button{min-height:86px}}
@media(max-width:480px){.ap13-home{padding:14px}.ap13-home-links{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.ap13-home-links button{padding:12px 5px;min-height:78px}.ap13-home-links button>span{font-size:20px}.ap13-home-links strong{font-size:11px}.ap13-home-links small{font-size:9px}.ap13-mini-tag{font-size:9px;padding:6px 8px}.ap13-heading{flex-direction:column;gap:10px}.ap13-stat{padding:13px 9px}.ap13-stat small{font-size:10px}.ap13-stat strong{font-size:17px}.ap13-row{align-items:flex-start;flex-wrap:wrap}.ap13-row-actions{margin-left:auto}.ap13-panel{padding:17px}.ap13-agenda-item{grid-template-columns:1fr auto}.ap13-agenda-date{grid-column:1/-1}.ap13-inline{flex-direction:column}.ap13-inline .primary{width:100%}}
@media(max-width:340px){.ap13-home-links{grid-template-columns:repeat(2,minmax(0,1fr))}.ap13-two{grid-template-columns:1fr}.ap13-stats{grid-template-columns:1fr 1fr}.ap13-stat:last-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.ap13-home-links button,.ap13-progress>span{transition:none}}
/* Existing optional light theme: preserve readable contrasts in the new areas. */
html[data-v8-theme="light"] .ap13-home,html[data-v8-theme="light"] .ap13-stat{background:#ecf8f7;border-color:#b9d4d7}
html[data-v8-theme="light"] .ap13-home h3,html[data-v8-theme="light"] .ap13-heading h2,html[data-v8-theme="light"] .ap13-stat strong,html[data-v8-theme="light"] .ap13-row-main strong,html[data-v8-theme="light"] .ap13-panel h3{color:#182c3e}
html[data-v8-theme="light"] .ap13-home-links button,html[data-v8-theme="light"] .ap13-row,html[data-v8-theme="light"] .ap13-agenda-item{background:#f9fdfe;color:#203b4b;border-color:#bed5dd}
html[data-v8-theme="light"] .ap13-home-links strong,html[data-v8-theme="light"] .ap13-row-main small,html[data-v8-theme="light"] .ap13-dim,html[data-v8-theme="light"] .ap13-heading p,html[data-v8-theme="light"] .ap13-stat small{color:#506978}
html[data-v8-theme="light"] .ap13-panel input:not([type=checkbox]),html[data-v8-theme="light"] .ap13-panel select,html[data-v8-theme="light"] .ap13-inline input,html[data-v8-theme="light"] .ap13-item-form input{background:#fff;color:#182d3f;border-color:#adcad6}
html[data-v8-theme="light"] .ap13-panel label:not(.ap13-import-button),html[data-v8-theme="light"] .ap13-summary-line strong{color:#1c3948}
html[data-v8-theme="light"] .ap13-summary-line span,html[data-v8-theme="light"] .ap13-empty,html[data-v8-theme="light"] .ap13-privacy{color:#4a6477}
