:root {
  --zp-bg: #141210;
  --zp-panel: #1e1b18;
  --zp-cream: #f2ede4;
  --zp-muted: #8a8176;
  --zp-red: #c0281c;
  --zp-gold: #e8b04a;
  --zp-border: rgba(255, 255, 255, 0.08);
  --zp-ok: #3d8b5c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #2a2218, transparent),
    linear-gradient(180deg, #181512, var(--zp-bg));
  color: var(--zp-cream);
  min-height: 100vh;
}
.hidden { display: none !important; }
.muted { color: var(--zp-muted); }
.zp-shell { width: min(1100px, 100%); margin: 0 auto; padding: 0 16px; }
.zp-top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(20, 18, 16, 0.92);
  border-bottom: 1px solid var(--zp-border);
}
.zp-top-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; gap: 12px;
}
.zp-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: inherit; text-decoration: none; font-weight: 650;
}
.zp-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.zp-btn {
  border: 1px solid var(--zp-border);
  background: #2a2622;
  color: var(--zp-cream);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.zp-btn.primary { background: var(--zp-red); border-color: transparent; }
.zp-btn.ghost { background: transparent; }
.zp-btn:disabled { opacity: 0.5; cursor: default; }
.zp-base-select {
  max-width: 160px;
  background: #2a2622;
  color: var(--zp-cream);
  border: 1px solid var(--zp-border);
  border-radius: 8px;
  padding: 7px 8px;
}
.zp-main { padding: 24px 16px 80px; }
.zp-panel {
  background: var(--zp-panel);
  border: 1px solid var(--zp-border);
  border-radius: 16px;
  padding: 20px;
}
.zp-panel h1 { margin: 0 0 8px; font-size: 1.6rem; }
.zp-status { min-height: 1.4em; }
.zp-steps {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
}
.zp-step {
  font-size: 12px; padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--zp-border); color: var(--zp-muted);
}
.zp-step.is-on { color: #111; background: var(--zp-gold); border-color: transparent; }
.zp-wizard-nav {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 20px;
}
.zp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.zp-list li {
  display: flex; gap: 8px; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 10px; background: #181512;
  border: 1px solid var(--zp-border);
}
.zp-photo-row { gap: 12px; }
.zp-photo-name { flex: 1; min-width: 0; }
.zp-thumb {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
  flex: 0 0 auto; background: #2a2622; border: 1px solid var(--zp-border);
}
.zp-thumb.is-empty { opacity: 0.35; }
.zp-thumb-empty {
  display: inline-block; width: 56px; height: 56px; border-radius: 10px;
  flex: 0 0 auto; background: #2a2622; border: 1px dashed var(--zp-border);
}
.zp-field { display: grid; gap: 6px; margin: 12px 0; }
.zp-field input, .zp-field textarea, .zp-map {
  width: 100%; border-radius: 8px; border: 1px solid var(--zp-border);
  background: #12100e; color: var(--zp-cream); padding: 10px 12px; font: inherit;
}
.zp-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.zp-row .zp-field { flex: 1; min-width: 120px; }
.zp-map {
  display: grid; gap: 10px; padding: 12px;
}
.zp-map label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.zp-work-bar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px;
}
.zp-block-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(196, 140, 74, 0.45);
  background: rgba(196, 140, 74, 0.12);
  color: var(--zp-cream);
  line-height: 1.45;
}
.zp-work-bar input[type="date"] {
  background: #12100e; color: var(--zp-cream); border: 1px solid var(--zp-border);
  border-radius: 8px; padding: 8px;
}
.zp-kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.zp-col {
  background: #181512; border: 1px solid var(--zp-border); border-radius: 12px; padding: 10px;
  min-height: 180px;
}
.zp-col h3 { margin: 0 0 8px; font-size: 13px; color: var(--zp-muted); font-weight: 600; }
.zp-card {
  background: #24201c; border-radius: 10px; padding: 10px; margin-bottom: 8px;
  cursor: pointer; border: 1px solid transparent;
}
.zp-card:hover { border-color: var(--zp-gold); }
.zp-card strong { display: block; margin-bottom: 4px; }
.zp-sheet {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center;
}
.zp-sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.zp-sheet-card {
  position: relative; width: min(560px, 100%); max-height: 85vh; overflow: auto;
  background: var(--zp-panel); border-radius: 16px 16px 0 0; padding: 16px;
  border: 1px solid var(--zp-border);
}
.zp-sheet-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.zp-chat-log {
  display: grid; gap: 8px; max-height: 240px; overflow: auto;
  margin: 12px 0; padding: 8px; background: #12100e; border-radius: 8px;
}
.zp-chat-item { font-size: 14px; padding: 8px; border-radius: 8px; background: #1e1b18; }
.zp-chat-item.out { border-left: 3px solid var(--zp-ok); }
.zp-chat-item.in { border-left: 3px solid var(--zp-gold); }
.zp-done-box {
  padding: 12px; border-radius: 12px; background: #182018; border: 1px solid rgba(61,139,92,.35);
}
.zp-vitrina-preview {
  padding: 12px; border-radius: 12px; margin-bottom: 18px;
  background: #1a1814; border: 1px solid var(--zp-border);
}
.zp-vitrina-preview h2 { margin-top: 0; }
.zp-vitrina-url {
  word-break: break-all; font-size: 13px; margin: 10px 0 0;
}
.zp-vitrina-url a { color: var(--zp-gold); }
.zp-appt-when { margin: 6px 0 8px; font-size: 1.05rem; color: var(--zp-cream); }
.zp-wc-row { align-items: flex-start; }
.zp-wc-meta { display: grid; gap: 4px; min-width: 0; flex: 1; }
.zp-wc-sch { font-size: 13px; }
.zp-wc-actions { display: flex; gap: 6px; flex-shrink: 0; }
.zp-days {
  display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0;
}
.zp-day { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.zp-company-logo {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 12px 0 18px;
}
.zp-logo-preview {
  width: 72px; height: 72px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--zp-border); background: #2a2622;
}
.zp-logo-empty {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 12px; font-size: 12px; text-align: center;
  color: var(--zp-muted); border: 1px dashed var(--zp-border); background: #2a2622;
}
@media (min-width: 800px) {
  .zp-sheet { align-items: center; }
  .zp-sheet-card { border-radius: 16px; }
}
.zp-mig-card { z-index: 41; }
.zp-mig-bar {
  height: 8px; border-radius: 999px; background: #2a2622; overflow: hidden; margin: 14px 0 10px;
}
.zp-mig-bar-fill {
  height: 100%; width: 8%; background: var(--zp-gold); transition: width .35s ease;
}
[data-zp-mig-detail] { font-size: 13px; min-height: 1.2em; }
