:root {
  --si-bg: #ffffff;
  --si-bg-soft: #f7f8fa;
  --si-border: #e2e6ec;
  --si-dark: #4a4a4a;
  --si-dark-hover: #363636;
  --si-text: #22262a;
  --si-muted: #68707a;
  --si-teal: #14b8a6;
  --si-blue: #0284c7;
  --si-blue-hover: #0369a1;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--si-bg);
  color: var(--si-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* TOPBAR */
.si-topbar {
  height: 54px;
  background: #ffffff;
  border-bottom: 1px solid var(--si-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 12px;
  flex-shrink: 0;
}
.si-brand { display: flex; align-items: center; gap: 8px; }
.si-back-link {
  text-decoration: none; color: var(--si-dark);
  font-weight: 700; font-size: 18px; padding: 4px 8px;
  border-radius: 6px; border: 1px solid var(--si-border);
}
.si-logo-title { font-weight: 800; font-size: 18px; color: #1e2328; letter-spacing: -0.3px; }
.si-logo-sub { font-size: 12px; color: var(--si-muted); font-weight: 600; }
.si-autosave {
  font-size: 11px; color: #15803d; background: #dcfce7;
  padding: 3px 8px; border-radius: 12px; font-weight: 600; margin-left: 6px;
}

.si-tank-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.si-tank-bar .si-select { max-width: 310px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-select, .si-select-full {
  background: #ffffff; color: var(--si-text);
  border: 1px solid #cbd2d9; border-radius: 6px;
  padding: 6px 10px; font-size: 13px; font-weight: 600;
}
.si-select-full { width: 100%; margin-bottom: 8px; }
.si-custom-dims input {
  width: 52px; padding: 5px; border: 1px solid #cbd2d9; border-radius: 4px; font-size: 12px;
}

.si-top-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.si-btn-dark {
  background: var(--si-dark); color: #ffffff;
  border: none; border-radius: 6px;
  padding: 6px 10px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background 0.15s; white-space: nowrap;
}
.si-btn-dark:hover { background: var(--si-dark-hover); }
.si-lang-switch { display: flex; flex-shrink: 0; border: 1px solid var(--si-border); border-radius: 6px; overflow: hidden; }
.lang-btn {
  background: #ffffff; color: var(--si-text); border: none;
  padding: 5px 6px; font-size: 10.5px; font-weight: 700; cursor: pointer;
}
.lang-btn.active { background: var(--si-dark); color: #ffffff; }

/* PROJECT OVERVIEW SCREEN (SCAPE IT) */
.si-project-screen {
  flex: 1; overflow-y: auto; background: #ffffff;
  padding: 32px 20px; display: flex; justify-content: center;
}
.si-project-card {
  width: 100%; max-width: 980px;
  border: 1px solid var(--si-border); border-radius: 12px;
  padding: 28px; background: #ffffff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}
.si-project-header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--si-border); padding-bottom: 18px; margin-bottom: 22px;
}
.si-project-title-input {
  width: 480px; max-width: 100%;
  font-size: 24px; font-weight: 800; color: var(--si-text);
  border: 1px solid transparent; border-radius: 6px; padding: 4px 8px;
}
.si-project-title-input:focus { border-color: var(--si-teal); outline: none; }
.si-project-spec { font-size: 14px; color: var(--si-muted); padding-left: 8px; font-weight: 600; }
.si-btn-edit-large {
  background: var(--si-dark); color: #ffffff; border: none;
  border-radius: 8px; padding: 12px 32px; font-size: 16px; font-weight: 700; cursor: pointer;
}
.si-btn-edit-large:hover { background: var(--si-dark-hover); }
.si-project-body { display: grid; grid-template-columns: 1fr 250px; gap: 24px; align-items: start; }
.si-project-preview-wrap {
  background: var(--si-bg-soft); border: 1px solid var(--si-border);
  border-radius: 10px; padding: 16px; text-align: center;
}
.si-project-preview-wrap img { max-width: 100%; height: auto; border-radius: 6px; }
.si-project-links { display: flex; flex-direction: column; gap: 10px; }
.si-proj-link {
  background: #ffffff; color: var(--si-text);
  border: 1px solid #cbd2d9; border-radius: 8px;
  padding: 11px 14px; font-size: 13.5px; font-weight: 600;
  text-align: left; cursor: pointer;
}
.si-proj-link:hover { background: var(--si-bg-soft); border-color: var(--si-dark); }
.si-share-box { font-size: 11.5px; background: #f0fdf4; border: 1px solid #86efac; padding: 8px; border-radius: 6px; word-break: break-all; }

/* WORKSPACE 3 COLUMNS */
.si-workspace {
  flex: 1; display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 16px; padding: 14px 18px;
  background: #ffffff; overflow: hidden;
}

/* LEFT & RIGHT COLUMNS */
.si-left-col, .si-right-col {
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; overflow-x: hidden; height: 100%;
  padding-right: 3px;
}
.si-main-tiles { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.si-tile-btn {
  width: 100%; background: var(--si-dark); color: #ffffff;
  border: none; border-radius: 7px; padding: 11px 14px;
  font-size: 13.5px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: background 0.15s;
}
.si-tile-btn:hover { background: #334155; }
.si-tile-btn.active { background: #0369a1; box-shadow: 0 0 0 2px rgba(2,132,199,0.25); }
.si-tile-panel {
  background: var(--si-bg-soft); border: 1px solid var(--si-border);
  border-radius: 7px; padding: 10px 12px; font-size: 12.5px;
}
.si-field-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--si-muted); margin-bottom: 4px; }
.si-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.si-sub-grid input { width: 100%; padding: 5px; border: 1px solid #cbd2d9; border-radius: 5px; }
.si-chk-row { display: flex; align-items: center; gap: 7px; margin: 5px 0; cursor: pointer; font-weight: 500; }
.si-mini-btns { display: flex; gap: 5px; margin-top: 6px; }
.si-btn-sm {
  background: var(--si-dark); color: #ffffff; border: none;
  border-radius: 5px; padding: 5px 9px; font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.si-sub-calc-box {
  margin-top: 8px; padding: 7px 9px; background: #ffffff;
  border: 1px solid var(--si-border); border-radius: 6px; font-size: 11.5px;
}
.si-bg-swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.si-bg-btn {
  padding: 7px; border: 1px solid #cbd2d9; border-radius: 6px;
  background: #ffffff; font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.si-bg-btn.active { border: 2px solid var(--si-teal); }

/* MATERIALS PANEL (SCAPE IT ACCORDION + 2-COL GRID) */
.si-materials-box {
  display: flex; flex-direction: column;
  min-height: 350px; max-height: 450px; flex-shrink: 0;
  border: 2px solid #0284c7; border-radius: 8px;
  background: #ffffff; overflow: hidden;
  margin-bottom: 4px;
}
.si-layers-box {
  flex: 1; display: flex; flex-direction: column;
  border: 1px solid var(--si-border); border-radius: 8px;
  background: #ffffff; overflow: hidden;
}
.si-materials-header, .si-layers-header {
  padding: 9px 12px; background: var(--si-bg-soft);
  border-bottom: 1px solid var(--si-border);
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 13px;
}
.si-materials-header input {
  width: 125px; padding: 4px 8px; border: 1px solid #cbd2d9; border-radius: 5px; font-size: 12px;
}
.si-materials-list, .si-layers-list {
  flex: 1; overflow-y: auto; padding: 8px;
}
.si-mat-group { margin-bottom: 6px; border: 1px solid var(--si-border); border-radius: 6px; overflow: hidden; }
.si-mat-group-btn {
  width: 100%; background: #ffffff; color: var(--si-text);
  border: none; padding: 9px 11px; font-size: 12.5px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.si-mat-group-btn:hover { background: var(--si-bg-soft); }
.si-mat-soon {
  font-size: 10.5px; font-weight: 600; color: var(--si-muted);
  background: #eef1f5; padding: 2px 7px; border-radius: 10px;
}
.si-mat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px; background: var(--si-bg-soft); border-top: 1px solid var(--si-border);
}
.si-mat-card {
  background: #ffffff; border: 1px solid var(--si-border); border-radius: 7px;
  padding: 6px; text-align: center; cursor: grab; transition: transform 0.12s, border-color 0.12s;
}
.si-mat-card:hover { border-color: var(--si-teal); transform: translateY(-1px); }
.si-mat-card img { width: 100%; height: 78px; object-fit: contain; display: block; margin: 0 auto 4px; }
.si-mat-card-title { font-size: 11px; font-weight: 600; color: var(--si-text); }

/* CENTER COLUMN: TANK + ROUND ICONS + BLUE SHOPPING CTA */
.si-center-col {
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; overflow: hidden; height: 100%;
  min-width: 0; min-height: 0;
}
.si-tank-info-strip {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; font-weight: 700; color: var(--si-muted); padding: 0 6px 6px;
}
.si-sel-chip {
  font-size: 11.5px; color: var(--si-text); background: var(--si-bg-soft);
  border: 1px solid var(--si-border); padding: 3px 10px; border-radius: 12px;
}
.si-canvas-wrap {
  flex: 1; width: 100%; display: flex; align-items: center; justify-content: center;
  background: #ffffff; overflow: hidden; position: relative;
  min-width: 0; min-height: 0; padding: 8px;
}
#konvaStageContainer {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  border-radius: 2px; background: #ffffff;
}
.si-bottom-iconbar {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 10px 0 8px;
}
.si-round-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--si-dark); color: #ffffff;
  border: none; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.si-round-icon:hover { background: #2e2e2e; transform: scale(1.05); }
.si-shopping-cta-wrap { padding-bottom: 4px; }
.si-btn-shopping-blue {
  background: var(--si-blue); color: #ffffff; border: none;
  border-radius: 8px; padding: 11px 34px; font-size: 14.5px; font-weight: 700;
  cursor: pointer; box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
}
.si-btn-shopping-blue:hover { background: var(--si-blue-hover); }

/* RIGHT COLUMN: SCORE & LAYERS */
.si-score-card {
  margin-top: 10px; background: #ffffff; border: 1px solid var(--si-border);
  border-radius: 6px; padding: 8px 10px;
}
.si-score-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.si-score-head strong { color: #0284c7; font-size: 13.5px; }
.si-score-tips { margin: 6px 0 0; padding-left: 16px; font-size: 11px; color: var(--si-muted); }
.si-layer-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px; border: 1px solid var(--si-border); border-radius: 6px;
  margin-bottom: 5px; background: #ffffff; cursor: pointer;
}
.si-layer-row.selected { border-color: var(--si-teal); background: #f0fdfa; }
.si-layer-left { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.si-layer-thumb { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; background: var(--si-bg-soft); flex-shrink: 0; }
.si-layer-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 115px; }
.si-layer-icons { display: flex; gap: 4px; flex-shrink: 0; }
.si-layer-ico {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--si-dark); color: #ffffff; border: none;
  font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.si-layer-ico.off { background: #cbd2d9; color: #4a4a4a; }
.si-folder-block { border: 1px dashed #94a3b8; border-radius: 7px; padding: 6px; margin-bottom: 7px; background: var(--si-bg-soft); }
.si-folder-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; margin-bottom: 5px; }

/* MODALS & FOOTER & MOBILE */
.si-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px;
}
.si-modal {
  background: #ffffff; border-radius: 10px; width: 100%; max-width: 680px;
  max-height: 86vh; display: flex; flex-direction: column; overflow: hidden;
}
.si-modal-header {
  padding: 14px 18px; border-bottom: 1px solid var(--si-border);
  display: flex; justify-content: space-between; align-items: center;
}
.si-modal-header h3 { margin: 0; font-size: 16px; }
.si-modal-close { background: none; border: none; font-size: 18px; cursor: pointer; }
.si-modal-body { padding: 16px 18px; overflow-y: auto; font-size: 13.5px; line-height: 1.5; }
.si-footer {
  height: 24px; border-top: 1px solid var(--si-border); background: #ffffff;
  font-size: 11px; color: var(--si-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.si-mobile-nav { display: none; }

@media (max-width: 900px) {
  .si-topbar { height: auto; flex-wrap: wrap; padding: 6px 8px; gap: 6px; }
  .si-btn-dark { padding: 5px 8px; font-size: 11px; }
  .si-workspace { grid-template-columns: 1fr; padding: 6px; }
  .si-left-col, .si-right-col { display: none; }
  .si-workspace.mob-left .si-left-col { display: flex; }
  .si-workspace.mob-left .si-center-col, .si-workspace.mob-right .si-center-col { display: none; }
  .si-workspace.mob-right .si-right-col { display: flex; }
  .si-bottom-iconbar { gap: 6px; padding: 6px 0; }
  .si-round-icon { width: 34px; height: 34px; }
  .si-mobile-nav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--si-border); background: #ffffff; height: 44px; flex-shrink: 0;
  }
  .si-mob-btn { background: #ffffff; border: none; font-size: 11.5px; font-weight: 700; color: var(--si-text); }
  .si-mob-btn.active { background: var(--si-dark); color: #ffffff; }
}

/* --- ZADANIE B: GROWSE WOOD, ANCIENT STONE, MOJE KAMIENIE I KORZENIE --- */
.si-my-hardscape-card { background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.si-my-hardscape-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #14532d; margin-bottom: 6px; }
.si-my-count-badge { background: #16a34a; color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.si-my-hardscape-btns { display: flex; flex-direction: column; gap: 5px; }
.si-btn-my-add { background: #15803d; color: #fff; border: none; border-radius: 6px; padding: 6px 8px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.si-btn-my-add:hover { background: #166534; }
.si-btn-my-auto { background: #0f172a; color: #fff; border: none; border-radius: 6px; padding: 6px 8px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.si-btn-my-auto:hover { background: #1e293b; }
.si-my-hardscape-list { margin-top: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 150px; overflow-y: auto; }
.si-badge-shop { display: inline-block; background: #059669; color: #fff; font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-top: 2px; }
.si-badge-used { display: inline-block; background: #dc2626; color: #fff; font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-top: 2px; }
.si-badge-ai { display: inline-block; background: #e2e8f0; color: #475569; font-size: 9px; font-weight: 600; padding: 1px 5px; border-radius: 4px; margin-top: 2px; }
.si-asset-card.is-used-unique { opacity: 0.55; border-color: #fca5a5; }
.si-asset-dims { font-size: 10px; color: #475569; font-weight: 600; }
.si-warning-banner { background: #fffbeb; border: 1px solid #f59e0b; color: #92400e; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; margin: 4px 12px 0; text-align: center; }
.si-shop-actions-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 6px; padding: 5px 10px; margin: 4px 12px 0; font-size: 11.5px; }
.si-shop-link-btn { background: #0284c7; color: #fff; text-decoration: none; padding: 4px 9px; border-radius: 5px; font-weight: 700; font-size: 11px; }
.si-shop-cart-btn { background: #16a34a; color: #fff; text-decoration: none; padding: 4px 9px; border-radius: 5px; font-weight: 700; font-size: 11px; }
.si-unlock-scale-btn { background: #475569; color: #fff; border: none; padding: 4px 9px; border-radius: 5px; font-weight: 600; font-size: 11px; cursor: pointer; }
.si-unlock-scale-btn.unlocked { background: #d97706; }
.si-my-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.si-input-full { width: 100%; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 12.5px; box-sizing: border-box; }
.si-my-status-msg { margin-top: 8px; font-size: 12px; color: #334155; background: #f1f5f9; padding: 6px 10px; border-radius: 6px; }
.si-my-views-tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.si-my-brush-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.si-my-brush-bar .si-btn-sm.active { background: #0284c7; color: #fff; }
.si-my-canvas-checker { background: repeating-conic-gradient(#e2e8f0 0% 25%, #ffffff 0% 50%) 50% / 16px 16px; border: 1px solid #cbd5e1; border-radius: 8px; display: flex; justify-content: center; align-items: center; padding: 8px; overflow: hidden; }
#myHsMaskCanvas { max-width: 100%; max-height: 300px; cursor: crosshair; }
.si-auto-variants-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.si-auto-variant-card { border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px; background: #f8fafc; display: flex; flex-direction: column; gap: 8px; }
.si-auto-variant-card img { width: 100%; height: 130px; object-fit: contain; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; }

/* Siatka 3 wariantów Ułóż automatycznie */
.si-variants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}
@media (max-width: 780px) {
  .si-variants-grid {
    grid-template-columns: 1fr;
  }
}
.si-variant-card {
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.si-variant-card:hover {
  border-color: #0284c7;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.14);
  transform: translateY(-2px);
}
.si-variant-card canvas {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}
.si-variant-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.si-variant-desc {
  font-size: 11px;
  color: #475569;
  line-height: 1.38;
  flex: 1;
}

/* Szybki wybór akwarium (Juwel / Opti-White / Własny wymiar) */
.si-tank-quick-cats {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.si-tank-quick-cats .si-btn-sm {
  flex: 1;
  font-size: 11px;
  padding: 5px 4px;
  text-align: center;
}
.si-tank-quick-cats .si-btn-sm.active {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}
.si-tank-quick-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  max-height: 155px;
  overflow-y: auto;
  padding-right: 2px;
}
.si-tank-quick-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 5px 6px;
  text-align: left;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.25;
  color: #1e293b;
  transition: all 0.12s;
}
.si-tank-quick-btn:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}
.si-tank-quick-btn.active {
  background: #e0f2fe;
  border-color: #0284c7;
  font-weight: 700;
  color: #0369a1;
}
.si-tank-quick-btn small {
  display: block;
  font-size: 9.5px;
  color: #64748b;
  font-weight: 500;
}

/* Siatka próbników żwirków i podłoży ze sklepu Growise */
.si-sub-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 7px 0 8px;
  max-height: 156px;
  overflow-y: auto;
  padding-right: 2px;
}
.si-sub-swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  text-align: center;
  font-size: 9.5px;
  line-height: 1.15;
  color: #1e293b;
}
.si-sub-swatch-btn:hover {
  border-color: #0284c7;
}
.si-sub-swatch-btn.active {
  border-color: #0284c7;
  background: #f0f9ff;
  font-weight: 700;
}
.si-sub-swatch-thumb {
  width: 100%;
  height: 26px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  margin-bottom: 3px;
  border: 1px solid rgba(0,0,0,0.12);
}

/* Sekcje tła Lightground / Gradient */
.si-bg-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}
.si-bg-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 5px 7px;
}
.si-bg-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.si-btn-sm.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* Plaże, ścieżki i mieszanie żwirków */
.si-sub-zones-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}
.si-sub-zones-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}
.si-zones-badge {
  background: #0284c7;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}
.si-sub-zones-add-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 8px;
}
.si-sub-zones-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
}
.si-zone-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 8px;
  font-size: 11px;
}
.si-zone-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 700;
  color: #0f172a;
}
.si-zone-del-btn {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10.5px;
  cursor: pointer;
}
.si-zone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 5px;
}
.si-zone-row label {
  font-size: 10.5px;
  color: #475569;
  white-space: nowrap;
}
.si-zone-row input[type="range"] {
  flex: 1;
  accent-color: #0284c7;
}
.si-zone-select {
  width: 100%;
  font-size: 11px;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #f8fafc;
  margin-bottom: 4px;
}

/* PRZYCISK WYPEŁNIJ WOLNE MIEJSCE I MENU KONTEKSTOWE ROŚLIN */
.si-fill-plant-btn {
  height: 36px;
  padding: 0 13px;
  border-radius: 18px;
  background: #059669;
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
  transition: background 0.15s, transform 0.1s;
}
.si-fill-plant-btn:hover {
  background: #047857;
  transform: translateY(-1px);
}
.si-context-menu {
  position: fixed;
  z-index: 9999;
  min-width: 245px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  padding: 6px;
  font-size: 12.5px;
}
.si-ctx-head {
  padding: 5px 9px 6px;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.si-ctx-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.si-ctx-item:hover {
  background: #f0fdf4;
  color: #047857;
}
.si-ctx-item.danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}
.si-ctx-kbd {
  font-size: 10.5px;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}
.si-emergent-badge {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
}
.si-emergent-badge.shop {
  background: #e0f2fe;
  color: #0369a1;
}

/* Wskazówka fotografowania dla "Moje kamienie i korzenie" */
.si-my-photo-tip-inline {
  margin-top: 6px;
  padding: 6px 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 10.5px;
  line-height: 1.38;
  color: #64748b;
}
.si-my-tip-icons-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}
.si-tip-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px 2px 3px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}
.si-tip-pill.ok {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.si-tip-pill.bad {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.si-my-photo-tip-modal {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
.si-my-photo-tip-text {
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
  margin-bottom: 8px;
}
.si-my-tip-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.si-my-tip-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.3;
}
.si-my-tip-card strong {
  display: block;
  font-size: 11.5px;
}
.si-my-tip-card span {
  color: #475569;
  font-size: 10.5px;
}
.si-my-tip-card.ok {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}
.si-my-tip-card.bad {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}
@media (max-width: 480px) {
  .si-my-tip-cards {
    grid-template-columns: 1fr;
  }
}

/* Mobilny upload zdjęć kamieni/korzeni (<600 px) oraz responsywny nagłówek (390 px) */
.si-my-upload-cell {
  position: relative;
}
.si-mobile-upload-btn {
  display: none;
}
.si-my-file-meta {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  padding: 4px 8px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
}
.si-my-file-thumb {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}
.si-my-file-name {
  font-size: 11px;
  font-weight: 600;
  color: #166534;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .si-topbar {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 6px 8px;
    gap: 5px;
  }
  .si-brand {
    width: 100%;
    justify-content: space-between;
  }
  .si-tank-bar {
    width: 100%;
    min-width: 0;
  }
  .si-tank-bar .si-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 12px;
    padding: 5px 8px;
  }
  .si-top-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: nowrap;
  }
  .si-top-actions .si-btn-dark {
    padding: 5px 6px;
    font-size: 11px;
    flex: 1 1 auto;
    text-align: center;
  }
  .si-lang-switch {
    flex-shrink: 0;
  }
  .lang-btn {
    padding: 5px 6px;
    font-size: 10.5px;
  }
}

@media (max-width: 600px) {
  .si-my-form-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .si-my-full-mob {
    grid-column: 1 / -1;
  }
  .si-my-dim-mob {
    grid-column: span 1;
  }
  .si-my-dim-mob .si-field-label {
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .si-desktop-upload-lbl {
    display: none;
  }
  .si-my-upload-cell .my-hs-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .si-mobile-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 8px 10px;
    background: #f0f9ff;
    border: 1.5px dashed #0284c7;
    border-radius: 8px;
    color: #0369a1;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.15s, border-color 0.15s;
  }
  .si-mobile-upload-btn:active {
    background: #e0f2fe;
    border-color: #0369a1;
  }
}


