/* TDH V3 Planner modules — external styles required by strict CSP. */
#todo-view,#calendar-view{width:100%;min-width:0}
#todo-view>.content-panel,#calendar-view>.content-panel{max-width:1120px;margin:0 auto;background:#fff;border:1px solid #e6e8f0;border-radius:16px;padding:28px 30px 34px;box-shadow:0 8px 30px rgba(30,36,66,.025)}
#todo-view .panel-header,#calendar-view .panel-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid #e9eaf3;margin-bottom:22px}
#todo-view .panel-header h3,#calendar-view .panel-header h3{font-size:24px;font-weight:750;letter-spacing:-.03em;color:#202b44;margin:7px 0 0}
#todo-view .mini-badge,#calendar-view .mini-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 12px;background:#f3edfc;border:1px solid #e5d8f7;color:#7737ac;font-size:11px;font-weight:800;white-space:nowrap}
#todo-view .panel-header+p,#calendar-view .panel-header+p{font-size:14px;color:#6d7892;margin:0 0 18px}
#todo-view #todo-error:empty,#calendar-view #calendar-error:empty{display:none}
#todo-view #todo-error,#calendar-view #calendar-error{padding:10px 12px;background:#fff1f2;border-radius:8px;font-size:13px;margin:12px 0}
#todo-view input,#todo-view textarea,#todo-view select,#calendar-view input,#calendar-view textarea,#calendar-view select{font:inherit;font-size:14px;outline-offset:2px}
#todo-view input:not([type=checkbox]),#todo-view textarea,#todo-view select,#calendar-view input:not([type=checkbox]),#calendar-view textarea,#calendar-view select{width:100%;min-width:0;background:#fff;color:#243048;border:1px solid #dfe3ee;border-radius:9px;padding:11px 13px;box-shadow:0 1px 2px rgba(26,34,55,.025)}
#todo-view input:focus,#todo-view textarea:focus,#todo-view select:focus,#calendar-view input:focus,#calendar-view select:focus{border-color:#9162ce;outline:2px solid #e6d7fa}
#todo-view textarea{resize:vertical;min-height:90px;line-height:1.6}
#todo-view #todo-add{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;max-width:none!important;margin:22px 0 25px!important;background:#f9f9fd;border:1px solid #e7e8f1;border-radius:13px;padding:20px}
#todo-view #todo-add>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
#todo-view #todo-add select{flex:1 1 180px;width:auto}
#todo-view #todo-add .primary-btn,#todo-view #todo-add .outline-btn,#calendar-view .primary-btn,#calendar-view .outline-btn{min-height:40px;padding:10px 16px;border-radius:9px;font-weight:750;font-size:13px}
#todo-view .primary-btn,#calendar-view .primary-btn{background:#7135a6;color:white;border:1px solid #7135a6;box-shadow:0 4px 10px #7135a622}
#todo-view .primary-btn:hover,#calendar-view .primary-btn:hover{background:#5c248f}
#todo-view .outline-btn,#calendar-view .outline-btn{background:#fff;border:1px solid #d7d9e8;color:#554777}
#todo-view label:has(> #todo-filter){display:flex;align-items:center;gap:12px;font-size:13px;font-weight:700;color:#66748f;padding-bottom:15px;border-bottom:1px solid #e8e9f1}
#todo-view #todo-filter{width:230px;max-width:70%}
#todo-view #todo-filter+div{margin-top:18px}
#todo-view article,#calendar-view article{background:#fff;border:1px solid #e3e6f0!important;border-radius:12px!important;padding:16px 18px!important;display:flex!important;align-items:flex-start!important;gap:15px!important;transition:border-color .15s,box-shadow .15s}
#todo-view article:hover,#calendar-view article:hover{border-color:#d3c6eb!important;box-shadow:0 3px 14px rgba(74,51,114,.06)}
#todo-view article strong,#calendar-view article strong{display:block;color:#23304a;font-size:15px;font-weight:760;line-height:1.4}
#todo-view article p,#calendar-view article p{font-size:13px!important;color:#64708a;line-height:1.65;margin:7px 0!important;white-space:pre-wrap;overflow-wrap:anywhere}
#todo-view article small{display:inline-flex;margin-top:4px;background:#f4f0fb;color:#71549c;padding:4px 9px;border-radius:7px;font-size:11px;font-weight:750}
#todo-view article input[type=checkbox],#calendar-view input[type=checkbox]{width:18px;height:18px;accent-color:#7135a6;flex:none;cursor:pointer;margin:2px 0}
#todo-view article select{flex:0 0 118px;width:118px;font-size:12px;padding:8px}
#calendar-view #calendar-form{max-width:none!important;background:#f9f9fd;border:1px solid #e7e8f1;border-radius:13px;padding:22px;margin:22px 0 30px!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:16px}
#calendar-view #calendar-form>label{font-size:13px;color:#4e5a75;font-weight:730;display:block}
#calendar-view #calendar-form>label:first-child,#calendar-view #calendar-form>label:nth-child(2){grid-column:1/-1}
#calendar-view #calendar-form label input:not([type=checkbox]),#calendar-view #calendar-form label select{display:block;margin-top:7px}
#calendar-view #calendar-form>label:has([type=checkbox]){display:flex;align-items:center;gap:9px;padding-top:24px}
#calendar-view #calendar-form>div{display:flex;gap:14px;flex-wrap:wrap}
#calendar-view #calendar-form>div label{font-size:13px;font-weight:730;color:#4e5a75;flex:1 1 140px}
#calendar-view #calendar-times[hidden]{display:none!important}
#calendar-view #calendar-form>div:last-child{grid-column:1/-1;padding-top:3px}
#calendar-view h3{font-size:18px;color:#26324a;margin:22px 0 14px}
#calendar-view article{align-items:center!important;flex-wrap:wrap}
#calendar-view article .outline-btn{white-space:nowrap}
#calendar-view article a{color:#6a35a3;font-weight:700;font-size:13px}
#calendar-view .content-panel>p[role=status]{padding:14px;background:#fff7e8;color:#8b5b1a;border-radius:9px;font-size:13px}
@media(max-width:760px){
 #todo-view>.content-panel,#calendar-view>.content-panel{padding:18px 15px 24px;border-radius:12px}
 #todo-view #todo-add,#calendar-view #calendar-form{padding:14px}
 #calendar-view #calendar-form{grid-template-columns:1fr}
 #calendar-view #calendar-form>label:first-child,#calendar-view #calendar-form>label:nth-child(2),#calendar-view #calendar-form>div:last-child{grid-column:1}
 #todo-view article{gap:10px!important;padding:13px!important}
 #todo-view article select{flex-basis:95px;width:95px}
 #todo-view #todo-add>div{align-items:stretch}
}
