/* Scena Wanda - paleta z makiety klienta i stopki maila (logo: zlote luki,
   szeryfowe liternictwo). Czern grafitowa w menu, cieply papier w tle. */
:root {
  --side: #161514;
  --side-2: #262422;
  --side-ink: #ece6da;
  --side-muted: #968f84;
  --accent: #9a7b4b;
  --accent-deep: #7a5f35;
  --accent-soft: #f3ead9;
  --gold: #b8925a;
  --bg: #f5f2ec;
  --p1: #5b8fcf; --p1-bg: #e6eff9;   /* Budowa */
  --p2: #3f9b6c; --p2-bg: #e2f2e8;   /* Opening Plan */
  --p3: #b8925a; --p3-bg: #f5ecdc;   /* Main Event */
}
.side-brand { color: #ece6da; padding: 28px 26px 22px; }

/* ---------- Dashboard: kafle projektow -------------------------------- */
.tile { padding: 0; overflow: hidden; color: var(--ink); text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tile-img { height: 132px; background-size: cover; background-position: center; }
.tile-body { padding: 16px 20px 18px; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile-top h2 { font-size: 18px; }
.tile-badge { font-size: 10.5px; letter-spacing: .05em; }
.tile-pct { font-size: 34px; font-weight: 700; letter-spacing: -.03em; margin: 2px 0 8px; }
.tile-stats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.tile-stats li { display: flex; gap: 9px; align-items: flex-start; }
.tile-stats .ico-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.quote-card { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; justify-content: center; padding: 30px;
  background-image: linear-gradient(160deg, rgba(184,146,90,.18), transparent 60%); }
.quote-card blockquote { margin: 0; font-size: 26px; line-height: 1.35; }
.quote-sign { margin-top: 18px; letter-spacing: .3em; font-size: 11px; color: var(--gold); }

/* ---------- Karta zadania / projektu ------------------------------------ */
.proj-head { display: flex; gap: 22px; align-items: center; }
.proj-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.proj-kpis .card { padding: 14px 16px; }
.proj-kpis strong { font-size: 22px; display: block; }
.proj-kpis small { color: var(--muted); }
.task-title { font-size: 22px; }
.meta-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.ros { border-collapse: collapse; width: 100%; }
.ros td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.ros td.time { font-weight: 700; width: 110px; font-variant-numeric: tabular-nums; }
.ev-hero { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; }
.ev-hero .ev-img { height: 120px; border-radius: var(--r); background-size: cover; background-position: center; }

/* ---------- Karta Budynku: plan warstwowy ------------------------------- */
.plan-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.plan-view { position: relative; overflow: hidden; background: #f1ede5; border: 1px solid var(--line); border-radius: var(--r-lg);
  height: min(72vh, 640px); cursor: grab; touch-action: none; }
.plan-view.is-drag { cursor: grabbing; }
.plan-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; width: 1000px; height: 620px; }
.plan-stage img, .plan-stage svg.plan-spaces { position: absolute; inset: 0; width: 1000px; height: 620px; user-select: none; -webkit-user-drag: none; }
.plan-stage img[data-layer] { object-fit: contain; }
.plan-stage img.is-full { background: #fff; }
.plan-spaces polygon { fill: transparent; stroke: transparent; cursor: pointer; transition: fill .15s; pointer-events: all; }
.plan-spaces.is-on polygon { fill: rgba(154,123,75,.08); stroke: rgba(154,123,75,.55); stroke-width: 2; stroke-dasharray: 6 4; }
.plan-spaces polygon:hover, .plan-spaces polygon.is-sel { fill: rgba(154,123,75,.25); stroke: var(--accent); stroke-width: 3; stroke-dasharray: none; }
.plan-tools { position: absolute; top: 12px; left: 12px; z-index: 5; display: flex; gap: 6px; }
.plan-tools .btn { box-shadow: var(--shadow); }
.plan-info { position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 5; background: rgba(255,255,255,.96); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow-lg); display: none; }
.plan-info.is-on { display: block; }
.layers-panel { padding: 14px 16px; }
.layer-row { padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.layer-row:last-child { border-bottom: 0; }
.layer-row .check { width: 100%; justify-content: flex-start; }
.layer-row .swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.layer-row .meta { display: none; font-size: 11.5px; color: var(--muted); margin: 6px 0 0 23px; line-height: 1.5; }
.layer-row.is-on .meta { display: block; }
.layer-row input[type=range] { width: 100%; accent-color: var(--accent); margin: 4px 0 0; }
.floor-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.space-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.space-card { padding: 0; overflow: hidden; color: var(--ink); text-decoration: none !important; }
.space-card .ph { height: 130px; background: #2a2622 center/cover; display: grid; place-items: center; color: var(--gold); }
.space-card .bd { padding: 12px 14px; }
.space-card h3 { font-size: 15px; }
.hero-obj { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.hero-obj h1 { font-size: 34px; letter-spacing: .08em; }
@media (max-width: 1100px) { .plan-shell, .hero-obj { grid-template-columns: minmax(0, 1fr); } .proj-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
