/* 本次发布表单仅调整自己的布局，按照可见视口保留输入空间和完整操作按钮。 */
.d-app .d-picker-form{height:min(670px,calc(var(--form-height,100dvh) - 24px));max-height:calc(var(--form-height,100dvh) - 24px);width:calc(100% - 28px);max-width:390px;border-radius:20px}
.d-app .d-picker-form .d-demand-header{padding:10px 16px 6px;flex:none;min-height:34px}
.d-app .d-picker-form .d-demand-header .d-modal-close{top:5px;right:9px;width:30px;height:30px}
.d-app .d-picker-hint{font-size:11px;color:#7d8395;padding-right:28px;display:block;line-height:20px}
.d-app .d-picker-form .d-form-body{display:flex;flex-direction:column;gap:8px;padding:4px 16px 14px;flex:1;min-height:0;overflow:hidden}
.d-app .d-picker-form .d-form-body>*{flex-shrink:0;margin:0!important}
.d-app .d-picker-form .d-categories,.d-app .d-selection-panel .d-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}
.d-app .d-picker-form .d-categories button,.d-app .d-selection-panel .d-categories button{padding:9px 1px!important;font-size:12px!important;line-height:18px;min-height:36px;border-radius:9px;background:#f2f3f7;text-align:center!important;white-space:nowrap}
.d-app .d-selection-panel .d-categories button.active{background:#ffda32}
.d-app .d-selection-summary{border-radius:10px;background:#f4f5f8;padding:6px 8px}
.d-app .d-selected-category{display:flex;align-items:center;gap:8px;width:100%;min-height:30px;font-size:14px!important}
.d-app .d-selected-category>.d-icon{background:#ffda32;border-radius:7px;padding:5px;width:30px;height:30px;flex:none}
.d-app .d-selected-category>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-app .d-selected-person{display:flex;align-items:center;gap:6px;min-height:34px;border-top:1px solid #e9ebef;margin-top:4px;padding-top:4px;font-size:13px}
.d-app .d-selected-person img,.d-app .d-mini-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;flex:none}
.d-app .d-mini-avatar{background:#ffedab;display:grid;place-items:center}
.d-app .d-selected-person b{max-width:86px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-app .d-selected-person small{font-size:10px;flex:1;color:#7d8395}
.d-app .d-selected-person button{font-size:12px!important;min-height:32px;padding:0 4px!important}
.d-app .d-selected-person button:last-child{font-size:23px!important;width:28px}
.d-app .d-picker-form .d-field-title{line-height:19px;font-size:13px}
.d-app .d-picker-form .d-description-input{height:auto;min-height:64px;flex:1 1 112px;border-radius:12px;position:relative;padding:0!important}
.d-app .d-picker-form .d-description-input textarea{width:100%;height:100%!important;min-height:0;padding:12px 12px 38px!important;font-size:13px!important;line-height:1.5}
.d-app .d-picker-form .d-record-button{position:absolute;right:10px;bottom:8px;font-size:12px!important;min-height:24px}
.d-app .d-picker-form .d-arrangement{border-radius:12px}
.d-app .d-picker-form .d-field-box{padding:6px 10px!important;min-height:46px;gap:8px}
.d-app .d-picker-form .d-field-box small{font-size:10px;line-height:14px}
.d-app .d-picker-form .d-field-box strong{font-size:12px;line-height:17px}
.d-app .d-picker-form .d-date-box strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-app .d-picker-form .d-budget-row{min-height:38px;gap:6px}
.d-app .d-picker-form .d-budget-copy{font-size:12px}
.d-app .d-picker-form .d-budget-copy>small{margin-top:2px;font-size:10px}
.d-app .d-picker-form .d-budget-row .d-budget-input input{font-size:21px;min-height:32px}
.d-app .d-selected-amount{margin-left:auto;font-size:21px}
.d-app .d-picker-form .d-anonymous-toggle{display:flex;align-items:center;justify-content:space-between;min-height:36px;padding:0}
.d-app .d-picker-form .d-anonymous-toggle strong{font-size:13px}
.d-app .d-picker-form .d-anonymous-toggle small{font-size:10px;margin-top:2px;display:block;color:#8a90a3}
.d-app .d-picker-form .d-publish{min-height:44px;font-size:15px!important;padding:9px!important;line-height:22px}
.d-app .d-picker-form .d-browse{font-size:12px;min-height:20px;line-height:20px;padding:0!important;text-align:center!important;align-self:center}
.d-app .d-picker-form .d-form-feedback{margin:6px 0 0;padding:5px 8px;font-size:11px;line-height:15px}
/* 分类和人员分别使用同页浮层，人员横向滑动时保留下一张卡片作为提示。 */
.d-app .d-selection-overlay{z-index:90;position:fixed;left:0;right:0;bottom:auto;display:flex;align-items:center;justify-content:center;background:#0006;padding:12px}
.d-app .d-selection-panel{width:100%;max-width:390px;max-height:calc(100% - 8px);background:#fff;border-radius:20px;padding:16px 14px;overflow:hidden;box-sizing:border-box}
.d-app .d-selection-panel>header{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.d-app .d-selection-panel h2{font-size:18px}
.d-app .d-picker-back{display:flex;align-items:center;gap:5px;font-size:13px!important;min-height:36px}
.d-app .d-picker-back>span{font-size:29px;line-height:1}
.d-app .d-picker-instruction,.d-app .d-swipe-hint{font-size:11px;color:#8a90a3;margin:12px 0}
.d-app .d-subcategories{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,90px);grid-auto-columns:calc((100% - 16px)/3);gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:6px}
.d-app .d-subcategories>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:#f3f4f7;border-radius:12px;font-size:13px!important;scroll-snap-align:start}
.d-app .d-subcategories img,.d-app .d-subcategories .d-icon{width:30px;height:30px;object-fit:contain}
.d-app .d-selection-panel .d-browse{display:block;text-align:center!important;margin:12px auto 0;font-size:12px}
.d-app .d-recommend-category{font-size:16px;font-weight:600;color:#202124;margin-bottom:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-app .d-companion-carousel{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:1px 0 4px;touch-action:pan-x pan-y}
.d-app .d-companion-carousel::-webkit-scrollbar{display:none}
.d-app .d-companion-choice{flex:0 0 42%;min-width:0;border:1px solid #e1e4ea;border-radius:12px;overflow:hidden;scroll-snap-align:start;background:#fff}
.d-app .d-companion-choice.selected{border:2px solid #ffd51b;background:#fff8dc}
.d-app .d-companion-select{display:flex;flex-direction:column;align-items:center;position:relative;width:100%;gap:6px;padding:0 0 6px!important}
.d-app .d-companion-select>img,.d-app .d-companion-placeholder{width:100%;aspect-ratio:3/4;object-fit:cover;background:#f2f3f7}
.d-app .d-companion-placeholder{display:grid;place-items:center;font-size:38px;color:#b69d52}
.d-app .d-companion-select>b{font-size:15px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 4px}
.d-app .d-companion-select>small{font-size:10px;padding:1px 5px;border-radius:8px;background:#fff0b3;max-width:95%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.d-app .d-person-check{position:absolute;right:4px;top:5px;background:#ffda32;border-radius:10px;font-size:10px;padding:2px 5px}
.d-app .d-person-price{font-size:11px;color:#676f80}
.d-app .d-person-details{width:100%;text-align:center!important;font-size:12px!important;padding:7px 0!important;color:#676f80}
.d-app .d-swipe-hint{text-align:center;margin:10px 0}
.d-app .d-confirm-companion{font-size:14px!important;min-height:44px;margin-top:14px}
.d-app .d-picker-status,.d-app .d-picker-empty{font-size:13px;color:#7d8395;padding:16px 0;text-align:center}
.d-app .d-picker-status button{color:#8c7000;text-decoration:underline;margin-top:8px}
@media(max-height:650px){.d-app .d-picker-form .d-form-body{gap:5px;padding:2px 12px 10px}.d-app .d-picker-form .d-demand-header{min-height:29px;padding:5px 12px}.d-app .d-picker-form .d-field-box{min-height:39px;padding:4px 8px!important}.d-app .d-picker-form .d-field-box small{display:none}.d-app .d-picker-form .d-anonymous-toggle{min-height:30px}.d-app .d-picker-form .d-budget-row{min-height:34px}.d-app .d-picker-form .d-categories button{min-height:32px;padding:6px 0!important}.d-app .d-picker-form .d-publish{min-height:42px;padding:8px!important}.d-app .d-picker-form .d-field-title{line-height:17px;font-size:12px}.d-app .d-selection-panel>header{margin-bottom:8px}.d-app .d-companion-select>img,.d-app .d-companion-placeholder{aspect-ratio:1/1}.d-app .d-subcategories{grid-template-rows:repeat(2,70px)}}
/* 软键盘展开时允许表单独立移动，避免输入与确认按钮落到键盘后方。 */
@media(max-height:450px){.d-app .d-picker-form .d-form-body{overflow-y:auto}.d-app .d-picker-form .d-description-input{flex:none;height:76px}.d-app .d-selection-panel{overflow-y:auto}}
