[hidden]{display:none!important}.portal{max-width:1120px;margin:22px auto 40px}.portal-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:white;border:1px solid var(--line);border-radius:20px;padding:26px 30px}.portal-hero h1{font-size:clamp(26px,5vw,38px);margin:5px 0;line-height:1.2;letter-spacing:-1px}.portal-hero p{margin:0;color:var(--muted);overflow-wrap:anywhere}.portal-hero .tag{margin:0}.secondary,.portal-nav button{background:white;border:1px solid var(--line);border-radius:12px;padding:10px 15px;font:inherit;color:var(--navy);cursor:pointer}.portal-nav{display:flex;gap:10px;margin:18px 0}.portal-nav .active{background:var(--navy);color:white;border-color:var(--navy)}.portal-status,.portal-note{color:var(--muted);font-size:12px;margin:12px 0}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:12px}.sectionhead h2,#teamView h2,#adminView h2{margin:10px 0 0;font-size:23px}.sectionhead p,#teamView p{color:var(--muted);margin:3px 0 16px}.count{color:var(--muted);white-space:nowrap}.ministry-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.ministry-tile{text-align:left;min-height:106px;padding:20px 18px;background:white;border:1px solid var(--line);border-left:5px solid var(--accent,#82bfe1);border-radius:13px;display:flex;flex-direction:column;justify-content:center;gap:8px;font:inherit;color:var(--navy)}button.ministry-tile{cursor:pointer}button.ministry-tile:hover{box-shadow:0 8px 22px #19344914;border-color:var(--accent,#82bfe1)}.ministry-tile strong{font-size:16px}.ministry-tile span{font-size:12px;color:var(--muted)}@media(max-width:540px){.portal-hero{padding:18px;flex-wrap:wrap}.ministry-grid{grid-template-columns:1fr 1fr;gap:8px}.ministry-tile{min-width:0;padding:12px;min-height:100px;overflow-wrap:anywhere}.ministry-tile strong{font-size:14px}.sectionhead{align-items:flex-start}.count{font-size:11px}}@media(max-width:340px){.ministry-grid{grid-template-columns:1fr}}
.file-panel,.file-row{background:white;border:1px solid var(--line);border-radius:14px;padding:16px;margin:12px 0}.file-panel{display:flex;flex-direction:column;gap:12px;align-items:flex-start}.file-panel input,.file-panel progress{max-width:100%;width:100%}.file-panel progress{accent-color:#34789d}.file-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.file-row div{min-width:0;overflow-wrap:anywhere}.file-row small{display:block;color:var(--muted)}.file-row a{flex-shrink:0}.file-panel button:disabled{opacity:.5;cursor:wait}.file-panel p{margin:0;color:var(--muted)}.portal-nav{flex-wrap:wrap}
.drop-zone{border:2px dashed #b7d5e4;border-radius:14px;padding:24px;text-align:center;width:100%;box-sizing:border-box;color:var(--muted);background:#f8fbfd}.drop-zone.drag{background:#e1f1fa;border-color:#34789d}.file-tools{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.file-tools input,.file-tools select{min-width:0;padding:10px;border:1px solid var(--line);border-radius:10px;font:inherit;background:white;color:var(--navy)}.file-tools input{flex:1 1 180px}.file-row .file-thumb{width:80px;height:65px;flex:0 0 80px;border-radius:8px;background:#eaf4f9;color:var(--muted);display:grid;place-items:center;font-weight:700;overflow:hidden}.file-thumb img{width:100%;height:100%;object-fit:contain}.file-row>div:nth-child(2){flex:1}.file-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.file-actions a{text-decoration:none}.file-row button,.file-row a{font-size:13px}.file-panel #queueStatus{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:540px){.file-row{flex-wrap:wrap}.file-actions{flex-basis:100%;justify-content:flex-start}.file-tools select{flex:1 1 100px}}
@media(max-width:540px){.file-row{display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px}.file-row .file-thumb{width:56px;height:56px}.file-row .file-actions{grid-column:2;justify-content:flex-start;flex-wrap:wrap}.file-row>div:nth-child(2){min-width:0;overflow-wrap:anywhere}.file-tools input,.file-tools select{max-width:100%}.portal-nav>*{max-width:100%}}
