:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--text);
  min-height: 100vh;
}

body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

body.auth-locked {
  display: block;
}

body.auth-locked .sidebar,
body.auth-locked .content {
  display: none;
}

.auth-gate {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

body.auth-locked .auth-gate {
  display: flex;
}

.auth-card {
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 30px var(--shadow);
}
.auth-brand-mini {
  text-align: center;
  margin-bottom: 1rem;
}
.auth-brand-mini h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.auth-brand-mini p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
#login-error.bad {
  color: var(--bad);
  font-weight: 500;
}

/* SIDEBAR */
.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand h1 {
  margin: 0;
  font-size: 1.15rem;
}
.brand p {
  margin: 0.25rem 0 1rem;
  font-size: 0.85rem;
  color: var(--sidebar-muted);
}
.project-switcher {
  margin-bottom: 0.75rem;
}
.project-switcher label {
  color: var(--sidebar-label);
}
.project-switcher select {
  background: var(--sidebar-surface);
  color: var(--sidebar-text);
  border: 1px solid var(--sidebar-border);
}
.nav-groups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  overflow-y: auto;
}

.nav-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  padding: 0 0.35rem;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar nav,
.nav-groups {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-btn {
  background: transparent;
  color: var(--sidebar-text);
  border: none;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}
.nav-btn:hover {
  background: var(--sidebar-surface);
}
.nav-btn.active {
  background: var(--accent);
  color: white;
}
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.save-status {
  font-size: 0.78rem;
  color: var(--sidebar-muted);
  text-align: center;
  min-height: 1.1rem;
  padding: 0.15rem 0;
}
.save-status[data-status="saving"] {
  color: var(--accent);
}
.save-status[data-status="error"] {
  color: #fca5a5;
}
.save-status[data-status="saved"] {
  color: #86efac;
}
.sidebar-toggle {
  display: none;
  background: var(--sidebar-surface);
  color: var(--sidebar-text);
  border: 1px solid var(--sidebar-border);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.sidebar-footer button,
.import-label {
  background: var(--sidebar-surface);
  color: var(--sidebar-text);
  border: 1px solid var(--sidebar-border);
  padding: 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: center;
}
.import-label:hover,
.sidebar-footer button:hover {
  background: var(--sidebar-surface-hover);
}

/* MAIN */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin: -0.25rem 0 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.35rem 0;
  background: linear-gradient(var(--page-bg) 70%, transparent);
}

.topbar-wiki-link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  margin-right: auto;
}

.topbar-wiki-link:hover {
  color: var(--accent);
}

.theme-dropdown {
  position: relative;
}

.theme-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 1px 2px var(--shadow);
}

.theme-dropdown-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--shadow);
  padding: 0.35rem;
  z-index: 50;
}

.theme-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.theme-dropdown-item:hover,
.theme-dropdown-item.active {
  background: var(--table-hover);
}

.theme-dropdown-item.active {
  font-weight: 600;
  color: var(--accent);
}

.theme-dropdown-swatches {
  display: inline-flex;
  gap: 2px;
}

.theme-dropdown-swatches span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.content {
  padding: 1.25rem 1.5rem;
  max-width: 100%;
  overflow-x: hidden;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.view-header h2 {
  margin: 0;
  font-size: 1.4rem;
}
.view-header p {
  margin: 0.15rem 0 1rem;
  color: var(--muted);
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 1px 2px var(--shadow);
  margin-bottom: 1rem;
  overflow-x: auto;
}
.card h3 {
  margin-top: 0;
}
.card.danger {
  border-color: var(--danger-border);
}

/* Grids */
.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.grid-2 > .full {
  grid-column: 1 / -1;
}
.grid-wide {
  display: grid;
  gap: 1rem;
  grid-template-columns: 3fr 1fr;
}
.side-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 1100px) {
  .grid-wide {
    grid-template-columns: 1fr;
  }
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.form-grid .full {
  grid-column: 1 / -1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--label);
}
input,
select,
textarea,
button {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
  background: var(--input-bg);
  color: var(--text);
}
button {
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  padding: 0.55rem 0.9rem;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
button:hover {
  background: var(--accent-hover);
}
button.secondary {
  background: var(--secondary);
}
button.secondary:hover {
  background: var(--secondary-hover);
}
.danger-btn,
.delete-btn {
  background: var(--bad);
}
.danger-btn:hover,
.delete-btn:hover {
  background: #b91c1c;
}
.delete-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.78rem;
}

.setting-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}

.setting-toggle input {
  margin-top: 0.2rem;
}

.perm-group {
  margin-bottom: 0.75rem;
}

.perm-group-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.perm-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.25rem 0.75rem;
}

.perm-check {
  font-size: 0.85rem;
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
}

.role-detail {
  margin-bottom: 0.5rem;
}

.role-detail summary {
  cursor: pointer;
}

.perm-summary {
  margin: 0.35rem 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.inline-invite {
  margin-bottom: 0.75rem;
  align-items: end;
}

.inline-form {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.inline-form input {
  flex: 1;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th,
td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  overflow-wrap: anywhere;
}
th {
  background: var(--table-head);
  font-weight: 600;
  color: var(--label);
}
tr:hover td {
  background: var(--table-hover);
}
td input,
td select {
  width: 100%;
  padding: 0.25rem 0.35rem;
  font-size: 0.85rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  align-items: flex-end;
}
.task-panel {
  display: none;
  margin-top: 0.8rem;
}
.task-panel.active {
  display: block;
}
.task-view-btn.active {
  background: var(--accent);
}
.task-view-btn.active:hover {
  background: var(--accent-hover);
}
.gantt-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.gantt-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 30px;
  border-bottom: 1px solid var(--border);
}
.gantt-row:last-child {
  border-bottom: none;
}
.gantt-label {
  padding: 0.35rem 0.5rem;
  background: var(--table-head);
  border-right: 1px solid var(--border);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt-track {
  position: relative;
  padding: 0.25rem 0.4rem;
}
.gantt-bar {
  position: absolute;
  top: 5px;
  height: 18px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
}
.gantt-bar.not-started { background: #64748b; }
.gantt-bar.in-progress { background: #d97706; }
.gantt-bar.blocked { background: #dc2626; }
.gantt-bar.done { background: #059669; }

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 0.7rem;
}
.board-col {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--table-head);
  min-height: 180px;
}
.board-col h4 {
  margin: 0;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}
.task-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0.5rem;
  padding: 0.45rem;
  font-size: 0.82rem;
}
.task-card strong {
  display: block;
  margin-bottom: 0.2rem;
}
.task-card-meta {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
}

.actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.totals {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}
.muted {
  color: var(--muted);
  font-size: 0.85rem;
}
.totals span.bad {
  color: var(--bad);
}
.totals span.good {
  color: var(--good);
}

.labour-sync-row td {
  opacity: 0.92;
  font-style: italic;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

.link-btn:hover {
  color: var(--accent-hover, var(--accent));
}

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}
.kpi .label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kpi .value {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

/* Status pills */
.pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pill-paid {
  background: var(--status-paid);
  color: #065f46;
}
.pill-ordered {
  background: var(--status-ordered);
  color: #1e3a8a;
}
.pill-unassigned {
  background: var(--status-unassigned);
  color: #991b1b;
}
.pill-high {
  background: #fee2e2;
  color: #991b1b;
}
.pill-medium {
  background: #fef3c7;
  color: #92400e;
}
.pill-low {
  background: #e0e7ff;
  color: #3730a3;
}
.pill-bonus {
  background: #ede9fe;
  color: #5b21b6;
}
.pill-done {
  background: var(--status-done);
  color: #065f46;
}
.pill-progress {
  background: var(--status-progress);
  color: #92400e;
}
.pill-todo {
  background: var(--status-todo);
  color: var(--label);
}
.pill-blocked {
  background: var(--status-blocked);
  color: #991b1b;
}

/* Chip list (areas/types settings) */
.chip-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip-list li {
  background: var(--chip-bg);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}
.chip-list li button {
  background: transparent;
  color: var(--secondary);
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}
.chip-list li button:hover {
  color: var(--bad);
}

/* Form actions (shared) */
.form-actions {
  display: flex;
  gap: 0.5rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}
.modal-backdrop[hidden] {
  display: none;
}
.modal {
  background: var(--panel);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px var(--shadow);
  padding: 1rem 1.25rem 1.25rem;
}
.modal.modal-wide {
  width: min(720px, 100%);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.modal-header h3 {
  margin: 0;
}
.modal-close {
  background: transparent;
  color: var(--secondary);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 0.4rem;
}
.modal-close:hover {
  background: var(--page-bg);
  color: var(--text);
}

/* Toasts */
.toast-region {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 8px 24px var(--shadow);
  font-size: 0.88rem;
  animation: toast-in 0.2s ease-out;
}
.toast-success {
  border-left-color: var(--good);
}
.toast-error {
  border-left-color: var(--bad);
}
.toast-warning {
  border-left-color: #d97706;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Empty table cells */
.empty-cell {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 1.25rem 0.5rem !important;
}

.field-label {
  font-size: 0.82rem;
  color: var(--label);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.task-costs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.task-cost-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  background: var(--table-head);
}
.task-cost-row .form-grid {
  margin-bottom: 0;
}
.task-cost-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--label);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--table-head);
}
.skills-grid label {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text);
}
.skills-grid input[type="checkbox"] {
  margin: 0;
}
.skills-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.skill-chip {
  background: var(--chip-bg);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
}

.read-only-banner {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.9rem;
}

body.read-only-workspace .content input:not(.field-local-input),
body.read-only-workspace .content textarea,
body.read-only-workspace .content select {
  pointer-events: none;
  opacity: 0.72;
}
body.read-only-workspace .content button {
  pointer-events: none;
  opacity: 0.72;
}
body.read-only-workspace .content .field-local-input {
  pointer-events: auto;
  opacity: 1;
}

.field-card {
  margin-bottom: 1rem;
}
.field-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field-task-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.field-task-toggle {
  min-height: 44px;
  min-width: 5.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--table-head);
  cursor: pointer;
}
.field-task-toggle:not(:disabled):hover {
  background: #e2e8f0;
}
.field-mat-checklist .field-mat-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.field-mat-checklist .field-local-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Theme picker */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}
.theme-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem;
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.theme-option:hover {
  border-color: var(--accent);
}
.theme-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}
.theme-option strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.theme-swatches {
  display: flex;
  gap: 0.25rem;
}
.theme-swatch {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 800px) {
  body {
    grid-template-columns: 1fr;
  }
  .sidebar-toggle {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
    gap: 0.35rem;
    border-bottom: 1px solid var(--sidebar-border);
  }
  body:not(.sidebar-open) .sidebar nav,
  body:not(.sidebar-open) .nav-groups,
  body:not(.sidebar-open) .sidebar-footer,
  body:not(.sidebar-open) .project-switcher {
    display: none;
  }
  .sidebar nav {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
  }
  .sidebar-footer {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
  }
  .brand {
    min-width: 0;
    width: 100%;
  }
  .content {
    padding: 0.85rem 1rem;
  }
  .view-header h2 {
    font-size: 1.25rem;
  }
}
@media (max-width: 1000px) {
  .board {
    grid-template-columns: 1fr 1fr;
  }
}

.global-search-wrap {
  display: block;
  padding: 0 0.75rem 0.5rem;
  font-size: 0.85rem;
}
.global-search-wrap input {
  width: 100%;
  margin-top: 0.25rem;
}
.search-results {
  padding: 0 0.75rem 0.5rem;
  max-height: 12rem;
  overflow-y: auto;
}
.search-hit {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
  font-size: 0.85rem;
}
.search-hit:hover {
  border-color: var(--accent);
}

.task-card[draggable="true"] {
  cursor: grab;
}
.board-col.drag-over {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

@media print {
  .sidebar,
  .auth-gate,
  .toolbar,
  .modal-backdrop,
  .toast-region,
  .delete-btn,
  button.secondary,
  .nav-btn,
  .global-search-wrap,
  .search-results {
    display: none !important;
  }
  .content {
    padding: 0;
  }
  .view {
    display: block !important;
  }
  .view:not(.active) {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
