:root{--bg:#060606;--s1:#0c0c0c;--s2:#101010;--border:#1c1c1c;--border2:#282828;--red:#cc2a1f;--orange:#d48a0e;--yellow:#eab308;--text:#f0f0f0;--muted:#999;--muted2:#555;--green:#4ade80}
body{font-family:'IBM Plex Mono','Consolas','Courier New',monospace;background:var(--bg);color:var(--text);overflow-x:hidden}
.tb-btn{padding:7px 14px;border-radius:2px;font-size:.7rem;font-weight:600;text-decoration:none;transition:all var(--t-fast);white-space:nowrap;border:1px solid transparent;cursor:pointer;font-family:inherit}
.tb-btn-pri{background:var(--s2);border-color:var(--border2);color:var(--text)}.tb-btn-pri:hover{border-color:var(--yellow);color:var(--text)}
#page{padding:70px 20px 20px;max-width:1100px;margin:0 auto}
.mkt-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:24px}
.mkt-head h1{font-size:clamp(1.3rem,3vw,1.7rem);font-weight:900;letter-spacing:-.02em;margin-bottom:4px}
.mkt-head p{font-size:.8rem;color:var(--muted);line-height:1.55;max-width:380px}
.mkt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;padding-bottom:60px}
.mcard{background:var(--s2);border:2px solid var(--border);border-radius:2px;padding:18px;position:relative;overflow:hidden}
.mcard:hover{border-color:var(--border2)}
.mcard-imgs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:14px}
.mcard-imgs img{width:100%;aspect-ratio:1;border-radius:2px;object-fit:cover;background:var(--s1)}
.mcard-imgs .img-empty{background:var(--s1);border:1px dashed var(--border2);border-radius:2px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:.6rem}
.mcard-name{font-size:1rem;font-weight:800;color:var(--text);margin-bottom:2px}
.mcard-spec{font-size:.74rem;color:var(--orange);font-weight:600;margin-bottom:10px}
.mcard-skills{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}
.skill-tag{background:rgba(255,58,45,.08);border:1px solid rgba(255,58,45,.2);color:var(--text);font-size:.63rem;font-weight:600;padding:3px 8px;border-radius:2px}
.mcard-price{display:flex;align-items:center;justify-content:space-between;padding:7px 9px;background:rgba(0,0,0,.3);border:2px solid var(--border);border-radius:2px;margin-bottom:12px}
.mcard-price-lbl{font-size:.65rem;color:var(--muted)}
.mcard-price-val{font-size:.88rem;font-weight:900;color:#4ade80}
.mcard-about{font-size:.73rem;color:var(--muted);line-height:1.55;margin-bottom:12px}
.mcard-phone{width:100%;padding:7px 9px;background:rgba(255,255,255,.03);border:2px solid var(--border2);border-radius:2px;color:var(--text);font-size:.75rem;font-family:inherit;display:flex;align-items:center;gap:8px}
.mcard-phone .phone-dot{width:6px;height:6px;border-radius:50%;background:var(--green);flex-shrink:0}
.mcard-email{width:100%;padding:7px 9px;background:rgba(255,255,255,.03);border:2px solid var(--border2);border-radius:2px;color:var(--text);font-size:.75rem;display:flex;align-items:center;gap:8px;margin-top:6px}
.mcard-email .mail-dot{width:6px;height:6px;border-radius:50%;background:var(--orange);flex-shrink:0}
.mkt-empty{text-align:center;padding:60px 20px;color:var(--muted);font-size:.82rem}
.post-panel{display:none;max-width:640px;margin:0 auto}
.post-panel.show{display:block}
.post-form{background:var(--s2);border:2px solid var(--border);border-radius:2px;padding:24px;display:flex;flex-direction:column;gap:14px}
.post-form h2{font-size:1.1rem;font-weight:800;margin-bottom:4px}
.post-form p{font-size:.78rem;color:var(--muted);line-height:1.55}
.f-field{display:flex;flex-direction:column;gap:4px}
.f-label{font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.f-input{background:var(--s1);border:2px solid var(--border2);border-radius:2px;padding:9px 12px;font-size:.82rem;color:var(--text);outline:none;transition:border-color var(--t-med);font-family:inherit;width:100%}
.f-input:focus{border-color:rgba(245,165,32,.55)}
.f-input::placeholder{color:var(--muted2)}
textarea.f-input{resize:vertical;min-height:80px}
.f-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.img-uploads{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.img-up{aspect-ratio:1;border:2px dashed var(--border2);border-radius:2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;position:relative;overflow:hidden;transition:all var(--t-med)}
.img-up:hover{border-color:var(--orange)}
.img-up input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}
.img-up .ico{font-size:1.2rem;opacity:.3}
.img-up span{font-size:.6rem;color:var(--muted)}
.img-up img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.img-up.has-img{border-style:solid;border-color:var(--border)}
.f-submit{padding:11px;border-radius:2px;background:var(--s2);border:1px solid var(--border2);color:var(--text);font-weight:600;font-size:.84rem;cursor:pointer;transition:all var(--t-fast);font-family:inherit}
.f-submit:hover{background:var(--s3);border-color:var(--orange)}
.mkt-success{background:rgba(74,222,128,.06);border:1px solid rgba(74,222,128,.25);border-radius:2px;padding:16px;text-align:center;color:#4ade80;font-size:.82rem;font-weight:600;display:none}
@media(max-width:520px){.f-row{grid-template-columns:1fr}.mkt-head{flex-direction:column;align-items:flex-start}}

/* Drop highlight for the showcase image slots, matching .uz.over on the model
   uploaders so a drop target looks the same wherever it appears. */
.img-up.over{border-color:var(--orange);background:rgba(212,138,14,.10)}

/* Showcase image controls. The label and "Clear all" sit at opposite ends of
   the same row; the button hides itself when there is nothing to clear rather
   than sitting there inert. */
.f-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.img-clear-all{background:none;border:1px solid var(--border2);color:var(--muted);
  font-family:inherit;font-size:.62rem;font-weight:600;padding:4px 10px;cursor:pointer;
  transition:border-color var(--t-fast),color var(--t-fast)}
.img-clear-all:hover,.img-clear-all:focus-visible{border-color:var(--orange);color:var(--text-bright)}
.img-clear-all[hidden]{display:none}
/* The X sits above the slot's own file input, which covers the whole slot --
   without the z-index the click would fall through and open the file picker
   instead of removing the picture. */
.img-up{position:relative}
.img-x{position:absolute;top:4px;inset-inline-end:4px;z-index:2;
  width:22px;height:22px;line-height:1;padding:0;
  background:rgba(0,0,0,.66);border:1px solid var(--border2);border-radius:2px;
  color:#f0f0f0;font-family:inherit;font-size:.85rem;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background var(--t-fast),border-color var(--t-fast)}
.img-x:hover,.img-x:focus-visible{background:var(--orange);border-color:var(--orange-bright)}
