/* Shared Posts / Safehouse / Trade Ideas editor for owner and inviter dashboards. */
.ce-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.ce-head h2{margin:2px 0 6px;font-size:24px;letter-spacing:-.5px}
.ce-kicker{margin:0;color:#88ffc3;font-size:10px;letter-spacing:2px;text-transform:uppercase;font-weight:900}
.ce-intro{margin:0;max-width:62ch;color:#9aa5b9;font-size:13px;line-height:1.55}
.ce-status{margin:0;font-size:13px;font-weight:bold;padding:8px 12px;border-radius:9px;border:1px solid #3a4560;background:#111c2e;color:#d7dce8}
.ce-status.ok{color:#88ffc3;border-color:#299f77}
.ce-status.err{color:#ffb0b0;border-color:#8d3b3b}
.ce-tabs{display:flex;gap:4px;border-bottom:1px solid #2a3448;overflow-x:auto;scrollbar-width:none;margin-bottom:14px}
.ce-tabs::-webkit-scrollbar{display:none}
.ce-tabs button{appearance:none;background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:10px 14px 11px;color:#98a1b6;font:inherit;font-size:13px;font-weight:bold;cursor:pointer;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.ce-tabs button:hover{color:#eef2f9}
.ce-tabs button.active{color:#88ffc3;border-bottom-color:#299f77}
.ce-tabs em{font-style:normal;font-size:10px;min-width:18px;padding:2px 5px;border-radius:999px;background:#1b2940;color:#c5d0e2;text-align:center}
.ce-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.ce-count{color:#98a1b6;font-size:12px}
.ce-panel{display:grid;gap:10px;min-width:0}
.ce-empty{border:1px dashed #3a4560;border-radius:12px;padding:26px 20px;color:#98a1b6;background:#0a122099}
.ce-empty strong{display:block;color:#eef2f9;margin-bottom:5px}
.ce-empty p{margin:0;font-size:13px;line-height:1.5}
.ce-item{display:grid;grid-template-columns:88px minmax(0,1fr) auto;gap:14px;align-items:center;border:1px solid #2f3b51;border-radius:13px;padding:10px;background:#0d1727;min-width:0}
.ce-item-thumb{width:88px;height:70px;object-fit:cover;border-radius:8px;background:#15223a;display:block}
.ce-item-empty{display:flex;align-items:center;justify-content:center;color:#3d5477;font-size:12px;font-weight:900;letter-spacing:1px;border:1px dashed #334158}
.ce-item-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.ce-item-copy strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.ce-item-copy>span:not(.ce-badge){font-size:12px;color:#98a1b6;overflow-wrap:anywhere}
.ce-badge{align-self:flex-start;margin-top:3px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.6px;border-radius:5px;padding:3px 6px}
.ce-badge.live{background:#299f7729;color:#9fffd0;border:1px solid #299f77}
.ce-badge.draft{background:#f0c6741f;color:#f0c674;border:1px solid #8d7437}
.ce-item-actions{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end;max-width:190px}
.ce-small{appearance:none;background:#142239;border:1px solid #3a4b66;color:#d7dce8;font:inherit;font-size:12px;font-weight:bold;border-radius:7px;padding:6px 9px;cursor:pointer}
.ce-small:hover{border-color:#88ffc3;color:#88ffc3}
.ce-small:disabled{opacity:.35;cursor:default}
.ce-small.danger{color:#ffb0b0;border-color:#6f3636}
.ce-small.danger:hover{border-color:#ffb0b0;color:#ffb0b0}
.ce-file{display:inline-flex;align-items:center;justify-content:center;border:1px solid #3a4b66;background:#142239;color:#d7dce8;border-radius:8px;padding:8px 11px;font-size:12px;font-weight:bold;cursor:pointer;white-space:nowrap}
.ce-file:hover{border-color:#88ffc3;color:#88ffc3}

/* Editor dialog */
.ce-dialog{width:min(760px,calc(100vw - 24px));max-height:calc(100vh - 28px);padding:0;border:1px solid #3a4560;border-radius:18px;background:#0c1421;color:#e9edf5;box-shadow:0 30px 90px #000c;overflow:auto}
.ce-dialog::backdrop{background:#000000d9}
.ce-dialog-card{padding:clamp(18px,3.5vw,30px)}
.ce-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px}
.ce-dialog-head h2{margin:3px 0 0;font-size:23px}
.ce-close{width:34px;height:34px;flex:0 0 auto;border-radius:50%;border:1px solid #3a4560;background:#101c2e;color:#dfe5f0;font-size:21px;line-height:1;cursor:pointer}
.ce-close:hover{border-color:#88ffc3;color:#88ffc3}
.ce-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ce-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.ce-field.wide,.ce-check,.ce-check-row,.ce-actions,.ce-help{grid-column:1/-1}
.ce-field label,.ce-field .label{font-size:12px;font-weight:bold;color:#c6cfdd}
.ce-field input,.ce-field select,.ce-field textarea,.ce-update-row input,.ce-update-row textarea,.ce-target-row input,.ce-target-row select{width:100%;box-sizing:border-box;background:#08111e;border:1px solid #334158;border-radius:8px;color:#eef2f9;padding:9px 10px;font:inherit;font-size:14px}
.ce-field textarea{resize:vertical}
.ce-field input:focus,.ce-field select:focus,.ce-field textarea:focus,.ce-update-row input:focus,.ce-update-row textarea:focus,.ce-target-row input:focus,.ce-target-row select:focus{outline:2px solid #299f77;outline-offset:1px}
.ce-field small,.ce-help,.ce-check small{color:#8793a8;font-size:11px;line-height:1.45}
.ce-help{margin:0}
.ce-media-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.ce-media-row input{flex:1 1 220px;min-width:0}
.ce-thumb{margin-top:6px;width:120px;height:86px;object-fit:cover;border-radius:8px;border:1px solid #334158;background:#15223a}
.ce-check{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;font-size:13px;color:#d7dce8;cursor:pointer}
.ce-check input{width:16px;height:16px;accent-color:#299f77}
.ce-check small{flex-basis:100%;padding-left:22px}
.ce-check-row{display:grid;gap:10px;border:1px solid #2a3448;border-radius:10px;padding:12px}
.ce-updates{display:grid;gap:8px;margin:4px 0}
.ce-update-row{display:grid;grid-template-columns:145px minmax(0,1fr) auto;gap:7px;align-items:start}
.ce-update-row textarea{min-height:58px;resize:vertical}
.ce-section{grid-column:1/-1;border:1px solid #2a3448;border-radius:12px;padding:12px;background:#0b1421}
.ce-section h3{margin:0 0 10px;font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:#88ffc3}
.ce-trade-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ce-target-list{display:grid;gap:6px;margin:5px 0}
.ce-target-row{display:grid;grid-template-columns:72px minmax(0,1fr) 108px auto;gap:6px;align-items:center;min-width:0}
.ce-target-label{font-size:11px;font-weight:900;color:#88ffc3;letter-spacing:.3px}
.ce-target-row input,.ce-target-row select{min-width:0}
.ce-rr-preview{grid-column:1/-1;display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;border:1px solid #2f5d4b;border-radius:9px;padding:9px 11px;background:#10241e}
.ce-rr-preview span{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:#88ffc3;font-weight:900}
.ce-rr-preview strong{font-size:12px;color:#d7e5de;font-weight:bold}
.ce-form-status{grid-column:1/-1;margin:0;padding:9px 11px;border:1px solid #3a4560;border-radius:8px;background:#111c2e;color:#d7dce8;font-size:12px;font-weight:bold;line-height:1.4;scroll-margin:12px}
.ce-form-status[hidden]{display:none}
.ce-form-status.ok{color:#88ffc3;border-color:#299f77;background:#10241e}
.ce-form-status.err{color:#ffb0b0;border-color:#8d3b3b;background:#2a1417}
.ce-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px;padding-top:14px;border-top:1px solid #2a3448}
@media(max-width:680px){
  .ce-item{grid-template-columns:64px minmax(0,1fr);gap:10px}
  .ce-item-thumb{width:64px;height:58px}
  .ce-item-actions{grid-column:1/-1;max-width:none;justify-content:flex-start}
  .ce-form{grid-template-columns:1fr}
  .ce-trade-grid{grid-template-columns:1fr}
  .ce-target-row{grid-template-columns:64px minmax(0,1fr) 100px}
  .ce-target-row [data-remove-target]{grid-column:1/-1;justify-self:start}
  .ce-update-row{grid-template-columns:1fr}
  .ce-head h2{font-size:20px}
}
