.sp-root {
  margin: 0;
  min-height: 100vh;
}
.sp-root *,
.sp-root *::before,
.sp-root *::after {
  box-sizing: border-box;
}
.sp-shell-header {
  padding: var(--space-3) var(--space-4);
}
.sp-header__client {
  margin-left: auto;
}
.sp-theme-toggle[hidden] {
  display: none;
}
.sp-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.sp-page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
}
.sp-page-title {
  margin: var(--space-2) 0 0;
  font: 800 48px/48px var(--font-display);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.sp-eyebrow {
  text-transform: uppercase;
}
.sp-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.sp-section-title {
  margin: 0;
  font: 700 32px/36px var(--font-display);
  letter-spacing: -0.01em;
}
.sp-section-meta,
.sp-rule,
.sp-contact {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}
.sp-section-meta {
  max-width: 70ch;
}
.sp-rule {
  max-width: 65ch;
}
.sp-text-link {
  color: var(--ink);
  text-decoration: none;
}
.sp-text-link:hover {
  text-decoration: underline;
}
.sp-service-row {
  grid-template-columns: minmax(150px, 1fr) minmax(200px, 2fr) minmax(
      120px,
      auto
    );
}
.sp-service-row__name {
  overflow-wrap: anywhere;
}
.sp-status-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.sp-status-detail small {
  max-width: 18ch;
  font-size: 12px;
  line-height: 16px;
}
.sp-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-3);
}
.sp-status-legend .sp-status {
  font-size: 12px;
}
.sp-uptime .sp-day--ok {
  background: var(--status-ok);
}
.sp-uptime .sp-day--warn {
  background: var(--status-warn);
}
.sp-uptime .sp-day--down {
  background: var(--status-down);
}
.sp-uptime .sp-day--maint {
  background: var(--status-maintenance);
}
.sp-uptime .sp-day--none {
  background: var(--status-none);
}
.sp-incident--neutral {
  background: var(--surface-100);
}
.sp-incident p,
.sp-hours p {
  margin: 0;
}
.sp-picker {
  display: flex;
  gap: var(--space-2);
  align-items: end;
  min-width: 0;
}
.sp-picker .sp-field {
  min-width: 0;
}
.sp-input {
  max-width: 100%;
}
.sp-chart-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
.sp-chart {
  margin: 0;
  min-width: 0;
}
.sp-chart-grid {
  stroke: var(--chart-grid);
  stroke-width: 1;
}
.sp-chart-line {
  fill: none;
  stroke: var(--chart-line);
  stroke-width: 2;
  stroke-linejoin: round;
}
.sp-chart-compare {
  fill: none;
  stroke: var(--chart-compare);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.sp-chart-threshold {
  stroke: var(--chart-threshold);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.sp-chart__legend .sp-legend-compare::before {
  border-top: 1.5px dashed var(--chart-compare);
}
.sp-vitals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.sp-vital__top {
  flex-wrap: wrap;
}
.sp-note {
  margin: 0;
  padding: var(--space-3);
  background: var(--surface-100);
}
.sp-two-column {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.sp-two-column > * {
  min-width: 0;
}
.sp-panel {
  padding: var(--space-4);
  background: var(--surface-100);
}
.sp-panel-title {
  margin: 0 0 var(--space-3);
  font: 700 22px/28px var(--font-display);
}
.sp-service-title {
  margin: 0;
  font: 700 22px/28px var(--font-display);
}
.sp-site-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sp-site-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
}
.sp-hours-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: var(--space-6);
}
.sp-hours--current {
  padding: var(--space-4);
  background: var(--surface-100);
}
.sp-previous-months {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.sp-hours--compact .sp-hours__value {
  font: 600 16px/24px var(--font-text);
}
.sp-hours--compact .sp-hours__track {
  height: 8px;
}
.sp-hours--compact .sp-hours__legend {
  font-size: 12px;
}
.sp-hours__legend .sp-legend-carry::before {
  background:
    repeating-linear-gradient(
      135deg,
      var(--line-strong) 0 1px,
      transparent 1px 5px
    ),
    var(--status-none);
}
.sp-hours__legend .sp-legend-left::before {
  background: var(--status-none);
}
.sp-hours-over {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
}
.sp-entry-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
}
.sp-table .sp-table-number {
  text-align: right;
}
.sp-health-site {
  margin-top: var(--space-4);
}
.sp-health-site h3 {
  font: 600 14px/20px var(--font-text);
  margin: 0 0 var(--space-2);
  overflow-wrap: anywhere;
}
.sp-health-details {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  line-height: 20px;
}
.sp-health-details > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.sp-health-details dt {
  color: var(--ink-muted);
}
.sp-health-details dd {
  margin: 0;
  text-align: right;
}
.sp-empty {
  margin: 0;
  padding: var(--space-3) 0;
}
.sp-skip-link {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  transform: translateY(-200%);
  padding: var(--space-3);
  color: var(--on-ink);
  background: var(--ink);
  z-index: 1;
}
.sp-skip-link:focus {
  transform: none;
}
html[data-theme='light'] {
  color-scheme: light;
}
html[data-theme='dark'] {
  color-scheme: dark;
}
@media screen and (max-width: 959px) {
  .sp-main {
    padding: var(--space-4) var(--space-3) var(--space-5);
    gap: var(--space-5);
  }
  .sp-page-title {
    font-size: 32px;
    line-height: 36px;
  }
  .sp-section-title {
    font-size: 22px;
    line-height: 28px;
  }
  .sp-two-column,
  .sp-hours-layout {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .sp-chart-grid-layout {
    grid-template-columns: 1fr;
  }
  .sp-vitals-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .sp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }
  .sp-stat__value {
    font-size: 28px;
    line-height: 32px;
  }
  .sp-stat {
    padding: var(--space-3);
  }
  .sp-shell-header {
    padding: var(--space-3);
    gap: var(--space-2);
  }
  .sp-header .sp-navigation {
    order: 4;
    flex-basis: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    min-width: 0;
  }
  .sp-navigation a {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .sp-theme-toggle {
    padding: 0;
    min-width: 44px;
  }
  .sp-theme-text {
    display: none;
  }
  .sp-header__client {
    font-size: 12px;
    max-width: 45%;
  }
  .sp-service-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2);
  }
  .sp-service-row .sp-uptime-wrap {
    grid-column: 1 / -1;
    order: 3;
  }
  .sp-uptime {
    height: 24px;
  }
  .sp-incident {
    padding: var(--space-3);
  }
  .sp-incident li {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sp-incident h3 {
    font-size: 20px;
    line-height: 26px;
  }
  .sp-status-detail .sp-status {
    font-size: 12px;
  }
  .sp-responsive-table,
  .sp-responsive-table tbody,
  .sp-responsive-table tr,
  .sp-responsive-table td,
  .sp-responsive-table tfoot {
    display: block;
    width: 100%;
  }
  .sp-responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .sp-responsive-table tr {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
  }
  .sp-responsive-table td {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    border: 0;
    padding: var(--space-1) 0;
    overflow-wrap: anywhere;
  }
  .sp-responsive-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    text-align: left;
  }
  .sp-log li {
    grid-template-columns: 1fr auto;
  }
  .sp-log time {
    grid-column: 1 / -1;
  }
  .sp-service {
    gap: var(--space-2);
  }
  .sp-service-title {
    font-size: 20px;
  }
  .sp-picker {
    max-width: 100%;
  }
}

.sp-incident-title {
  margin: 0;
  font: 700 22px/28px var(--font-display);
}
.sp-incident--ok .sp-status > span {
  color: var(--ink);
}

.sp-hours-layout {
  align-items: start;
}
.sp-table th {
  text-transform: uppercase;
}
@media screen and (max-width: 640px) {
  .sp-chart text {
    font-size: 20px;
  }
}
.sp-hours-caption {
  font-size: 14px;
  line-height: 20px;
}
@media screen and (max-width: 959px) {
  .sp-table--traffic tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2) var(--space-3);
    text-align: left;
  }
  .sp-table--traffic td {
    display: block;
    text-align: left;
  }
  .sp-table--traffic td::before {
    display: block;
    text-transform: uppercase;
  }
  .sp-table--traffic td:first-child {
    grid-column: 1 / -1;
    font-weight: 600;
  }
  .sp-table--traffic td:first-child::before,
  .sp-table--entries td::before {
    display: none;
  }
  .sp-table--entries tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2);
  }
  .sp-table--entries td:nth-child(2),
  .sp-table--entries td:nth-child(3) {
    grid-column: 1 / -1;
  }
  .sp-table--entries td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    justify-content: end;
  }
  .sp-table--entries td:empty {
    display: none;
  }
}
.sp-column-content {
  margin-top: var(--space-5);
}
.sp-panel .sp-contact {
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
}
@media screen and (max-width: 959px) {
  .sp-service {
    grid-template-columns: minmax(0, 1fr);
  }
  .sp-service__price {
    text-align: left;
  }
  .sp-service__price small {
    display: inline;
    margin-left: var(--space-1);
  }
  .sp-table--traffic .sp-table-number {
    text-align: left;
  }
}
.sp-admin-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}
.sp-admin-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.sp-admin-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.sp-admin-nav a:hover {
  background: var(--surface-100);
}
.sp-admin-nav a[aria-current] {
  color: var(--ink);
  box-shadow: inset 2px 0 var(--ink);
  background: var(--surface-100);
}
.sp-admin-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.sp-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.sp-admin-form textarea {
  padding: var(--space-3);
  resize: vertical;
}
.sp-admin-wide {
  grid-column: 1 / -1;
}
.sp-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.sp-admin-checkbox {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: var(--space-2);
  font-size: 14px;
}
.sp-admin-checkbox input {
  width: 24px;
  height: 24px;
  flex: none;
  accent-color: var(--ink);
}
.sp-admin-hint {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
}
.sp-admin-record,
.sp-admin-wp,
.sp-admin-review {
  border-bottom: 1px solid var(--line);
  padding: var(--space-4) 0;
  overflow-wrap: anywhere;
}
.sp-admin-record dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
}
.sp-admin-record dt {
  font-size: 12px;
  line-height: 18px;
  color: var(--ink-muted);
}
.sp-admin-record dd {
  margin: 0;
}
.sp-admin-message {
  padding: var(--space-3);
  background: var(--surface-100);
  border-left: 2px solid var(--ink);
}
.sp-admin-wp dl {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
}
.sp-admin-wp dt {
  font-size: 12px;
  line-height: 18px;
  color: var(--ink-muted);
}
.sp-admin-wp dd {
  margin: 0;
}
.sp-admin-key {
  display: block;
  margin-top: var(--space-2);
  font-size: 14px;
  user-select: all;
  overflow-wrap: anywhere;
}
.sp-admin-wp h2,
.sp-admin-review h3 {
  font: 700 22px/28px var(--font-display);
  margin: 0;
}
.sp-admin-review .sp-table th,
.sp-admin-review .sp-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 120px;
}
.sp-admin-review .sp-table {
  width: 100%;
  table-layout: fixed;
}
.sp-admin-diff {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 18px;
  padding: var(--space-3);
  background: var(--surface-100);
}
@media screen and (max-width: 959px) {
  .sp-admin-layout,
  .sp-admin-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .sp-admin-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .sp-admin-nav a {
    white-space: nowrap;
    flex: none;
  }
  .sp-admin-nav a[aria-current] {
    box-shadow: inset 0 -2px var(--ink);
  }
  .sp-admin-record dl {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media screen and (max-width: 959px) {
  .sp-admin-review .sp-table th,
  .sp-admin-review .sp-table td {
    padding: var(--space-2);
  }
  .sp-admin-review .sp-table tbody th {
    text-transform: none;
  }
}

/* Monthly report: print view and PDF (phase 8, pending final print design). */
.sp-report-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.sp-report-header .sp-page-title {
  margin: 0;
}
.sp-report-footer {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
}
@page {
  size: A4;
  margin: 16mm 14mm;
}
@media print {
  .sp-report .sp-main {
    padding: 0;
    max-width: none;
  }
  .sp-report .sp-section,
  .sp-report .sp-table tr,
  .sp-report .sp-log li {
    break-inside: avoid;
  }
  .sp-skip-link,
  .sp-shell-header,
  .sp-theme-toggle {
    display: none;
  }
}

/* Login (own e-mail codes) */
.sp-login {
  display: flex;
  justify-content: center;
  padding: var(--space-5) 0;
}
.sp-login .sp-gate {
  width: 100%;
  max-width: 440px;
}
.sp-login__intro,
.sp-login__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.sp-login__intro h1 {
  margin: 0;
}
.sp-login__code {
  font-size: 24px;
  letter-spacing: 0.2em;
  text-align: center;
}
.sp-login__again {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
}
.sp-gate .sp-login__help {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.sp-login__help .sp-icon {
  margin-top: 2px;
}
.sp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sp-logout {
  margin: 0;
}

/* Account and team */
.sp-account-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}
.sp-account-actions,
.sp-account-role {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.sp-account-role .sp-input {
  min-width: 160px;
}
.sp-account-invite {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.sp-account-invite .sp-panel-title {
  margin: 0;
}

/* Theme: without a saved choice the page follows the system setting, even
   before theme.js runs or when scripts are off. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --surface-000: #000000;
    --surface-100: #101010;
    --surface-200: #1c1c1c;
    --ink: #ffffff;
    --ink-muted: #a3a3a3;
    --ink-faint: #6e6e6e;
    --line: #2e2e2e;
    --line-strong: #8f8f8f;
    --focus: #ffffff;
    --on-ink: #000000;
    --status-ok: #5cb784;
    --status-warn: #e0a23e;
    --status-down: #f2786d;
    --status-ok-soft: #0f2418;
    --status-warn-soft: #291d0b;
    --status-down-soft: #2d1412;
  }
}

/* Sheets and popovers shared by pickers, the calendar, the theme menu and
   the phone "Więcej" menu. Popover under the control on desktop, a bottom
   sheet within thumb reach on phones. */
.sp-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ink);
  opacity: 0;
}
.sp-sheet {
  z-index: 41;
  background: var(--surface-000);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.sp-sheet[hidden],
.sp-scrim[hidden] {
  display: none;
}
.sp-popover {
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 420px;
  max-height: 380px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}
.sp-popover--end {
  left: auto;
  right: 0;
  min-width: 280px;
}
.sp-sheet__grip,
.sp-sheet__head {
  display: none;
}
.sp-sheet__title {
  font: 700 20px/28px var(--font-display);
}
.sp-sheet__foot {
  padding: var(--space-2);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
.sp-icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  cursor: pointer;
}
.sp-icon-btn:hover {
  background: var(--surface-100);
  color: var(--ink);
}
html.sp-sheet-open {
  overflow: hidden;
}

/* Custom select */
.sp-select {
  position: relative;
  min-width: 0;
}
.sp-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  visibility: hidden;
  pointer-events: none;
}
.sp-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.sp-select__trigger:hover {
  background: var(--surface-100);
}
.sp-select__trigger[aria-expanded='true'] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.sp-select__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.sp-select__value.is-empty {
  color: var(--ink-muted);
}
.sp-select__search {
  position: relative;
  padding: var(--space-2);
  border-bottom: 1px solid var(--line);
}
.sp-select__search .sp-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}
.sp-select__search .sp-input {
  width: 100%;
  padding-left: 40px;
}
.sp-select__scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-1);
  min-height: 0;
}
.sp-select__group {
  padding: var(--space-2) var(--space-2) var(--space-1);
}
.sp-select__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-half);
}
.sp-select__list--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-1);
}
.sp-select__opt {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--ink);
  font: 400 16px/24px var(--font-text);
  cursor: pointer;
}
.sp-select__opt:hover,
.sp-select__opt:focus-visible {
  background: var(--surface-100);
}
.sp-select__opt[aria-selected='true'] {
  font-weight: 600;
  background: var(--surface-100);
}
.sp-select__opt:disabled {
  color: var(--ink-faint);
  cursor: not-allowed;
  background: transparent;
}
.sp-select__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sp-select__text small {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--ink-muted);
}
.sp-select__check {
  visibility: hidden;
  stroke-width: 2;
}
.sp-select__opt[aria-selected='true'] .sp-select__check {
  visibility: visible;
}
.sp-select__list--grid .sp-select__opt {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: var(--space-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.sp-select__list--grid .sp-select__opt[aria-selected='true'] {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: none;
}
.sp-select__list--grid .sp-select__check {
  display: none;
}
.sp-select__empty {
  margin: 0;
  padding: var(--space-3);
  font-size: 14px;
  color: var(--ink-muted);
}

/* Calendar */
.sp-cal {
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 320px;
}
.sp-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.sp-cal__month {
  font: 700 18px/24px var(--font-display);
}
.sp-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-half);
}
.sp-cal__weekday {
  text-align: center;
  font: 600 12px/16px var(--font-text);
  color: var(--ink-muted);
  padding: var(--space-1) 0;
}
.sp-cal__day {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: 400 16px/24px var(--font-text);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.sp-cal__day:hover {
  background: var(--surface-100);
}
.sp-cal__day.is-outside {
  color: var(--ink-muted);
  font-weight: 400;
}
.sp-cal__day:not(.is-outside) {
  font-weight: 600;
}
.sp-cal__day.is-today {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.sp-cal__day[aria-pressed='true'] {
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
}
.sp-cal__quick {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.sp-cal__quick .sp-btn {
  min-height: 40px;
}

/* Theme menu and three-way choice */
.sp-theme {
  position: relative;
}
.sp-theme-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.sp-theme-choice button {
  min-height: 44px;
  padding: 0 var(--space-2);
  border: 0;
  background: var(--surface-000);
  color: var(--ink-muted);
  font: 600 14px/20px var(--font-text);
  cursor: pointer;
}
.sp-theme-choice button[aria-checked='true'] {
  background: var(--ink);
  color: var(--on-ink);
}

/* Phone navigation: tab bar and "Więcej" sheet */
.sp-tabbar,
.sp-more {
  display: none;
}
.sp-menu {
  list-style: none;
  margin: 0;
  padding: var(--space-1);
}
.sp-menu a,
.sp-menu button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0 var(--space-3);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 600 16px/24px var(--font-text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.sp-menu [aria-current='page'] {
  box-shadow: inset 2px 0 0 var(--ink);
  background: var(--surface-100);
}
.sp-menu__theme {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.sp-actionbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

/* Theme choices reuse the option rows and show the check when chosen. */
.sp-select__opt[aria-checked='true'] {
  font-weight: 600;
  background: var(--surface-100);
}
.sp-select__opt[aria-checked='true'] .sp-select__check {
  visibility: visible;
}

/* Phone navigation needs scripts for the "Więcej" sheet; without them the
   header keeps the full navigation. */
@media screen and (max-width: 959px) {
  html.sp-js .sp-desktop-only {
    display: none !important;
  }
  html.sp-js .sp-main {
    padding-bottom: calc(56px + var(--space-5) + env(safe-area-inset-bottom));
  }
  html:not(.sp-js) .sp-tabbar {
    display: none !important;
  }
  .sp-tabbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: var(--surface-000);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sp-tabbar a,
  .sp-tabbar button {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--ink-muted);
    font: 600 14px/20px var(--font-text);
    text-decoration: none;
    cursor: pointer;
  }
  .sp-tabbar [aria-current='page'],
  .sp-tabbar [aria-expanded='true'] {
    color: var(--ink);
    box-shadow: inset 0 2px 0 var(--ink);
  }
  .sp-more:not([hidden]) {
    display: flex;
  }
  .sp-scrim {
    opacity: 0.45;
  }
  .sp-sheet,
  .sp-popover {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: 85vh;
    border: 0;
    border-top: 1px solid var(--line-strong);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sp-sheet__grip {
    display: block;
    width: 40px;
    height: 4px;
    margin: var(--space-2) auto 0;
    background: var(--line-strong);
    border-radius: 2px;
  }
  .sp-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3);
    border-bottom: 1px solid var(--line);
  }
  .sp-select__opt {
    min-height: 56px;
  }
  .sp-sheet__foot .sp-btn {
    flex: 1;
  }
  .sp-cal {
    min-width: 0;
  }
  .sp-cal__day {
    min-height: 48px;
  }
  /* Edit screens pin their main buttons to the bottom edge. */
  .sp-actionbar--pinned {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: var(--space-2) var(--space-3)
      calc(var(--space-2) + env(safe-area-inset-bottom));
    background: var(--surface-000);
    border-top: 1px solid var(--line);
  }
  .sp-actionbar--pinned .sp-btn {
    min-height: 48px;
  }
  .sp-root.sp-has-actionbar .sp-tabbar {
    display: none;
  }
}
.sp-select__trigger[aria-invalid='true'] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
/* Component display rules must not override the hidden attribute. */
.sp-root [hidden] {
  display: none !important;
}

/* Content module */
.sp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  border-bottom: 1px solid var(--line);
}
.sp-tabs a {
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink-muted);
  font: 600 14px/20px var(--font-text);
  text-decoration: none;
}
.sp-tabs a:hover {
  background: var(--surface-100);
}
.sp-tabs a[aria-current='page'] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.sp-tabs small {
  font-weight: 400;
  color: var(--ink-muted);
}
.sp-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.sp-section-head .sp-panel-title {
  margin: 0;
}
.sp-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.sp-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
}
.sp-entry-row__main {
  display: flex;
  flex-direction: column;
  min-height: 44px;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.sp-entry-row__main:hover .sp-entry-row__title {
  text-decoration: underline;
}
.sp-entry-row__title {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.sp-entry-row__when {
  font-size: 14px;
}
.sp-entry-row__move {
  display: flex;
}
.sp-entry-form {
  align-items: start;
}
.sp-content-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.sp-field__error {
  color: var(--ink);
  font-weight: 600;
}
.sp-input[aria-invalid='true'] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.sp-unit-input {
  position: relative;
  display: flex;
}
.sp-unit-input .sp-input {
  width: 100%;
  padding-right: 56px;
}
.sp-unit-input span {
  position: absolute;
  right: var(--space-3);
  top: 10px;
  color: var(--ink-muted);
  pointer-events: none;
}
.sp-richtext {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-000);
}
.sp-richtext__source {
  width: 100%;
  min-height: 160px;
  padding: var(--space-3);
  border: 0;
  resize: vertical;
}
.sp-richtext__bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-half);
  padding: var(--space-1);
  border-bottom: 1px solid var(--line);
  background: var(--surface-100);
}
.sp-richtext__bar button {
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  font: 700 16px/20px var(--font-text);
  cursor: pointer;
}
.sp-richtext__bar button:hover {
  background: var(--surface-200);
}
.sp-richtext__area {
  min-height: 160px;
  padding: var(--space-3);
  font-size: 16px;
  line-height: 24px;
  overflow-wrap: anywhere;
}
.sp-richtext__area:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.sp-richtext__area p,
.sp-richtext__area ul,
.sp-richtext__area ol {
  margin: 0 0 var(--space-2);
}
.sp-richtext__area h3 {
  margin: 0 0 var(--space-2);
  font: 700 20px/28px var(--font-display);
}
.sp-image-field {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-start;
}
.sp-image-field__preview,
.sp-image-field__empty {
  width: 160px;
  height: 120px;
  object-fit: cover;
  background: var(--surface-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 14px;
  flex: none;
}
.sp-image-field__controls {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.sp-file {
  position: relative;
  align-self: flex-start;
  overflow: hidden;
}
.sp-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.sp-file:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.sp-locale-switch {
  display: inline-grid;
  grid-auto-flow: column;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.sp-locale-switch button {
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 0;
  background: var(--surface-000);
  color: var(--ink-muted);
  font: 600 14px/20px var(--font-text);
  cursor: pointer;
}
.sp-locale-switch button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--on-ink);
}
.sp-publish-panel,
.sp-publish-panel__actions,
.sp-schedule__body,
.sp-delete {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.sp-schedule summary {
  list-style: none;
}
.sp-schedule summary::-webkit-details-marker {
  display: none;
}
.sp-schedule__body {
  padding-top: var(--space-2);
}
.sp-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-3);
  font-size: 14px;
  line-height: 20px;
}
.sp-dl dt {
  color: var(--ink-muted);
}
.sp-dl dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.sp-back {
  padding-left: 0;
}
.sp-phone-only {
  display: none;
}
.sp-code-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}
.sp-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: end;
}
.sp-inline-form .sp-field {
  flex: 1 1 240px;
  min-width: 0;
}
.sp-field-row {
  margin: 0;
  padding: var(--space-3) 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: end;
}
.sp-field-row__flags {
  grid-column: 1 / -2;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
}
.sp-field-row__actions {
  display: flex;
  justify-content: flex-end;
}
.sp-permissions {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
}
.sp-permissions legend {
  font-weight: 600;
  padding: 0;
  margin-bottom: var(--space-1);
}
@media screen and (max-width: 959px) {
  html.sp-js .sp-phone-only {
    display: grid;
  }
  .sp-entry-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .sp-entry-row__when {
    grid-column: 1;
  }
  .sp-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .sp-tabs a {
    flex: none;
    white-space: nowrap;
  }
  .sp-field-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .sp-field-row__flags {
    grid-column: auto;
  }
}
.sp-code-block {
  display: block;
  margin: var(--space-2) 0 var(--space-4);
  padding: var(--space-3);
  background: var(--surface-100);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
  user-select: all;
}
.sp-api-hook {
  max-width: 480px;
}
.sp-issued {
  margin-bottom: var(--space-4);
}
.sp-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.sp-hours-place + .sp-hours-place {
  margin-top: var(--space-4);
}
.sp-hours-place .sp-dl {
  max-width: 420px;
}
.sp-hours-place__when {
  margin: var(--space-2) 0 0;
  font-size: 12px;
}
/* Printable price list: one A4 column, dotted leaders to the price. */
.sp-pricelist {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.sp-pricelist__tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.sp-pricelist__title {
  font: 800 34px/40px var(--font-display);
  margin: 0 0 var(--space-4);
}
.sp-pricelist__category {
  font: 700 18px/24px var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: var(--space-4) 0 var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line-strong);
}
.sp-pricelist__rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sp-pricelist__row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  break-inside: avoid;
}
.sp-pricelist__name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.sp-pricelist__fill {
  flex: 1 1 24px;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-4px);
}
.sp-pricelist__price {
  font-weight: 600;
  white-space: nowrap;
}
.sp-pricelist__time {
  white-space: nowrap;
}
.sp-pricelist__foot {
  margin-top: var(--space-5);
  font-size: 12px;
}
@page {
  size: A4;
  margin: 16mm;
}
@media print {
  .sp-print-hide,
  .sp-tabbar,
  .sp-skip-link,
  .sp-shell-header {
    display: none !important;
  }
  .sp-pricelist-page .sp-main {
    padding: 0;
    max-width: none;
  }
  .sp-pricelist-page {
    background: #fff;
    color: #000;
  }
}
.sp-request-meta {
  max-width: 480px;
  margin-bottom: var(--space-4);
}
.sp-request-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: var(--space-3);
  background: var(--surface-100);
  font-size: 14px;
  line-height: 22px;
  max-height: 420px;
  overflow-y: auto;
}
.sp-proposal__changes {
  display: grid;
  gap: var(--space-3);
  grid-column: 1 / -1;
}
.sp-proposal__current {
  margin: var(--space-1) 0 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.sp-request-finish {
  margin-top: var(--space-4);
}
.sp-manual-steps {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-4);
}
.sp-manual-prompt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 18px;
}
.sp-manual-again {
  margin-top: var(--space-4);
}
.sp-manual-again > summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
