.portal-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:18px 0}.portal-toolbar input{min-width:160px;max-width:360px;flex:1;border:1px solid var(--line);padding:13px 16px;border-radius:24px;background:white;color:var(--ink)}.portal-filters{display:flex;gap:8px;overflow:auto;margin:16px 0 20px;padding-bottom:3px}.portal-filters button{white-space:nowrap;min-height:44px;border-radius:24px;color:#648499}.portal-filters button.active{background:#dff1fc;color:#207ca7;border-color:#b6def4}.portal-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.portal-card{padding:23px;margin:0;display:flex;flex-direction:column}.portal-card-top{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:13px}.portal-tag{display:inline-block;background:#e9f5fc;color:#4e87a6;border-radius:18px;padding:5px 10px;font-size:10px}.portal-title{border:0;padding:0;margin:0;text-align:left;font-size:18px;font-weight:600;line-height:1.6;background:transparent;min-height:0;overflow-wrap:anywhere}.portal-title:hover{background:transparent;color:#137ec1}.portal-card>p{font-size:13px;line-height:1.8;white-space:pre-line;margin:12px 0;color:#6b879a}.portal-card>small{font-size:10px;line-height:1.8;margin-top:auto}.portal-card .portal-metrics{font-size:11px;background:#f2f8fc;border-radius:11px;padding:9px 11px;color:#5484a0;margin:14px 0 0}.portal-card-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}.portal-card-actions button{font-size:12px;min-height:44px}.portal-card-actions button:first-child{margin-right:auto;background:#e6f3fc;color:#367ea5}.portal-card-actions .portal-done{background:#e7f6f0!important;color:#368467!important}.portal-unread{border-color:#99cfed;box-shadow:inset 3px 0 #80c4ef}.portal-empty{grid-column:1/-1;text-align:center;padding:40px 25px}.portal-empty>div{font-size:35px;color:#83b9d8}.portal-empty h2{font-size:19px}.portal-empty p{max-width:440px;margin:10px auto;color:#7f9aac;line-height:1.8}.portal-home{grid-column:1/-1;margin:0}.portal-alert{display:flex;align-items:center;width:100%;border:0;border-top:1px solid var(--line);border-radius:0;text-align:left;padding:17px 20px;gap:13px;background:transparent}.portal-alert>span:nth-child(2){flex:1;min-width:0}.portal-alert b{font-size:13px;overflow-wrap:anywhere;display:block}.portal-alert small{font-size:11px}.portal-alert-icon{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:12px;background:#e4f3fd;color:#4288b1;font-size:21px}.portal-detail-text{white-space:pre-wrap;line-height:1.9;font-size:14px;overflow-wrap:anywhere}.portal-cta{display:block;text-decoration:none;text-align:center;margin:18px 0;padding:13px 18px;border-radius:25px;background:#137ec1;color:#fff;font-size:13px}.portal-unboxed{border:0;padding:0;margin:16px 0;min-width:0}.portal-unboxed:disabled{opacity:.8}.portal-checkline{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:17px 0;font-size:12px}.portal-checkline label,.portal-targets label{display:flex;align-items:center;gap:9px;min-height:36px}.portal-checkline input,.portal-targets input,.portal-option input{width:18px;height:18px;flex-shrink:0;accent-color:#137ec1}.portal-checkline button{margin-left:auto;font-size:10px;min-height:40px}.portal-targets{display:grid;grid-template-columns:1fr 1fr;max-height:240px;overflow:auto;gap:8px;padding:12px;background:#f6fafe;border-radius:14px;font-size:12px}.portal-targets[hidden],[data-q-options-wrap][hidden]{display:none}.portal-question-edit{padding:17px;background:#f3f9fd;border:1px solid var(--line);border-radius:17px;margin:13px 0}.portal-form-error{color:#ac4939;font-size:12px;white-space:pre-line}.portal-form-error:empty{display:none}.portal-answer-question{padding:16px;border:1px solid var(--line);border-radius:16px;margin:20px 0;min-width:0}.portal-answer-question legend{font-size:13px;font-weight:500;padding:0 7px;line-height:1.8;max-width:100%;overflow-wrap:anywhere}.portal-answer-question textarea{width:100%;font:inherit;line-height:1.8;padding:12px;border:1px solid var(--line);border-radius:12px;resize:vertical}.portal-option{display:flex;align-items:center;gap:12px;padding:11px 9px;font-size:13px;min-height:46px}.portal-option input{margin:0}.portal-scale{display:flex;gap:7px}.portal-scale label{flex:1;position:relative;cursor:pointer}.portal-scale label span{display:grid;place-items:center;border:1px solid var(--line);min-height:48px;border-radius:12px}.portal-scale input{position:absolute;opacity:0}.portal-scale input:checked+span{background:#d9effd;color:#1c72a0;border-color:#78bbdf}.portal-scale input:focus-visible+span{outline:3px solid #7ac1e9}.portal-reader-list>div,.portal-account-row{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:17px 0;font-size:13px}.portal-reader-list>div span{font-size:11px;color:#6f8ca0}.portal-result-count{background:#e7f4fc;border-radius:17px;padding:20px;margin:17px 0;display:flex;align-items:center;gap:15px}.portal-result-count b{font-size:32px;color:#3885ae}.portal-result-count span{font-size:12px}.portal-result-question{border-top:1px solid var(--line);padding:17px 0}.portal-result-question h3{font-size:14px;line-height:1.7}.portal-response-text{white-space:pre-wrap;padding:12px 14px;background:#f4f9fc;border-radius:12px;font-size:12px;overflow-wrap:anywhere}.portal-result-bar{display:grid;grid-template-columns:minmax(90px,1fr) minmax(70px,1fr) 30px;align-items:center;gap:12px;margin:12px 0;font-size:12px}.portal-result-bar meter{width:100%;height:12px;accent-color:#81c8f2}.portal-section-head{display:flex;justify-content:space-between;gap:15px;align-items:center}.portal-section-head h2{font-size:18px;margin:0}.portal-section-head p{font-size:12px;color:#7895a8}.portal-account-row>div{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.portal-account-row strong{font-size:13px;overflow-wrap:anywhere}.portal-account-row small{font-size:10px}.portal-account-row button{font-size:11px;min-height:44px}.portal-setting{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid var(--line);font-size:13px}.portal-setting span{flex:1}.portal-setting small{font-size:11px;line-height:1.8}.portal-setting input{width:21px;height:21px;accent-color:#137ec1}.portal-role-list p{font-size:13px;line-height:1.9;margin:15px 0}.portal-audit{padding:16px 0;border-bottom:1px solid var(--line)}.portal-audit strong{font-size:13px}.portal-audit p{font-size:12px;line-height:1.7;margin:8px 0}.portal-audit small{font-size:10px}.portal-list button:disabled{opacity:.65;cursor:default}
html[data-theme=dark] :is(.portal-toolbar input,.portal-targets,.portal-question-edit,.portal-answer-question textarea,.portal-response-text){background:#1d3044;color:#d8e7f3;border-color:#39536a}html[data-theme=dark] :is(.portal-title,.portal-answer-question legend,.portal-account-row strong){color:#e1edf6}html[data-theme=dark] :is(.portal-filters button.active,.portal-tag,.portal-card .portal-metrics,.portal-card-actions button:first-child,.portal-alert-icon,.portal-result-count){background:#264b66;color:#b0dcf6}html[data-theme=dark] .portal-title{background:transparent}html[data-theme=dark] .portal-card-actions .portal-done{background:#28493f!important;color:#b4e4ce!important}html[data-theme=dark] :is(.portal-card>p,.portal-card>small,.portal-reader-list>div span,.portal-section-head p){color:#acc2d2}html[data-theme=dark] .portal-unread{border-color:#5186ad}html[data-theme=dark] .portal-alert{background:transparent;color:#d7e8f4}html[data-theme=dark] .portal-result-count b{color:#b3e3ff}html[data-theme=dark] .portal-form-error{color:#ffbbae}html[data-theme=dark] .portal-cta{background:#7cc9f7;color:#123047}html[data-theme=dark] .portal-scale input:checked+span{background:#315c7d;color:#d6efff;border-color:#80cafa}
@media(max-width:760px){.portal-list{grid-template-columns:1fr;gap:14px}.portal-toolbar{flex-wrap:wrap;gap:10px}.portal-toolbar input{max-width:none;flex-basis:100%;font-size:16px;min-height:49px}.portal-toolbar>.primary{width:100%;min-height:48px}.portal-card{padding:21px 19px;border-radius:21px}.portal-title{font-size:17px}.portal-card>p{font-size:13px}.portal-card-actions button{font-size:11px;min-height:44px;padding:9px 11px}.portal-filters button{font-size:11px;padding:10px 14px}.portal-section-head{align-items:flex-start;flex-direction:column}.portal-section-head>.primary{width:100%}.portal-account-row{gap:8px;flex-wrap:wrap}.portal-account-row>div{flex-basis:65%}.portal-account-row strong{font-size:13px}.portal-account-row button{margin-left:auto}.portal-targets{grid-template-columns:1fr}.portal-answer-question textarea{font-size:16px}.portal-answer-question{padding:14px 11px}.portal-scale{gap:5px}.portal-result-bar{grid-template-columns:minmax(80px,1fr) minmax(65px,1fr) 25px;gap:8px}.portal-result-count{padding:17px;gap:12px}.portal-result-count span{font-size:11px}.portal-alert{padding:15px 17px}.portal-alert b{font-size:12px}.portal-alert small{font-size:10px}.portal-detail-text{font-size:14px}}
@media(min-width:761px){aside{overflow-y:auto;overscroll-behavior:contain}aside #nav{flex-shrink:0}aside #nav button{min-height:42px;padding-top:10px;padding-bottom:10px}}
.portal-card-photo{display:block;width:calc(100% + 46px);max-width:none;height:190px;object-fit:cover;margin:-23px -23px 18px;border-radius:19px 19px 0 0;background:#e9f5fc}.portal-detail-photo{margin:18px 0 22px;background:#f0f7fc;border-radius:17px;overflow:hidden;text-align:center}.portal-detail-photo img{display:block;width:100%;max-height:380px;object-fit:contain;margin:auto}.portal-detail-photo figcaption{padding:10px 14px;font-size:11px;color:#70899b;text-align:left}.portal-photo-editor{padding:16px;margin:16px 0;border:1px solid var(--line);border-radius:17px;background:#f8fbfd}.portal-photo-editor .field{margin:10px 0}.portal-photo-editor input[type=file]{font-size:12px;min-height:44px}.portal-photo-editor input:not([type=file]){width:100%;min-height:43px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)}.portal-image-preview{margin:8px 0}.portal-image-preview img{display:block;max-width:100%;max-height:230px;object-fit:contain;border-radius:13px;background:#edf5fa}.portal-photo-editor button[hidden]{display:none}.portal-photo-editor>.draft-hint{font-size:10px}html[data-theme=dark] .portal-photo-editor{background:#1d3044;border-color:#39536a}html[data-theme=dark] .portal-photo-editor input:not([type=file]){background:#101e2d;color:#e1edf6;border-color:#3a5268}html[data-theme=dark] .portal-detail-photo{background:#1b3044}html[data-theme=dark] .portal-detail-photo figcaption{color:#adc2d1}@media(max-width:760px){.portal-card-photo{width:calc(100% + 38px);height:175px;margin:-21px -19px 15px;border-radius:20px 20px 0 0}.portal-photo-editor{padding:14px;margin:14px -2px;border-radius:15px}.portal-photo-editor .field>small{line-height:1.75}.portal-image-preview img{max-height:200px}.portal-detail-photo img{max-height:310px}}

.portal-task-replacement{border-color:#e8b4a8;background:#fff9f7}.portal-task-replacement>h2{color:#8f3527}.portal-task-replacement input[type=file]{font-size:12px;min-height:44px}.portal-task-replacement button{background:#a83e31;color:#fff;border-color:#a83e31}.portal-task-replacement button:disabled{opacity:.5;cursor:not-allowed}html[data-theme=dark] .portal-task-replacement{background:#342321;border-color:#754c45}html[data-theme=dark] .portal-task-replacement>h2{color:#ffb6a8}html[data-theme=dark] .portal-task-replacement button{background:#aa574b;border-color:#aa574b;color:#fff}

.task-delete-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:76px;padding:9px 12px;border:1px solid #e8c8c4;background:transparent;color:#a23d35;border-radius:10px;font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}.task-delete-button svg{width:18px;height:18px;flex-shrink:0}.task-delete-button:hover{background:#fff0ee;border-color:#b6544b}.task-delete-button:focus-visible{outline:3px solid #bc6158;outline-offset:3px}.task-delete-button:disabled{opacity:.5;cursor:wait}.task-card-actions,.detail-task-actions{display:flex;justify-content:flex-end;margin-top:12px}.task-card-actions:empty,.detail-task-actions:empty{display:none}.task-action-cell{width:96px}html[data-theme=dark] .task-delete-button{color:#ffb5aa;border-color:#76504a}html[data-theme=dark] .task-delete-button:hover{background:#482b28}@media(max-width:700px){.task-action-cell{width:auto}.task-delete-button{min-height:44px}.detail-task-actions{margin-bottom:12px}}
