:root {
  --bg: #edf1f8;
  --panel: rgba(255, 255, 255, 0.92);
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --gold-rgb: 193, 160, 103;
  --line: rgba(131, 107, 69, 0.28);
  --gold: #c1a067;
  --gold-strong: #70522d;
  --text: #161d29;
  --muted: #5d6779;
  --success: #2f8f4f;
  --success-strong: #226a3a;
  --danger: #d86252;
  --danger-strong: #b84335;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 16px 38px rgba(79, 55, 22, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(139, 101, 48, 0.55) rgba(200, 170, 120, 0.12);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1200px 640px at 0% -12%, rgba(34, 58, 99, 0.2), transparent 56%),
    radial-gradient(980px 560px at 100% 0%, rgba(15, 28, 52, 0.16), transparent 62%),
    radial-gradient(860px 520px at 50% 116%, rgba(151, 117, 67, 0.2), transparent 66%),
    linear-gradient(150deg, #eef2f9 0%, #e7edf7 50%, #e3eaf4 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 90% 10%, rgba(46, 64, 105, 0.16), transparent 36%),
    radial-gradient(circle at 15% 15%, rgba(238, 224, 195, 0.3), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

body::after {
  background-image:
    linear-gradient(rgba(59, 77, 114, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 77, 114, 0.06) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.4), transparent 62%);
  background-size: 54px 54px, 54px 54px, auto;
  mask-image: radial-gradient(circle at center, black 36%, transparent 92%);
  opacity: 0.9;
}

#admin-app,
.admin-shell {
  position: relative;
  z-index: 1;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 3px solid rgba(237, 241, 248, 0.96);
  border-radius: 999px;
  background: rgba(139, 101, 48, 0.56);
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: rgba(200, 170, 120, 0.12);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

#admin-app {
  min-height: 100vh;
}

.admin-shell {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1rem 0 7rem;
}

.admin-shell::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 7rem;
  width: min(1180px, 88vw);
  height: min(720px, 66vh);
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 18% 18%, rgba(200, 170, 120, 0.18), transparent 23%),
    radial-gradient(circle at 82% 16%, rgba(121, 40, 45, 0.14), transparent 20%),
    radial-gradient(circle at 50% 76%, rgba(168, 137, 90, 0.12), transparent 22%);
  filter: blur(24px);
  opacity: 0.78;
  z-index: -1;
  pointer-events: none;
}

.admin-topbar,
.panel,
.login-card,
.repeater-item,
.list-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.42));
  box-shadow:
    0 20px 34px rgba(79, 55, 22, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px) saturate(122%);
  -webkit-backdrop-filter: blur(12px) saturate(122%);
}

.admin-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.1rem;
}

.admin-topbar-simple {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.45rem 0.8rem;
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.66);
  box-shadow: 0 10px 22px rgba(79, 55, 22, 0.08);
}

.admin-topbar-side {
  display: flex;
  align-items: center;
}

.admin-topbar-side-end {
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-global-save-actions {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid rgba(131, 107, 69, 0.2);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.86);
  box-shadow:
    0 18px 34px rgba(42, 32, 20, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(132%);
  -webkit-backdrop-filter: blur(14px) saturate(132%);
  transform: translate(-50%, 1rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 30;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

.admin-global-save-actions.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.admin-global-save-actions .button {
  min-width: 140px;
  border-width: 0;
  box-shadow: none;
}

.admin-global-save-actions .button:hover {
  box-shadow: 0 12px 20px rgba(42, 32, 20, 0.14);
}

#cancel-content-button {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-strong) 100%);
  color: #fffaf8;
}

#save-content-button {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-strong) 100%);
  color: #f7fff8;
}

.admin-topbar-spacer {
  width: 44px;
  height: 44px;
}

.admin-topbar-center {
  text-align: center;
}

.admin-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  text-decoration: none;
  line-height: 1;
}

.admin-brand-link::before,
.admin-brand-link::after {
  content: "";
  width: clamp(24px, 5vw, 70px);
  height: 1px;
  background: var(--gold);
}

.admin-brand-text {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: #a8895a;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.admin-brand-link:hover,
.admin-brand-link:focus-visible {
  opacity: 0.92;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-row img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  padding: 0.45rem;
  background: rgba(240, 235, 225, 0.98);
  border: 1px solid rgba(200, 170, 120, 0.3);
}

.brand-row h1,
.brand-row p {
  margin: 0;
}

.brand-row h1,
.panel h2,
.login-card h1,
.repeater-item h3 {
  font-family: "Cormorant Garamond", serif;
}

.brand-row h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 0.95;
}

.brand-row p:last-child {
  color: var(--muted);
  margin-top: 0.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid rgba(200, 170, 120, 0.5);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: linear-gradient(135deg, rgba(236, 230, 218, 0.9), rgba(230, 223, 208, 0.86));
  color: #2a241c;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(95, 70, 35, 0.08);
}

.button:focus-visible {
  outline: 2px solid rgba(139, 101, 48, 0.36);
  outline-offset: 3px;
}

.button.secondary {
  background: rgba(255, 252, 247, 0.92);
  color: var(--text);
}

.button.danger {
  border-color: rgba(229, 110, 94, 0.45);
  background: rgba(229, 110, 94, 0.08);
}

.button.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.3rem;
}

.icon-inline {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.icon-inline svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-entry-icon .icon-inline {
  width: 1.8rem;
  height: 1.8rem;
}

.button.icon-button .icon-inline,
.schedule-refresh-button .icon-inline {
  width: 1.2rem;
  height: 1.2rem;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-card {
  width: min(460px, 100%);
  padding: 2rem;
}

.login-card p {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
  margin-top: 0.75rem;
  align-items: start;
}

.panel {
  min-width: 0;
  padding: clamp(0.95rem, 1.6vw, 1.25rem);
  overflow: hidden;
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.col-12 {
  grid-column: span 12;
}

.col-8 {
  grid-column: span 8;
}

.col-6 {
  grid-column: span 6;
}

.col-4 {
  grid-column: span 4;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field-grid.schedule-catering-recipient-line {
  align-items: end;
}

.field.field-grow {
  min-width: 0;
}

.schedule-catering-add-recipient-wrap .button {
  width: 100%;
  white-space: nowrap;
}

.schedule-catering-weekdays-fieldset {
  margin: 0.5rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(200, 170, 120, 0.35);
}

.schedule-catering-weekdays-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.schedule-catering-weekday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.45rem 0.75rem;
  margin-top: 0.35rem;
}

.schedule-catering-weekday-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.field.field-checkbox > span {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.35;
}

.field-row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.catering-new-recipient-fieldset {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(200, 170, 120, 0.45);
  background: rgba(255, 255, 255, 0.55);
}

.catering-new-recipient-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 600;
}

.catering-recipients-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 0.5rem;
}

.catering-recipients-head h2 {
  margin: 0.2rem 0 0.35rem;
}

.catering-recipients-panel .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.field,
.field-full {
  display: grid;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select,
.field-full input:not([type="checkbox"]):not([type="radio"]),
.field-full select,
.field-full textarea {
  width: 100%;
  border: 1px solid rgba(200, 170, 120, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  padding: 0.85rem 0.95rem;
}

.field textarea,
.field-full textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-richtext {
  display: grid;
  gap: 0.65rem;
}

.admin-richtext-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid rgba(200, 170, 120, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.admin-richtext-toolbar .button {
  padding: 0.5rem 0.7rem;
  min-height: 38px;
}

.admin-richtext-size {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.1rem 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-richtext-size select {
  border: 1px solid rgba(200, 170, 120, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.4rem 0.6rem;
}

.admin-richtext-editor {
  min-height: 320px;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(200, 170, 120, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  overflow-y: auto;
  line-height: 1.6;
}

.admin-richtext-editor:focus {
  outline: 2px solid rgba(139, 101, 48, 0.24);
  outline-offset: 1px;
}

.helper {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

.panel-note {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(200, 170, 120, 0.22);
  border-radius: 16px;
  background: rgba(248, 244, 236, 0.86);
  color: #5a4230;
}

.panel-note strong {
  color: #38271c;
}

.section-intro {
  color: var(--muted);
  margin: 0 0 0.75rem;
  max-width: 62ch;
}

.repeater-list,
.stack {
  display: grid;
  gap: 0.85rem;
}

.upload-room-gallery-form {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.upload-room-gallery-form--album {
  align-items: stretch;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(200, 170, 120, 0.28);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(248, 243, 236, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.upload-room-gallery-form .field-full {
  flex: 1 1 auto;
  margin: 0;
}

.upload-room-gallery-form .field {
  flex: 1 1 220px;
  margin: 0;
}

.upload-room-gallery-form .button {
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.upload-room-gallery-form--album .button {
  min-width: 120px;
  align-self: end;
}

.upload-room-gallery-form__album {
  min-width: min(100%, 320px);
}

.upload-room-gallery-picker {
  position: relative;
}

.upload-room-gallery-picker__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-room-gallery-picker__surface {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  min-height: 70px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(200, 170, 120, 0.3);
  background: rgba(255, 255, 255, 0.94);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.upload-room-gallery-picker:hover .upload-room-gallery-picker__surface,
.upload-room-gallery-picker:focus-within .upload-room-gallery-picker__surface {
  border-color: rgba(168, 137, 90, 0.68);
  box-shadow: 0 10px 24px rgba(87, 63, 32, 0.08);
  transform: translateY(-1px);
}

.upload-room-gallery-picker__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(168, 137, 90, 0.12);
  color: #5f4728;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.upload-room-gallery-picker__text {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.events-gallery-admin {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.events-gallery-admin__create {
  position: sticky;
  top: 1rem;
}

.events-gallery-admin__content {
  min-width: 0;
}

.events-gallery-album-card {
  gap: 1rem;
}

.repeater-item,
.list-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.62);
}

.repeater-head,
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.opening-hours-day-card .repeater-head {
  align-items: flex-start;
  flex-wrap: wrap;
}

.status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--gold-strong);
  font-weight: 600;
}

.status--success,
.status--neutral {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(168, 137, 90, 0.2);
  background: rgba(255, 250, 242, 0.88);
}

.status--success {
  color: #2f6a3f;
  border-color: rgba(73, 133, 87, 0.24);
  background: rgba(241, 251, 244, 0.92);
}

.status--error {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  color: #a43f3f;
  border: 1px solid rgba(196, 92, 92, 0.26);
  background: rgba(255, 244, 244, 0.95);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  background: rgba(200, 170, 120, 0.22);
  color: #6f5125;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.submission-meta,
.album-images,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.repeater-item > .inline-actions {
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.documents-page-list-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.documents-page-list-row .documents-page-list-head {
  margin-bottom: 0;
  flex: 1;
  min-width: min(100%, 220px);
}

.documents-page-list-row .documents-page-list-title {
  font-size: 1.05rem;
  font-weight: 650;
}

.documents-page-list-row .documents-page-list-head .helper {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: rgba(60, 50, 40, 0.6);
}

.documents-page-detail > .repeater-head {
  margin-bottom: 1rem;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.thumb-card {
  border: 1px solid rgba(200, 170, 120, 0.25);
  border-radius: 16px;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.74);
}

.thumb-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.6rem;
}

.brand-row > div,
.panel,
.hotel-subpanel,
.hotel-template-card,
.list-item,
.repeater-item {
  min-width: 0;
}

.admin-topbar .inline-actions {
  justify-content: flex-end;
  gap: 0.6rem;
}

.menu-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.menu-editor-toolbar-actions {
  justify-content: flex-end;
}

.menu-editor-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 0.8rem;
  flex: 1 1 320px;
}

.menu-editor-stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(200, 170, 120, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.menu-editor-stat strong {
  font-size: 1.5rem;
  line-height: 1;
}

.menu-editor-stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.menu-editor-empty-state {
  display: grid;
  gap: 0.35rem;
}

.menu-editor-empty-state strong {
  font-size: 1.05rem;
}

.menu-editor-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.menu-editor-card {
  display: grid;
  gap: 0.3rem;
  min-height: 180px;
  text-align: left;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(200, 170, 120, 0.26);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 250, 244, 0.48));
  box-shadow:
    0 18px 30px rgba(79, 55, 22, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.menu-editor-card-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.menu-editor-card-move {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1;
}

.menu-editor-card-remove {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
}

.menu-editor-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 101, 48, 0.42);
  box-shadow:
    0 22px 34px rgba(79, 55, 22, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.menu-editor-card:focus-visible {
  outline: 2px solid rgba(139, 101, 48, 0.36);
  outline-offset: 3px;
}

.menu-editor-card strong {
  font-size: 1.2rem;
  color: #3d2b1d;
}

.menu-editor-card-label,
.menu-editor-card-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.menu-editor-card-copy {
  color: #4a3729;
  line-height: 1.45;
}

.menu-editor-create-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
}

.menu-editor-create-option {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  min-height: 140px;
  padding: 1rem;
  border: 1px solid rgba(200, 170, 120, 0.26);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 244, 0.54));
  color: var(--text);
  text-align: left;
  box-shadow:
    0 16px 28px rgba(79, 55, 22, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.menu-editor-create-option:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(139, 101, 48, 0.4);
  box-shadow:
    0 20px 32px rgba(79, 55, 22, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.menu-editor-create-option:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.menu-editor-create-option strong {
  font-size: 1.05rem;
  color: #3d2b1d;
}

.menu-editor-create-option span {
  color: var(--muted);
  line-height: 1.45;
}

.admin-modal-root {
  position: relative;
  z-index: 30;
}

body.admin-modal-open {
  overflow: hidden;
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(31, 23, 18, 0.34);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.admin-modal {
  width: min(840px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(200, 170, 120, 0.3);
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(255, 253, 250, 0.96), rgba(248, 244, 237, 0.9));
  box-shadow:
    0 28px 56px rgba(41, 28, 17, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.admin-modal-head,
.admin-modal-footer,
.menu-editor-modal-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.menu-editor-modal-actions {
  justify-content: flex-start;
}

.menu-editor-modal-head {
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.menu-editor-modal-title {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

.menu-editor-modal .field input,
.menu-editor-modal .field-full input,
.menu-editor-modal .field select,
.menu-editor-modal .field-full select,
.menu-editor-modal .field textarea,
.menu-editor-modal .field-full textarea {
  width: 100%;
  border: 1px solid rgba(200, 170, 120, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 0.82rem 0.9rem;
}

.menu-editor-modal .field textarea,
.menu-editor-modal .field-full textarea {
  min-height: 120px;
  resize: vertical;
}

.menu-editor-product-list {
  gap: 0.9rem;
}

.menu-editor-product-actions {
  justify-content: flex-end;
  align-items: center;
}

.menu-editor-product-card p {
  margin: 0;
}

.menu-editor-subcategory-strip {
  display: grid;
  gap: 0.5rem;
}

.menu-editor-subcategory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.menu-editor-subcategory-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(200, 170, 120, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #4a3729;
  font-size: 0.92rem;
}

.menu-editor-subcategory-pill-editable {
  gap: 0.5rem;
  padding-right: 0.35rem;
}

.menu-editor-subcategory-pill-editable .inline-actions {
  gap: 0.3rem;
}

.menu-editor-subcategory-group {
  display: grid;
  gap: 0.65rem;
}

.menu-editor-subcategory-cards {
  margin-top: 0.55rem;
}

.menu-editor-subcategory-card .list-head {
  margin-bottom: 0;
}

.menu-editor-subcategory-group + .menu-editor-subcategory-group {
  margin-top: 0.35rem;
}

.menu-editor-subcategory-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem 0.1rem 0.15rem;
  border-bottom: 1px solid rgba(200, 170, 120, 0.2);
}

.menu-editor-add-item-in-subcategory {
  min-width: 2.25rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 600;
}

.menu-editor-item-meta-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.menu-editor-item-meta-row.has-price {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-toggle-group {
  display: grid;
  gap: 0.8rem;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(200, 170, 120, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.checkbox-field input[type="checkbox"],
.checkbox-field input[type="radio"] {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  accent-color: #8b6530;
}

.checkbox-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.checkbox-copy strong {
  font-size: 1rem;
}

.checkbox-copy span:last-child {
  color: var(--muted);
  font-size: 0.94rem;
}

.empty {
  color: var(--muted);
  padding: 0.8rem 0;
}

.scroll-indicator {
  display: none;
}

.scroll-indicator-thumb {
  position: absolute;
  top: 0;
  left: 2px;
  width: 10px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(168, 150, 108, 0.72);
}

@media (max-width: 980px) {
  .col-8,
  .col-6,
  .col-4 {
    grid-column: span 12;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .events-gallery-admin {
    grid-template-columns: 1fr;
  }

  .events-gallery-admin__create {
    position: static;
  }

  .admin-topbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .menu-editor-toolbar {
    align-items: stretch;
  }

  .menu-editor-create-grid {
    grid-template-columns: 1fr;
  }

  .menu-editor-stats {
    grid-template-columns: 1fr;
  }

  .menu-editor-toolbar-actions,
  .menu-editor-modal-actions,
  .admin-modal-footer {
    width: 100%;
    justify-content: stretch;
  }

  .menu-editor-modal-head {
    flex-wrap: wrap;
  }

  .menu-editor-product-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .menu-editor-toolbar-actions .button,
  .menu-editor-modal-actions .button,
  .admin-modal-footer .button {
    flex: 1 1 180px;
  }

  .admin-modal {
    width: min(100vw - 1rem, 840px);
    padding: 0.95rem;
  }

  .admin-topbar-simple {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
  }

  .admin-topbar-side,
  .admin-topbar-side-end {
    justify-content: center;
    width: 100%;
  }

  .admin-global-save-actions {
    width: min(calc(100vw - 1rem), 420px);
    justify-content: center;
  }

  .admin-global-save-actions .button {
    flex: 1 1 0;
    min-width: 0;
  }

  .admin-topbar-spacer {
    display: none;
  }

  .admin-brand-link::before,
  .admin-brand-link::after {
    display: none;
  }

  .scroll-indicator {
    top: 0.2rem;
    right: 0.02rem;
    bottom: 0.3rem;
    width: 12px;
  }

  .scroll-indicator-thumb {
    left: 2px;
    width: 8px;
  }
}

.admin-main-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.8rem 0 0.2rem;
  max-width: 100%;
  margin: 0 auto;
}

.admin-main-tabs .button {
  padding: 0.7rem 1rem;
  background: rgba(255, 252, 247, 0.78);
  box-shadow: none;
  text-align: center;
  justify-content: center;
}

.admin-workspace {
  display: grid;
  gap: 0.8rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 2rem;
  justify-items: center;
}

.admin-workspace-home {
  min-height: calc(100vh - 9.25rem);
  align-content: center;
  padding-block: 0.8rem 2rem;
}

.admin-workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  flex-wrap: wrap;
  width: min(100%, 980px);
}

.admin-workspace-head h2 {
  margin: 0.15rem 0 0.25rem;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 0.98;
}

.admin-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  gap: 1.15rem;
  justify-content: center;
  width: min(100%, 980px);
  margin-inline: auto;
}

.admin-section-tile-grid {
  grid-template-columns: repeat(var(--tile-count, 4), minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 1060px);
}

.admin-tile {
  display: grid;
  position: relative;
  gap: 0.45rem;
  align-content: end;
  text-align: left;
  min-height: 176px;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid rgba(220, 203, 174, 0.58);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 249, 241, 0.34)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.38), transparent 54%);
  box-shadow:
    0 18px 34px rgba(79, 55, 22, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.admin-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.34), transparent 46%),
    radial-gradient(circle at 84% 18%, rgba(255, 242, 225, 0.32), transparent 24%);
  pointer-events: none;
}

.admin-tile > * {
  position: relative;
  z-index: 1;
}

.admin-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 101, 48, 0.48);
  box-shadow:
    0 24px 44px rgba(79, 55, 22, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.admin-tile.is-active {
  border-color: rgba(121, 40, 45, 0.38);
  background:
    linear-gradient(145deg, rgba(255, 248, 242, 0.72), rgba(255, 239, 229, 0.48)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.4), transparent 54%);
  box-shadow:
    0 24px 40px rgba(88, 30, 36, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.admin-tile-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.95rem;
  line-height: 1.02;
  color: #2f2319;
  text-wrap: balance;
}

.admin-tile-copy {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.4;
  max-width: 24ch;
}

.admin-section-tile-grid .admin-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 92px;
  padding: 0.85rem 0.95rem;
  border-radius: 22px;
  text-align: center;
}

.admin-section-tile-grid .admin-tile-title {
  font-size: 1.5rem;
  text-align: center;
  width: 100%;
}

.admin-section-tile-grid .admin-tile-copy {
  display: none;
}

.admin-stage {
  margin-top: 0.25rem;
  width: 100%;
}

.admin-stage-panel {
  width: 100%;
}

.admin-workspace-actions {
  justify-content: flex-end;
}

.admin-entry-grid {
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(240px, 280px));
  justify-content: center;
  justify-self: center;
  width: min(100%, calc(3 * 280px + 2 * 1.15rem));
}

.admin-entry-tile-wrap {
  position: relative;
  width: 100%;
  display: block;
}

.admin-entry-tile-wrap > .admin-entry-tile {
  width: 100%;
}

.admin-entry-tile-wrap:has(.admin-entry-visibility-toggle) .admin-entry-tile {
  padding-right: 4.75rem;
}

.admin-entry-visibility-toggle {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  margin: 0;
  padding: 0.32rem 0.62rem;
  min-height: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(25, 36, 61, 0.12);
}

.admin-entry-visibility-toggle--on {
  background: rgba(46, 125, 80, 0.14);
  border-color: rgba(46, 125, 80, 0.45);
  color: #1b5e32;
}

.admin-entry-visibility-toggle--off {
  background: rgba(120, 120, 120, 0.12);
  border-color: rgba(90, 90, 90, 0.35);
  color: #4a4a4a;
}

/* Wyszarzenie kafelka gdy jest zablokowany */
.admin-entry-tile-wrap:has(.admin-entry-visibility-toggle--off) .admin-entry-tile {
  opacity: 0.5;
  pointer-events: none;
}

.admin-entry-tile-wrap--featured .admin-entry-visibility-toggle {
  top: 0.65rem;
  right: 0.65rem;
}

.admin-entry-tile {
  min-height: 204px;
  align-content: start;
  gap: 1rem;
  padding: 1.2rem;
}

.admin-entry-head,
.admin-entry-heading {
  display: grid;
}

.admin-entry-head {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.95rem;
  align-items: center;
}

.admin-entry-heading {
  gap: 0.25rem;
}

.admin-entry-meta {
  color: rgba(93, 103, 121, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-entry-tile .admin-tile-copy {
  max-width: none;
  margin-top: auto;
}

.admin-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.admin-entry-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.95rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(152, 123, 77, 0.2);
  background: rgba(255, 253, 249, 0.78);
  color: rgba(67, 54, 39, 0.88);
  font-size: 0.82rem;
  line-height: 1.1;
}

.admin-home-layout {
  display: grid;
  gap: 1.2rem;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.admin-home-simple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.admin-home-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1.2rem;
  width: min(100%, 760px);
  margin-inline: auto;
}

.admin-entry-tile--featured {
  min-height: 186px;
  padding: 1.15rem 1.25rem;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(24, 40, 69, 0.95), rgba(42, 63, 104, 0.88)),
    radial-gradient(circle at 100% 0%, rgba(197, 160, 102, 0.3), transparent 42%);
  border: 1px solid rgba(203, 175, 126, 0.28);
  box-shadow:
    0 20px 34px rgba(14, 26, 46, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #f3f6fc;
}

.admin-entry-tile--featured .admin-entry-meta,
.admin-entry-tile--featured .admin-tile-copy {
  color: rgba(240, 245, 255, 0.84);
}

.admin-entry-tile--featured .admin-tile-title {
  color: #f7fbff;
  font-size: clamp(2.15rem, 3vw, 2.8rem);
}

.admin-entry-tile--featured .admin-entry-tags span {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(247, 251, 255, 0.92);
}

.admin-entry-icon {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1.9rem;
  color: #fff7e8;
}

.admin-entry-icon .icon-inline,
.admin-entry-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.admin-entry-tile:not(.admin-entry-tile--featured) .admin-entry-icon {
  background: rgba(86, 69, 48, 0.06);
  border-color: rgba(131, 107, 69, 0.16);
  color: #70522d;
}

.admin-entry-tile--hotel .admin-entry-icon {
  color: #7a5630;
}

.admin-entry-tile--restauracja .admin-entry-icon {
  color: #8d5b35;
}

.admin-entry-tile--przyjecia .admin-entry-icon {
  color: #7f4150;
}

.admin-entry-tile--dokumenty .admin-entry-icon,
.admin-entry-tile--kontakt .admin-entry-icon {
  color: #5c617e;
}

.schedule-shell {
  display: grid;
  gap: 1.15rem;
}

.schedule-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.schedule-summary-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.schedule-summary-card,
.schedule-calendar-card,
.schedule-day-card {
  border: 1px solid rgba(93, 110, 143, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  padding: 1rem 1.05rem;
  box-shadow: 0 18px 30px rgba(25, 36, 61, 0.08);
}

.schedule-summary-head,
.schedule-calendar-head,
.schedule-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.schedule-summary-head h3,
.schedule-calendar-head h3,
.schedule-day-head h3 {
  margin: 0;
}

.schedule-stat-tile {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(93, 110, 143, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 22px rgba(25, 36, 61, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.schedule-stat-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(112, 82, 45, 0.34);
  box-shadow: 0 16px 26px rgba(25, 36, 61, 0.11);
}

.schedule-stat-tile:focus-visible {
  outline: none;
  border-color: rgba(112, 82, 45, 0.76);
  box-shadow: 0 0 0 3px rgba(193, 160, 103, 0.2);
}

.schedule-stat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.schedule-stat-head strong {
  margin: 0;
  font-size: 0.98rem;
}

.schedule-stat-description {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.schedule-stat-count {
  min-width: 2.5rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(176, 142, 87, 0.18);
  color: #6d4f1a;
  font-size: 0.96rem;
  font-weight: 800;
  text-align: center;
}

.schedule-stat-count.is-zero,
.schedule-stat-count.is-muted {
  background: rgba(122, 133, 152, 0.16);
  color: rgba(92, 106, 129, 0.92);
}

.schedule-stat-count.is-danger {
  background: rgba(198, 72, 72, 0.14);
  color: #b73434;
}

.schedule-stat-count.is-success {
  background: rgba(75, 151, 92, 0.16);
  color: #2f7b42;
}

.schedule-quick-list,
.schedule-day-list {
  display: grid;
  gap: 0.6rem;
}

.schedule-quick-item,
.schedule-day-item {
  position: relative;
  border: 1px solid rgba(131, 107, 69, 0.22);
  border-radius: 18px;
  padding: 0.82rem 0.88rem;
  background: rgba(255, 255, 255, 0.88);
}

.schedule-registry-item.is-past,
.schedule-registry-item.is-cancelled,
.schedule-registry-item.is-expired {
  opacity: 0.58;
  background: rgba(243, 239, 233, 0.9);
  border-color: rgba(131, 107, 69, 0.14);
}

.schedule-registry-past-pill {
  background: rgba(122, 133, 152, 0.16);
  color: rgba(92, 106, 129, 0.92);
}

.schedule-card-action-details {
  position: absolute;
  z-index: 1;
  top: 0.82rem;
  right: 0.88rem;
  flex-shrink: 0;
  min-width: auto;
  padding-inline: 0.9rem;
}

.schedule-modal-list-item .schedule-card-action-details {
  top: 0.88rem;
  right: 0.92rem;
}

.schedule-day-item:has(.schedule-card-action-details) .schedule-day-item-head,
.schedule-quick-item:has(.schedule-card-action-details) .schedule-quick-head {
  padding-right: 7.5rem;
}

.schedule-quick-head,
.schedule-day-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.schedule-day-item-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.schedule-day-item p,
.schedule-quick-item p {
  margin: 0.35rem 0 0;
}

.schedule-card-actions-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.schedule-card-actions-bottom .schedule-inline-cancel {
  margin-left: 0;
}

.schedule-inline-cancel {
  margin-left: auto;
}

.schedule-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.9rem 0 0.55rem;
}

.schedule-weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-weekdays .is-saturday {
  color: #2e63bb;
}

.schedule-weekdays .is-sunday {
  color: #c04848;
}

.schedule-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.schedule-day-cell {
  min-height: 102px;
  border: 1px solid rgba(112, 132, 170, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(252, 252, 252, 0.98), rgba(246, 248, 252, 0.96));
  text-align: left;
  padding: 0.7rem 0.72rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-content: space-between;
  gap: 0.45rem 0.35rem;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.schedule-day-cell:hover {
  transform: translateY(-1px);
  border-color: rgba(112, 82, 45, 0.38);
  box-shadow: 0 12px 20px rgba(34, 48, 79, 0.1);
}

.schedule-day-cell:focus-visible {
  outline: none;
  border-color: rgba(112, 82, 45, 0.8);
  box-shadow: 0 0 0 3px rgba(193, 160, 103, 0.26);
}

.schedule-day-cell.is-empty {
  background: linear-gradient(180deg, rgba(232, 237, 244, 0.88), rgba(218, 226, 236, 0.92));
  border-color: rgba(132, 146, 169, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.schedule-day-cell.is-empty .schedule-day-number,
.schedule-day-cell.is-empty .schedule-day-count {
  color: rgba(92, 106, 129, 0.68);
}

.schedule-day-cell.is-selected {
  border-color: rgba(112, 82, 45, 0.88);
  background: linear-gradient(180deg, rgba(254, 243, 214, 0.98), rgba(241, 217, 166, 0.98));
  box-shadow:
    0 0 0 2px rgba(193, 160, 103, 0.28),
    0 14px 24px rgba(91, 65, 28, 0.16);
  transform: translateY(-1px);
}

.schedule-day-cell.is-selected .schedule-day-number,
.schedule-day-cell.is-selected .schedule-day-count {
  color: #4f3613;
}

.schedule-day-cell.is-outside {
  opacity: 0.42;
}

.schedule-day-number {
  font-weight: 700;
  font-size: 1rem;
}

.schedule-day-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  justify-self: end;
  align-self: start;
  background: linear-gradient(180deg, #d6b36c, #a97c2f);
  box-shadow: 0 0 0 4px rgba(214, 179, 108, 0.14);
}

.schedule-day-count {
  color: var(--muted);
  font-size: 0.78rem;
  grid-column: 1 / -1;
  align-self: end;
}

.schedule-day-cell.has-entries {
  border-color: rgba(189, 151, 86, 0.42);
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(252, 247, 237, 0.97));
}

.schedule-day-cell.has-entries.is-selected {
  border-color: rgba(112, 82, 45, 0.88);
  background: linear-gradient(180deg, rgba(254, 239, 201, 0.99), rgba(238, 209, 147, 0.99));
}

.schedule-day-cell.has-entries .schedule-day-count {
  color: #5e4820;
  font-weight: 700;
}

.schedule-day-cell.is-saturday .schedule-day-number {
  color: #2e63bb;
}

.schedule-day-cell.is-sunday .schedule-day-number,
.schedule-day-cell.is-holiday .schedule-day-number {
  color: #c04848;
}

.schedule-pill-hotel {
  background: rgba(203, 169, 112, 0.26);
}

.schedule-pill-restaurant {
  background: rgba(79, 151, 117, 0.24);
}

.schedule-pill-hall {
  background: rgba(98, 120, 184, 0.22);
}

.schedule-status-pill {
  font-weight: 700;
}

.schedule-status-pending {
  background: rgba(214, 171, 72, 0.2);
  color: #6f4e15;
}

.schedule-status-confirmed {
  background: rgba(91, 156, 116, 0.2);
  color: #255b3a;
}

.schedule-status-block {
  background: rgba(101, 117, 187, 0.2);
  color: #2d3f83;
}

.schedule-status-expired {
  background: rgba(122, 133, 152, 0.18);
  color: rgba(72, 82, 98, 0.95);
}

.schedule-modal {
  width: min(920px, calc(100vw - 1.5rem));
}

.schedule-modal-head-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.schedule-modal-footer {
  align-items: center;
}

.schedule-modal-footer:has(.schedule-details-footer-actions) {
  margin-top: 1.5rem;
  justify-content: flex-end;
}

.schedule-details-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.schedule-modal-summary {
  margin: 0;
}

.schedule-modal-list {
  display: grid;
  gap: 0.9rem;
}

.schedule-modal-list-group {
  display: grid;
  gap: 0.55rem;
}

.schedule-modal-list-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.schedule-modal-list-group-head h4 {
  margin: 0;
}

.schedule-modal-list-item {
  padding: 0.88rem 0.92rem;
}

.schedule-cancel-form {
  display: grid;
  gap: 0.9rem;
}

.schedule-cancel-form label {
  display: grid;
  gap: 0.45rem;
  color: #443224;
  font-weight: 600;
}

.schedule-cancel-form textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid rgba(200, 170, 120, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 0.82rem 0.92rem;
  resize: vertical;
}

.schedule-details-view {
  display: grid;
  gap: 0.9rem;
}

.schedule-registry-card {
  display: grid;
  gap: 1rem;
}

.schedule-registry-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
}

.schedule-registry-divider {
  border: 0;
  border-top: 1px solid rgba(93, 110, 143, 0.28);
  margin: 0;
  width: 100%;
}

.schedule-registry-search {
  width: 100%;
  min-width: 0;
}

.schedule-registry-search-label {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
}

.schedule-registry-search-label-text {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text);
  letter-spacing: 0.02em;
}

.schedule-registry-search-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(200, 170, 120, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 1rem;
}

.schedule-registry-search-input::placeholder {
  color: rgba(68, 50, 36, 0.45);
}

.schedule-registry-search-input:focus {
  outline: 2px solid rgba(98, 120, 184, 0.35);
  outline-offset: 1px;
}

.schedule-registry-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.schedule-registry-column {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.schedule-registry-column:not(:last-child) {
  border-right: 1px solid rgba(93, 110, 143, 0.28);
  padding-right: 1rem;
}

.schedule-registry-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.schedule-registry-column-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--text);
}

.schedule-registry-column-empty {
  margin: 0;
}

.schedule-registry-list {
  grid-auto-rows: 13.5rem;
}

.schedule-registry-list .schedule-registry-item {
  display: flex;
  flex-direction: column;
  height: 13.5rem;
  min-height: 13.5rem;
  overflow: hidden;
}

.schedule-registry-list .schedule-registry-item > p:nth-of-type(1),
.schedule-registry-list .schedule-registry-item > p:nth-of-type(2) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.schedule-registry-list .schedule-registry-item > p:nth-of-type(3) {
  margin-top: auto;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .schedule-registry-columns {
    grid-template-columns: 1fr;
  }

  .schedule-registry-column:not(:last-child) {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(93, 110, 143, 0.28);
    padding-bottom: 1rem;
  }
}

.schedule-details-banner {
  display: grid;
  gap: 0.28rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(98, 120, 184, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(243, 246, 255, 0.96), rgba(235, 240, 252, 0.92));
}

.schedule-details-banner strong,
.schedule-note-card p {
  margin: 0;
}

.schedule-details-banner p {
  margin: 0;
  color: var(--muted);
}

.schedule-details-sheet {
  border-radius: 16px;
  border: 1px solid rgba(131, 107, 69, 0.2);
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  max-width: 100%;
}

.schedule-detail-row {
  display: grid;
  grid-template-columns: minmax(7.25rem, 10.25rem) minmax(0, 1fr);
  gap: 0.35rem 0.85rem;
  padding: 0.52rem 0.88rem;
  border-bottom: 1px solid rgba(131, 107, 69, 0.12);
  align-items: first baseline;
}

.schedule-detail-row:last-child {
  border-bottom: none;
}

.schedule-detail-row--countdown {
  background: rgba(243, 246, 255, 0.55);
}

.schedule-detail-row__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.schedule-detail-row__value {
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.schedule-detail-row__value strong {
  font-weight: 750;
}

.schedule-detail-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.schedule-note-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.92rem 0.98rem;
  border-radius: 18px;
  border: 1px solid rgba(131, 107, 69, 0.18);
  background: rgba(255, 252, 247, 0.88);
}

.schedule-create-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.schedule-create-service {
  min-height: 130px;
  text-align: left;
  border: 1px solid rgba(130, 107, 68, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.85rem 0.9rem;
  display: grid;
  gap: 0.35rem;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.schedule-create-service:hover {
  transform: translateY(-1px);
  border-color: rgba(130, 107, 68, 0.48);
  box-shadow: 0 10px 20px rgba(41, 47, 72, 0.12);
}

.schedule-create-service:focus-visible {
  outline: none;
  border-color: rgba(112, 82, 45, 0.8);
  box-shadow: 0 0 0 3px rgba(193, 160, 103, 0.24);
}

.schedule-create-service strong {
  font-size: 1.15rem;
}

.schedule-create-service span {
  color: var(--muted);
}

.schedule-create-mode-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.schedule-block-helper {
  margin: 0.1rem 0 0;
}

.schedule-calendar-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: 0;
}

/* Spis rezerwacji: tylko licznik + odśwież — unikamy siatki 2.5rem | 1fr | 2.5rem z widoku kalendarza. */
.schedule-calendar-head.schedule-registry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.schedule-calendar-head-spacer {
  width: 100%;
  pointer-events: none;
}

.schedule-calendar-nav {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding-inline: calc(44px + 0.65rem);
}

.schedule-calendar-nav > .button.icon-button:first-child {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin-block: auto;
}

.schedule-calendar-nav > .button.icon-button:last-child {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin-block: auto;
}

.schedule-calendar-title {
  margin: 0;
  text-align: center;
  text-transform: capitalize;
  max-width: 100%;
}

.schedule-calendar-picker {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  max-width: 100%;
  min-width: 0;
}

.schedule-calendar-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  margin: 0;
}

/* Bez basis 100% — inaczej przy wrap miesiąc zajmuje cały rząd i rok spada w dół. */
.schedule-calendar-field--month {
  flex: 1 1 auto;
  min-width: 9.75rem;
}

.schedule-calendar-field--year {
  flex: 0 0 auto;
  min-width: 6rem;
  width: auto;
}

/* Jedna wysokość i ten sam wygląd w WebKit (długa nazwa miesiąca nie rozpycha pola). */
.schedule-calendar-select {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  height: 2.625rem;
  min-height: 2.625rem;
  max-height: 2.625rem;
  padding: 0 2.1rem 0 0.7rem;
  border: none;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.96);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25 7 8.75 10.5 5.25' stroke='%237b6341' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 0.78rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: capitalize;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.schedule-calendar-select::-ms-expand {
  display: none;
}

.schedule-calendar-select:focus-visible {
  outline: 2px solid rgba(139, 101, 48, 0.38);
  outline-offset: 2px;
}

.schedule-refresh-button {
  position: static;
  justify-self: center;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7b6341;
  cursor: pointer;
  overflow: visible;
}

.schedule-refresh-button .icon-inline {
  line-height: 0;
}

.schedule-refresh-button .icon-inline svg {
  overflow: visible;
}

.schedule-refresh-button:hover {
  color: #3c4c71;
}

.admin-hotel-wrap {
  display: grid;
  gap: 0.9rem;
  max-width: none;
  margin: 0;
  padding: 0;
}

.admin-hotel-wrap > .status {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(200, 170, 120, 0.2);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow);
}

.hotel-rooms-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.hotel-rooms-heading h3,
.hotel-rooms-heading .helper {
  margin: 0;
}

.hotel-rooms-heading .button {
  flex-shrink: 0;
}

.hotel-room-editor-modal .hotel-room-editor-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 600;
}

.hotel-room-editor-modal .hotel-room-editor-check input {
  width: auto;
  min-width: 1.15rem;
  min-height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--gold-strong);
}

.hotel-room-editor-footer {
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.hotel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.45rem 0 0.2rem;
}

.hotel-nav.is-single .button {
  min-width: 220px;
}

.hotel-nav .button {
  min-height: auto;
  padding: 0.62rem 1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  text-align: center;
  justify-content: center;
}

.hotel-subpanel {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(200, 170, 120, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.hotel-subpanel + .hotel-subpanel {
  margin-top: 1rem;
}

.hotel-subpanel h3,
.hotel-subpanel p {
  margin: 0;
}

.booking-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(200, 170, 120, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.booking-toggle-card.is-enabled {
  border-color: rgba(65, 133, 80, 0.22);
}

.booking-toggle-card.is-disabled {
  border-color: rgba(164, 71, 71, 0.22);
}

.booking-toggle-copy {
  display: grid;
  gap: 0.25rem;
}

.booking-toggle-status {
  font-weight: 700;
}

.booking-toggle-status.is-enabled {
  color: #2f7b42;
}

.booking-toggle-status.is-disabled {
  color: #a13c3c;
}

.hotel-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(200, 170, 120, 0.18);
  border-radius: 16px;
  background: rgba(250, 247, 241, 0.72);
}

.admin-toolbar-row {
  justify-content: space-between;
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.admin-toolbar-filters {
  flex: 1 1 auto;
  min-width: min(280px, 100%);
}

button.icon-btn {
  min-width: 2.6rem;
  padding: 0.65rem 0.85rem;
  font-size: 1.15rem;
  line-height: 1;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  white-space: nowrap;
}

.button.danger-muted {
  color: var(--danger, #c44);
  border-color: rgba(229, 110, 94, 0.5);
}

.admin-room-fieldset {
  border: 1px solid rgba(200, 170, 120, 0.28);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin: 0;
}

.admin-room-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 600;
  color: #443224;
}

.admin-room-checks {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.admin-check-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
}

.admin-check-line input {
  margin-top: 0.2rem;
  accent-color: var(--gold-strong);
}

.admin-check-all {
  padding-bottom: 0.35rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(200, 170, 120, 0.2);
}

.admin-subheading {
  margin: 1.1rem 0 0.45rem;
  font-size: 1rem;
}

.hotel-template-card summary .tpl-key {
  font-weight: 700;
}

.hotel-template-card summary .tpl-desc {
  font-weight: 400;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  font-weight: 400;
}

.hotel-subpanel form label,
.hotel-template-card label,
.hotel-filters label {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  color: #443224;
  font-weight: 600;
}

.hotel-subpanel input,
.hotel-subpanel select,
.hotel-subpanel textarea,
.hotel-template-card input,
.hotel-template-card textarea,
.hotel-filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(200, 170, 120, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 0.78rem 0.9rem;
}

.hotel-subpanel textarea,
.hotel-template-card textarea {
  min-height: 140px;
  resize: vertical;
}

.wysiwyg-toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(139, 101, 48, 0.08);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  flex-wrap: wrap;
}

.wysiwyg-toolbar button {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wysiwyg-toolbar button:hover {
  background: rgba(139, 101, 48, 0.15);
  border-color: rgba(139, 101, 48, 0.4);
}

.wysiwyg-editor {
  min-height: 200px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0 0 0.5rem 0.5rem;
  background: var(--bg-card);
  font-size: 0.95rem;
  line-height: 1.6;
  outline: none;
  overflow-y: auto;
}

.wysiwyg-editor:focus {
  border-color: rgba(139, 101, 48, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 101, 48, 0.08);
}

.wysiwyg-editor p {
  margin: 0 0 0.75rem 0;
}

.wysiwyg-editor p:last-child {
  margin-bottom: 0;
}

.wysiwyg-editor ul,
.wysiwyg-editor ol {
  margin: 0 0 0.75rem 1.5rem;
  padding-left: 0.5rem;
}

.wysiwyg-editor li {
  margin-bottom: 0.35rem;
}

.wysiwyg-editor a {
  color: #6b4c1e;
  text-decoration: underline;
}

.wysiwyg-editor b,
.wysiwyg-editor strong {
  font-weight: 600;
}

.wysiwyg-editor i,
.wysiwyg-editor em {
  font-style: italic;
}

.wysiwyg-editor u {
  text-decoration: underline;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 101, 48, 0.55) rgba(200, 170, 120, 0.12);
}

.table-scroll::-webkit-scrollbar {
  height: 10px;
}

.table-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 101, 48, 0.5);
}

.table-scroll::-webkit-scrollbar-track {
  background: rgba(200, 170, 120, 0.12);
}

.hotel-table {
  width: 100%;
  min-width: max(100%, 780px);
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hotel-table th,
.hotel-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.68rem 0.45rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.hotel-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hotel-table tbody tr:hover {
  background: rgba(200, 170, 120, 0.08);
}

.hotel-template-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.9rem 0.9rem;
  background: rgba(255, 255, 255, 0.7);
}

.hotel-template-card summary {
  cursor: pointer;
  font-weight: 600;
  color: #453124;
}

.hotel-template-card label {
  margin-top: 0.75rem;
}

.hotel-template-card .button,
.hotel-subpanel .button {
  justify-self: start;
}

.mail-preview-panel {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(200, 170, 120, 0.22);
  display: grid;
  gap: 0.8rem;
}

.mail-preview-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: #453124;
}

.mail-preview-render {
  min-width: 0;
}

.mail-preview-shell {
  display: grid;
  gap: 0.6rem;
}

.mail-preview-note {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.mail-preview-frame {
  overflow: auto;
  border: 1px solid rgba(200, 170, 120, 0.28);
  border-radius: 22px;
  background: #f6f1e8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 28px rgba(79, 55, 22, 0.08);
}

.mail-preview-canvas {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 1.6rem 0.75rem 1rem;
  border-radius: 28px;
  background: #f6f1e8;
}

.mail-preview-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #7b5a24;
  text-transform: uppercase;
  text-align: center;
}

.mail-preview-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(123, 90, 36, 0.2));
}

.mail-preview-inbox-subject {
  margin: 0.35rem 0 0.85rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6b5c4d;
}

.mail-preview-header-stack {
  margin: 0 0 1.2rem;
  text-align: center;
}

.mail-preview-header-brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  line-height: 1.2;
  font-weight: 700;
  color: #1f1712;
}

.mail-preview-header-context {
  margin-top: 0.65rem;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.35;
  font-weight: 600;
  color: #4a3d32;
}

.mail-preview-header-number {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #7a6754;
  letter-spacing: 0.02em;
}

.mail-preview-card {
  background: #ffffff;
  border: 1px solid #e8dcc8;
  border-radius: 22px;
  padding: clamp(1.1rem, 2.4vw, 2rem);
  box-shadow: 0 10px 30px rgba(52, 33, 14, 0.08);
}

.mail-preview-subject {
  margin: 0 0 1.2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  line-height: 1.18;
  font-weight: 700;
  color: #1f1712;
  text-align: center;
}

.mail-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.4rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: #7b5a24;
  color: #fffdf9;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(123, 90, 36, 0.22);
}

.mail-preview-body {
  overflow: auto;
  font-size: 1rem;
  line-height: 1.75;
  color: #3e3125;
}

.mail-preview-body h1,
.mail-preview-body h2,
.mail-preview-body h3 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.2;
  color: #1f1712;
  font-weight: 700;
  text-align: center;
}

.mail-preview-body h1 {
  font-size: 2rem;
}

.mail-preview-body h2 {
  font-size: 1.65rem;
}

.mail-preview-body h3 {
  font-size: 1.35rem;
}

.mail-preview-body > :first-child {
  margin-top: 0;
}

.mail-preview-body > :last-child {
  margin-bottom: 0;
}

.mail-preview-body a {
  color: #7b5a24;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #c8aa78;
}

.mail-preview-footer {
  padding: 1rem 0.75rem 0;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #7c6a58;
}

.mail-preview-footer-link {
  padding-top: 0.3rem;
  font-weight: 700;
  color: #7b5a24;
}

.legacy-group {
  border: 1px solid rgba(200, 170, 120, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.3rem 1rem 1rem;
}

.legacy-group summary {
  cursor: pointer;
  padding: 0.8rem 0;
  font-weight: 700;
  color: #4d3728;
}

.legacy-group[open] summary {
  margin-bottom: 0.5rem;
}

.home-media-editor {
  gap: 1rem;
}

.home-media-controls {
  gap: 0.85rem;
}

.home-media-control-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 0.65rem;
  align-items: center;
}

.home-media-preview-shell {
  display: grid;
  gap: 0.5rem;
}

.home-media-preview {
  --home-media-focus-x: 50%;
  --home-media-focus-y: 50%;
  --home-media-zoom: 1;
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 16 / 8;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(200, 170, 120, 0.35);
  background: rgba(246, 241, 232, 0.85);
}

.home-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--home-media-focus-x) var(--home-media-focus-y);
  transform: scale(var(--home-media-zoom));
  transform-origin: center;
}

.home-media-preview-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hotel-room-editor-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-row-actions .hotel-move-room {
  min-width: 2.7rem;
  padding-inline: 0.7rem;
}

.admin-row-actions--room-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.admin-row-actions--room-order .hotel-move-room {
  min-width: 2.9rem;
}

@media (max-width: 980px) {
  .admin-shell {
    width: min(100vw - 1rem, 1320px);
    padding-top: 0.75rem;
    padding-bottom: 7.5rem;
  }

  .admin-main-tabs,
  .admin-hotel-wrap,
  .admin-workspace {
    padding-inline: 0;
  }

  .admin-workspace-home {
    min-height: auto;
    align-content: start;
  }

  .brand-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand-row img {
    width: 48px;
    height: 48px;
  }

  .admin-topbar .inline-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-workspace-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-workspace-actions .button {
    width: 100%;
  }

  .admin-global-save-actions {
    flex-wrap: nowrap;
  }

  .admin-topbar .inline-actions > * {
    flex: 1 1 180px;
  }

  .admin-main-tabs .button,
  .hotel-nav .button {
    flex: 1 1 220px;
  }

  .admin-tile-grid {
    grid-template-columns: 1fr;
  }

  .admin-entry-grid {
    grid-template-columns: repeat(2, minmax(220px, 280px));
    width: min(100%, calc(2 * 280px + 1 * 1.15rem));
  }

  .admin-home-layout,
  .admin-home-simple-grid,
  .admin-home-secondary-grid {
    gap: 1rem;
  }

  .admin-home-simple-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-entry-tile,
  .admin-entry-tile--featured {
    min-height: 172px;
    padding: 1rem;
  }

  .admin-entry-icon {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }

  .schedule-summary-grid {
    grid-template-columns: 1fr;
  }

  .schedule-summary-grid--compact {
    grid-template-columns: 1fr;
  }

  .schedule-calendar-grid {
    gap: 0.35rem;
  }

  .schedule-day-cell {
    min-height: 86px;
    padding: 0.48rem 0.5rem;
  }

  .schedule-calendar-nav {
    width: min(100%, 460px);
  }

  .schedule-detail-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.48rem 0.78rem;
  }

  .schedule-create-services {
    grid-template-columns: 1fr;
  }

  .schedule-create-mode-switch .button {
    flex: 1 1 150px;
  }

  .hotel-filters {
    align-items: stretch;
  }

  .hotel-filters > * {
    width: 100%;
  }

  .hotel-template-card .button,
  .hotel-subpanel .button {
    width: 100%;
    justify-self: stretch;
  }

  .upload-room-gallery-form .button {
    width: 100%;
    justify-self: stretch;
  }

  .upload-room-gallery-form__album {
    min-width: 100%;
  }

  .upload-room-gallery-picker__surface {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .booking-toggle-card {
    flex-direction: column;
    align-items: stretch;
  }

  .hotel-room-editor-compact-grid {
    grid-template-columns: 1fr;
  }

  .home-media-control-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-entry-grid,
  .admin-home-simple-grid,
  .admin-home-secondary-grid {
    grid-template-columns: 1fr;
  }

  .admin-entry-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .admin-entry-tile,
  .admin-entry-tile--featured {
    min-height: 0;
  }
}

/* Grafik: powiadomienia o nowych rezerwacjach oczekujących (polling) */
.admin-schedule-toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.admin-schedule-toast-stack .admin-schedule-toast {
  pointer-events: auto;
}

.admin-schedule-toast {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.45rem 0.45rem 0.45rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(200, 170, 120, 0.45);
  background: rgba(255, 252, 247, 0.96);
  box-shadow:
    0 10px 28px rgba(45, 32, 18, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.admin-schedule-toast.is-out {
  opacity: 0;
  transform: translateY(8px);
}

.admin-schedule-toast__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.4rem 0.35rem;
  margin: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #2c2118;
}

.admin-schedule-toast__main:hover,
.admin-schedule-toast__main:focus-visible {
  background: rgba(200, 170, 120, 0.12);
  outline: none;
}

.admin-schedule-toast__text {
  font-size: 0.95rem;
  line-height: 1.4;
}

.admin-schedule-toast__hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-schedule-toast__close {
  flex: 0 0 auto;
  width: 2.25rem;
  min-height: 2.25rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.admin-schedule-toast__close:hover,
.admin-schedule-toast__close:focus-visible {
  background: rgba(160, 60, 50, 0.1);
  color: #5c2e28;
  outline: none;
}
