/* Phone-first additions; system fonts and existing tide palette, no dependencies. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap;border:0!important}
.x-muted{color:#647d83;font-size:13px;line-height:1.75}.x-info,.x-success{padding:12px 14px;background:#e1f3ee;color:#12665f;border-radius:10px;font-size:14px}.x-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.x-heading h2,.x-heading h3{margin:0}.x-actions{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}.x-actions button,.x-actions a{min-height:44px;font-size:14px}.x-form label,.x-dialog label{display:grid;gap:8px;font-size:14px;margin:0 0 18px;min-width:0}.x-form input,.x-form select,.x-form textarea,.x-dialog input:not([type=checkbox]),.x-dialog select,.x-dialog textarea{width:100%;min-width:0;max-width:100%;border:1px solid #cfdddf;border-radius:9px;background:white;padding:11px 12px;min-height:46px;font:16px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:var(--ink);margin:0}.x-form input[type=checkbox]{min-height:22px;width:22px}.x-dialog textarea{resize:vertical}.x-form button[type=submit]{min-height:46px}.x-form small,.x-dialog small{font-size:12px;color:#647d83}
.x-library-bar{display:flex;align-items:center;gap:10px;margin:0 0 12px}.x-library-select{min-width:0;margin:0;flex:1}.x-library-select select{font:inherit;font-size:16px;width:100%;height:44px;max-width:100%;padding:8px 10px;border:1px solid #d4e2e2;border-radius:8px;background:white;color:var(--ink)}#xManageFolders{min-height:44px;white-space:nowrap}#xSelect{margin-left:auto}#xSelectInfo{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;color:var(--muted);font-size:12px}.x-file-check{display:grid;place-content:center;min-width:44px;min-height:44px;margin:0;cursor:pointer}.x-file-check input{width:22px;height:22px;accent-color:var(--tide)}#pfFilesPanel .pf-file.x-select-row{grid-template-columns:44px 30px minmax(0,1fr);gap:8px}#pfFilesPanel .x-select-row>.pf-actions{display:none}#pfFilesPanel .x-selected{border-color:#4a9c91;background:#f4fbf8}.x-star{font-size:25px;color:#087f78;min-width:44px;min-height:44px;border:0;background:none}#xSelectionBar{position:fixed;z-index:75;bottom:24px;right:24px;display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border:1px solid #d1e3df;border-radius:13px;box-shadow:0 6px 24px #173e461a}#xSelectedCount{font-size:14px;flex:1}#xSelectionBar button{min-height:44px}body.x-selecting .page-body{padding-bottom:110px}
.x-dialog{width:min(660px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #d9e6e6;border-radius:16px;color:var(--ink);background:#fff;overflow:hidden;box-shadow:0 20px 80px #183e4533}.x-dialog[open]{display:flex;flex-direction:column}.x-dialog::backdrop{background:#173e4666;backdrop-filter:blur(2px)}.x-dialog-head{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e1eaea;flex:none}.x-dialog h2{font-size:22px;margin:0;overflow-wrap:anywhere}.x-dialog h3{font-size:16px;overflow-wrap:anywhere}.x-dialog .close-button{width:44px;height:44px;flex-shrink:0}#xError{padding:0 20px;max-height:20vh;overflow:auto}#xError:empty{display:none}.x-dialog-body{overflow:auto;padding:18px 20px;min-height:0;flex:1;overscroll-behavior:contain}.x-dialog-form{display:flex;flex-direction:column;min-height:0;margin:0;flex:1}.x-dialog-foot{display:flex;gap:12px;padding:12px 20px;border-top:1px solid #e1eaea;flex:none;background:white}.x-dialog-foot .primary{flex:1}.x-folder-row,.x-template-row{display:flex;align-items:center;gap:8px;padding:16px 0;border-bottom:1px solid #e6eeee}.x-folder-row>div,.x-template-row>div{flex:1;min-width:0}.x-folder-row strong,.x-template-row strong{display:block;font-size:15px;overflow-wrap:anywhere}.x-folder-row small,.x-template-row small{display:block;margin-top:4px}.x-dialog .text-button{font-size:13px;min-height:44px}.x-search{display:flex;gap:8px;margin-bottom:14px}.x-search input{flex:1;min-width:0}.x-dialog label.x-pick-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e5eeee;padding:12px 0;margin:0}.x-pick-row input[type=checkbox]{width:22px;height:22px;flex:none;accent-color:var(--tide)}.x-pick-row span{min-width:0}.x-pick-row strong{display:block;overflow-wrap:anywhere}.x-pick-row small{display:block}.x-picker-foot{position:sticky;bottom:-18px;background:white;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #e5eeee}.x-selected-files{max-height:180px;overflow:auto;margin:10px 0}.x-selected-files>div{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e5eeee;padding:6px 0}.x-selected-files span{flex:1;overflow-wrap:anywhere;font-size:14px}.x-selected-files button{min-height:44px}.ops-dialog #xShareSelection .x-heading{align-items:center;gap:8px}#xChecklist{min-height:98px;resize:vertical}#xPreviewRequest,#xPreviewLink{min-height:44px;justify-self:stretch;margin:0 0 14px}
.x-recipient-file{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid #e2ebeb}.x-recipient-file strong{display:block;font-size:15px;overflow-wrap:anywhere}.x-recipient-file small{display:block;font-size:12px;color:#647d83;margin-top:6px}.x-type{font-size:9px;background:#edf6f1;color:#528273;border-radius:7px;padding:9px 2px;text-align:center}.x-recipient-file .button{min-height:44px;padding:9px 14px}.x-checklist{margin:18px 0;border:1px solid #deebea;border-radius:11px;padding:14px}.x-checklist h3{margin:0 0 8px;font-size:16px}.x-check-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;font-size:14px}.x-check-item>span:first-child{overflow-wrap:anywhere;min-width:0;flex:1}.x-check-item .pf-status{flex:none;font-size:12px}.x-receipt-file,.x-submission-file{padding:16px 0;border-bottom:1px solid #e4eeee}.x-receipt-file strong,.x-submission-file strong{display:block;font-size:15px;overflow-wrap:anywhere}.x-receipt-file .pf-status{margin:8px 6px 0 0}.x-submission-file small{display:block;margin-top:8px}.x-review-note{font-size:14px;color:#8a5b22;background:#fff7e8;padding:12px;border-radius:8px;overflow-wrap:anywhere}.x-submission-card{border:1px solid #dce9e9;border-radius:12px;margin:16px 0;padding:14px}.x-submission-card h3{margin:0}.x-collection-total{display:flex;justify-content:space-between;gap:12px;background:#eaf5f1;padding:14px;border-radius:10px;font-size:13px;margin-top:20px}.x-owner-file{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e5eeee}.x-owner-file>span{flex:1;overflow-wrap:anywhere;font-size:14px}.x-receipt-log{margin-top:24px;padding-top:16px;border-top:1px solid #dae7e7}.x-receipt-log summary{font-size:15px;cursor:pointer;min-height:44px}.x-log-row{display:flex;flex-direction:column;gap:5px;margin:12px 0;font-size:13px}.x-log-row time{color:#647d83;font-size:12px}
.x-public{background:#f3f8f8}.x-public-brand{display:flex;justify-content:space-between;align-items:center;padding:14px max(16px,calc((100vw - 650px)/2));gap:20px;border-bottom:1px solid #deebeb;background:white}.x-public-brand a{display:flex;gap:9px;align-items:center}.x-public-brand .brand-mark{width:34px;height:34px;font-size:26px;border-radius:9px}.x-public-brand>span{color:#647d83;font-size:12px}.x-public-main{max-width:650px;margin:0 auto;padding:22px 16px max(28px,env(safe-area-inset-bottom))}.x-public-main h1{font-size:24px;line-height:1.4;overflow-wrap:anywhere;margin:0 0 8px}.x-public-main h2{font-size:18px}.x-public-main .pf-error:empty{display:none}.x-public-main section{margin-top:20px}.x-public-main #publicDownload,.x-public-main #publicReceiptSection{padding:18px;background:white;border:1px solid #deebeb;border-radius:13px}.x-public-main #publicDownload>.button{margin:10px 5px 0 0}.x-public-main #publicAccessForm{margin-top:20px;background:white;padding:18px;border:1px solid #deebeb;border-radius:12px}#publicProfile{background:white;border:1px solid #deebeb;border-radius:10px;padding:12px 14px;margin:18px 0}#publicProfile summary{font-size:14px;min-height:32px;cursor:pointer}#publicProfile .x-form{margin-top:16px}.x-pick{padding:16px 0}.x-pick label.button{cursor:pointer}.x-pick input[type=file]{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.x-queue-item{background:white;border:1px solid #deebeb;border-radius:12px;padding:14px;margin-bottom:12px}.x-queue-item strong{font-size:15px;overflow-wrap:anywhere;min-width:0}.x-queue-item small{font-size:12px;color:#647d83}.x-queue-item .x-requirement-label{display:grid;gap:8px;font-size:14px;margin-top:14px}.x-queue-item select{font-size:16px;padding:10px 12px;min-height:44px;border:1px solid #cfdddf;border-radius:8px;width:100%;background:white;color:var(--ink)}.x-upload-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.x-upload-actions>.primary{flex:1}.x-upload-actions button{min-height:46px}#publicResults{white-space:pre-wrap;font-size:13px;color:#12665f}.x-public-foot{margin:28px 0 0;font-size:12px;line-height:1.8;color:#6f858b}.x-public-main textarea{max-width:100%;font-size:16px}#publicReceiptSection .x-heading{flex-wrap:wrap}#publicReceiptRefresh{min-height:44px}
@media(max-width:760px){#xSelectionBar{left:0;right:0;bottom:calc(66px + env(safe-area-inset-bottom,0px));border-radius:0;padding:10px 14px;gap:8px}#xSelectionBar .button{font-size:14px;padding:9px 15px}body.x-selecting #appView .page-body{padding-bottom:calc(160px + env(safe-area-inset-bottom,0px))}#appView .pf-heading #xSelect{min-height:44px;padding:8px 12px;font-size:14px}#appView .pf-heading{flex-wrap:nowrap;gap:8px}#appView .pf-heading h1{font-size:23px}#xSelectInfo{font-size:11px;gap:6px}.x-library-bar{margin:0 0 10px}.x-dialog{position:fixed;inset:var(--m-vtop,0px) 0 auto;margin:0;width:100%;height:var(--m-vh,100dvh);max-height:var(--m-vh,100dvh);max-width:100%;border:0;border-radius:14px 14px 0 0}.x-dialog-head{padding:12px 16px}.x-dialog h2{font-size:21px}.x-dialog-body{padding:16px}.x-dialog-foot{padding:12px 16px max(12px,env(safe-area-inset-bottom,0px))}.x-dialog-head .close-button{min-width:44px}.x-dialog .x-form label{font-size:14px}.x-dialog .x-collection-total{flex-direction:column;gap:5px}.x-folder-row,.x-template-row{flex-wrap:wrap}.x-folder-row>div,.x-template-row>div{flex-basis:100%}.x-picker-foot{bottom:-16px}.x-public-main{padding-top:18px}.x-public-main #publicDownload{padding:14px}#pfFilesPanel .pf-file>.pf-actions{gap:7px;max-width:100%;flex-wrap:wrap}.x-selected-files{max-height:146px}.x-receipt-log summary{min-height:44px}#xError{padding:0 16px}.ops-dialog #pfLinkForm #xShareSelection{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.x-dialog,.x-public *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
[hidden]{display:none!important}

@media(max-width:760px){.x-library-bar{margin-top:-4px;margin-bottom:6px}.x-library-select select{height:40px}#xManageFolders{min-height:40px}#appView .pf-heading{margin-bottom:14px}}

@media(max-width:760px){body.x-selecting .toast{bottom:calc(150px + env(safe-area-inset-bottom,0px));pointer-events:none}}
