@import "./tokens.css";

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(77, 125, 101, 0.24), transparent 28%),
    linear-gradient(180deg, #f9f4ec 0%, #f1ebdf 100%);
  color: var(--ink);
  overflow-x: hidden;
}

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

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: clamp(220px, 19vw, 252px) minmax(0, 1fr);
}

body.sidebar-collapsed .shell {
  grid-template-columns: clamp(92px, 9vw, 180px) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 28px 22px;
  background: rgba(28, 42, 34, 0.95);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: padding 0.2s ease;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 5;
}

.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sidebar-toggle {
  min-width: 44px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.brand h1,
.page-header h2,
.hero h3,
.panel-heading h4 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  opacity: 0.75;
}

.muted {
  color: var(--muted);
}

.sidebar .muted {
  color: rgba(255, 255, 255, 0.72);
}

.small {
  font-size: 0.88rem;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-group-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: white;
  padding: 10px 12px;
}

.nav-group-main,
.nav-label-row {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.nav-group-link:hover,
.nav-group-link.active {
  background: rgba(216, 234, 223, 0.14);
}

.nav-children {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-tree.expanded .nav-children {
  display: flex;
}

.nav-caret {
  opacity: 0.7;
}

.nav-section-title {
  padding: 0 4px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.58);
}

.nav-link,
button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.nav-child-link {
  background: rgba(255, 255, 255, 0.03);
  padding-left: 14px;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(216, 234, 223, 0.18);
}

.sidebar[data-bootstrap-loading="true"] .sidebar-load-indicator {
  display: none;
}

.sidebar[data-bootstrap-loading="true"] .nav-group-link::after,
.sidebar[data-bootstrap-loading="true"] .nav-link::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(216, 234, 223, 0.96);
  border-right-color: rgba(216, 234, 223, 0.72);
  box-shadow: 0 0 0 1px rgba(216, 234, 223, 0.12);
  animation: sidebar-load-spin 1.05s linear infinite, sidebar-load-pulse 1.7s ease-in-out infinite;
}

.sidebar-load-indicator {
  --load-progress: 30deg;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  position: relative;
  background: conic-gradient(rgba(216, 234, 223, 0.94) 0deg, rgba(216, 234, 223, 0.94) var(--load-progress), rgba(255, 255, 255, 0.16) var(--load-progress), rgba(255, 255, 255, 0.16) 360deg);
  box-shadow: 0 0 0 1px rgba(216, 234, 223, 0.16);
  transition: opacity 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-load-indicator::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: #1f2a22;
}

.sidebar-load-indicator.loading,
.sidebar-load-indicator.queued {
  animation: sidebar-load-spin 1.05s linear infinite, sidebar-load-pulse 1.7s ease-in-out infinite;
}

.sidebar-load-indicator.queued {
  opacity: 0.78;
  animation-duration: 1.2s, 2.1s;
}

.sidebar-load-indicator.settling {
  opacity: 0.9;
  animation: sidebar-load-spin 1.8s linear infinite, sidebar-load-pulse 1.6s ease-in-out infinite;
}

.sidebar-load-indicator.error {
  background: conic-gradient(rgba(255, 168, 168, 0.96) 0deg, rgba(255, 168, 168, 0.96) 360deg);
  box-shadow: 0 0 0 1px rgba(255, 168, 168, 0.2);
}

@keyframes sidebar-load-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes sidebar-load-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(216, 234, 223, 0.18), 0 0 0 0 rgba(216, 234, 223, 0.08);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(216, 234, 223, 0.34), 0 0 10px 2px rgba(216, 234, 223, 0.22);
  }
}

.sidebar-card {
  margin-top: auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-card-primary {
  margin-top: 0;
}

.sidebar-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  opacity: 0.7;
}

.main {
  min-width: 0;
  max-width: 100%;
  padding: clamp(16px, 1.8vw, 26px);
  overflow-x: clip;
}

.page-prelude {
  min-width: 0;
}

.page-prelude[hidden] {
  display: none;
}

.page-prelude:not([hidden]) {
  margin-bottom: 10px;
}

.page-prelude:not([hidden]) .hero {
  margin-bottom: 0;
}

.page-prelude:not([hidden]) + .page-header {
  padding-top: 12px;
  border-top: 1px solid rgba(31, 42, 34, 0.35);
}

.page-header,
.hero,
.panel-heading.inline,
.form-actions,
.backup-grid,
.header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.view {
  display: none;
}

.view.active {
  display: block;
  min-width: 0;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #58b368;
  box-shadow: 0 0 0 6px rgba(88, 179, 104, 0.12);
}

.status-dot[data-state="saving"] {
  background: #d6a93a;
  box-shadow: 0 0 0 6px rgba(214, 169, 58, 0.14);
}

.status-dot[data-state="saved"] {
  background: #58b368;
  box-shadow: 0 0 0 6px rgba(88, 179, 104, 0.12);
}

.status-dot[data-state="error"] {
  background: #a63f32;
  box-shadow: 0 0 0 6px rgba(166, 63, 50, 0.12);
}

.hero,
.panel {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero {
  padding: 22px 24px;
  margin-bottom: 18px;
}

.panel {
  padding: 20px;
  margin-bottom: 18px;
  min-width: 0;
}

.section-marker {
  margin: 4px 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(40, 89, 67, 0.12);
  background: rgba(255, 250, 243, 0.72);
}

.section-marker-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.section-marker strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-strong);
}

.section-marker p {
  margin: 0;
}

.billing-layout-root,
.billing-layout-section,
.view-layout-section {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.view-layout-section-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  min-width: 0;
}

.layout-block[data-layout-width="full"] {
  grid-column: 1 / -1;
}

.layout-block[data-layout-width="half"] {
  grid-column: span 1;
}

.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.cols-span-3 {
  grid-column: span 3;
}

.cols-span-2 {
  grid-column: span 2;
}

.form-grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.city-popup {
  color: var(--ink);
}

.city-popup strong {
  display: block;
  margin-bottom: 6px;
}

.city-popup p {
  margin: 0;
}

label,
.stack,
.stack-xl {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-xl {
  gap: 18px;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

button {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

button:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.secondary-button {
  background: rgba(40, 89, 67, 0.1);
  color: var(--accent-strong);
  border: 1px solid rgba(40, 89, 67, 0.16);
}

.secondary-button:hover {
  background: rgba(40, 89, 67, 0.16);
}

.small-button {
  padding: 9px 12px;
  font-size: 0.88rem;
}

.summary-link-button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.summary-link-button:hover {
  background: transparent;
  color: var(--accent);
  transform: none;
}

button.secondary {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.button-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
}

.app-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(28, 42, 34, 0.42);
  backdrop-filter: blur(3px);
}

.app-dialog-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  overflow: auto;
}

.app-dialog .panel-heading.inline {
  align-items: flex-start;
}

.app-dialog.app-dialog-compact {
  width: min(520px, calc(100vw - 32px));
}

.confirm-dialog-message {
  margin: 0;
  line-height: 1.5;
}

.confirm-dialog-actions {
  justify-content: flex-end;
}

.history-receipts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.history-receipt-edit-row td {
  background: #fbf8f1;
}

.history-receipt-edit-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
  min-width: 0;
}

.history-receipt-edit-panel label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.history-receipt-edit-panel label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.history-receipt-edit-wide,
.history-receipt-edit-actions {
  grid-column: 1 / -1;
}

.history-receipt-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.save-success-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  pointer-events: none;
}

.save-success-popup[hidden] {
  display: none;
}

.save-success-popup-shell {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(40, 89, 67, 0.16);
  background: linear-gradient(160deg, rgba(255, 250, 243, 0.98), rgba(216, 234, 223, 0.96));
  box-shadow: 0 20px 40px rgba(28, 42, 34, 0.18);
  pointer-events: auto;
}

.save-success-popup[data-state="visible"] .save-success-popup-shell {
  animation: save-success-popup-in 0.18s ease-out;
}

.save-success-popup-shell strong {
  color: var(--accent-strong);
  font-size: 1.05rem;
}

.save-success-popup-shell p {
  margin: 0;
  color: var(--muted);
}

.save-success-popup-shell .ghost {
  justify-self: end;
}

body.save-lock-active {
  cursor: progress;
}

.save-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 42, 34, 0.3);
  backdrop-filter: blur(2px);
}

.save-lock-overlay[hidden] {
  display: none;
}

.save-lock-dialog {
  width: min(380px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(40, 89, 67, 0.22);
  background: rgba(255, 250, 243, 0.98);
  box-shadow: 0 24px 60px rgba(28, 42, 34, 0.24);
}

.save-lock-dialog strong {
  display: block;
  color: var(--accent-strong);
  font-size: 1rem;
}

.save-lock-dialog p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.save-lock-spinner {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(40, 89, 67, 0.18);
  border-top-color: var(--accent-strong);
  animation: save-lock-spin 0.78s linear infinite;
}

@keyframes save-lock-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes save-success-popup-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-config-editor {
  display: grid;
  gap: 16px;
}

.sidebar-config-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(216, 207, 191, 0.7);
  border-radius: 14px;
  background: rgba(255, 252, 245, 0.72);
}

.sidebar-config-section-title {
  flex: 1;
}

.sidebar-config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sidebar-config-children {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(237, 243, 238, 0.52);
}

.layout-component-inventory {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.layout-component-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(40, 89, 67, 0.08);
  border: 1px solid rgba(40, 89, 67, 0.12);
  color: var(--accent-strong);
  font-size: 0.78rem;
  line-height: 1.25;
}

.toggle-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

.toggle-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.sidebar.collapsed {
  padding-inline: 12px;
}

.sidebar.collapsed .brand p,
.sidebar.collapsed .brand h1,
.sidebar.collapsed .sidebar-card strong,
.sidebar.collapsed .sidebar-card .muted,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .sidebar-label {
  display: none;
}

.sidebar.collapsed .nav-children {
  display: none;
}

.sidebar.collapsed .sidebar-card {
  padding: 12px;
}

button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

button.icon-button {
  padding: 9px 12px;
  font-size: 0.9rem;
}

button.danger {
  background: rgba(166, 63, 50, 0.12);
  color: var(--warning);
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(216, 207, 191, 0.7);
  border-radius: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.billing-reference-table table {
  min-width: 0;
}

.billing-reference-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf3ee;
}

.billing-reference-table tbody tr:nth-child(odd) {
  background: rgba(239, 244, 240, 0.52);
}

.billing-reference-table tbody tr:hover {
  background: rgba(217, 235, 223, 0.72);
}

.billing-reference-table td {
  white-space: normal;
  min-width: 0;
}

.billing-reference-table td:first-child,
.billing-reference-table td:nth-child(6),
.billing-reference-table td:nth-child(7) {
  white-space: normal;
}

.mono-cell {
  font-variant-numeric: tabular-nums;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.strong-cell {
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(216, 207, 191, 0.7);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

td.wrap-cell {
  white-space: normal;
  min-width: 0;
}

td.status-cell {
  white-space: normal;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.ok {
  background: #d8eadf;
  color: #1c4735;
}

.status-badge.warning {
  background: #fde7b0;
  color: #8a5b00;
}

.status-badge.danger {
  background: #f7d4cf;
  color: #8f2f24;
}

.maintenance-hero {
  margin-bottom: 18px;
}

.report-hero {
  margin-bottom: 18px;
}

.report-actions {
  display: flex;
  align-items: end;
  gap: 12px;
}

.director-report {
  background: #fffefb;
  border: 1px solid rgba(216, 207, 191, 0.7);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.director-report-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(216, 207, 191, 0.7);
}

.director-report-title h3,
.director-report-title h4 {
  margin: 0;
}

.director-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}

.report-card {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(246, 250, 246, 1), rgba(234, 242, 236, 1));
  border: 1px solid rgba(40, 89, 67, 0.08);
}

button.report-card {
  display: block;
  width: 100%;
  min-height: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  appearance: none;
}

.report-card-action {
  position: relative;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.report-card-action::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(32, 72, 53, 0.54);
  border-right: 2px solid rgba(32, 72, 53, 0.54);
  transform: rotate(45deg);
}

.report-card-action:hover,
.report-card-action:focus-visible {
  border-color: rgba(32, 72, 53, 0.3);
  box-shadow: 0 12px 28px rgba(32, 72, 53, 0.1);
  transform: translateY(-1px);
}

.report-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.28rem;
  color: var(--accent-strong);
}

.report-card-action strong {
  padding-right: 18px;
}

.report-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.report-section {
  padding: 16px;
  border-radius: 18px;
  background: #faf6ef;
  border: 1px solid rgba(216, 207, 191, 0.7);
}

.report-section h5 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.inline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ef;
  color: var(--accent-strong);
  font-size: 0.9rem;
  white-space: normal;
}

.empty-report {
  padding: 20px;
  border-radius: 18px;
  background: #faf6ef;
  border: 1px dashed rgba(216, 207, 191, 0.9);
}

th {
  background: #eef4ef;
  color: var(--accent-strong);
  font-size: 0.92rem;
}

tr:last-child td {
  border-bottom: 0;
}

.month-filter {
  min-width: min(220px, 100%);
}

.hero-fields {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.backup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.inline-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.field-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.detail-card {
  padding: 14px;
  background: #f8f4ee;
  border-radius: 14px;
  border: 1px solid rgba(216, 207, 191, 0.65);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.labor-diff-cell {
  white-space: normal;
  color: var(--accent-strong);
  font-weight: 600;
}

@media (max-width: 1500px) {
  .sidebar {
    padding: 22px 18px;
    gap: 22px;
  }

  .panel,
  .hero {
    padding: 16px 18px;
  }

  th,
  td {
    padding: 8px 6px;
    font-size: 0.86rem;
  }

  .small-button {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
}

@media (max-width: 1280px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  body.sidebar-collapsed .shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
    gap: 18px;
  }

  .view-layout-section-content {
    grid-template-columns: 1fr;
  }

  .cols-span-3 {
    grid-column: auto;
  }

  .cols-span-2 {
    grid-column: auto;
  }

  .hero-fields {
    justify-content: stretch;
  }

}
