:root {
  --page: #f3f6f5;
  --panel: #ffffff;
  --panel-strong: #fbfdfc;
  --ink: #16201d;
  --muted: #66736f;
  --line: #dce5e1;
  --green: #16715d;
  --blue: #285fc7;
  --amber: #b7791f;
  --red: #dc3f3f;
  --teal-soft: #e7f4ef;
  --blue-soft: #eaf1ff;
  --amber-soft: #fff6e7;
  --soft-blue: var(--blue-soft);
  --shadow: 0 1px 2px rgba(22, 32, 29, 0.05), 0 12px 30px rgba(22, 32, 29, 0.08);
  --shadow-soft: 0 10px 24px rgba(22, 32, 29, 0.07);
  --chrome-bg: rgba(251, 253, 252, 0.9);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #eef4f2 0, #f6f8f7 280px, #f3f6f5 100%);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

::selection {
  color: #fff;
  background: rgba(22, 113, 93, 0.9);
}

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

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled,
select:disabled,
input:disabled,
textarea:disabled,
[aria-busy="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}

button,
input,
select,
textarea,
.tab,
.filter-chip,
.calendar-course,
.calendar-block,
.board,
.panel-card {
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

@media (hover: hover) {
  .board:hover,
  .panel-card:hover,
  .kpis article:hover {
    box-shadow: 0 16px 34px rgba(22, 32, 29, 0.1);
  }

  button:hover {
    transform: translateY(-1px);
  }
}

button:active {
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

.screen-reader-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.global-loading {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.16);
  font-size: 13px;
  font-weight: 900;
}

.global-loading span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: loadingPulse 0.9s ease-in-out infinite alternate;
}

@keyframes loadingPulse {
  from {
    opacity: 0.35;
    transform: scale(0.72);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
