/* create-sheet — 创建/发布弹窗统一壳（组队 / 悬赏 / 求助 / 任务）· 黑白硬阴影 */

@keyframes createSheetIn{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}

.create-sheet-panel{
  width:100%;
  max-width:560px;
  max-height:min(85vh,720px);
  margin:auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:10px !important;
  background:#fff;
  border:1px solid #111 !important;
  box-shadow:8px 8px 0 #111 !important;
  animation:createSheetIn .22s ease both;
  position:relative;
  z-index:1;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.create-sheet-panel.detail-modal,
.create-sheet-panel.modal-detail{
  max-width:580px;
}

.create-sheet-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  padding:12px 18px 10px;
  flex-shrink:0;
  border-bottom:1px solid #e8e8e8;
  background:#fff;
  border-radius:10px 10px 0 0;
}
.create-sheet-head-copy{min-width:0;flex:1}
.create-sheet-eyebrow{
  display:inline-block;
  font-family:Consolas,'Courier New',monospace;
  font-size:10px;font-weight:700;
  letter-spacing:.14em;color:#111;opacity:.4;
  margin-bottom:3px;
}
.create-sheet-head .dialog-title,
.create-sheet-head h2,
.create-sheet-head h3{
  margin:0;
  font-family:var(--font-zh),sans-serif;
  font-size:17px;font-weight:800;
  letter-spacing:-.02em;line-height:1.25;
  color:#111;
}
.create-sheet-lead,
.create-sheet-head .modal-sub{
  margin:3px 0 0;max-width:44ch;
  font-family:var(--font-zh),sans-serif;
  font-size:12px;line-height:1.45;
  color:#666;
}

.create-sheet-head .dialog-close,
.create-sheet-head .dialog-close-btn{
  width:28px;height:28px;
  display:grid;place-items:center;
  flex-shrink:0;
  border:1px solid #d8d8d8;
  border-radius:8px;
  background:#fff;
  color:#111;
  opacity:.75;
  font-size:16px;line-height:1;
  cursor:pointer;
  transition:all .15s;
}
.create-sheet-head .dialog-close:hover,
.create-sheet-head .dialog-close-btn:hover{
  opacity:1;border-color:#111;background:#111;color:#fff;
}

.create-sheet-form,
.create-sheet-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:8px 22px 8px;
}
.create-sheet-form > .create-sheet-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  padding:8px 0 4px;
}
.create-sheet-form.is-split{
  display:flex;
  flex-direction:column;
  padding:0;
  overflow:hidden;
}
.create-sheet-form.is-split > .create-sheet-body{
  padding:8px 22px 8px;
}
.create-sheet-form.is-split > .create-sheet-actions,
.create-sheet-form.is-split > .dialog-footer,
.create-sheet-form.is-split > .form-submit{
  flex-shrink:0;
  margin:0;
  padding:14px 22px 18px;
  border-top:1px solid #e8e8e8;
  background:#fff;
}

.create-sheet-section{
  padding:14px 0 4px;
  border-top:1px dashed #e0e0e0;
}
.create-sheet-section:first-of-type,
.create-sheet-body > .create-sheet-section:first-child{
  border-top:0;padding-top:10px;
}
.create-sheet-section-title{
  margin:0 0 12px;
  font-family:var(--font-zh),sans-serif;
  font-size:13px;font-weight:700;color:#111;
}
.create-sheet-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.create-sheet-panel .form-group{margin-bottom:12px}
.create-sheet-panel .form-label,
.create-sheet-panel label{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-family:var(--font-zh),sans-serif;
  font-size:12px;font-weight:700;
  letter-spacing:0;text-transform:none;
  color:#111;margin-bottom:7px;
}
.create-sheet-panel .form-input,
.create-sheet-panel .form-textarea,
.create-sheet-panel .form-select,
.create-sheet-panel input[type="text"],
.create-sheet-panel input[type="number"],
.create-sheet-panel input[type="date"],
.create-sheet-panel input[type="datetime-local"],
.create-sheet-panel textarea,
.create-sheet-panel select{
  width:100%;
  padding:10px 12px;
  background:#fff;
  border:1px solid #111;
  border-radius:8px;
  color:#111;
  font-family:var(--font-zh),sans-serif;
  font-size:13px;line-height:1.5;
  transition:box-shadow .15s;
  outline:none;
  box-sizing:border-box;
}
.create-sheet-panel .form-input:focus,
.create-sheet-panel .form-textarea:focus,
.create-sheet-panel .form-select:focus,
.create-sheet-panel input:focus,
.create-sheet-panel textarea:focus,
.create-sheet-panel select:focus{
  border-color:#111;
  box-shadow:2px 2px 0 #111;
}
.create-sheet-panel .form-textarea,
.create-sheet-panel textarea{
  min-height:100px;resize:vertical;
}
.create-sheet-panel .form-hint{
  font-family:Consolas,'Courier New',monospace;
  font-size:10px;font-weight:500;
  letter-spacing:.04em;
  color:#888;
  margin-top:6px;
}
.create-sheet-panel .form-hint.pill,
.create-sheet-tag{
  display:inline-block;
  padding:2px 7px;border-radius:8px;
  background:#f5f5f5;border:1px solid #111;color:#111;
}

.create-sheet-actions,
.create-sheet-panel .dialog-footer,
.create-sheet-panel .form-submit,
.create-sheet-panel .form-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
}
.create-sheet-panel .btn-secondary,
.create-sheet-panel .btn.ghost,
.create-sheet-panel .btn-ghost,
.create-sheet-panel .dialog-cancel-btn{
  font-family:var(--font-zh),sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
  padding:10px 16px !important;
  border:1px solid #111 !important;
  border-radius:8px !important;
  color:#111 !important;
  background:#fff !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  box-shadow:none !important;
}
.create-sheet-panel .btn-secondary:hover,
.create-sheet-panel .btn.ghost:hover,
.create-sheet-panel .btn-ghost:hover,
.create-sheet-panel .dialog-cancel-btn:hover{
  background:#111 !important;color:#fff !important;
}
.create-sheet-panel .btn-primary,
.create-sheet-panel .btn.primary,
.create-sheet-panel button[type="submit"].btn{
  font-family:var(--font-zh),sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
  padding:10px 18px !important;
  min-width:120px;
  border:1px solid #111 !important;
  border-radius:8px !important;
  color:#fff !important;
  background:#111 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  box-shadow:none !important;
}
.create-sheet-panel .btn-primary:hover,
.create-sheet-panel .btn.primary:hover,
.create-sheet-panel button[type="submit"].btn:hover{
  background:#000 !important;border-color:#000 !important;
}

/* 选项芯片 / 标签选择：黑白 */
.create-sheet-panel .tok-option,
.create-sheet-panel .chip,
.create-sheet-panel .tag-option{
  border:1px solid #111 !important;
  border-radius:8px !important;
  background:#fff !important;
  color:#111 !important;
  box-shadow:none !important;
}
.create-sheet-panel .tok-option:hover,
.create-sheet-panel .chip:hover,
.create-sheet-panel .tag-option:hover{
  background:#f5f5f5 !important;
}
.create-sheet-panel .tok-option.selected,
.create-sheet-panel .chip.active,
.create-sheet-panel .chip.selected,
.create-sheet-panel .tag-option.active,
.create-sheet-panel .tag-option.selected{
  background:#111 !important;
  color:#fff !important;
  border-color:#111 !important;
}

@media (max-width:560px){
  .create-sheet-panel{box-shadow:5px 5px 0 #111 !important}
  .create-sheet-grid{grid-template-columns:1fr}
  .create-sheet-head,
  .create-sheet-form,
  .create-sheet-body,
  .create-sheet-form.is-split > .create-sheet-body,
  .create-sheet-form.is-split > .create-sheet-actions,
  .create-sheet-form.is-split > .dialog-footer,
  .create-sheet-form.is-split > .form-submit{
    padding-left:16px;padding-right:16px;
  }
  .create-sheet-actions,
  .create-sheet-panel .dialog-footer,
  .create-sheet-panel .form-submit,
  .create-sheet-panel .form-actions{
    flex-direction:column-reverse;
  }
  .create-sheet-panel .dialog-footer > *,
  .create-sheet-panel .form-submit > *,
  .create-sheet-panel .form-actions > *,
  .create-sheet-actions > *{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .create-sheet-panel{animation:none}
}
