@font-face {
  font-family: Satoshi;
  src: url('fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Satoshi;
  src: url('fonts/Satoshi-VariableItalic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
:root {
  font-family: Satoshi, Arial, sans-serif;
  color: var(--panel-gray-303030, #303030);
  background: var(--panel-gray-f5f5f5, #f5f5f5);
  font-synthesis: none;
  --green: var(--panel-gray-444444, #444444);
  --muted: var(--panel-gray-808080, #808080);
  --line: var(--panel-gray-e4e4e4, #e4e4e4);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  color: inherit;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: var(--panel-gray-ebebeb, #ebebeb);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--panel-gray-bfbfbf, #bfbfbf);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
button:disabled:hover {
  background: none;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-gray-fcfcfc, #fcfcfc);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--green);
  color: var(--panel-gray-e9e9e9, #e9e9e9);
  border-radius: 12px;
  font-size: 29px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 7px;
  font-weight: 500;
}
.file-actions {
  display: flex;
  gap: 8px;
}
.primary {
  background: var(--green);
  color: var(--panel-gray-ffffff, #ffffff);
}
.primary:hover {
  background: var(--panel-gray-555555, #555555);
}
.quiet {
  border-color: var(--line);
  background: var(--panel-gray-ffffff, #ffffff);
}
main {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100dvh - 88px);
  min-height: 580px;
}
.sidebar {
  padding: 27px 23px;
  overflow: auto;
  background: var(--panel-gray-fcfcfc, #fcfcfc);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.sidebar-heading,
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--muted);
}
.local-badge {
  color: var(--panel-gray-696969, #696969);
  background: var(--panel-gray-f1f1f1, #f1f1f1);
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 20px;
}
h1 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -1.1px;
  font-weight: 500;
  margin: 23px 0 12px;
}
.intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 20px;
}
.image-button {
  width: 100%;
  border: 1px dashed var(--panel-gray-c2c2c2, #c2c2c2);
  text-align: left;
  padding: 14px 12px;
  font-size: 12px;
}
.image-button span {
  margin-right: 8px;
}
.image-name {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.section-label {
  margin: 24px 0 12px;
}
.count {
  font-size: 10px;
  background: var(--panel-gray-ebebeb, #ebebeb);
  padding: 3px 7px;
  border-radius: 5px;
}
.polygon-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.unit-row {
  display: flex;
  text-align: left;
  align-items: center;
  width: 100%;
  padding: 11px 9px;
  border: 1px solid var(--line);
  gap: 10px;
  background: var(--panel-gray-ffffff, #ffffff);
}
.unit-row.selected {
  border-color: var(--panel-gray-898989, #898989);
  background: var(--panel-gray-f1f1f1, #f1f1f1);
  box-shadow: inset 3px 0 var(--panel-gray-626262, #626262);
}
.unit-row .dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
}
.unit-row .row-name {
  font-size: 12px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 175px;
}
.unit-row small {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  display: block;
  margin-top: 4px;
}
.unit-row .row-arrow {
  margin-left: auto;
  color: var(--panel-gray-9e9e9e, #9e9e9e);
}
.empty-state {
  border: 1px dashed var(--line);
  padding: 20px 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
label {
  display: block;
  font-size: 11px;
  color: var(--panel-gray-707070, #707070);
  margin: 14px 0 7px;
}
input,
select {
  width: 100%;
  border: 1px solid var(--panel-gray-dbdbdb, #dbdbdb);
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
  background: var(--panel-gray-ffffff, #ffffff);
  color: var(--panel-gray-363636, #363636);
}
.property-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin: 10px 0;
}
.danger {
  color: var(--panel-gray-656565, #656565);
  font-size: 11px;
  padding-left: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.sidebar-bottom strong {
  font-size: 11px;
  font-weight: 600;
}
.sidebar-bottom p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.text-button {
  padding: 4px 0;
  font-size: 10px;
  border-radius: 0;
  border-bottom: 1px solid var(--panel-gray-c7c7c7, #c7c7c7);
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 0;
  gap: 14px;
}
.workspace-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.tools {
  display: flex;
  gap: 6px;
}
.tool {
  background: var(--panel-gray-fafafa, #fafafa);
  border: 1px solid var(--line);
  font-size: 17px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool span {
  font-size: 11px;
}
.tool.active {
  background: var(--green);
  color: var(--panel-gray-ffffff, #ffffff);
  border-color: var(--green);
}
.history {
  display: flex;
  align-items: center;
  gap: 4px;
}
.history button {
  font-size: 21px;
  padding: 7px 12px;
  border: 1px solid var(--line);
}
#stage {
  position: relative;
  flex: 1;
  min-height: 330px;
  overflow: hidden;
  touch-action: none;
  border-radius: 12px;
  border: 1px solid var(--panel-gray-dfdfdf, #dfdfdf);
  background-color: var(--panel-gray-e8e8e8, #e8e8e8);
  background-image: radial-gradient(var(--panel-gray-d1d1d1, #d1d1d1) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
  outline-offset: 2px;
}
#canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  user-select: none;
}
#stage.drawing {
  cursor: crosshair;
}
#stage.panning {
  cursor: grab;
}
#stage.dragging {
  cursor: grabbing;
}
.canvas-hint {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  background: var(--panel-hint-bg, #fefefeee);
  box-shadow: 0 2px 10px #36363610;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 16px;
  font-size: 10px;
  max-width: 90%;
  text-align: center;
  line-height: 1.5;
}
.canvas-bottom {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  gap: 10px;
}
.canvas-caption {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--panel-gray-5b5b5b, #5b5b5b);
  background: var(--panel-hint-bg, #f9f9f9df);
  padding: 9px;
  border-radius: 4px;
}
.zoom-controls {
  display: flex;
  align-items: center;
  background: var(--panel-gray-ffffff, #ffffff);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 2px 7px #30303008;
  pointer-events: auto;
}
.zoom-controls button {
  font-size: 14px;
  padding: 9px 12px;
}
.zoom-controls button:last-child {
  border-left: 1px solid var(--line);
  font-size: 10px;
  border-radius: 0 8px 8px 0;
}
.zoom-controls span {
  font-size: 10px;
  min-width: 43px;
  text-align: center;
}
.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
  padding: 0 0 15px;
  min-height: 30px;
  line-height: 1.5;
}
#saveState {
  white-space: nowrap;
}
.tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  padding: 12px 16px;
  background: var(--panel-gray-ffffff, #ffffff);
  border-radius: 9px;
  box-shadow: 0 8px 30px #28282826;
  font-size: 12px;
  max-width: 200px;
}
.tooltip small {
  display: block;
  color: var(--panel-gray-777777, #777777);
  font-size: 10px;
  margin-top: 5px;
}
.shape {
  cursor: pointer;
  transition: fill-opacity 0.15s;
}
.shape:hover {
  fill-opacity: 0.46;
}
.vertex {
  cursor: move;
}
.vertex:hover {
  fill: var(--panel-gray-e7e7e7, #e7e7e7);
}
.midpoint {
  cursor: copy;
}
.draft-first {
  cursor: pointer;
}
dialog {
  border: 1px solid var(--panel-gray-e0e0e0, #e0e0e0);
  border-radius: 18px;
  padding: 38px;
  max-width: 520px;
  width: calc(100% - 36px);
  color: var(--panel-gray-303030, #303030);
  box-shadow: 0 30px 100px #2929292e;
}
dialog::backdrop {
  background: #262626a6;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 32px;
  letter-spacing: -1.1px;
  font-weight: 500;
  margin: 17px 0;
}
dialog p,
dialog li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--panel-gray-747474, #747474);
}
dialog li {
  padding-bottom: 9px;
}
dialog ol {
  padding-left: 20px;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 24px;
  font-weight: 400;
}
.status-pill {
  display: inline-block;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 11px;
  background: var(--panel-gray-eeeeee, #eeeeee);
  color: var(--panel-gray-606060, #606060);
}
.dialog-note {
  background: var(--panel-gray-f2f2f2, #f2f2f2);
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--panel-gray-6f6f6f, #6f6f6f);
}
.dialog-close-button {
  width: 100%;
}
/* "Potwierdź kodem z e-maila" (modules/ui.js, important operations): the window is built for the panel's
   shell.css, which the Makieta does not load, so it gets its own small set here (owner 14.10: big icons,
   "Zamknij" as plain text). */
.reverify-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.reverify-dialog > header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}
.reverify-dialog svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.reverify-dialog .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
}
.reverify-dialog .btn.primary {
  border-color: transparent;
}
.reverify-dialog > header .btn {
  min-height: 36px;
  padding: 6px 12px;
}
.reverify-dialog .form-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.reverify-dialog .form-grid > p,
.reverify-dialog .field,
.reverify-dialog .form-error {
  flex-basis: 100%;
  margin: 0;
}
.reverify-dialog .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.reverify-dialog .field input {
  font: inherit;
  font-size: 18px;
  letter-spacing: 0.25em;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: transparent;
  color: inherit;
}
.reverify-dialog .form-error {
  color: #bb5656;
  font-size: 13px;
}
.reverify-dialog .form-error:empty {
  display: none;
}
.preview .tools {
  opacity: 0.35;
  pointer-events: none;
}
.preview #properties {
  display: none;
}
.preview .history {
  visibility: hidden;
}
@media (max-width: 1000px) {
  .topbar {
    padding: 0 18px;
  }
  .brand {
    font-size: 14px;
  }
  .brand small {
    font-size: 8px;
  }
  .quiet {
    font-size: 11px;
  }
  main {
    grid-template-columns: 250px 1fr;
  }
  .sidebar {
    padding: 22px 17px;
  }
  .workspace {
    padding: 18px 16px 0;
  }
  .canvas-caption {
    display: none;
  }
  .canvas-bottom {
    justify-content: flex-end;
  }
  .tool {
    padding: 10px;
  }
  .tool span {
    font-size: 10px;
  }
}
@media (max-width: 720px) {
  .topbar {
    height: auto;
    min-height: 112px;
    flex-wrap: wrap;
    padding: 14px;
    gap: 12px;
  }
  .brand {
    flex: 1;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
  }
  .file-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .file-actions button {
    padding: 8px 12px;
    font-size: 11px;
  }
  main {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .workspace {
    order: -1;
    height: 65dvh;
    min-height: 420px;
    padding: 12px 12px 0;
    gap: 9px;
  }
  .sidebar {
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 22px;
  }
  .sidebar h1 {
    font-size: 23px;
    margin: 14px 0 8px;
  }
  .sidebar h1 br {
    display: none;
  }
  .sidebar-bottom {
    padding-top: 20px;
  }
  .tool {
    padding: 8px;
  }
  .tool span {
    font-size: 10px;
  }
  .history button {
    padding: 5px 8px;
  }
  .canvas-hint {
    font-size: 9px;
    top: 12px;
    width: max-content;
    max-width: 95%;
    padding: 7px 12px;
  }
  .statusbar {
    font-size: 9px;
  }
  .polygon-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .unit-row .row-name {
    max-width: 110px;
  }
  #saveState {
    display: none;
  }
  dialog {
    padding: 28px;
  }
  .canvas-bottom {
    right: 10px;
    bottom: 10px;
  }
}
/* Catalogue and navigation for the multi-view prototype. */
.manager-tabs {
  display: flex;
  gap: 3px;
  margin: 8px 0 16px;
}
.manager-tabs button {
  flex: 1;
  padding: 10px 5px;
}
.manager-tabs .active,
.catalog-name.active {
  background: var(--panel-gray-e9e9e9, #e9e9e9);
  color: var(--panel-gray-444444, #444444);
}
.catalog-row {
  display: flex;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.catalog-name {
  text-align: left;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 500;
}
.small-edit {
  font-size: 9px;
  padding: 6px;
}
.catalog-row button {
  white-space: normal;
}
#manager {
  margin-bottom: 12px;
}
#manager > button {
  width: 100%;
  border-style: dashed;
}
#breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  min-height: 34px;
  color: var(--panel-gray-606060, #606060);
}
#breadcrumbs span {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 600;
  color: var(--panel-gray-444444, #444444);
}
#managerDialog {
  max-height: 90vh;
  overflow: auto;
}
#managerForm > .primary {
  margin-top: 20px;
  width: 100%;
}
#formError {
  color: var(--panel-gray-5e5e5e, #5e5e5e);
}
#createLinkedUnit {
  margin-top: 12px;
  width: 100%;
}
.preview .manager-tabs {
  display: none;
}
.preview #manager {
  display: none;
}
@media (max-width: 720px) {
  #breadcrumbs {
    font-size: 10px;
  }
  #breadcrumbs span,
  .scope-path span {
    font-size: 13px;
  }
  .workspace {
    min-height: 470px;
  }
}
/* Separate investment screens. The sidebar is used only by the drawing tool. */
#projectNav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 10px 28px;
  background: var(--panel-gray-fcfcfc, #fcfcfc);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
#projectNav strong {
  margin: 0 auto 0 12px;
  font-size: 14px;
}
.nav-item.active {
  background: var(--panel-gray-e9e9e9, #e9e9e9);
}
#managementScreen {
  max-width: 1440px;
  margin: auto;
  padding: 40px 48px 80px;
}
#managementScreen h1 {
  font-size: 34px;
  margin: 0 0 10px;
  letter-spacing: -1px;
}
#managementScreen h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 25px 0 18px;
}
.page-intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--panel-gray-7c7c7c, #7c7c7c);
  margin: 8px 0 24px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.project-card {
  border: 1px solid var(--panel-gray-e0e0e0, #e0e0e0);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel-gray-ffffff, #ffffff);
  box-shadow: 0 4px 20px #30303005;
}
.project-card > img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.card-placeholder {
  height: 140px;
  display: grid;
  place-items: center;
  background: var(--panel-gray-e9e9e9, #e9e9e9);
  color: var(--panel-gray-6b6b6b, #6b6b6b);
  font-size: 26px;
}
.card-body {
  padding: 24px;
}
.card-body h2 {
  margin: 8px 0 12px !important;
}
.card-body p {
  font-size: 12px;
  color: var(--panel-gray-7c7c7c, #7c7c7c);
  line-height: 1.6;
  min-height: 20px;
}
.card-body button {
  margin-top: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 26px 0;
}
.stats > div {
  padding: 22px;
  background: var(--panel-gray-ffffff, #ffffff);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stats strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 8px;
}
.stats span {
  font-size: 12px;
  color: var(--panel-gray-7c7c7c, #7c7c7c);
}
.page-actions,
.scope-tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.scope-path {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  margin-bottom: 22px;
  color: var(--panel-gray-7c7c7c, #7c7c7c);
}
.scope-path span {
  font-size: 15px;
  font-weight: 600;
  color: var(--panel-gray-444444, #444444);
}
.table-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 24px 0;
}
.table-toolbar input {
  max-width: 420px;
}
.table-toolbar select {
  max-width: 200px;
}
.table-toolbar button {
  margin-left: auto;
  white-space: nowrap;
}
.table-wrap {
  overflow: auto;
  background: var(--panel-gray-ffffff, #ffffff);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.data-table :is(th, td) {
  overflow-wrap: anywhere;
}
.data-table td {
  font-variant-numeric: tabular-nums;
}
.data-table :is(input, select, button) {
  max-width: 100%;
}
/* Fixed columns (165C): a list in a cell takes its column's width, not its own 140 px (Makieta → Lokale at 1440 px,
   owner 18.11, zlecenie 172a). */
.data-table td select {
  min-width: 0;
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--panel-gray-7c7c7c, #7c7c7c);
  background: var(--panel-gray-f8f8f8, #f8f8f8);
  font-size: 11px;
  white-space: nowrap;
}
td:first-child {
  font-weight: 600;
}
td button {
  white-space: nowrap;
}
.settings-form {
  max-width: 720px;
  padding: 28px;
  background: var(--panel-gray-ffffff, #ffffff);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.settings-form label {
  font-size: 13px;
}
.settings-form input,
.settings-form textarea {
  font: inherit;
  font-size: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}
.settings-form textarea {
  min-height: 140px;
  resize: vertical;
}
.settings-form .primary {
  margin-top: 24px;
}
.editor-open main {
  height: calc(100dvh - 192px);
  min-height: 560px;
}
.editor-open .sidebar h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 22px 0 12px;
}
.global-status {
  padding: 12px 28px;
  background: var(--panel-gray-fcfcfc, #fcfcfc);
  border-top: 1px solid var(--line);
  margin: 0;
  min-height: 40px;
}
.preview .sidebar {
  display: none;
}
.preview main {
  grid-template-columns: 1fr;
}
.preview .workspace {
  padding-top: 14px;
}
@media (max-width: 1000px) {
  #managementScreen {
    padding: 28px 24px 60px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #projectNav {
    gap: 3px;
    padding: 10px 16px;
  }
  #projectNav strong {
    width: 50%;
  }
  .stats {
    gap: 10px;
  }
}
@media (max-width: 720px) {
  #managementScreen {
    padding: 24px 16px 50px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  #managementScreen h1 {
    font-size: 28px;
  }
  .table-toolbar {
    flex-wrap: wrap;
  }
  .table-toolbar input,
  .table-toolbar select {
    max-width: none;
  }
  .table-toolbar button {
    margin-left: 0;
  }
  .editor-open main {
    height: auto;
  }
  .editor-open .workspace {
    height: 65dvh;
  }
  #projectNav strong {
    width: auto;
  }
  #projectNav button {
    font-size: 11px;
  }
  .global-status {
    padding: 10px 14px;
  }
  .scope-path {
    flex-wrap: wrap;
  }
  .project-card > img {
    height: 200px;
  }
}
.clickable-card {
  cursor: pointer;
}
.clickable-card:hover {
  border-color: var(--panel-gray-9f9f9f, #9f9f9f);
  box-shadow: 0 8px 24px #4444440d;
}
.editor-open main {
  grid-template-columns: 390px minmax(0, 1fr);
}
.editor-open .sidebar {
  padding: 24px 28px;
}
.unit-row .row-name {
  max-width: 270px;
}
.overview-plan {
  margin: 22px 0;
  background: var(--panel-gray-efefef, #efefef);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.overview-plan h2 {
  margin: 0 0 14px !important;
}
.overview-plan > svg {
  display: block;
  width: 100%;
  height: 390px;
}
.overview-plan .image-name {
  margin-bottom: 0;
}
.variant-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.variant-bar label {
  margin: 0;
  white-space: nowrap;
}
.variant-bar select {
  width: auto;
  max-width: 440px;
  flex: 1;
}
.style-form {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}
.style-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  background: var(--panel-gray-ffffff, #ffffff);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.style-controls input[type='color'] {
  height: 46px;
  padding: 4px;
}
.style-controls input[type='checkbox'] {
  width: 22px;
  height: 22px;
}
.style-sample {
  background: var(--panel-gray-ffffff, #ffffff);
  padding: 32px;
  border: 1px solid var(--line);
  position: sticky;
  top: 24px;
}
.sample-swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.sample-swatches span {
  padding: 15px 12px;
  border-radius: 8px;
  font-size: 12px;
}
.style-form > button {
  justify-self: start;
}
.list-switch {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
}
.unit-card,
.unit-card button,
.overview-plan svg,
#unitDialog {
  font-family: var(--offer-font, Arial, sans-serif);
}
.unit-card,
#unitDialog {
  border-radius: var(--offer-radius, 16px);
}
.shape:hover,
.shape:focus {
  fill-opacity: var(--shape-hover, 0.46);
}
#stage.mobile-preview {
  max-width: 390px;
  width: 100%;
  align-self: center;
}
.preview main {
  grid-template-columns: 1fr;
}
.primary:hover {
  filter: brightness(1.12);
  background: var(--green);
}
@media (max-width: 1100px) {
  .editor-open main {
    grid-template-columns: 340px minmax(0, 1fr);
  }
  .preview main {
    grid-template-columns: 1fr;
  }
  .variant-bar {
    flex-wrap: wrap;
  }
  .variant-bar label {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .editor-open main {
    display: flex;
  }
  .editor-open .sidebar {
    padding: 22px;
  }
  .overview-plan {
    padding: 12px;
  }
  .overview-plan > svg {
    height: auto;
    aspect-ratio: 3/2;
  }
  .style-form {
    grid-template-columns: 1fr;
  }
  .style-controls {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
  }
  .style-sample {
    position: static;
  }
  .variant-bar select {
    max-width: 100%;
    min-width: 0;
  }
  .variant-bar label {
    display: none;
  }
  .editor-open .workspace {
    min-height: 560px;
  }
  .unit-row .row-name {
    max-width: 130px;
  }
}
.plan-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}
.plan-toolbar select {
  flex: 1;
  min-width: 180px;
  max-width: 500px;
}
.style-form-v2 {
  background: var(--panel-gray-ffffff, #ffffff);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.status-color-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 1fr 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.hex-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hex-row input {
  font-family: monospace;
  font-size: 15px;
}
.hex-swatch {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--panel-gray-bbbbbb, #bbbbbb);
  border-radius: 6px;
}
.style-form-v2 > .style-controls {
  margin: 24px 0;
}
.style-section {
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.style-section h3 {
  margin: 8px 0 4px;
}
.style-section-text {
  margin: 0 0 12px;
  max-width: 860px;
  color: var(--muted, #6f6f6f);
  font-size: 13px;
}
.style-section .style-controls {
  margin: 12px 0 0;
}
.style-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 16px;
}
.style-preview-item {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, #ececec 0 8px, #f6f6f6 8px 16px);
}
.style-preview-item svg {
  width: 120px;
  height: 70px;
  display: block;
}
.style-preview-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 30px;
  background: #fff;
}
.style-preview-button {
  display: inline-flex;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
}
.style-preview-look {
  align-content: center;
  background: #fff;
}
/* Phones (owner 10.10): the sample button to the right, away from the real buttons below it. */
@media (max-width: 760px) {
  .style-preview-look {
    margin-left: auto;
  }
}
.style-check {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
}
.custom-status-form {
  margin-top: 32px;
  background: var(--panel-gray-ffffff, #ffffff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.custom-status-form input {
  max-width: 500px;
  margin-right: 12px;
}
.history-icon {
  font-size: 22px;
  line-height: 1;
  vertical-align: middle;
  color: var(--green);
  padding: 8px;
}
.row-location {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: var(--panel-gray-7c7c7c, #7c7c7c);
  margin-top: 6px;
}
td input {
  min-width: 120px;
}
td select {
  min-width: 140px;
}
td form {
  display: inline-block;
}
#priceHistoryDialog {
  max-width: 680px;
  max-height: 85dvh;
  overflow: auto;
}
#priceHistoryDialog table {
  margin-top: 20px;
}
#dialogExtras h3 {
  font-size: 16px;
}
#dialogExtras ul {
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.7;
}
.unit-price {
  display: inline-block;
  margin: 10px 0;
}
.unit-card .card-body > .primary {
  display: block;
  width: 100%;
}
#projectNav {
  gap: 3px;
}
#projectNav button {
  padding: 10px;
}
.page-actions {
  margin-top: 16px;
  margin-bottom: 20px;
}
.overview-plan {
  margin-top: 14px;
}
@media (max-width: 720px) {
  .status-color-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .status-color-row > strong {
    grid-column: 1/-1;
  }
  .style-form-v2 {
    padding: 14px;
  }
  .plan-toolbar button {
    flex: 1;
  }
  .plan-toolbar select {
    max-width: none;
  }
  .custom-status-form input {
    margin-bottom: 12px;
  }
  .hex-row {
    gap: 4px;
  }
  .hex-swatch {
    width: 20px;
    height: 25px;
  }
  .hex-row input {
    font-size: 12px;
  }
}
.wide-dialog {
  max-width: 1000px;
  max-height: 90dvh;
  overflow: auto;
}
.unit-details-editor {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.unit-details-editor > h3,
.unit-details-editor > .image-name {
  grid-column: 1/-1;
}
.unit-details-editor h3 {
  font-size: 18px;
  margin: 20px 0 4px;
}
.unit-details-editor input[type='checkbox'],
.settings-form input[type='checkbox'],
.reporting-form input[type='checkbox'],
.history-edit-form input[type='checkbox'] {
  width: 22px;
  height: 22px;
}
/* "Podziel powierzchnię na użytkową i całkowitą" (task 106): the checkbox before its label, as in the sale dialog. */
.area-split {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
}
.area-split label {
  margin: 0;
  font-size: 14px;
  color: inherit;
}
#managerForm .area-split input[type='checkbox'] {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
}
.unit-details-editor input[type='file'] {
  font-size: 11px;
}
.media-field {
  background: var(--panel-gray-f6f6f6, #f6f6f6);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 10px;
  grid-column: 1/-1;
}
.media-field h4 {
  margin: 4px 0;
}
.media-field > div {
  margin-bottom: 8px;
}
/* Promotion: price and dates side by side in one box (owner 06.10). */
.promo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
}
.promo-row > div {
  margin: 0;
}
@media (max-width: 700px) {
  .promo-row {
    grid-template-columns: 1fr;
  }
}
/* The name of the unit's PDF card in the form: readable, not the small print. */
.media-current {
  margin: 4px 0 8px;
  font-size: 14px;
  font-weight: 600;
}
/* An upload error right under the field where the file was chosen. */
.upload-error {
  margin: 8px 0 0;
  color: #b4262c;
  font-size: 13px;
  font-weight: 600;
}
/* "Usuń …" next to "Zapisz" at the bottom of the edit form. */
.manager-delete {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Photos of a unit: a row of thumbnails per group, reordered by dragging (owner 06.10). */
.media-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
}
.media-thumb {
  position: relative;
  width: 120px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface, #fff);
  overflow: hidden;
  cursor: grab;
}
.media-thumb.dragging {
  opacity: 0.4;
}
.media-thumb img,
.media-thumb-pdf {
  display: block;
  width: 100%;
  height: 84px;
  object-fit: cover;
}
.media-thumb-pdf {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--muted);
  background: var(--soft, #f2f2f2);
}
.media-thumb-main {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  background: var(--text);
  color: var(--surface, #fff);
}
.media-thumb-tools {
  display: flex;
  justify-content: space-between;
}
.media-thumb-tools button {
  flex: 1;
  min-height: 30px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  font-size: 16px;
}
.media-thumb-tools button:disabled {
  opacity: 0.3;
}
.media-library-button {
  margin: 0 0 10px;
}
.media-library {
  width: min(860px, calc(100vw - 32px));
  max-width: none;
  border: 0;
  border-radius: 14px;
  padding: 22px;
}
.media-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  max-height: 60vh;
  overflow: auto;
  margin: 12px 0 16px;
}
.media-library-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.media-library-item:has(input:checked) {
  outline: 3px solid var(--text);
  outline-offset: -1px;
}
.media-library-item img,
.media-library-item .media-thumb-pdf {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}
.media-library-item input {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
}
.media-library-item small {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-library-actions {
  display: flex;
  gap: 10px;
}
.style-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.media-link-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.media-link-row > div {
  flex: 1;
  margin: 0;
}
.custom-values {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 11px;
  margin: 10px 0;
  color: var(--panel-gray-717171, #717171);
}
.custom-values dt {
  font-weight: 400;
}
.custom-values dd {
  margin: 0;
  font-weight: 600;
}
.unit-media-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}
.asset-link {
  display: inline-block;
  padding: 11px 15px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.unit-facts {
  font-size: 14px !important;
  font-weight: 600;
}
#planDialog {
  max-width: 960px;
}
#planDialog img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}
#inquiryDialog textarea {
  width: 100%;
  min-height: 110px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}
#inquiryDialog .primary {
  margin-top: 14px;
}
.history-edit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 12px;
}
.history-edit-form > p {
  grid-column: 1/-1;
  color: var(--panel-gray-5e5e5e, #5e5e5e);
}
#historyEditDialog table {
  font-size: 12px;
}
#historyEditDialog details {
  margin-top: 24px;
}
.reporting-form {
  max-width: 1000px;
}
.reporting-form > details {
  background: var(--panel-gray-ffffff, #ffffff);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 16px;
}
.reporting-form summary {
  font-weight: 600;
  cursor: pointer;
}
.reporting-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
  padding-top: 12px;
}
.reporting-fields textarea {
  width: 100%;
  min-height: 80px;
  font: inherit;
  border: 1px solid var(--line);
  padding: 10px;
}
/* „Pobierz dane” beside the NIP (task 106/2): a quiet button and its note, then the approval list. */
.reporting-fields > .registry-lookup {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}
.registry-lookup .image-name {
  margin: 0 0 10px;
}
/* „Wylicz z adresu” (zlecenie 148e): the button, its note and a small map of the point, the whole width of the section. */
.reporting-fields > .geo-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.geo-box .geo-note {
  margin: 0;
}
.geo-box .geo-map {
  justify-self: stretch;
  height: 240px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.registry-box {
  grid-column: 1 / -1;
  min-width: 0;
}
.registry-changes {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 4px;
}
/* One line per field (owner 04.11): box | field | old (grey, crossed out) → new (clear); the whole line clickable. */
.registry-changes .registry-change {
  display: grid;
  grid-template-columns: 20px minmax(120px, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 4px 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.registry-changes .registry-change:hover {
  background: var(--sage-soft, color-mix(in srgb, var(--line) 40%, transparent));
}
.registry-changes .registry-change:has(input:focus-visible) {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
.registry-changes input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin: 0;
}
.registry-changes .registry-field {
  color: var(--muted);
}
.registry-changes .registry-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  overflow-wrap: anywhere;
}
.registry-changes .registry-values > * {
  margin: 0;
  padding: 0;
}
.registry-changes .registry-before {
  color: var(--muted);
}
.registry-changes .registry-before.empty {
  font-style: italic;
}
.registry-changes .registry-arrow {
  color: var(--muted);
}
@media (max-width: 560px) {
  .registry-changes .registry-change {
    grid-template-columns: 20px minmax(0, 1fr);
  }
  .registry-changes .registry-values {
    grid-column: 2;
  }
}
/* „Wpisz zaznaczone” and „Anuluj”: apart like in the other windows (Biblia B8). */
.registry-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
/* Prospectus addresses (owner 21.10): the whole width of the panel, the fields two in a row. */
.prospectus-links {
  grid-column: 1 / -1;
}
.prospectus-links h4 {
  margin: 8px 0 2px;
}
.prospectus-links > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
  margin-bottom: 8px;
}
.prospectus-links > div > div {
  min-width: 0;
}
.reporting-form .primary {
  margin: 16px 0;
}
/* The result of „Zapisz dane dewelopera” next to the button (zlecenie 157): where it is saved, or why not. */
.reporting-form .save-result,
.reporting-form .form-error {
  margin: -8px 0 12px;
  font-size: 14px;
}
.reporting-form .save-result {
  color: var(--green);
}
.reporting-form .form-error {
  color: #bb5656;
}
.reporting-form .save-result:empty,
.reporting-form .form-error:empty {
  display: none;
}
#xmlDialog textarea {
  width: 100%;
  height: 50vh;
  font: 12px monospace;
  white-space: pre;
  overflow: auto;
  padding: 14px;
}
#projectNav strong {
  font-size: 12px;
}
#projectNav button {
  font-size: 11px;
  padding: 9px 7px;
}
@media (max-width: 720px) {
  .unit-details-editor,
  .reporting-fields,
  .prospectus-links > div,
  .history-edit-form {
    grid-template-columns: 1fr;
  }
  .wide-dialog {
    padding: 24px 16px;
  }
  .unit-media-buttons > * {
    flex: 1;
    text-align: center;
  }
  .history-edit-form {
    padding: 12px;
  }
  #historyEditDialog table {
    display: block;
    overflow: auto;
  }
}
#unitDialog {
  max-width: 1180px;
  max-height: 92dvh;
  overflow: auto;
  padding: 34px 38px;
}
#unitDialog h2 {
  margin: 12px 0;
}
.unit-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 1fr);
  gap: 32px;
  margin: 20px 0;
}
.unit-detail-layout.without-plan {
  grid-template-columns: 1fr;
}
.unit-featured {
  background: var(--panel-gray-f4f4f4, #f4f4f4);
  border-radius: 14px;
  padding: 16px;
  align-self: start;
  text-align: center;
}
.unit-featured img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 530px;
  object-fit: contain;
}
.unit-featured object {
  width: 100%;
  height: 480px;
}
.unit-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.unit-facts-grid > div {
  background: var(--panel-gray-f4f4f4, #f4f4f4);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.unit-facts-grid dt {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--panel-gray-6d6d6d, #6d6d6d);
  font-size: 12px;
}
.fact-icon {
  font-size: 21px;
  color: var(--green);
}
.unit-facts-grid dd {
  font-size: 21px;
  font-weight: 600;
  margin: 10px 0 0;
}
.unit-detail-info h3 {
  font-size: 15px;
  margin: 22px 0 10px;
}
.unit-description {
  white-space: pre-wrap;
}
.unit-primary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.unit-primary-actions > * {
  text-align: center;
}
.unit-detail-info .custom-values {
  font-size: 14px;
  grid-template-columns: 1fr 1fr;
  padding: 12px;
  background: var(--panel-gray-f7f7f7, #f7f7f7);
  border-radius: 8px;
}
.unit-details-editor textarea {
  width: 100%;
  min-height: 110px;
  font: inherit;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
#unitDialog > .dialog-close-button {
  width: auto;
  margin-top: 10px;
}
@media (max-width: 760px) {
  #unitDialog {
    padding: 26px 18px;
  }
  .unit-detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .unit-facts-grid dd {
    font-size: 18px;
  }
  .unit-featured object {
    height: 330px;
  }
  .unit-facts-grid > div {
    padding: 12px;
  }
}
/* Compact offer card and persistent global navigation. */
.global-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  white-space: nowrap;
}
.global-nav button {
  font-size: 12px;
}
#unitDialog {
  padding: 22px 26px;
  max-width: 1160px;
  max-height: 94dvh;
}
#unitDialog > .eyebrow {
  display: none;
}
#unitDialog h2 {
  display: inline-block;
  font-size: 25px;
  margin: 0 14px 4px 0;
}
#dialogData {
  font-size: 11px;
  margin: 0 0 12px;
}
#unitDialog .unit-detail-layout {
  gap: 24px;
  margin: 0;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 1fr);
}
#unitDialog .without-plan {
  grid-template-columns: 1fr;
}
.unit-featured {
  padding: 10px;
}
.plan-preview .plan-zoom {
  display: block;
  padding: 0;
  width: 100%;
  position: relative;
  background: transparent;
}
.plan-preview img {
  height: clamp(190px, 51dvh, 480px);
  width: 100%;
  object-fit: contain;
}
.zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--panel-hint-bg, #fffffff0);
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 10px;
}
.plan-switches {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.plan-switches [aria-pressed='true'] {
  background: var(--green);
  color: white;
}
.unit-detail-info > .history-button {
  float: right;
}
.unit-facts-grid {
  gap: 8px;
  margin-top: 8px;
}
.unit-facts-grid > div {
  padding: 10px 12px;
}
.unit-facts-grid dd {
  margin-top: 4px;
  font-size: 19px;
}
.unit-detail-info h3 {
  margin: 12px 0 5px;
  font-size: 13px;
}
.unit-detail-info .custom-values {
  padding: 8px;
  margin: 5px 0;
  font-size: 12px;
}
.unit-description {
  margin: 4px 0 12px;
  line-height: 1.5 !important;
}
.unit-primary-actions {
  gap: 6px;
}
.unit-primary-actions > * {
  padding: 10px;
  font-size: 12px;
}
.linked-spaces {
  font-size: 12px;
  margin-top: 10px;
}
.linked-spaces summary {
  cursor: pointer;
}
#unitDialog > .dialog-close-button {
  display: none;
}
.plan-preview object {
  height: 45dvh;
}
@media (max-width: 1000px) {
  .topbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 88px;
    padding: 14px;
  }
  .global-nav {
    order: 3;
    width: 100%;
    justify-content: flex-end;
  }
}
@media (max-width: 760px) {
  #unitDialog {
    padding: 20px 16px;
  }
  #unitDialog .unit-detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plan-preview img {
    height: 30dvh;
  }
  .global-nav {
    justify-content: center;
  }
  .file-actions {
    width: auto;
  }
  .unit-featured {
    padding: 6px;
  }
}
@media (min-width: 761px) and (max-height: 740px) {
  #unitDialog {
    padding: 16px 22px;
  }
  .unit-detail-info h3 {
    margin-top: 8px;
  }
  .unit-facts-grid > div {
    padding: 7px 10px;
  }
  .unit-description {
    font-size: 12px;
  }
  .unit-primary-actions > * {
    padding: 8px;
  }
}
.unit-facts-grid dt button {
  margin-left: auto;
  padding: 0 3px;
  font-size: 16px;
  line-height: 1;
}
.unit-facts-grid dt {
  min-height: 22px;
}
/* Roomier unit card and explicit link state. */
#unitDialog {
  max-width: 1320px;
  padding: 28px 32px;
}
#unitDialog .unit-detail-layout {
  gap: 32px;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, 1fr);
}
.unit-facts-grid {
  gap: 12px;
}
.unit-facts-grid > div {
  padding: 13px 15px;
}
.unit-detail-info h3 {
  margin: 17px 0 8px;
}
.unit-description {
  line-height: 1.65 !important;
  margin-bottom: 18px;
}
.unit-detail-info .custom-values {
  gap: 9px 16px;
  padding: 12px;
}
.unit-primary-actions {
  gap: 9px;
}
.unit-primary-actions > * {
  padding: 12px;
}
.link-indicator {
  display: inline-block;
  font-size: 11px;
  white-space: nowrap;
}
.linked {
  color: var(--panel-gray-6c6c6c, #6c6c6c) !important;
}
.unlinked {
  color: var(--panel-gray-939393, #939393);
}
.card-body > .link-indicator {
  display: block;
  margin-bottom: 8px;
}
.unit-card .card-body > .link-indicator {
  display: inline-block;
  margin: 12px 0 10px;
  padding: 3px 9px;
  border-radius: 20px;
}
.unit-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
}
.unit-price-row .unit-price {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.unit-price-row .history-icon {
  flex-shrink: 0;
  margin: 0;
}
.unit-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.unit-card-actions > * {
  margin: 0;
}
svg.history-glyph {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: block;
}
button.quiet > svg.history-glyph {
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  width: 17px;
  height: 17px;
}
.unit-row > .link-indicator {
  margin-left: auto;
}
.create-structure-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}
#unlinkArea,
#openLinkedView {
  width: 100%;
  margin-top: 6px;
}
.unit-row .row-arrow {
  margin-left: 0;
}
td > .link-indicator {
  display: block;
  margin: 5px 0;
}
/* „Otwórz w module Lokale” by the unit's name (owner 28.11): the small square with the arrow turned up-right, as by
   the unit in the CRM's client card; 8 px from the name (B8). */
.unit-lokale-link {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: 8px;
  vertical-align: middle;
  border: 1px solid var(--line);
  border-radius: 7px;
  /* Not var(--green): the Makieta sets it on the page to #262626 also in the dark theme (applyStyle). */
  color: var(--panel-gray-262626, #262626);
  background: var(--panel-gray-fcfcfc, #fcfcfc);
  text-decoration: none;
}
.unit-lokale-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-45deg);
}
.unit-lokale-link:hover {
  border-color: var(--muted);
}
.unit-lokale-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
/* In a unit's tile on a phone the arrow stays by the name; the status keeps the right end. */
.quick-card-head > .unit-lokale-link {
  margin-left: 0;
  margin-right: auto;
  flex: none;
}
@media (max-width: 760px) {
  #unitDialog {
    padding: 22px 18px;
  }
  #unitDialog .unit-detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (min-width: 761px) and (max-height: 760px) {
  #unitDialog {
    padding: 22px 28px;
  }
  .unit-facts-grid > div {
    padding: 10px 13px;
  }
  .unit-detail-info h3 {
    margin: 12px 0 7px;
  }
  .unit-description {
    font-size: 12px;
    line-height: 1.55 !important;
    margin-bottom: 14px;
  }
  .unit-detail-info .custom-values {
    gap: 7px 14px;
    padding: 10px;
  }
  .unit-primary-actions > * {
    padding: 10px;
  }
}
#unitDialog .unit-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
#unitDialog .unit-primary-actions > * {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px;
  font-size: 12px;
}
#unitDialog .unit-primary-actions > :last-child:nth-child(odd) {
  grid-column: 1/-1;
}
.vertex {
  pointer-events: all;
  cursor: grab;
}
.vertex:active {
  cursor: grabbing;
}
.midpoint {
  pointer-events: all;
  cursor: copy;
}
.midpoint:hover circle {
  fill: var(--panel-gray-d6d6d6, #d6d6d6);
}
@media (max-width: 480px) {
  #unitDialog .unit-primary-actions {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
}
.workspace > .canvas-hint {
  position: static;
  transform: none;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  text-align: left;
  border-radius: 6px;
  box-shadow: none;
  flex: none;
  pointer-events: none;
}
.workspace > .canvas-bottom {
  position: static;
  pointer-events: auto;
  flex: none;
  margin: 0;
}
.workspace > .canvas-bottom .canvas-caption {
  display: block;
}
.tools {
  flex-wrap: wrap;
}
.workspace-toolbar {
  align-items: flex-start;
}
.tools .tool {
  padding: 9px 10px;
}
.tools .tool span {
  font-size: 11px;
}
/* Spacious drawing workspace and intentional empty views. */
.editor-open #editorScreen {
  height: auto;
  min-height: 850px;
  align-items: stretch;
}
.editor-open .workspace {
  min-height: 850px;
  gap: 10px;
  padding: 16px;
}
.editor-open #stage {
  min-height: 600px;
}
.editor-open .sidebar {
  max-height: 850px;
}
.workspace-toolbar {
  flex-wrap: wrap;
  gap: 8px;
}
.workspace-toolbar > .history {
  margin-left: auto;
}
.missing-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  background: var(--panel-gray-f4f4f4, #f4f4f4);
}
.missing-image strong {
  font-size: 22px;
}
.missing-image p {
  font-size: 13px;
  color: var(--panel-gray-747474, #747474);
}
.missing-image button {
  margin-top: 15px;
}
.empty-view {
  text-align: center;
  padding: 55px;
}
.tools .tool.active {
  background: var(--panel-gray-eaeaea, #eaeaea);
  color: var(--panel-gray-444444, #444444);
  border-color: var(--panel-gray-919191, #919191);
  box-shadow: inset 0 -3px var(--panel-gray-6e6e6e, #6e6e6e);
}
@media (max-width: 720px) {
  .editor-open .workspace {
    min-height: 730px;
    height: 80dvh;
  }
  .editor-open #stage {
    min-height: 460px;
  }
  .editor-open .sidebar {
    max-height: none;
  }
}
.preview #stage,
.preview #canvas {
  touch-action: pan-y;
}
.preview .workspace-toolbar .tools {
  display: none;
}
.preview #expandEditor {
  display: none;
}
.embedded-preview > .topbar,
.embedded-preview > #projectNav,
.embedded-preview > .global-status {
  display: none !important;
}
.embedded-preview #breadcrumbs > button:first-child {
  display: none;
}
.embedded-preview .workspace {
  min-height: 700px !important;
}
.hex-row input[type='color'] {
  width: 42px;
  height: 38px;
  padding: 3px;
  flex: none;
  cursor: pointer;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
fieldset input[type='checkbox'] {
  width: 20px;
  height: 20px;
}
#managementScreen textarea[aria-label='Kod iframe'] {
  width: 100%;
  min-height: 90px;
  font: 13px monospace;
  padding: 14px;
}

.embed-preview-dialog {
  width: 95vw;
  max-width: 1500px;
  height: 92vh;
  border: 0;
  border-radius: 16px;
  padding: 20px;
}
.embed-preview-dialog iframe {
  width: 100%;
  height: calc(100% - 150px);
  border: 1px solid var(--panel-gray-dddddd, #dddddd);
  border-radius: 12px;
}
.offer-preview-shell {
  width: calc(100vw - 24px);
  max-width: none;
  height: calc(100dvh - 24px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel-gray-ececec, #ececec);
}
.offer-preview-shell::backdrop {
  background: #2c2c2c88;
}
.offer-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--panel-gray-ffffff, #ffffff);
  border-bottom: 1px solid var(--panel-gray-e0e0e0, #e0e0e0);
}
.offer-preview-toolbar strong {
  margin-right: auto;
}
.offer-preview-toolbar select {
  width: auto;
  margin: 0;
  max-width: 190px;
}
.offer-preview-toolbar button {
  white-space: nowrap;
}
.offer-preview-stage {
  height: calc(100% - 77px);
  padding: 20px 0;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.offer-preview-frame {
  display: block;
  border: 0;
  max-width: 100%;
  height: 100%;
  background: var(--panel-gray-ffffff, #ffffff);
  flex-shrink: 0;
}
.catalog-preview-frame {
  display: block;
  width: 100%;
  height: 1000px;
  border: 0;
  margin-top: 22px;
}
.embed-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin: 24px 0;
}
.embed-option {
  padding: 22px;
  border: 1px solid var(--panel-gray-dfdfdf, #dfdfdf);
  border-radius: 12px;
  background: var(--panel-gray-ffffff, #ffffff);
  min-width: 0;
}
.embed-option textarea {
  width: 100%;
  font: 12px/1.6 monospace;
  min-height: 100px;
  resize: vertical;
}
.embed-option p {
  font-size: 12px;
  color: var(--panel-gray-757575, #757575);
}
.embed-option button {
  margin: 5px 5px 5px 0;
}
@media (max-width: 780px) {
  .offer-preview-toolbar {
    gap: 6px;
    padding: 10px;
  }
  .offer-preview-toolbar strong {
    width: 100%;
  }
  .offer-preview-toolbar button,
  .offer-preview-toolbar select {
    font-size: 11px;
    padding: 8px;
  }
  .offer-preview-stage {
    height: calc(100% - 125px);
    padding: 10px 0;
  }
}
.offer-preview-toolbar button.primary {
  background: var(--panel-gray-444444, #444444) !important;
  color: white !important;
  border-color: var(--panel-gray-444444, #444444);
}
.offer-preview-shell {
  display: none;
  flex-direction: column;
}
.offer-preview-shell[open] {
  display: flex;
}
.offer-preview-stage {
  height: auto;
  flex: 1;
  min-height: 0;
}
.offer-preview-toolbar {
  flex: none;
}
.settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--panel-gray-efefef, #efefef);
  border: 1px solid var(--panel-gray-e1e1e1, #e1e1e1);
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0 30px;
}
.settings-subnav button {
  padding: 11px 15px;
  font-size: 13px;
}
.project-preview-button {
  margin-left: auto;
  white-space: nowrap;
}
.status-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.settings-subnav .primary {
  background: var(--panel-gray-444444, #444444);
  color: white;
}
#projectNav {
  background: var(--panel-gray-ebebeb, #ebebeb);
  border-bottom-color: var(--panel-gray-d6d6d6, #d6d6d6);
}
#projectNav .nav-item:not(.active) {
  background: transparent;
}
#projectNav .nav-item.active {
  background: var(--panel-gray-dadada, #dadada);
  border-color: var(--panel-gray-bcbcbc, #bcbcbc);
}
.global-search-panel {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  background: var(--panel-gray-ececec, #ececec);
  border: 1px solid var(--panel-gray-dcdcdc, #dcdcdc);
  border-radius: 15px;
  padding: 22px 26px;
  margin: 20px 0 30px;
}
.global-search-panel h2 {
  margin: 0 0 8px !important;
}
.global-search-panel p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}
.global-search-panel button {
  white-space: nowrap;
}
.project-search-button {
  margin-left: auto;
}
.project-preview-button {
  margin-left: 0;
}
.style-form-v2 {
  max-width: 1000px;
}
.style-form-v2 > .style-controls {
  position: static;
}
@media (max-width: 760px) {
  .global-search-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .global-search-panel button {
    white-space: normal;
  }
  .project-search-button {
    margin-left: 0;
  }
}
.context-plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: start;
}
.context-plan-main {
  min-width: 0;
}
.context-plan-main > svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
}
.context-view-rail h3 {
  font-size: 13px;
  margin: 0 0 12px;
}
.context-view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.context-view-thumb {
  padding: 0;
  text-align: left;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--panel-gray-dadada, #dadada);
  border-radius: 9px;
  background: var(--panel-gray-ffffff, #ffffff);
  display: flex;
  flex-direction: column;
}
.context-view-thumb.selected {
  outline: 2px solid var(--panel-gray-6e6e6e, #6e6e6e);
  outline-offset: 1px;
}
.context-view-thumb img,
.context-empty {
  width: 100%;
  height: 76px;
  object-fit: cover;
  background: var(--panel-gray-efefef, #efefef);
}
.context-empty {
  display: grid;
  place-items: center;
  font-size: 10px;
}
.context-view-thumb strong {
  font-size: 10px;
  padding: 8px 8px 3px;
  overflow-wrap: anywhere;
}
.context-view-thumb small {
  font-size: 9px;
  color: var(--panel-gray-7c7c7c, #7c7c7c);
  padding: 0 8px 8px;
}
.context-view-rail > button {
  display: block;
  width: 100%;
  margin-top: 12px;
  font-size: 11px;
  padding: 10px;
}
.context-view-rail {
  min-width: 0;
}
.empty-view .context-view-rail {
  max-width: 620px;
  margin: 25px auto;
  text-align: left;
}
.empty-view .context-view-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 950px) {
  .context-plan-layout {
    grid-template-columns: 1fr;
  }
  .context-view-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .context-view-rail > button {
    display: inline-block;
    width: auto;
    margin-right: 10px;
  }
}

#managementScreen > form {
  margin-bottom: 22px;
}
#managementScreen > button {
  margin: 0 10px 18px 0;
}
.field-order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--panel-gray-eaeaea, #eaeaea);
}
.field-order-row > label {
  flex: 1;
}
.field-order-row > input {
  width: auto !important;
}
.field-order-row > span {
  display: flex;
  gap: 4px;
}
.field-order-row button {
  padding: 5px 9px;
}

.field-order-hint {
  font-size: 12px;
  color: var(--panel-gray-747474, #747474);
  margin: 10px 0 14px;
}
.field-order-row {
  position: relative;
  border: 1px solid var(--panel-gray-e5e5e5, #e5e5e5);
  border-radius: 9px;
  padding: 9px 12px;
  margin: 6px 0;
  background: var(--panel-gray-ffffff, #ffffff);
  transition:
    background-color 150ms,
    opacity 150ms;
}
.field-order-row:hover {
  background: var(--panel-gray-f7f7f7, #f7f7f7);
}
.field-order-row .field-drag-handle {
  order: -1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  padding: 7px 10px;
  min-width: 38px;
  min-height: 38px;
  letter-spacing: 2px;
  font-size: 19px;
  line-height: 1;
  background: var(--panel-gray-f0f0f0, #f0f0f0);
  color: var(--panel-gray-676767, #676767);
  border: 0;
  border-radius: 7px;
}
.field-drag-handle:active {
  cursor: grabbing;
}
.field-order-hint .on-phone {
  display: none;
}
@media (max-width: 760px) {
  .field-order-row .field-drag-handle,
  .field-order-hint .on-desktop {
    display: none;
  }
  .field-order-hint .on-phone {
    display: inline;
  }
}
.field-order-row.is-dragging {
  opacity: 0.45;
  background: var(--panel-gray-ececec, #ececec);
}
.field-order-row.drop-before:before,
.field-order-row.drop-after:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--panel-gray-6e6e6e, #6e6e6e);
  border-radius: 3px;
  pointer-events: none;
}
.field-order-row.drop-before:before {
  top: -5px;
}
.field-order-row.drop-after:after {
  bottom: -5px;
}
.sort-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.global-search-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}
.global-search-heading > button {
  flex: none;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .global-search-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Admin chrome stays neutral; investment palettes live in the public renderer. */
:root {
  --green: var(--panel-gray-262626, #262626);
  --muted: var(--panel-gray-737373, #737373);
  --line: var(--panel-gray-dedede, #dedede);
  color: var(--panel-gray-262626, #262626);
  background: var(--panel-gray-f5f5f5, #f5f5f5);
}
.topbar {
  background: var(--panel-gray-ffffff, #fff);
}
.brand-icon {
  background: var(--panel-gray-262626, #262626);
  color: var(--panel-gray-ffffff, #fff);
}
.primary {
  background: var(--panel-gray-262626, #262626);
  color: var(--panel-gray-ffffff, #fff);
}
.primary:hover {
  background: var(--panel-gray-404040, #404040);
}
.global-nav {
  flex-wrap: wrap;
}
.global-nav [aria-current='page'] {
  background: var(--panel-gray-ededed, #ededed);
  color: var(--panel-gray-171717, #171717);
}
#projectNav {
  background: var(--panel-gray-ededed, #ededed);
}
.offer-preview-toolbar {
  background: var(--panel-gray-ffffff, #fff);
}
.offer-preview-stage {
  background: var(--panel-gray-e9e9e9, #e9e9e9);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline-color: var(--panel-gray-808080, #808080);
}

/* Semantic indicators remain colored in the neutral admin. */
.link-indicator.linked,
#linkState.linked {
  color: #25834a;
  background: #edf8f0;
}
.link-indicator.unlinked {
  color: var(--panel-gray-858585, #858585);
}
.history-icon {
  color: #376bb0;
  background: #edf3fc;
  border-color: #cddcf0;
}
.history-icon:hover {
  color: #234d88;
  background: #dfeafb;
}
.danger {
  color: #b34242;
}
/* A delete button with a frame (quiet) is a button like the others: its text centred in the frame, the same size
   (owner 20.10: „przyciski od usuwania nie centrują się w ramce — lecą na lewo”). Only the bare .danger text link
   sits flush left. Icon buttons and places with their own rule (later in this file) keep theirs. */
.quiet.danger:where(:not(.icon-delete)) {
  padding-left: 14px;
  padding-right: 14px;
  font-size: 13px;
  justify-content: center;
  text-align: center;
}
/* The confirming button of a removal (e.g. „Usuń ten wpis”): red with white text, not red text on the dark button. */
.primary.danger {
  background: #b34242;
  color: var(--panel-gray-ffffff, #ffffff);
}
.primary.danger:hover {
  background: #962f2f;
}

.field-order-list {
  display: block !important;
}
.field-order-list .field-order-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}
.field-order-row > label {
  min-width: 0;
  margin: 0;
  flex: 1;
}
.field-order-row > .field-order-actions {
  display: flex;
  flex: none;
  gap: 5px;
}
.field-order-actions button {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 20px;
}
.field-order-actions button:disabled {
  opacity: 0.25;
  cursor: default;
}
.save-notice {
  position: fixed;
  z-index: 10000;
  top: 82px;
  right: 20px;
  max-width: min(440px, calc(100vw - 40px));
  padding: 16px 20px;
  border: 1px solid #b9d3c0;
  border-radius: 12px;
  background: #f0f8f2;
  color: #245c35;
  box-shadow: 0 8px 30px #0002;
  font-size: 14px;
  line-height: 1.5;
}
.save-notice.is-error {
  border-color: #e5c1bb;
  background: #fbf0ee;
  color: #a24d43;
}
.save-notice[hidden] {
  display: none;
}

.floating-preview {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  box-shadow: 0 4px 18px #0003;
  padding: 12px 18px;
  border-radius: 28px;
}
.floating-preview[hidden] {
  display: none;
}
.field-order-row.is-dragging {
  opacity: 0.75;
  outline: 2px solid var(--panel-gray-888888, #888);
}
.project-card .danger {
  margin-top: 10px;
}
#saveState {
  font-size: 12px;
}

:root[data-panel-theme='dark'] {
  color-scheme: dark;
  --panel-gray-303030: #bfbfbf;
  --panel-gray-f5f5f5: #262626;
  --panel-gray-444444: #b0b0b0;
  --panel-gray-808080: #818181;
  --panel-gray-e4e4e4: #333333;
  --panel-gray-ebebeb: #2e2e2e;
  --panel-gray-bfbfbf: #505050;
  --panel-gray-fcfcfc: #202020;
  --panel-gray-e9e9e9: #2f2f2f;
  --panel-gray-ececec: #2d2d2d;
  --panel-gray-ffffff: #1e1e1e;
  --panel-gray-555555: #a3a3a3;
  --panel-gray-696969: #939393;
  --panel-gray-f1f1f1: #292929;
  --panel-gray-c2c2c2: #4e4e4e;
  --panel-gray-898989: #7a7a7a;
  --panel-gray-626262: #989898;
  --panel-gray-9e9e9e: #6a6a6a;
  --panel-gray-707070: #8e8e8e;
  --panel-gray-dbdbdb: #3a3a3a;
  --panel-gray-363636: #bbbbbb;
  --panel-gray-656565: #969696;
  --panel-gray-c7c7c7: #4a4a4a;
  --panel-gray-fafafa: #222222;
  --panel-gray-dfdfdf: #373737;
  --panel-gray-e8e8e8: #303030;
  --panel-gray-d1d1d1: #424242;
  --panel-gray-5b5b5b: #9e9e9e;
  --panel-gray-777777: #888888;
  --panel-gray-e7e7e7: #313131;
  --panel-gray-e0e0e0: #363636;
  --panel-gray-747474: #8a8a8a;
  --panel-gray-eeeeee: #2b2b2b;
  --panel-gray-606060: #9a9a9a;
  --panel-gray-f2f2f2: #282828;
  --panel-gray-6f6f6f: #8e8e8e;
  --panel-gray-5e5e5e: #9c9c9c;
  --panel-gray-7c7c7c: #848484;
  --panel-gray-6b6b6b: #919191;
  --panel-gray-f8f8f8: #232323;
  --panel-gray-9f9f9f: #696969;
  --panel-gray-efefef: #2a2a2a;
  --panel-gray-bbbbbb: #535353;
  --panel-gray-f6f6f6: #252525;
  --panel-gray-717171: #8d8d8d;
  --panel-gray-f4f4f4: #272727;
  --panel-gray-6d6d6d: #909090;
  --panel-gray-f7f7f7: #242424;
  --panel-gray-6c6c6c: #919191;
  --panel-gray-939393: #727272;
  --panel-gray-d6d6d6: #3e3e3e;
  --panel-gray-eaeaea: #2e2e2e;
  --panel-gray-919191: #747474;
  --panel-gray-6e6e6e: #8f8f8f;
  --panel-gray-dddddd: #393939;
  --panel-gray-757575: #8a8a8a;
  --panel-gray-e1e1e1: #353535;
  --panel-gray-dadada: #3b3b3b;
  --panel-gray-bcbcbc: #525252;
  --panel-gray-dcdcdc: #393939;
  --panel-gray-e5e5e5: #323232;
  --panel-gray-f0f0f0: #2a2a2a;
  --panel-gray-676767: #959595;
  --panel-gray-262626: #c7c7c7;
  --panel-gray-737373: #8b8b8b;
  --panel-gray-dedede: #383838;
  --panel-gray-404040: #b3b3b3;
  --panel-gray-ededed: #2c2c2c;
  --panel-gray-171717: #d3d3d3;
  --panel-gray-858585: #7d7d7d;
  --panel-gray-888888: #7b7b7b;
  --green: #dedede;
  --line: #464646;
  --ink: #eeeeee;
}
html[data-panel-theme='dark'] .primary {
  background: #e2e2e2;
  color: #171717;
  border-color: #e2e2e2;
}
html[data-panel-theme='dark'] .brand-icon {
  background: #e2e2e2;
  color: #171717;
}
html[data-panel-theme='dark'] .danger {
  color: #ffabab;
}
html[data-panel-theme='dark'] .primary.danger {
  color: var(--panel-gray-ffffff, #ffffff);
}
html[data-panel-theme='dark'] .save-notice {
  background: #183323;
  color: #cbf1d6;
}
html[data-panel-theme='dark'] .save-notice.is-error {
  border-color: #6b3a33;
  background: #3a1f1b;
  color: #f3c6bf;
}
html[data-panel-theme='dark'] .linked {
  background: #193624 !important;
  color: #82d79b !important;
}
html[data-panel-theme='dark'] .history-icon {
  background: #22334c;
  color: #a8caff;
}
.investment-remove {
  border-top: 1px solid var(--line, #ddd);
  margin-top: 18px;
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}
.investment-remove .danger {
  margin: 0 !important;
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 8px 0 8px 12px;
}
#panelTheme {
  min-width: 42px;
  width: 42px;
  height: 42px;
  padding: 10px;
  white-space: nowrap;
}

/* Theme surfaces also cover named and translucent colors. */
:root[data-panel-theme='dark'] {
  --panel-hint-bg: #303030f2;
}
html[data-panel-theme='dark'] .canvas-hint,
html[data-panel-theme='dark'] .canvas-caption,
html[data-panel-theme='dark'] .zoom-hint {
  color: #dedede;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}
.row-actions form {
  display: inline-flex;
  margin: 0;
}
.row-actions button {
  margin: 0;
  white-space: nowrap;
}
.table-wrap td:last-child {
  padding-right: 20px;
}
textarea {
  font: inherit;
  background: var(--panel-gray-ffffff, #ffffff);
  color: var(--panel-gray-363636, #363636);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}
.offer-preview-frame {
  background: white;
}

/* Comfortable admin navigation and consistently aligned icons. */
/* Scope typography to the management panel and editor controls, never the offer preview or export. */
:is(#managementScreen, #editorScreen > .sidebar) label {
  font-size: 13px;
  line-height: 1.45;
}
:is(#managementScreen, #editorScreen > .sidebar) :is(input, select, textarea) {
  font-size: 14px;
}
:is(#managementScreen, #editorScreen > .sidebar) :is(.image-name, .property-meta, .unit-row small) {
  font-size: 12px;
  line-height: 1.5;
}
:is(#managementScreen, #editorScreen > .sidebar) .eyebrow {
  font-size: 11px;
}
#managementScreen .muted {
  color: var(--panel-gray-696969, #696969);
}
button.with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  vertical-align: middle;
  line-height: 1.35;
}
.button-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  flex: 0 0 18px;
  line-height: 1;
  font-size: 17px;
}
#projectNav {
  min-height: 74px;
  gap: 10px;
  padding: 13px 28px;
}
#projectNav .nav-item {
  font-size: 14px;
  padding: 12px 15px;
}
#projectNav > strong {
  font-size: 15px;
}
#projectNav .project-preview-button,
#projectNav .project-search-button {
  font-size: 13px;
  padding: 11px 15px;
}
.tools .tool {
  gap: 10px;
  padding: 11px 14px;
}
.history-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  line-height: 1;
}
#managementScreen .table-wrap table {
  font-size: 14px;
}
#managementScreen .table-wrap th {
  font-size: 12px;
  padding: 18px 16px;
}
#managementScreen .table-wrap td {
  padding: 19px 16px;
}
#managementScreen .table-wrap td > strong,
#managementScreen .table-wrap td > strong:first-child {
  font-size: 15px;
}
#managementScreen .table-wrap .row-location {
  font-size: 12px;
}
#managementScreen .table-wrap input,
#managementScreen .table-wrap select {
  font-size: 13px;
}
#managementScreen .table-wrap .custom-list {
  font-size: 12px;
}
.row-actions {
  gap: 10px;
}
@media (max-width: 720px) {
  #projectNav {
    padding: 12px 14px;
    gap: 7px;
  }
  #projectNav .nav-item {
    font-size: 13px;
    padding: 10px 12px;
  }
  .tools .tool {
    padding: 9px 10px;
  }
}

/* Readable field ordering and style settings, without enlarging controls. */
.field-order-list .field-order-row > label {
  font-size: 13px;
  line-height: 1.45;
}
.field-order-list .field-order-hint {
  font-size: 13px;
  line-height: 1.5;
}
.style-form-v2 label {
  font-size: 13px;
  line-height: 1.45;
}
.style-form-v2 input:not([type='color']):not([type='checkbox']),
.style-form-v2 select {
  font-size: 14px;
}
.style-form-v2 .hex-row input:not([type='color']) {
  font-size: 15px;
}
.style-form-v2 .sample-swatches {
  font-size: 13px;
}

.space-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}
.space-actions > button {
  flex-shrink: 0;
  margin: 0;
}
.navigation-setting {
  margin-top: 20px;
}
.navigation-setting > label {
  font-size: 13px;
  margin: 0 0 8px;
  line-height: 1.45;
}
.navigation-setting > select {
  font-size: 13px;
  min-height: 42px;
}
a.download-plugin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-height: 42px;
  padding: 11px 17px;
  margin: 0 10px 18px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  font:
    600 13px/1.4 Satoshi,
    Arial,
    sans-serif;
  text-decoration: none;
  gap: 8px;
}
a.download-plugin::before {
  content: '↓';
  font-size: 18px;
  line-height: 1;
}
a.download-plugin:hover {
  filter: brightness(0.92);
}

.topbar {
  height: auto;
  min-height: 88px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.developer-badge {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  max-width: 200px;
  overflow-wrap: anywhere;
}
.help-menu {
  position: relative;
  font-size: 13px;
}
.help-menu > summary {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
}
.help-menu-items {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 200;
  min-width: 235px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-gray-ffffff, #fff);
  box-shadow: 0 8px 24px #0002;
}
.help-menu-items button {
  display: block;
  text-align: left;
  width: 100%;
  opacity: 0.65;
}
.transfer-dialog {
  width: min(720px, 94vw);
  max-height: 90vh;
  overflow: auto;
}
.transfer-dialog > button {
  margin: 6px 8px 8px 0;
}
.transfer-dialog > h3 {
  margin-top: 26px;
}
/* Our Excel form (order 075): the problems, fixes to tick and questions before saving. */
.form-import-issues li.form-import-error strong {
  color: #b34242;
}
.form-import-issues li.form-import-info {
  opacity: 0.75;
}
.form-import-fixes {
  display: grid;
  gap: 8px;
}
.form-import-fixes label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
}
.form-import-fixes input {
  width: 18px !important;
  height: 18px;
  margin: 1px 0 0;
  flex-shrink: 0;
}
.form-import-fixes span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.form-import-question {
  display: grid;
  gap: 6px;
  margin: 8px 0 12px;
}
.form-import-error:empty {
  display: none;
}
.form-import-error {
  color: #b34242;
}
.form-import-actions,
.investment-removal-actions {
  margin-top: 16px;
}
html[data-panel-theme='dark'] .form-import-error,
html[data-panel-theme='dark'] .form-import-issues li.form-import-error strong {
  color: #ffabab;
}

.brand-block {
  min-width: 0;
  max-width: 370px;
}
.brand {
  font-size: 17px;
}
.brand small {
  display: inline;
  font-size: 10px;
  letter-spacing: 0.2px;
  margin: 0;
  white-space: nowrap;
}
#brandDeveloper {
  padding-left: 55px;
}
.developer-badge {
  padding: 3px 0;
  border: 0;
  max-width: 290px;
  text-align: left;
  font-size: 12px;
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.help-menu > summary {
  border-radius: 9px;
  min-width: 104px;
  text-align: center;
  list-style: none;
  padding: 12px 20px;
}
.help-menu > summary::after {
  content: '⌄';
  margin-left: 12px;
}
.help-menu-items button:enabled {
  opacity: 1;
}
.global-nav {
  flex-wrap: wrap;
}
.page-heading {
  flex-wrap: wrap;
}
.page-heading > div {
  min-width: 0;
}
.table-wrap {
  max-width: 100%;
  min-width: 0;
}
#managementScreen,
fieldset,
.reporting-fields > div,
.style-controls > div,
.unit-details-editor > div {
  min-width: 0;
}
input,
select,
textarea {
  max-width: 100%;
}
.transfer-dialog {
  box-sizing: border-box;
}
.brand-block .brand-icon {
  flex-shrink: 0;
}
@media (max-width: 1000px) {
  .topbar {
    gap: 12px;
  }
  .global-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .file-actions {
    margin-left: auto;
  }
  #managementScreen {
    padding: 28px 22px 84px;
  }
  .settings-form {
    max-width: 100%;
    box-sizing: border-box;
  }
  .editor-open main {
    height: auto;
    min-height: 0;
  }
  .workspace {
    min-height: 500px;
  }
  .offer-preview-toolbar {
    gap: 8px;
  }
}
@media (max-width: 640px) {
  .topbar {
    padding: 14px;
    align-items: center;
  }
  .brand-block {
    max-width: 100%;
    width: 100%;
  }
  .brand {
    font-size: 16px;
  }
  .brand small {
    font-size: 9px;
  }
  #brandDeveloper {
    padding-left: 47px;
  }
  .file-actions {
    width: auto;
    margin-left: 0;
    justify-content: flex-start;
  }
  .global-nav {
    gap: 4px;
  }
  .global-nav button {
    padding: 9px 10px;
    font-size: 12px;
  }
  #managementScreen {
    padding: 24px 14px 88px;
  }
  #managementScreen h1 {
    font-size: 28px;
  }
  .page-heading {
    gap: 14px;
  }
  .home-actions {
    width: 100%;
  }
  .home-actions button {
    flex: 1;
  }
  /* Owner 10.10: import and export are work for the computer — on the phone only „Dodaj inwestycję”. */
  .home-actions .home-transfer {
    display: none;
  }
  .help-menu-items {
    left: 0;
    right: auto;
    max-width: calc(100vw - 28px);
  }
  .style-form-v2 {
    padding: 14px;
  }
  .style-controls {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }
  .status-color-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .status-color-row > strong {
    grid-column: 1/-1;
  }
  .hex-row {
    min-width: 0;
  }
  .hex-row input:not([type='color']) {
    min-width: 0;
  }
  fieldset {
    padding: 12px;
    grid-template-columns: minmax(0, 1fr);
  }
  .reporting-form > details {
    padding: 14px;
  }
  .field-order-list .field-order-row {
    gap: 8px;
    padding: 9px 8px;
  }
  .field-order-row .field-drag-handle {
    min-width: 32px;
    width: 32px;
    padding: 6px;
  }
  .field-order-actions button {
    width: 32px;
  }
  .field-order-row > label {
    overflow-wrap: anywhere;
  }
  .floating-preview {
    bottom: 12px;
    right: 12px;
    padding: 10px 13px;
    font-size: 12px;
  }
  .tools {
    flex-wrap: wrap;
    gap: 8px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .workspace {
    height: 70dvh;
    min-height: 440px;
  }
  .variant-bar {
    flex-wrap: wrap;
  }
  .variant-bar select {
    width: 100%;
    flex-basis: 100%;
  }
  .polygon-list {
    grid-template-columns: 1fr;
  }
  .offer-preview-toolbar {
    padding: 10px;
    gap: 8px;
  }
  .offer-preview-toolbar > strong {
    width: 100%;
  }
  .offer-preview-toolbar select {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 140px;
  }
  dialog {
    max-width: calc(100vw - 20px);
    padding: 20px;
    box-sizing: border-box;
  }
  .transfer-dialog > button {
    max-width: 100%;
    white-space: normal;
  }
  .embed-option {
    padding: 16px;
  }
  .save-notice {
    top: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
  }
}
/* Small-screen menus stay inside the viewport even when their trigger is centered. */
@media (max-width: 640px) {
  .help-menu-items {
    position: fixed;
    left: 14px;
    right: 14px;
    width: auto;
    max-width: none;
    max-height: 60dvh;
    overflow: auto;
  }
  .offer-preview-toolbar {
    max-height: 38dvh;
    overflow: auto;
  }
  .developer-badge {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .home-actions button {
    min-width: 120px;
  }
  .workspace-toolbar {
    flex-wrap: wrap;
  }
  .workspace-toolbar .history {
    margin-left: auto;
  }
}
@media (max-width: 640px) {
  .help-menu-items {
    top: auto;
    margin-top: 8px;
  }
}
/* Compact two-line identity aligned to the logo, plus a clear dropdown arrow. */
.brand-block {
  position: relative;
  padding-left: 55px;
  min-height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.brand-block .brand {
  line-height: 22px;
  gap: 0;
}
.brand-block .brand-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
}
.brand-block #brandDeveloper {
  padding-left: 0;
  min-width: 0;
  line-height: 18px;
}
.brand-block .developer-badge {
  display: block;
  padding: 0;
  margin: 0;
  line-height: 18px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.help-menu > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.help-menu > summary::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v16m-7-7 7 7 7-7' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/contain no-repeat;
  transition: transform 0.18s;
}
.help-menu[open] > summary::after {
  transform: rotate(180deg);
}
@media (max-width: 640px) {
  .brand-block {
    padding-left: 55px;
  }
  .brand-block .brand {
    line-height: 22px;
  }
  .brand-block .brand-icon {
    width: 42px;
    height: 42px;
  }
}

/* POC55: navigation and filter instructions */
#projectNav {
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 10px #0000000a;
}
.filter-ranges-settings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}
.filter-ranges-settings > p {
  grid-column: 1/-1;
  line-height: 1.65;
  margin: 0 0 12px;
  max-width: 90ch;
}
.filter-ranges-settings > div {
  min-width: 0;
}
@media (max-width: 640px) {
  .filter-ranges-settings {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* POC55: compact, predictable menus and editor controls */
.topbar {
  position: relative;
  height: auto;
  min-height: 88px;
  flex-wrap: nowrap;
}
.topbar button,
.topbar summary {
  white-space: nowrap;
}
.brand-block {
  flex-shrink: 0;
}
.global-nav {
  flex-wrap: nowrap;
}
.file-actions {
  flex-shrink: 0;
}
#globalMenuToggle {
  display: none;
}
#projectNav {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  gap: 8px;
  align-items: center;
  min-height: 70px;
}
#projectNav > * {
  flex-shrink: 0;
}
#projectNav strong {
  width: auto;
  max-width: 230px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 12px;
}
#projectNav button {
  white-space: nowrap;
  line-height: 1.2;
  min-height: 40px;
}
.workspace-toolbar {
  align-items: center;
  gap: 10px;
}
.workspace-toolbar .tools {
  align-items: center;
  gap: 8px;
}
.workspace-toolbar .tool,
.workspace-toolbar #expandEditor,
.workspace-toolbar .history button {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  line-height: 1.2;
  font-size: 13px;
  white-space: nowrap;
}
.workspace-toolbar .history {
  display: flex;
  align-items: center;
  gap: 8px;
}
.workspace-toolbar .history button {
  width: 40px;
  padding: 0;
  font-size: 22px;
}
.tool-tip {
  position: relative;
  display: inline-flex;
}
.tool-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  padding: 8px 11px;
  border-radius: 7px;
  background: var(--panel-gray-303030, #303030);
  color: var(--panel-gray-ffffff, #fff);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-3px);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.tool-tip:hover::after,
.tool-tip:focus-within::after {
  opacity: 1;
  transform: none;
}
.tool-tip button:disabled {
  pointer-events: none;
}
/* Below 1800 px the full header menu does not fit in one row (about 1650 px with Windows fonts): it
   folds into the "Menu" button, and the list opens right under that button (owner's decision 01.10). */
@media (max-width: 1800px) {
  #globalMenuToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
    min-height: 40px;
  }
  .topbar {
    gap: 12px;
    padding: 16px 22px;
  }
  .topbar .global-nav {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    right: 22px;
    z-index: 90;
    width: 280px;
    max-width: calc(100vw - 28px);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-gray-ffffff, #fff);
    box-shadow: 0 10px 28px #0002;
    flex-direction: column;
    align-items: stretch;
  }
  .topbar.menu-open .global-nav {
    display: flex;
  }
  .global-nav button {
    text-align: left;
    padding: 12px 14px;
    white-space: normal;
  }
  .file-actions {
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  .topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    padding: 12px 14px;
    gap: 10px;
  }
  .topbar .brand-block {
    grid-column: 1/-1;
    width: auto;
    max-width: 100%;
  }
  .topbar #globalMenuToggle {
    grid-row: 2;
    grid-column: 2;
    justify-self: end;
    margin: 0;
  }
  .topbar .file-actions {
    grid-row: 2;
    grid-column: 3;
    width: auto;
    gap: 6px;
  }
  .topbar .file-actions button,
  .help-menu > summary {
    padding: 9px 10px;
    font-size: 12px;
    min-width: 0;
  }
  .topbar #panelTheme .button-icon {
    width: 16px;
    height: 16px;
  }
  .topbar #panelTheme {
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 10px;
    gap: 6px;
  }
  .help-menu-items {
    left: auto;
    right: 0;
  }
  #projectNav {
    padding: 10px 14px;
    min-height: 62px;
  }
  #projectNav strong {
    max-width: 180px;
  }
  .workspace-toolbar {
    flex-wrap: wrap;
  }
  .workspace-toolbar .tools {
    flex-wrap: nowrap;
  }
  .workspace-toolbar .history {
    margin-left: auto;
  }
}

.module-home-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.module-home-link:hover {
  background: var(--panel-gray-ebebeb, #ebebeb);
}
.brand-module {
  font-size: 13px;
  font-weight: 600;
  margin-left: 54px;
}
.investment-remove {
  display: flex !important;
  justify-content: space-between !important;
  gap: 14px;
}
.module-menu summary {
  border: 1px solid var(--line, #ccc);
  border-radius: 9px;
  padding: 12px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.module-menu .help-menu-items a {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
}
.module-menu .help-menu-items a:hover {
  background: #8882;
}

/* Shared identity: product + developer, followed by current module. */
.topbar .studio-identity,
.shell-header .studio-identity {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  border: 0;
  padding: 0;
  flex-shrink: 0;
  width: auto;
}
.studio-identity .brand {
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  border: 0;
  background: none;
  flex-shrink: 0;
}
.studio-identity .brand svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linejoin: round;
  box-sizing: border-box;
}
.studio-identity-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.studio-identity-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.studio-identity-copy small,
.studio-identity-copy #developerBadge {
  font-size: 12px;
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  display: block;
  text-align: left;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-identity #brandDeveloper {
  margin: 0;
  padding: 0;
  position: static;
}
.studio-module-name {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  margin-left: 3px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 155px;
}
@media (max-width: 700px) {
  .topbar .studio-identity,
  .shell-header .studio-identity {
    gap: 10px;
    flex-shrink: 1;
    max-width: 100%;
  }
  .studio-identity-title {
    font-size: 14px;
  }
  .studio-identity-copy small,
  .studio-identity-copy #developerBadge {
    font-size: 11px;
    max-width: 160px;
  }
  .studio-module-name {
    font-size: 12px;
    padding-left: 10px;
    margin-left: 0;
    max-width: 105px;
  }
  .studio-identity .brand svg {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
}

.topbar .studio-identity .brand svg {
  background: var(--green);
  color: var(--panel-gray-ffffff, #fff);
}

.topbar .studio-identity .brand svg {
  background: #252525;
  color: #fff;
}
html[data-panel-theme='dark'] .topbar .studio-identity .brand svg {
  background: #eee;
  color: #222;
}

/* The module's name in the header (zlecenie 178, owner 20.11): larger, in one line, centred on the logo — the same
   as in the other modules (modules/shell.css). */
.studio-identity .studio-module-name {
  align-self: center;
  display: block;
  padding-top: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 700px) {
  .studio-identity .studio-module-name {
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;
  }
}
/* A computer (178b, owner 20.11): the module's name the size of the page's title in the other modules, never cut
   („Makieta inwestycji” whole at 1280–1920 px): the identity takes the room it needs; the rest of the bar wraps
   under it when there is not enough room. */
@media (min-width: 1000px) {
  .topbar .brand-block.studio-identity {
    max-width: none;
    flex: 0 0 auto;
  }
  .studio-identity .studio-module-name {
    font-size: 34px;
    font-weight: 650;
    letter-spacing: -1.2px;
    line-height: 1.15;
    overflow: visible;
    text-overflow: clip;
  }
}
/* From 1801 px the header's menu is in the row itself (owner 01.10): with the bigger module's name (178b) its buttons
   are a little narrower, so the row keeps its margin also with wider fonts (Windows, CI). */
@media (min-width: 1801px) {
  .topbar .global-nav {
    gap: 2px;
  }
  .topbar .global-nav button {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* One aligned investment navigation row, separated from its identity. */
#projectNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
#projectNav > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  min-height: 44px;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.25;
  box-sizing: border-box;
  white-space: nowrap;
}
#projectNav > strong {
  display: flex;
  align-items: center;
  align-self: center;
  height: 32px;
  line-height: 1.25;
  margin: 0 12px 0 8px;
  padding-right: 24px;
  border-right: 1px solid var(--panel-gray-bbbbbb, #bbb);
  box-sizing: border-box;
  flex-shrink: 0;
}
#projectNav > button .button-icon,
#projectNav > button .button-glyph {
  flex-shrink: 0;
  vertical-align: middle;
}
@media (max-width: 760px) {
  #projectNav > button {
    height: 40px;
    min-height: 40px;
  }
  #projectNav > strong {
    padding-right: 16px;
    margin-right: 6px;
  }
}
/* The company of an investment on its card (owner 04.11), small print under the counts. */
.card-body .investment-company {
  margin-top: -4px;
  font-size: 13px;
  color: var(--muted);
}
.card-body .investment-description {
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0;
  min-height: 0;
}
.gov-inclusion {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.gov-inclusion input {
  width: 18px !important;
  height: 18px;
  flex-shrink: 0;
}

.xml-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.xml-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  margin: 0 !important;
  line-height: 1.25;
}

.gov-investment-selection {
  margin: 24px 0 32px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 12px;
}
.gov-investment-selection legend {
  padding: 0 8px;
  font-weight: 600;
}
.gov-investment-selection .gov-inclusion {
  margin: 0;
  cursor: pointer;
}
.gov-investment-selection p {
  margin: 0;
}
.gov-investment-selection .gov-inclusion span {
  overflow-wrap: anywhere;
}

.module-menu > summary::after {
  content: none;
  display: none;
}
/* Audit A9: on phones the header actions get their own wrapping row instead of widening the page. */
@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .topbar .brand-block {
    min-width: 0;
  }
  .topbar .file-actions {
    grid-row: 3;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
  }
}
/* Mapowanie statusów do XML: pole wartości + „Nie raportuj” w jednym wierszu. */
.report-status-note {
  grid-column: 1 / -1;
}
.report-status-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}
.report-exclude {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  white-space: nowrap;
}

/* Publication and embed codes (full system). */
.publish-settings label {
  display: grid;
  gap: 6px;
  max-width: 560px;
  margin-top: 12px;
}
.publish-status {
  margin: 12px 0 0;
}
.publish-investment {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--line, #e4e4e4);
  border-radius: 14px;
  background: var(--panel-gray-ffffff, #fff);
}
.publish-code {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
.publish-code input,
.publish-code textarea {
  width: 100%;
  min-width: 0;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
@media (max-width: 760px) {
  .publish-code {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .publish-code strong {
    grid-column: 1 / -1;
  }
}
.publish-settings .page-actions {
  align-items: center;
}
/* Both buttons on one line: the generic form rule adds a top margin to the primary button. */
.settings-form .publish-actions > button {
  margin: 0;
}

/* Header "Menu" button (below 1800 px): hamburger icon, a clear gap before the word, open state. */
#globalMenuToggle {
  gap: 10px;
  padding-left: 14px;
  padding-right: 16px;
}
#globalMenuToggle .menu-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}
#globalMenuToggle[aria-expanded='true'] {
  background: var(--panel-gray-ededed, #ededed);
}
@media (max-width: 1800px) {
  .topbar .global-nav {
    gap: 2px;
  }
}
@media (max-width: 760px) {
  html body .topbar #globalMenuToggle::before {
    content: none;
  }
  html body .topbar #globalMenuToggle .menu-icon {
    width: 22px;
    height: 22px;
  }
}
/* Report from 11.11.2026 (A–J), test mode: gap list. */
.gov-aj {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-gray-ffffff, #fff);
}
.gov-aj h2 {
  margin-top: 0;
}
.gov-aj-summary {
  font-weight: 600;
}
.gov-aj-issues {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.45;
}
.gov-aj-issues .gap strong {
  color: #b42318;
}
.gov-aj-issues .note strong {
  color: #8a5a00;
}
:root[data-panel-theme='dark'] .gov-aj {
  background: var(--panel-gray-262626, #262626);
}
:root[data-panel-theme='dark'] .gov-aj-issues .gap strong {
  color: #ff9b8f;
}
:root[data-panel-theme='dark'] .gov-aj-issues .note strong {
  color: #f5c46b;
}
.import-warnings {
  max-height: 40vh;
  overflow-y: auto;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
}
/* Unit list (owner 06.10): the price field level with the others, price per m² below it; a red dot
   in "Promo" when the promotion is on; a bin to delete the unit next to "Kopiuj". */
.row-price {
  position: relative;
}
.row-price > small {
  position: absolute;
  left: 2px;
  top: calc(100% + 3px);
  white-space: nowrap;
}
/* Owner 14.10: a strip in the status colour under the status list (its place like the price per m²). */
.row-status {
  position: relative;
}
/* „Rezerwacja po terminie” under the status (zlecenie 175): the reservation is over and nobody decided yet. */
.row-overdue {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f6e3e3;
  color: #8c2f2f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
html[data-theme='dark'] .row-overdue {
  background: #4a2626;
  color: #f3c0c0;
}
.row-status-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  height: 3px;
  border-radius: 2px;
  transition: background 0.2s;
}
/* The "Otodom" column: an eye to the unit's advert, nothing when the unit is not on Otodom. */
th.otodom-col,
td.otodom-col {
  text-align: center;
  width: 1%;
}
.otodom-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #1f8a4c;
  background: #e5f4ea;
}
.otodom-eye:hover {
  background: #d2ecdb;
}
.otodom-eye svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[data-panel-theme='dark'] .otodom-eye {
  color: #8fe0ad;
  background: #183323;
}
.otodom-problem {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #b33a3a;
  background: #fbe9e9;
}
.otodom-problem:hover {
  background: #f6d6d6;
}
html[data-panel-theme='dark'] .otodom-problem {
  color: #ffabab;
  background: #3a1f1f;
}
.row-promo {
  text-align: center;
}
.promo-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c62828;
  box-shadow: 0 0 0 3px #c628282e;
}
.icon-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
}
.icon-delete svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 720px) {
  .row-actions button {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* Structure tiles: the edit button sits under "Otwórz panel", not glued to it (owner 06.10). */
.card-body > .node-edit {
  margin: 8px 0 0 10px;
}
/* Unit list: structure filters (sector / building / block, then floor) next to the status filter. */
.table-toolbar {
  flex-wrap: wrap;
}
.structure-filters {
  display: contents;
}
.structure-filters select {
  width: auto;
  min-width: 170px;
}
.structure-filters[hidden] {
  display: none;
}

/* Card buttons in one row, all the same height (the bin is square, owner 06.10). */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}
.card-body .card-actions button {
  margin: 0;
}
.card-actions .icon-delete {
  aspect-ratio: 1;
  padding: 0 12px;
}
/* Views: computer / phone tabs, drag to reorder, the position on the picture (owner 06.10). */
.view-device-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.view-device-tabs [aria-pressed='true'] {
  background: var(--panel-gray-262626, #262626);
  border-color: var(--panel-gray-262626, #262626);
  color: var(--panel-gray-ffffff, #ffffff);
}
.view-order-hint {
  margin-top: 12px;
  font-size: 13px;
}
.view-card {
  cursor: grab;
}
.view-card.dragging {
  opacity: 0.45;
}
.view-card.drop-target {
  outline: 3px dashed var(--panel-gray-262626, #262626);
  outline-offset: 3px;
}
.view-card-media {
  position: relative;
}
.view-card-media > img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.view-order {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 15px;
  background: var(--panel-gray-ffffff, #ffffff);
  color: var(--panel-gray-262626, #262626);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 8px #0002;
}

/* Field table: "Edytuj pole" and "Usuń pole" side by side with a gap, the same size (owner 07.10). */
.field-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.field-actions .danger {
  font-size: 13px;
  padding: 10px 14px;
}

/* Unit with "Dane z typu" (owner 07.10): the type's pictures and plans are shown, not edited here. */
.unit-details-editor.from-type .media-group {
  opacity: 0.55;
  pointer-events: none;
}
.type-note {
  margin: 4px 0 12px;
}
.types-table td {
  vertical-align: middle;
}

/* Unit list: the "Typ" column (owner 07.10). */
.row-type {
  white-space: nowrap;
}

/* Unit form: type choice at the top, a large "Dane z typu" / "Ręcznie" switch, and the fields that come
   from the type tinted so they are easy to tell apart (owner 07.10). */
.type-choice {
  grid-column: 1 / -1;
  margin: 4px 0 8px;
  padding: 14px 16px;
  border: 1px solid #b9d3c3;
  border-radius: 12px;
  background: #f2f8f4;
}
.type-choice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}
.type-choice-row > div:first-child {
  flex: 1 1 260px;
}
.type-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid #b9d3c3;
  border-radius: 999px;
  background: #fff;
}
.type-switch button {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
}
.type-switch button[aria-pressed='true'] {
  background: #3e6b55;
  color: #fff;
}
.type-switch button:disabled {
  opacity: 0.45;
}
.type-choice .type-note {
  margin: 10px 0 0;
}
.from-type-field,
.from-type-field:disabled {
  background: #e3ebe5 !important;
  border-color: #a9bdb2 !important;
  color: #415c4f !important;
}
.unit-details-editor.from-type .media-group {
  background: #e3ebe5;
  border-radius: 10px;
}
/* Editor, under "Wczytaj własny obraz": the two picture buttons with space between (owner 07.10). */
.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.image-actions button {
  flex: 1 1 auto;
  margin: 0;
}
/* Unit list: actions two by two (owner 07.10). */
.row-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
}
/* A wide screen has room for all four in one row (owner 07.10). */
@media (min-width: 1500px) {
  .row-actions {
    display: flex;
    flex-wrap: nowrap;
  }
}

/* Views grouped by the structure (owner 07.10): each level its own shade, floors inside their block. */
.view-group {
  margin: 22px 0 8px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.view-group[data-level='0'] {
  background: #e7efea;
  border-color: #c9dace;
}
.view-group[data-level='1'] {
  background: #f3f7f4;
  border-left: 5px solid #3e6b55;
}
.view-group[data-level='2'] {
  background: var(--panel-gray-ffffff, #ffffff);
  border-left: 3px solid #9dbcaa;
}
.view-group-kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3e6b55;
}
html[data-panel-theme='dark'] .view-group[data-level='0'] {
  background: #1f2a24;
  border-color: #33473c;
}
html[data-panel-theme='dark'] .view-group[data-level='1'] {
  background: #1b221e;
}
html[data-panel-theme='dark'] .view-group[data-level='2'] {
  background: transparent;
}
html[data-panel-theme='dark'] .view-group-kind {
  color: #9dc7b0;
}
.view-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.view-group-head h3 {
  margin: 0;
  font-size: 18px;
}
.view-group-count {
  font-size: 13px;
  color: var(--panel-gray-747474, #747474);
}
.view-group-head button {
  margin-left: auto;
}
.view-group .cards-grid {
  margin-top: 14px;
}
.view-floors {
  margin: 16px 0 4px;
  padding: 10px 16px;
  border: 1px dashed #9dbcaa;
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-gray-ffffff, #ffffff) 70%, transparent);
}
.view-floors > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}
.view-floors .view-group {
  margin-top: 14px;
}

/* Price history: a gap above "Edytuj historię cen" (owner 07.10). */
.history-edit {
  margin-top: 20px;
}
/* Back to the level above (editor "← Panel …", panel of a building or floor): the dark green of orso.estate, easy to find
   (owner 07.10: "Wszystkie inwestycje" was used instead). */
button.level-up {
  background: #415c4f;
  border-color: #415c4f;
  color: #fff;
}
button.level-up:hover {
  background: #344a3f;
  border-color: #344a3f;
}
/* The label inside is a span, which the breadcrumbs colour dark grey (owner 08.10: dark text on green). */
#breadcrumbs button.level-up span,
button.level-up span {
  color: inherit;
}

/* "Struktura": the whole investment as a tree (owner 07.10). */
.structure-tree,
.structure-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.structure-tree {
  margin: 18px 0;
}
.structure-tree ul {
  margin-left: 22px;
  padding-left: 14px;
  border-left: 2px solid #c9dace;
}
.structure-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 8px 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-gray-ffffff, #ffffff);
}
.structure-node[data-level='0'] > .structure-row {
  background: #e7efea;
  border-color: #c9dace;
}
.structure-node[data-level='1'] > .structure-row {
  background: #f3f7f4;
  border-left: 5px solid #3e6b55;
}
.structure-node[data-level='2'] > .structure-row,
.structure-node[data-level='3'] > .structure-row {
  border-left: 3px solid #9dbcaa;
}
.structure-kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3e6b55;
  min-width: 70px;
}
button.structure-name {
  border: 0;
  background: none;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}
button.structure-name:hover {
  text-decoration: underline;
}
.structure-count {
  font-size: 13px;
  color: var(--panel-gray-747474, #747474);
  margin-right: auto;
}
html[data-panel-theme='dark'] .structure-node[data-level='0'] > .structure-row {
  background: #1f2a24;
  border-color: #33473c;
}
html[data-panel-theme='dark'] .structure-node[data-level='1'] > .structure-row {
  background: #1b221e;
}
html[data-panel-theme='dark'] .structure-kind {
  color: #9dc7b0;
}
/* Units of a level in "Struktura" as a fold-out list (owner 08.10). */
.structure-units {
  margin: -2px 0 10px 18px;
}
.structure-units > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #3e6b55;
  padding: 4px 0;
}
.structure-tree .structure-units > ul {
  border-left: 2px dashed #c9dace;
}
.structure-unit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 6px 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-gray-ffffff, #ffffff);
}
button.structure-unit-name {
  border: 0;
  background: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
button.structure-unit-name:hover {
  text-decoration: underline;
}
.structure-unit .status-pill {
  font-size: 11px;
}
html[data-panel-theme='dark'] .structure-units > summary {
  color: #9dc7b0;
}

/* Module menu: the icons of the start screen tiles (owner 09.10). */
svg.module-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Orso colours in the Makieta (owner 09.10): light green for secondary actions ("Otwórz katalog lokali",
   "Podgląd tego widoku", pictures in the editor, "← Wszystkie inwestycje"), the dark green of orso.estate
   for "Podgląd projektu". */
button.sage,
.image-actions button.sage,
.missing-image button.sage {
  background: #e3ebe5;
  border-color: #a9bdb2;
  color: #415c4f;
}
button.sage:hover {
  background: #d2dfd6;
}
button.image-button.sage {
  border-style: dashed;
}
button.dark-green {
  background: #415c4f;
  border-color: #415c4f;
  color: #fff;
}
button.dark-green:hover {
  background: #344a3f;
  border-color: #344a3f;
}
button.dark-green span,
button.sage span {
  color: inherit;
}
.tool .tool-icon {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* "Deweloper i eksport XML" and "Wyszukiwarka globalna" (owner 09.10, subtly): titles in the dark green,
   a chosen investment on light green, hints a little larger and darker. */
.gov-investment-selection legend,
.reporting-form summary,
.global-search-form legend,
.global-search-form h3 {
  color: #415c4f;
}
.gov-investment-selection {
  border-color: #cbd9cf;
}
.gov-investment-selection .gov-inclusion:has(input:checked) {
  background: #e3ebe5;
  border-color: #a9bdb2;
}
.gov-investment-selection .image-name,
.reporting-form .image-name,
.global-search-form .image-name {
  font-size: 12.5px;
  color: #4a4a4a;
  line-height: 1.6;
}
.global-search-form fieldset {
  border-color: #cbd9cf;
  border-radius: 12px;
}
.global-search-form label:has(> input[type='checkbox']:checked) {
  color: #2f463b;
}

/* Investment menu (owner 12.10, "Spacery 3D" added): one tidy row on a computer; on a narrower computer
   the way back and the search are icons; on a tablet (up to 1360 px) the tabs are a row of their own that
   slides sideways. */
#projectNav .nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
}
#projectNav .nav-tabs > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  box-sizing: border-box;
}
#projectNav > .project-search-button {
  margin-left: auto;
}
@media (max-width: 1600px) {
  #projectNav > .nav-back > span:not(.button-glyph),
  #projectNav > .project-search-button > span {
    display: none;
  }
  #projectNav > .nav-back,
  #projectNav > .project-search-button {
    gap: 0;
    width: 44px;
    padding: 0;
  }
  #projectNav > strong {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 1360px) {
  #projectNav {
    flex-wrap: wrap !important;
    row-gap: 10px;
  }
  #projectNav > strong {
    border-right: 0;
  }
  #projectNav .nav-tabs {
    order: 10;
    flex: 1 0 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* the tabs fade at the right edge: the row slides */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  }
  #projectNav .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  #projectNav .nav-tabs .nav-item {
    flex: 0 0 auto !important;
  }
}
@media (max-width: 760px) {
  #projectNav > .nav-back > span:not(.button-glyph) {
    display: inline;
  }
  #projectNav > .nav-back {
    width: auto;
    padding: 6px 10px;
    gap: 9px;
  }
}

/* Spacery 3D (owner 12.10): the list of walkthroughs and the creator, in the style of the other screens. */
.tours-empty {
  max-width: 560px;
  margin: 32px auto;
  padding: 40px 32px;
  text-align: center;
  background: var(--panel-gray-ffffff, #fff);
  border: 1px dashed var(--panel-gray-d4d4d4, #d4d4d4);
  border-radius: 16px;
}
#managementScreen .tours-empty h2 {
  margin: 0 0 10px;
}
.tours-empty p {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.6;
}
.tour-card .view-card-media {
  cursor: pointer;
  aspect-ratio: 2 / 1;
  background: var(--panel-gray-e9e9e9, #e9e9e9);
}
.tour-card .view-card-media > img {
  height: 100%;
}
.tour-card-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}
.tour-top {
  justify-content: space-between;
  margin-bottom: 18px;
}
.tour-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.tour-main,
.tour-side {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.tour-panel {
  background: var(--panel-gray-ffffff, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  min-width: 0;
}
.tour-panel h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}
.tour-panel h4 {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 600;
}
.tour-panel p {
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0;
}
.tour-panel > div > label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
.tour-panel input[type='text'],
.tour-panel select {
  width: 100%;
}
.tour-panel .field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.tour-panel .field-actions select {
  flex: 1 1 160px;
  width: auto;
  min-height: 40px;
}
/* Three editing steps, with local accents that do not affect the public offer. */
.tour-scene {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.tour-section {
  --tour-accent: #286b56;
  --tour-ink: #286b56;
  border-color: color-mix(in srgb, var(--tour-ink) 25%, var(--line));
  border-radius: 16px;
  padding: 20px;
}
.tour-passages-section {
  --tour-accent: #3461a0;
  --tour-ink: #3461a0;
}
.tour-info-section {
  --tour-accent: #765196;
  --tour-ink: #765196;
}
html[data-panel-theme='dark'] .tour-room-section {
  --tour-ink: #a8d5c1;
}
html[data-panel-theme='dark'] .tour-passages-section {
  --tour-ink: #b0cef4;
}
html[data-panel-theme='dark'] .tour-info-section {
  --tour-ink: #d6b9eb;
}
.tour-section > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -20px -20px 20px;
  padding: 14px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--tour-ink) 18%, var(--line));
  border-radius: 15px 15px 0 0;
  background: color-mix(in srgb, var(--tour-ink) 7%, transparent);
  color: var(--tour-ink);
  font-size: 16px;
  font-weight: 700;
}
.tour-section-mark {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--tour-accent);
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tour-section > div:has(> label) {
  margin-bottom: 16px;
}
.tour-section > div > label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.tour-section p {
  font-size: 13px;
}
.tour-studio .tour-section .tour-button-primary {
  background: var(--tour-accent);
  border-color: var(--tour-accent);
  color: #fff;
}
.tour-studio .tour-section .tour-button-primary:hover {
  background: color-mix(in srgb, var(--tour-accent) 88%, #000);
}
.tour-studio .tour-section .tour-button-secondary {
  background: color-mix(in srgb, var(--tour-ink) 5%, transparent);
  border-color: color-mix(in srgb, var(--tour-ink) 30%, var(--line));
  color: var(--tour-ink);
}
.tour-studio .tour-section .tour-button-secondary:hover {
  background: color-mix(in srgb, var(--tour-ink) 12%, transparent);
}
.tour-section .tour-room-actions {
  margin-top: 16px;
}
.tour-section .tour-room-footer {
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tour-room-footer .danger {
  margin-left: auto;
}
.tour-start-note {
  color: var(--tour-ink);
  background: color-mix(in srgb, var(--tour-ink) 9%, transparent);
}
.tour-section .tour-passage-create {
  gap: 10px;
  margin: 16px 0;
}
.tour-section .tour-passage-create select {
  min-width: 0;
}
.tour-section .tour-links {
  gap: 10px;
}
.tour-section .tour-links li {
  padding: 10px 12px;
  gap: 12px;
  background: color-mix(in srgb, var(--tour-ink) 3%, transparent);
}
.tour-section .tour-links li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tour-section .tour-link-actions {
  flex-shrink: 0;
}
.tour-section .tour-info {
  padding: 16px;
  gap: 10px;
  background: color-mix(in srgb, var(--tour-ink) 3%, transparent);
}
.tour-studio .tour-side > .tour-panel > h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.tour-studio .tour-room {
  padding: 9px;
  min-height: 56px;
}
.tour-studio .tour-room.active {
  background: var(--panel-gray-f0f0f0, #f0f0f0);
}
@media (max-width: 600px) {
  .tour-section .tour-room-actions > button,
  .tour-section .tour-passage-create > button {
    flex: 1 1 100%;
  }
  .tour-section .tour-links li {
    flex-wrap: wrap;
  }
  .tour-section .tour-link-actions {
    flex: 1 1 100%;
  }
  .tour-section .tour-info {
    padding: 12px;
  }
}
.tour-stage {
  position: relative;
  height: min(62vh, 620px);
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: #1b1b1b;
}
.tour-stage-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: #cfcfcf;
  font-size: 14px;
}
/* The middle of the view: where a new passage goes. */
.tour-aim {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #0006;
  pointer-events: none;
}
.tour-rooms {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.tour-room {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-gray-ffffff, #fff);
}
.tour-room img {
  width: 64px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
}
.tour-room span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tour-room.active {
  border-color: var(--panel-gray-262626, #262626);
  box-shadow: inset 0 0 0 1px var(--panel-gray-262626, #262626);
}
.tour-start {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  background: var(--panel-gray-262626, #262626);
  color: var(--panel-gray-ffffff, #fff);
}
.tour-links {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.tour-links li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.tour-plan {
  position: relative;
  margin: 10px 0;
  cursor: crosshair;
}
.tour-plan img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.tour-pick select {
  width: 100%;
}
.tour-pick[hidden] {
  display: none;
}
/* The library of panoramas already uploaded (owner 12.10). */
dialog.tour-library-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0 0 16px;
  overflow: auto;
  border: 0;
  border-radius: 16px;
}
.tour-library-note {
  margin: 12px 20px 0;
}
.tour-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  padding: 14px 20px;
}
.tour-library-entry {
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
}
.tour-library-item {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tour-library-delete {
  justify-self: end;
  min-width: 40px;
  min-height: 40px;
}
.tour-library-item[aria-pressed='true'] {
  border-color: var(--dark-green, #2f6f52);
  background: color-mix(in srgb, var(--dark-green, #2f6f52) 8%, transparent);
}
.tour-library-item img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 8px;
}
.tour-library-item span,
.tour-library-item small {
  font-size: 12px;
  color: var(--muted);
}
.tour-library-item small.tour-library-unused {
  justify-self: start;
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 14%, transparent);
}
.tour-library-dialog > p.muted:not(.tour-library-note) {
  margin: 0 20px 12px;
}
.tour-library-actions {
  padding: 0 20px;
}
.tour-file {
  margin: -4px 0 10px;
  font-size: 12px;
}
/* The walkthrough as a visitor sees it: a large window, not the whole screen (owner 12.10). */
dialog.tour-preview-dialog {
  width: calc(100vw - 48px);
  max-width: 1600px;
  height: calc(100dvh - 48px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #111;
  border: 0;
}
dialog.tour-preview-dialog:not([open]) {
  display: none;
}
/* No blur behind the walkthrough (zlecenie 198b): made again in every frame of it, it halved the frames on a 240 Hz
   laptop. The page under it is only dimmed. */
dialog.tour-preview-dialog::backdrop {
  backdrop-filter: none;
}
.tour-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 20px;
  background: var(--panel-gray-ffffff, #fff);
}
dialog.tour-preview-dialog .tour-preview-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}
.tour-preview-head .dialog-close {
  position: static;
}
.tour-preview-stage {
  flex: 1;
  min-height: 0;
}
@media (max-width: 1100px) {
  .tour-studio {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .tour-stage {
    height: 56vh;
  }
  dialog.tour-preview-dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 14px;
  }
}
.tour-links li button {
  padding: 6px 12px;
}
/* Spacery 3D, round 2 (owner 12.10): numbered dots, the cone turning with the view, its direction. */
.tour-plan-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #6b7f74;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 1px 5px #0006;
  z-index: 2;
}
.tour-plan-dot.active {
  background: #e0553d;
  transform: scale(1.15);
  z-index: 3;
}
.tour-plan-cone {
  position: absolute;
  width: 0;
  height: 0;
  margin: -46px 0 0 -23px;
  border-left: 23px solid transparent;
  border-right: 23px solid transparent;
  border-top: 46px solid #e0553d66;
  transform-origin: 50% 100%;
  pointer-events: none;
  z-index: 1;
}
.tour-plan-legend {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 12px;
}
.tour-plan-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tour-plan-legend b {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #6b7f74;
  color: #fff;
  font-size: 10px;
  flex: none;
}
.tour-plan-legend li.active b {
  background: #e0553d;
}
.tour-plan-legend li.active span {
  font-weight: 600;
}
.tour-plan-legend small {
  color: var(--muted);
}
.tour-cone-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  margin-top: 10px;
}
.tour-cone-field label {
  grid-column: 1 / -1;
  font-size: 12px;
}
.tour-cone-field input {
  width: 100%;
}
.tour-cone-field output {
  font-size: 12px;
  min-width: 42px;
  text-align: right;
}
.tour-link-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
/* Points of information on a panorama (owner 12.10): a comment or a photo. */
.tour-infos {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tour-info {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.tour-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tour-info-head img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
.tour-info textarea,
.tour-scene textarea {
  width: 100%;
  resize: vertical;
}
/* Sprzedaż (owner 12.10): "Kto kupił?" in the Makieta. */
dialog.sale-dialog {
  max-width: 560px;
}
dialog.sale-dialog h2 {
  font-size: 24px;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}
.sale-buyers {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0;
  display: grid;
  gap: 8px;
}
.sale-buyers legend {
  font-size: 12px;
  padding: 0 6px;
  color: var(--muted);
}
.sale-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
}
.sale-choice input[type='text'] {
  flex: 1 1 220px;
  min-width: 0;
}
.sale-choice input[type='text']:disabled {
  opacity: 0.5;
}
.sale-dialog form > div:not(.sale-actions) {
  margin: 10px 0;
}
.sale-dialog form > div > label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
.sale-dialog form > div > input[type='checkbox'] {
  margin-right: 8px;
}
.sale-dialog form > div:has(> input[type='checkbox']) {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.sale-dialog form > div:has(> input[type='checkbox']) label {
  margin: 0;
  font-size: 14px;
  color: inherit;
}
.sale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
/* Owner 14.10: the Makieta's general rules (every input 100% wide, fieldsets in columns, small labels) laid
   the choices out in columns with the round buttons above their names. One choice per line, the box beside it. */
.sale-dialog .sale-buyers {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 6px 16px 10px;
}
.sale-dialog .sale-choice {
  margin: 0;
  padding: 10px 0;
  font-size: 14px;
  color: inherit;
}
.sale-dialog .sale-choice + .sale-choice,
.sale-dialog .sale-list + .sale-choice,
.sale-dialog .sale-choice + .sale-none {
  border-top: 1px solid var(--line);
}
.sale-dialog .sale-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.sale-dialog .sale-stage {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.sale-dialog .sale-count {
  margin: 8px 0 2px;
  font-size: 13px;
}
.sale-dialog .sale-search {
  margin: 8px 0 4px;
  font-size: 14px;
}
.sale-dialog .sale-list {
  display: grid;
}
/* From five clients on the list keeps about five rows and scrolls; "Nabywca spoza listy" stays below it. */
.sale-dialog .sale-list.is-long {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  max-height: 222px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sale-dialog input[type='radio'],
.sale-dialog input[type='checkbox'] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--green);
}
.sale-dialog .sale-choice input[type='text'] {
  font-size: 14px;
}

/* "Wydziel budynek" (owner 18.10): the floors and views to move, one per line. */
.merge-dialog .split-list {
  max-height: 220px;
  overflow-y: auto;
}
.merge-dialog form > div > select {
  width: 100%;
}
/* "Połącz z inwestycją" (owner 17.10): what moves, one point per line. */
.merge-dialog .merge-list {
  margin: 12px 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

/* Oferta z konta na stronie firmy (owner 13.10, modules/embed.js). */
.embed-body {
  display: grid;
  gap: 18px;
  max-width: 980px;
}
.embed-body .settings-form {
  max-width: none;
}
.embed-body h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.embed-form h3 {
  margin: 20px 0 4px;
  font-size: 16px;
}
.publish-settings .embed-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.embed-check input {
  width: auto;
  margin: 0;
}
.embed-warning {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff4d6;
  color: #5c4500;
}
.embed-ok {
  color: #3f6b37;
  font-weight: 600;
}
.embed-body > .danger {
  justify-self: start;
}

/* Otodom w ustawieniach inwestycji (owner 13.10, modules/otodom.js). */
.otodom-body {
  display: grid;
  gap: 18px;
  max-width: 980px;
}
.otodom-card {
  max-width: none;
}
.otodom-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.otodom-card h3 {
  margin: 22px 0 4px;
  font-size: 16px;
}
/* Owner 14.10: the parts of the Otodom form in their own boxes, the adverts table clearer. */
.otodom-card > h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.otodom-group {
  margin-top: 18px;
  padding: 16px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-gray-fcfcfc, #fbfaf7);
}
.otodom-group > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}
.otodom-group > h3::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--green);
}
.otodom-group-hint {
  margin: 0 0 4px;
  font-size: 13px;
}
.otodom-sub {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.otodom-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 8px;
}
.otodom-form .otodom-choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}
.otodom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 18px;
}
.otodom-table th {
  background: var(--panel-gray-fcfcfc, #f6f4ee);
  font-size: 12px;
}
.otodom-table tr + tr td {
  border-top: 1px solid var(--line);
}
.otodom-table .otodom-investment td:first-child {
  box-shadow: inset 4px 0 0 var(--green);
}
.otodom-note {
  max-width: 980px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--panel-gray-fcfcfc, #f6f3ea);
  border: 1px solid var(--line);
}
.otodom-ok {
  color: #3f6b37;
  font-weight: 600;
}
.otodom-form label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.otodom-form select {
  font: inherit;
  font-size: 14px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.otodom-form .otodom-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.otodom-hint {
  margin: 4px 0 0;
  font-size: 13px;
}
.otodom-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.otodom-chosen {
  font-size: 13px;
  margin: 8px 0 0;
}
.otodom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.otodom-actions .primary {
  margin-top: 0;
}
/* "Odłącz konto Otodom" the size of the button next to it (the shared .danger is a small text link). */
.otodom-actions .danger {
  font-size: 13px;
  padding: 10px 14px;
}
.otodom-list {
  padding: 24px 28px;
  background: var(--panel-gray-ffffff, #ffffff);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
}
.otodom-table {
  width: 100%;
}
.otodom-table td {
  vertical-align: top;
}
.otodom-table .otodom-investment td {
  background: var(--panel-gray-fcfcfc, #fcfcfc);
}
.otodom-title,
.otodom-detail {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
  max-width: 420px;
  white-space: normal;
}
.otodom-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.otodom-ok.otodom-pill,
.otodom-pill.otodom-ok {
  background: #e3efdf;
  color: #2f5a28;
}
.otodom-pill.otodom-wait {
  background: #f6ecd8;
  color: #7a5520;
}
.otodom-pill.otodom-bad {
  background: #f6e1de;
  color: #8d3a30;
}
.otodom-pill.otodom-off {
  background: #ececec;
  color: #555;
}
.otodom-link {
  margin-left: 10px;
  font-size: 13px;
}
html[data-panel-theme='dark'] .otodom-note,
html[data-panel-theme='dark'] .otodom-table .otodom-investment td {
  background: var(--panel-gray-fcfcfc, #202020);
}
html[data-panel-theme='dark'] .otodom-list {
  background: var(--panel-gray-ffffff, #171717);
}
html[data-panel-theme='dark'] .otodom-ok {
  color: #a8d29c;
}
html[data-panel-theme='dark'] .otodom-pill.otodom-ok {
  background: #2e4429;
  color: #cfe8c6;
}
html[data-panel-theme='dark'] .otodom-pill.otodom-wait {
  background: #4a3a1e;
  color: #f1dcb0;
}
html[data-panel-theme='dark'] .otodom-pill.otodom-bad {
  background: #4d2823;
  color: #f2c9c2;
}
html[data-panel-theme='dark'] .otodom-pill.otodom-off {
  background: #3a3a3a;
  color: #ccc;
}
/* Kreator „Połącz z dane.gov.pl” (zlecenie 104 B, gov-connect.js). */
.gov-connect {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-gray-ffffff, #ffffff);
}
.gov-connect-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.gov-connect-head h3 {
  margin: 0;
}
.gov-connect-head p {
  margin: 0;
}
.gov-connect-steps {
  display: flex;
  list-style: none;
  margin: 14px 0;
  padding: 0;
  gap: 8px;
  overflow-x: auto;
}
.gov-connect-steps li {
  flex: 1 1 0;
  min-width: 120px;
  position: relative;
}
.gov-connect-steps li + li::before {
  content: '';
  position: absolute;
  top: 24px;
  right: calc(100% - 4px);
  width: calc(100% - 44px);
  height: 2px;
  background: var(--line);
}
.gov-connect-steps li.is-done + li::before {
  background: #3f8a5a;
}
.gov-connect-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 6px 8px;
}
.gov-connect-dot {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--panel-gray-ffffff, #ffffff);
  font-weight: 700;
}
.gov-connect-steps .is-current .gov-connect-dot {
  border-color: var(--green);
}
.gov-connect-steps .is-done .gov-connect-dot {
  border-color: #3f8a5a;
  background: #3f8a5a;
  color: #ffffff;
}
.gov-connect-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 16px;
}
.gov-connect-main h4,
.gov-connect-aside h4 {
  margin: 0 0 6px;
}
.gov-connect-main > p {
  margin: 0 0 10px;
}
.gov-connect-todo {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--panel-gray-f5f5f5, #f5f5f5);
}
.gov-connect-todo ol {
  margin: 6px 0 0;
  padding-left: 22px;
}
.gov-connect-aside {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-self: start;
}
.gov-connect-aside p {
  margin: 0 0 10px;
}
.gov-connect a.quiet,
.gov-connect a.primary {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.gov-connect a.primary {
  border-color: transparent;
  color: var(--panel-gray-ffffff, #ffffff);
}
.gov-connect-fields {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
}
.gov-connect-fields li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.gov-connect-fields .is-ok strong {
  color: #2f6b4f;
}
.gov-connect-fields .is-missing strong {
  color: #a4471b;
}
.gov-connect-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.gov-connect-field {
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.gov-connect-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.gov-connect-check input {
  width: auto;
  margin: 0;
}
.gov-connect-mail {
  margin-top: 12px;
}
.gov-connect-mail-head {
  margin: 0 0 6px;
  font-size: 13px;
}
.gov-connect-mail-body {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}
.gov-connect-actions,
.gov-connect-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.gov-connect-nav {
  justify-content: space-between;
  margin-top: 16px;
}
.gov-connect-warning {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff4d6;
  color: #5c4500;
}
.gov-connect-links {
  margin: 10px 0;
  padding-left: 18px;
  word-break: break-all;
}
.gov-connect-ready {
  margin: 10px 0 0;
}
@media (max-width: 760px) {
  .gov-connect-card {
    grid-template-columns: 1fr;
  }
  .gov-connect-steps li + li::before {
    display: none;
  }
}
:root[data-panel-theme='dark'] .gov-connect-warning,
html[data-theme='dark'] .gov-connect-warning {
  background: #4a3a1e;
  color: #f1dcb0;
}
:root[data-panel-theme='dark'] .gov-connect-fields .is-ok strong,
html[data-theme='dark'] .gov-connect-fields .is-ok strong {
  color: #a8d29c;
}
:root[data-panel-theme='dark'] .gov-connect-fields .is-missing strong,
html[data-theme='dark'] .gov-connect-fields .is-missing strong {
  color: #f1b38f;
}
/* Downloads of the report by dane.gov.pl (zlecenie 104): green / yellow / red with what to do (gov-panel.js). */
.gov-pulls {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 10px;
  border-left: 4px solid var(--line);
  background: var(--panel-gray-f5f5f5, #f5f5f5);
}
.gov-pulls.is-ok {
  border-left-color: #3f8a5a;
  background: #eaf5ee;
  color: #24533a;
}
.gov-pulls.is-warn {
  border-left-color: #c79a1e;
  background: #fff4d6;
  color: #5c4500;
}
.gov-pulls.is-bad {
  border-left-color: #c0453a;
  background: #fbe6e3;
  color: #7a1f16;
}
.gov-pulls p {
  margin: 4px 0;
}
.gov-pulls ol {
  margin: 4px 0 6px;
  padding-left: 22px;
}
.gov-pulls summary {
  cursor: pointer;
  margin-top: 8px;
  font-weight: 600;
}
.gov-pulls-table {
  overflow-x: auto;
}
.gov-pulls table {
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
  min-width: 100%;
}
.gov-pulls th,
.gov-pulls td {
  text-align: left;
  padding: 4px 10px 4px 0;
  white-space: nowrap;
  background: transparent;
  color: inherit;
  font-weight: 400;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.gov-pulls th {
  font-weight: 650;
}
:root[data-panel-theme='dark'] .gov-pulls.is-ok,
html[data-theme='dark'] .gov-pulls.is-ok {
  background: #1f3a2b;
  color: #bfe3cb;
}
:root[data-panel-theme='dark'] .gov-pulls.is-warn,
html[data-theme='dark'] .gov-pulls.is-warn {
  background: #4a3a1e;
  color: #f1dcb0;
}
:root[data-panel-theme='dark'] .gov-pulls.is-bad,
html[data-theme='dark'] .gov-pulls.is-bad {
  background: #4a2420;
  color: #f3c7c1;
}
html[data-theme='dark'] .embed-ok {
  color: #a8d29c;
}
html[data-theme='dark'] .embed-warning {
  background: #4a3a1e;
  color: #f1dcb0;
}

/* Obrót 360° (owner 15.10, test version): the note over the views that are the stops of the turn. */
.spin-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--line, #c9d3cc);
  border-radius: 12px;
  background: var(--surface-soft, #f4f7f5);
  font-size: 14px;
}
.spin-note span {
  flex: 1 1 320px;
  color: var(--muted, #5c6b62);
}

/* Import in progress (owner 16.10): a banner with the current step; the dialog's buttons wait. */
.import-busy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #eef4f0;
  color: #24453a;
  font-weight: 600;
}
.import-busy i {
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: import-spin 0.8s linear infinite;
}
@keyframes import-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .import-busy i {
    animation: none;
  }
}
html[data-theme='dark'] .import-busy,
html[data-panel-theme='dark'] .import-busy {
  background: #22352d;
  color: #cfe5d8;
}

/* Model 3D (owner 16.10, docs/MODEL-3D.md): the preview of the GLB next to its floors, flats and camera. */
.model-top {
  margin-bottom: 18px;
}
.model-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 20px;
  align-items: start;
}
.model-stage {
  position: sticky;
  top: 12px;
  height: min(72vh, 680px);
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #edf0f2;
}
/* In the shape of the offer's window (owner 17.10: "Proporcje okna"), as large as the old box allows. */
.model-stage.model-stage-framed {
  height: auto;
  min-height: 0;
  aspect-ratio: var(--model-ratio);
  width: min(100%, calc(min(72vh, 680px) * var(--model-ratio)));
  justify-self: center;
}
.model-host {
  position: absolute;
  inset: 0;
}
.model-note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #5f6b72;
  font-size: 14px;
}
.model-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  margin: 0;
  padding: 6px 12px;
  border-radius: 20px;
  background: #ffffffe6;
  color: #46525a;
  font-size: 12px;
  pointer-events: none;
}
.model-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.model-panel {
  background: var(--panel-gray-ffffff, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  min-width: 0;
}
#managementScreen .model-panel h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}
/* the workshop's settings pasted in „Wygląd 3D” (task 036f) */
/* The offer's start picture (task 125) and the surroundings' files. */
.model-poster img {
  display: block;
  width: 100%;
  height: auto;
  margin: 10px 0 6px;
  border-radius: 8px;
  border: 1px solid var(--line, #e2e2e2);
}
.model-env-files p {
  margin: 4px 0;
}
.model-panel > textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  font:
    12px/1.4 ui-monospace,
    monospace;
}
.model-panel p {
  font-size: 12px;
  line-height: 1.6;
  margin: 6px 0 10px;
}
.model-panel > label {
  display: block;
  font-size: 12px;
  margin: 10px 0 5px;
}
.model-panel > select {
  width: 100%;
}
.model-table-wrap {
  overflow-x: auto;
}
.model-levels {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}
.model-levels th:nth-child(2),
.model-levels th:nth-child(3) {
  width: 66px;
}
.model-levels th:nth-child(4) {
  width: 58px;
}
.model-levels th:nth-child(5) {
  width: 52px;
}
.model-levels th:nth-child(6) {
  width: 40px;
}
.model-levels input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.model-levels input[type='number']::-webkit-inner-spin-button,
.model-levels input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.model-levels td:nth-child(4) {
  text-align: center;
}
.model-levels input {
  min-width: 0;
}
.model-levels input[type='checkbox'] {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  vertical-align: middle;
}
.model-levels th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 4px 6px;
}
.model-levels td {
  padding: 3px 4px;
  border-top: 1px solid var(--line);
}
.model-levels tr.selected td {
  background: color-mix(in srgb, var(--accent, #234e3d) 8%, transparent);
}
.model-levels input:not([type='checkbox']) {
  width: 100%;
  min-width: 0;
  padding: 6px 7px;
  font-size: 12px;
}
.model-levels button {
  padding: 5px 9px;
  min-height: 0;
}
.model-actions,
.model-split {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.model-split span {
  font-size: 12px;
  margin-right: 2px;
}
.model-split button {
  min-width: 40px;
  padding: 7px 10px;
}
.model-volumes {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.model-volume {
  display: grid;
  grid-template-columns: 12px 92px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 10px;
}
.model-volume.selected {
  background: color-mix(in srgb, var(--accent, #234e3d) 10%, transparent);
}
.model-volume button {
  padding: 6px 8px;
  justify-content: flex-start;
}
.model-volume select {
  width: 100%;
  min-width: 0;
}
.model-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.model-camera {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.model-camera label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}
.model-camera input {
  width: 100%;
}
/* "Proporcje okna" (owner 17.10): one per line, the main picture's size in the option is legible. */
.model-camera.model-shapes {
  grid-template-columns: 1fr;
}
.model-shapes select {
  width: 100%;
}
@media (max-width: 1100px) {
  .model-studio {
    grid-template-columns: 1fr;
  }
  .model-stage {
    position: relative;
    top: 0;
    height: 58vh;
  }
}
html[data-panel-theme='dark'] .model-stage,
html[data-theme='dark'] .model-stage {
  border-color: #3a4248;
}
/* „Ceny w raporcie od” (owner 20.10): entries before the day stay in the editor, greyed. */
#historyEditDialog .history-before-start td {
  color: var(--panel-gray-8a8a8a, #8a8a8a);
}
#historyEditDialog .history-start-note {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--panel-gray-f6f6f6, #f6f6f6);
}
#historyEditDialog td .quiet.danger {
  margin-left: 6px;
}
/* The entry in force is the unit's price (owner 20.10: „ceny żyją swoim życiem”); a price left different from it
   by an earlier version is said above the table and in „Edytuj lokal”. */
#historyEditDialog tr.history-current td {
  font-weight: 600;
}
.history-mismatch {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff4d6;
  color: #5c4500;
}
#historyEditDialog .history-mismatch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 12px;
}
#historyEditDialog .history-mismatch p {
  flex: 1 1 320px;
  margin: 0;
}
html[data-panel-theme='dark'] .history-mismatch,
html[data-theme='dark'] .history-mismatch {
  background: #4a3a1e;
  color: #f1dcb0;
}
/* Report preview before publication (owner 20.10, gov-preview.js). */
.gov-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 18px;
}
.gov-preview th,
.gov-preview td {
  text-align: left;
  vertical-align: top;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.gov-preview .gov-preview-space td {
  color: var(--panel-gray-5e5e5e, #5e5e5e);
}
.gov-preview-changes {
  padding-left: 18px;
  font-size: 13px;
}
.gov-preview-note {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--panel-gray-f6f6f6, #f6f6f6);
}

/* Reserve the header controls' widths while Satoshi replaces the fallback font. */
@media (min-width: 1000px) and (max-width: 1800px) {
  .topbar #globalMenuToggle {
    min-width: 100px;
  }
  .topbar .file-actions > .module-menu {
    min-width: 112px;
  }
  .topbar .file-actions > .studio-help {
    min-width: 156px;
  }
}
