:root {
  --wf-ui-bg: #f6f8fb;
  --wf-ui-panel: rgba(255, 255, 255, 0.9);
  --wf-ui-border: #e1e6ed;
  --wf-ui-border-strong: #cfd8e3;
  --wf-ui-text: #111827;
  --wf-ui-muted: #667085;
  --wf-ui-primary: #0f766e;
  --wf-ui-primary-hover: #115e59;
  --wf-ui-focus: rgba(15, 118, 110, 0.13);
  --wf-ui-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

body[data-wf-page] {
  color: var(--wf-ui-text);
  background-color: var(--wf-ui-bg);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body[data-wf-page]:not([data-wf-page="tavern"])::before {
  background-image:
    linear-gradient(rgba(246, 248, 251, 0.57), rgba(246, 248, 251, 0.57)),
    url("./school-of-athens-bg.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: none;
}

body[data-wf-page="tavern"]::before {
  transform: none;
}

body[data-wf-page]::after {
  display: none !important;
}

body[data-wf-page] :where(button, .btn, input, select, textarea) {
  font: inherit;
  letter-spacing: 0;
}

body[data-wf-page] :where(button, .btn) {
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

body[data-wf-page] :where(input, select, textarea) {
  border-radius: 8px;
  border-color: var(--wf-ui-border-strong);
}

body[data-wf-page] :where(button, .btn, input, select, textarea):focus-visible {
  outline: 3px solid var(--wf-ui-focus);
  outline-offset: 1px;
}

body[data-wf-page] :where(
  .top-strip,
  .strip-col,
  .tile,
  .card,
  .panel,
  .hero,
  .sub-card,
  .project,
  .summary-strip,
  .view-nav,
  .side-panel,
  .content-panel,
  .auth-gate,
  .modal
) {
  border-radius: 8px;
  background-color: var(--wf-ui-panel);
  box-shadow: var(--wf-ui-shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body[data-wf-page] :where(
  .wrap,
  .container,
  .shell,
  .top-strip,
  .strip-col,
  .tile,
  .card,
  .panel,
  .hero,
  .auth-gate
) {
  animation-delay: 0s !important;
  animation-duration: 380ms !important;
}

body[data-wf-page] :where(.brand h1, .hero h1, .top h1, h1.title) {
  margin-bottom: 6px;
  font-family: "Times New Roman", "Noto Serif SC", serif;
  font-size: 28px;
  line-height: 1.15;
}

body[data-wf-page] :where(.eyebrow, .kicker, .module-kicker) {
  color: var(--wf-ui-primary);
  font-size: 12px;
  font-weight: 800;
}

body[data-wf-page] :where(.muted, .desc, .meta) {
  color: var(--wf-ui-muted);
}

body[data-wf-page] :where(.icon-button, .wf-icon-button) {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
}

body[data-wf-page] .tile .btn {
  border-radius: 8px;
}

body[data-wf-page] .wfai-launcher {
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  border-radius: 50%;
  font-size: 15px;
}

body[data-wf-page] .wfai-icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 6px;
  font-size: 20px;
}

body[data-wf-page] .wfai-input,
body[data-wf-page] .wfai-send {
  border-radius: 7px;
}

body[data-wf-page] .wfai-send {
  min-height: 42px;
  padding: 0;
  font-size: 21px;
}

body[data-wf-page="tavern"] .btn {
  min-height: 44px;
  padding: 11px 12px;
  font-size: 14px;
}

body[data-wf-page] :where(
  .tile,
  .book-item,
  .project-brief,
  .book-row,
  .entry-row,
  .archive-row,
  .task-row,
  .item-row
) {
  content-visibility: auto;
  contain-intrinsic-size: auto 96px;
}

@media (max-width: 600px) {
  body[data-wf-page]:not([data-wf-page="tavern"])::before {
    background-image:
      linear-gradient(rgba(246, 248, 251, 0.6), rgba(246, 248, 251, 0.6)),
      url("./school-of-athens-bg-mobile.jpg");
  }

  body[data-wf-page] :where(button, .btn) {
    min-height: 40px;
  }

  body[data-wf-page] :where(.icon-button, .wf-icon-button) {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  body[data-wf-page] .wfai-launcher {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
  }

  body[data-wf-page] .wfai-icon-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  body[data-wf-page] .wfai-send {
    min-height: 42px;
  }

  body[data-wf-page] :where(.brand h1, .hero h1, .top h1, h1.title) {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-wf-page] *,
  body[data-wf-page] *::before,
  body[data-wf-page] *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
