/* Compact category list; private connected environment only. */
.category-compact .cathead{display:grid;grid-template-columns:1fr auto;gap:12px 20px;align-items:center;margin:0 0 22px}
.category-compact #btn-icats{grid-column:1/-1;justify-self:start;font-size:14px;color:var(--muted);margin-bottom:4px}
.category-compact #i-cat-title{font-size:30px;color:var(--brand);margin:0}
.category-compact #i-addrow{margin:0!important;display:block}.category-compact #i-addrow.hidden{display:none}
.category-compact #btn-iadd{min-height:44px;padding:8px 18px;font-size:15px}
.category-compact #i-list{background:#fff;border:1px solid #E8DEE2;border-top:3px solid #C895A7;border-radius:14px;overflow:hidden;padding:0;margin:0}
.category-compact #i-list.hidden{display:none}
.category-compact #i-list .pitem{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;gap:12px 20px;align-items:center;border:0;border-bottom:1px solid #E8DEE2;border-radius:0;padding:20px;margin:0;background:transparent}
.category-compact #i-list .pitem:last-child{border-bottom:0}
.category-compact .pname{font-size:18px;color:var(--brand);font-weight:700}
.category-compact .pextra{font-size:14px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.category-compact .pval{font-size:18px;font-weight:700;white-space:nowrap;margin:0}.category-compact .pval small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
.category-compact .pacts{gap:4px;align-items:center}.category-compact .pacts button{font-size:14px;padding:7px 10px;min-height:40px;text-decoration:none}
.category-compact .pacts [data-act=view]{background:#F5EDEF;border-radius:8px;font-weight:700;color:var(--brand)}
.category-compact .confirm{grid-column:1/-1}
@media(max-width:720px){.category-compact #i-list .pitem{grid-template-columns:1fr;gap:8px;padding:16px}.category-compact .pval{font-size:16px}.category-compact .pval small{display:inline;margin-inline-start:8px}.category-compact .pacts{justify-content:flex-start}.category-compact #i-cat-title{font-size:26px}.category-compact #btn-iadd{padding:8px 12px}}
#s-app:has(.category-compact:not(.hidden) #i-addrow:not(.hidden)){max-width:1040px;background:transparent;border:0;box-shadow:none}
@media(max-width:720px){#s-app:has(.category-compact:not(.hidden) #i-addrow:not(.hidden)){padding:20px 12px}}

.box-views{display:flex;gap:4px;margin:18px 0;background:#F0E6E9;padding:4px;border-radius:10px;width:fit-content}.box-views.hidden{display:none}.box-views button{font:inherit;font-size:15px;padding:9px 18px;border:0;border-radius:7px;background:transparent;color:var(--brand);cursor:pointer}.box-views button[aria-pressed=true]{background:white;font-weight:700;box-shadow:0 1px 3px #63354918}
#i-cats.all-items-mode>.sub,#i-cats.all-items-mode>.q,#i-cats.all-items-mode>.catgrid,#i-cats.all-items-mode>.finder,#i-cats.all-items-mode>.nextbar{display:none}
.box-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;margin-bottom:12px}.box-filters label{font-size:14px;color:var(--muted)}.box-filters input,.box-filters select{margin-top:5px;width:100%;font:inherit;padding:10px 12px;border:1px solid #B5A6AD;border-radius:8px;background:white;color:var(--ink)}#box-result{font-size:14px;color:var(--muted);margin:10px 0}
#s-app:has(#i-cats.all-items-mode:not(.hidden)){max-width:1040px;background:transparent;border:0;box-shadow:none}
@media(max-width:600px){.box-filters{grid-template-columns:1fr;gap:10px}#s-app:has(#i-cats.all-items-mode:not(.hidden)){padding:20px 12px}}

/* Connected intake screens: show one task at a time, without the item list. */
#s-app:has(.category-compact:not(.hidden) #i-subpick:not(.hidden)),#s-app:has(.category-compact:not(.hidden) #f-item:not(.hidden)){max-width:860px;background:transparent;border:0;box-shadow:none}
.category-compact:has(#i-subpick:not(.hidden)) #i-list,.category-compact:has(#f-item:not(.hidden)) #i-list{display:none}
.category-compact:has(#f-item:not(.hidden)) #i-cat-title{display:none}
.category-compact #i-subpick{background:#fff;border:1px solid #E8DEE2;border-top:3px solid #C895A7;border-radius:14px;padding:24px}
.category-compact #i-subpick>.q{margin:0;color:var(--brand);font-size:23px!important}
.category-compact #i-subpicks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.category-compact #i-subpicks button{min-height:68px;border:1px solid #E8DEE2;border-radius:12px;background:#FCFAF6;color:var(--brand);font-size:17px;font-weight:700;box-shadow:none;padding:12px}
.category-compact #i-subpicks button:hover,.category-compact #i-subpicks button:focus-visible{background:#F5EDEF;border-color:#C895A7}
.category-compact #i-subpick>.btnrow{margin:16px 0 0}
.category-compact #f-item{border:1px solid #E8DEE2;border-top:3px solid #C895A7;border-radius:14px;background:white;padding:24px;margin-top:0}
.category-compact #i-form-title{font-size:26px;color:var(--brand);margin:0 0 6px}
.category-compact #f-item .q{font-size:16px;margin-top:16px}
.category-compact #f-item .hint{font-size:13px;line-height:1.5}
.category-compact #f-item input:not([type=checkbox]):not([type=file]){min-height:44px;font-size:16px;padding:9px 12px;border-color:#B5A6AD;border-radius:8px}
.category-compact #i-valuewrap{display:grid;grid-template-columns:2fr 1fr;gap:18px;background:#FCF8F0;border-radius:10px;padding:0 16px 12px;margin-top:16px}
.category-compact #i-valuewrap.hidden{display:none}
.category-compact #i-docwrap{margin-top:20px;border-top:1px solid #E8DEE2;padding-top:2px}
.category-compact #f-item>.btnrow{gap:10px}.category-compact #f-item>.btnrow .btn{font-size:15px;padding:10px 16px;min-height:44px}
.category-compact #i-cur{flex-wrap:wrap;gap:4px}.category-compact #i-cur button{border:1px solid #B5A6AD;border-radius:6px;padding:6px 10px}
@media(max-width:600px){.category-compact #i-subpick,.category-compact #f-item{padding:18px}.category-compact #i-subpicks{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-compact #i-valuewrap{grid-template-columns:1fr;gap:0}#s-app:has(.category-compact:not(.hidden) #i-subpick:not(.hidden)),#s-app:has(.category-compact:not(.hidden) #f-item:not(.hidden)){padding:16px 0}}

/* Approved compact intake. */

#s-app:has(.compact-intake:not(.hidden)){max-width:880px;padding:12px 24px}.category-compact .cathead{margin-bottom:12px}.category-compact #f-item{padding:20px 24px}.category-compact #i-form-title{font-size:25px;margin-bottom:2px}.intake-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;margin-top:18px}.intake-grid>div{min-width:0}.category-compact #f-item .intake-grid .q{margin:0 0 5px;font-size:15px}.category-compact #f-item input:not([type=checkbox]):not([type=file]){min-height:42px;padding:8px 10px}.category-compact #i-valuewrap{margin-top:16px;padding:10px 14px;gap:20px}.category-compact #i-valuewrap .q{margin:0 0 5px;font-size:15px}.category-compact #i-docwrap{margin-top:16px;padding-top:12px}.category-compact #q-doc{margin:0 0 4px!important}.category-compact .docbox{padding:8px 0;border:0;margin:0}.category-compact .docpick .btn{min-height:40px;font-size:14px;padding:7px 14px}.category-compact #f-item>.btnrow{margin-top:14px}.category-compact #f-item .docprivacy label{min-height:28px;font-size:13px;margin:6px 0}.category-compact #f-item .docprivacy .hint{font-size:12px}.category-compact #i-docdonot{padding:7px 10px;font-size:12px}.category-compact #f-item .hint{margin-bottom:4px}.category-compact #i-form-sub{font-size:14px}.category-compact #i-curwrap{margin:4px 0 0}.category-compact #btn-isave{min-width:110px}.category-compact .docbox{background:transparent}.category-compact .docbox .msg:empty,.category-compact #m-item:empty{display:none}.category-compact .docpick{margin:0}
@media(max-width:600px){#s-app:has(.compact-intake:not(.hidden)){padding:8px 0}.category-compact #f-item{padding:18px}.intake-grid{grid-template-columns:1fr;gap:14px}.category-compact #i-valuewrap{grid-template-columns:1fr 1fr;gap:12px}}

.category-compact #btn-docpick{display:inline-flex;align-items:center;gap:8px;background:#fff;color:var(--brand);border:1px solid #B5A6AD;font-weight:400;box-shadow:none}.category-compact #btn-docpick:hover{background:#F5EDEF;border-color:var(--brand)}.category-compact #btn-docpick svg{width:18px;height:18px;flex-shrink:0}
