/* Bewow – status.bewow.cz. Tokeny a komponenty převzaté z webu Bewow Agency (global.css, Start, Reference). */

@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2-variations"), url(fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/instrument-sans-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/instrument-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --ink: #07080B;
  --ink-2: #0E1016;
  --paper: #F2F4EE;
  --soft: #B9BFC9;
  --mute: #A3AAB6;
  --mute-2: #868E9C;
  --lime: #CCFF00;
  --blue: #3B1CC9;
  --green: #5CFF6B;

  /* Stavy – v paletě webu */
  --ok: var(--green);
  --high: var(--lime);
  --warn: #FFB547;
  --bad: #FF7A7A;
  --bad-text: #FF9A9A;
  --none: rgb(134 142 156 / 0.32);

  --font-sans: "Instrument Sans Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --shell: clamp(1rem, 4.45vw, 4rem);
  --shell-max: 72rem;
  --r-xl: 32px;
  --r-l: 28px;
  --r-m: 20px;
  --r-s: 14px;
  --surface-bg: rgb(255 255 255 / 0.04);
  --surface-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.09);
  --glass-bg: rgb(14 15 20 / 0.55);
  --glass-filter: blur(24px) saturate(150%);
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 30px 80px -30px rgb(0 0 0 / 0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

[id] {
  scroll-margin-top: 2rem;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 50;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 16px;
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell);
}

/* ---------- Pohyblivé gradienty (jen transform, bez filter blur) ---------- */

.blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  contain: strict;
}

.blob.is-blue {
  background: radial-gradient(circle closest-side, rgb(59 28 201 / 0.8), rgb(59 28 201 / 0.32) 48%, rgb(59 28 201 / 0) 100%);
}

.blob.is-blue-soft {
  background: radial-gradient(circle closest-side, rgb(59 28 201 / 0.6), rgb(59 28 201 / 0.22) 50%, rgb(59 28 201 / 0) 100%);
}

.blob.is-green-soft {
  background: radial-gradient(circle closest-side, rgb(92 255 107 / 0.32), rgb(92 255 107 / 0.12) 50%, rgb(92 255 107 / 0) 100%);
}

.b1 { width: 1000px; height: 1000px; left: -380px; top: -420px; }
.b2 { width: 800px; height: 800px; right: -320px; top: 18%; }
.b3 { width: 900px; height: 900px; left: 20%; bottom: -560px; }

.drift-1 { animation: drift-1 16s ease-in-out infinite alternate; }
.drift-2 { animation: drift-2 13s ease-in-out infinite alternate; }
.drift-3 { animation: drift-3 18s ease-in-out infinite alternate; }

@keyframes drift-1 {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(220px, 90px, 0); }
  66% { transform: translate3d(60px, 200px, 0); }
  100% { transform: translate3d(300px, -60px, 0); }
}

@keyframes drift-2 {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(-240px, 120px, 0); }
  66% { transform: translate3d(-80px, -110px, 0); }
  100% { transform: translate3d(-320px, 40px, 0); }
}

@keyframes drift-3 {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(200px, -140px, 0); }
  66% { transform: translate3d(-140px, -40px, 0); }
  100% { transform: translate3d(90px, 120px, 0); }
}

/* ---------- Tlačítka ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 12px 40px -8px rgb(204 255 0 / 0.45);
  transition: box-shadow 0.5s var(--ease-out-soft), background-color 0.5s var(--ease-out-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--ink);
  background-color: var(--paper);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 4px rgb(204 255 0 / 0.55), 0 16px 56px -6px rgb(204 255 0 / 0.55);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-roll {
  display: inline-grid;
  overflow: hidden;
  line-height: 1.25;
}

.btn-roll > span {
  grid-area: 1 / 1;
  transition: transform 0.55s var(--ease-out-soft);
}

.btn-roll-b {
  transform: translateY(115%);
}

.btn-primary:hover .btn-roll-a,
.btn-primary:focus-visible .btn-roll-a {
  transform: translateY(-115%);
}

.btn-primary:hover .btn-roll-b,
.btn-primary:focus-visible .btn-roll-b {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--paper);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), inset 0 0 0 1px rgb(255 255 255 / 0.14);
  transition: box-shadow 0.4s var(--ease-out-soft), color 0.4s var(--ease-out-soft);
}

.btn-ghost:hover {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 0 0 1.5px var(--lime);
}

.btn-ghost.is-lime {
  color: var(--ink);
  background: var(--lime);
  font-weight: 600;
  white-space: normal;
  text-align: center;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6);
}

.btn-ghost.is-lime:hover {
  background: var(--paper);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 4px rgb(204 255 0 / 0.55);
}

/* ---------- Hlavička ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(20px, 3vw, 36px);
}

.logo {
  display: block;
  flex: none;
}

.logo img {
  display: block;
  width: clamp(88px, 22vw, 112px);
  height: auto;
}

/* ---------- Souhrn ---------- */

.hero {
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(8px, 2vw, 24px);
}

.summary {
  --tone: var(--mute-2);
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 24px);
}

.summary[data-overall="ok"] { --tone: var(--ok); }
.summary[data-overall="degraded"] { --tone: var(--warn); }
.summary[data-overall="outage"] { --tone: var(--bad); }

.summary-dot {
  position: relative;
  flex: none;
  --d: clamp(12px, 1.5vw, 20px);
  width: var(--d);
  aspect-ratio: 1;
  margin-top: calc(0.48em - var(--d) / 2);
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5.5rem);
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--tone) 18%, transparent), 0 0 32px color-mix(in srgb, var(--tone) 60%, transparent);
  transition: background-color 0.5s var(--ease-out-soft), box-shadow 0.5s var(--ease-out-soft);
}

.summary-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--tone);
  animation: pulse 2.4s var(--ease-out-soft) infinite;
}

.summary[data-overall="loading"] .summary-dot::after {
  animation: none;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

.summary-title {
  margin: 0;
  min-width: 0;
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 600;
  overflow-wrap: break-word;
}

.lead {
  margin: 24px 0 0;
  max-width: 34em;
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--mute);
}

.updated {
  margin: 0;
  min-height: 1.5em;
  font-size: 15px;
  color: var(--mute-2);
  font-variant-numeric: tabular-nums;
}

.updated strong {
  font-weight: 500;
  color: var(--soft);
}

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: var(--r-s);
  font-size: 15px;
  color: #FFC2C2;
  background: rgb(255 90 90 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 122 122 / 0.4);
}

.notice.is-warn {
  color: #FFDDA6;
  background: rgb(255 181 71 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 181 71 / 0.4);
}

.notice p {
  margin: 0;
  flex: 1 1 16rem;
}

.notice button {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

/* ---------- Bloky ---------- */

.block {
  padding-block: clamp(40px, 5vw, 64px);
  outline: none;
}

.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.block-title {
  margin: 0;
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.block-sub {
  margin: 0;
  font-size: 15px;
  color: var(--mute);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--mute);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.sw {
  display: inline-block;
  width: 8px;
  height: 18px;
  border-radius: 3px;
  background: var(--none);
}

.sw.is-full, .day.is-full { background: var(--ok); }
.sw.is-high, .day.is-high { background: var(--high); }
.sw.is-mid, .day.is-mid { background: var(--warn); }
.sw.is-low, .day.is-low { background: var(--bad); }

/* ---------- Služby ---------- */

.services {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  min-width: 0;
  padding: clamp(18px, 3vw, 32px);
  border-radius: var(--r-l);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-filter);
  box-shadow: var(--glass-shadow);
}

.service.is-skeleton {
  height: 168px;
  background: linear-gradient(100deg, rgb(255 255 255 / 0.03) 30%, rgb(255 255 255 / 0.07) 50%, rgb(255 255 255 / 0.03) 70%) 0 0 / 300% 100%, var(--glass-bg);
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  to { background-position: -150% 0, 0 0; }
}

.service-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
}

.service-name {
  margin: 0;
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.service-desc {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--mute);
}

.badge {
  --tone: var(--mute-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 40%, transparent);
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.badge.is-ok { --tone: var(--ok); }
.badge.is-problem { --tone: var(--bad); }
.badge.is-unknown { --tone: var(--soft); }
.badge.is-ongoing { --tone: var(--warn); }

.uptimes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 20px 0 0;
}

.uptimes div {
  display: flex;
  flex-direction: column-reverse;
}

.uptimes dt {
  font-size: 13px;
  color: var(--mute-2);
}

.uptimes dd {
  margin: 0;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.uptimes.is-total {
  gap: 8px 40px;
  margin-top: clamp(24px, 3vw, 36px);
}

.uptimes.is-total dt {
  font-size: 14px;
  color: var(--mute);
}

.uptimes.is-total dd {
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  letter-spacing: -0.04em;
}

.uptimes dd.is-none {
  font-weight: 500;
  color: var(--mute-2);
}

.bar-wrap {
  margin-top: 20px;
}

.bar {
  display: flex;
  gap: clamp(1px, 0.25vw, 3px);
  height: 40px;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bar:focus-within {
  outline: none;
}

.day {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--none);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out-soft), opacity 0.25s var(--ease-out-soft);
  transform-origin: bottom;
}

.day:focus {
  outline: none;
}

.day:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
  border-radius: 2px;
}

.bar.is-active .day:not(.is-current) {
  opacity: 0.55;
}

.day.is-current {
  transform: scaleY(1.12);
}

.bar-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--mute-2);
}

.bar-scale span:nth-child(2) {
  text-align: center;
}

/* ---------- Tooltip ---------- */

.tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: min(260px, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: var(--r-s);
  font-size: 14px;
  line-height: 1.35;
  color: var(--paper);
  background: rgb(12 13 18 / 0.82);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16), 0 10px 30px -10px rgb(0 0 0 / 0.6);
  pointer-events: none;
  white-space: nowrap;
}

.tip-date {
  font-weight: 600;
}

.tip-value {
  font-variant-numeric: tabular-nums;
}

.tip-value i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--none);
  vertical-align: 0.05em;
}

.tip-value i.is-full { background: var(--ok); }
.tip-value i.is-high { background: var(--high); }
.tip-value i.is-mid { background: var(--warn); }
.tip-value i.is-low { background: var(--bad); }

.tip-down {
  color: var(--mute);
}

/* ---------- Incidenty ---------- */

.incidents {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.incident {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px 24px;
  padding: 20px clamp(18px, 2.4vw, 28px);
  border-radius: var(--r-m);
  background: var(--surface-bg);
  box-shadow: var(--surface-shadow);
}

.incident.is-ongoing {
  background: rgb(255 181 71 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 181 71 / 0.35);
}

.incident-main {
  min-width: 0;
}

.incident-service {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lime);
}

.incident-title {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.incident-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: 10px 24px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.incident-meta div {
  min-width: 0;
}

.incident-meta dt {
  font-size: 13px;
  color: var(--mute-2);
}

.incident-meta dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 500;
}

.incident-meta .is-ongoing {
  color: var(--warn);
  font-weight: 600;
}

.empty {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 22px clamp(18px, 2.4vw, 28px);
  border-radius: var(--r-m);
  font-size: 16px;
  color: var(--soft);
  background: var(--surface-bg);
  box-shadow: var(--surface-shadow);
}

.empty svg {
  flex: none;
  color: var(--ok);
}

/* ---------- Nahlášení výpadku (formulář z webu – Start.astro) ---------- */

.report {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-bottom: clamp(64px, 8vw, 120px);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(16px, 2vw, 28px);
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-filter);
  box-shadow: var(--glass-shadow);
}

.fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-s);
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  transition: box-shadow 0.3s var(--ease-out-soft), background-color 0.3s var(--ease-out-soft);
}

.field textarea {
  resize: vertical;
  min-height: 132px;
}

.select {
  position: relative;
}

.field select {
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
  text-overflow: ellipsis;
}

.field select option {
  color: var(--paper);
  background: var(--ink-2);
}

.select svg {
  position: absolute;
  right: 18px;
  top: 50%;
  translate: 0 -50%;
  color: var(--mute);
  pointer-events: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--mute-2);
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1.5px var(--lime);
}

.field [aria-invalid="true"],
.field [aria-invalid="true"]:hover,
.field [aria-invalid="true"]:focus {
  box-shadow: inset 0 0 0 1.5px var(--bad);
}

.error {
  margin: 0;
  font-size: 13px;
  color: var(--bad-text);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.foot .btn-primary {
  width: 100%;
}

.consent {
  margin: -10px 0 0;
  font-size: 12px;
  color: var(--mute-2);
}

.consent a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-color: rgb(204 255 0 / 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s var(--ease-out-soft);
}

.consent a:hover {
  text-decoration-color: currentColor;
}

.foot-note {
  margin: 0;
  font-size: 14px;
  color: var(--mute);
}

.fallback {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-s);
  color: #FFDDA6;
  background: rgb(255 181 71 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 181 71 / 0.4);
}

.fallback.is-info {
  color: var(--soft);
  background: rgb(204 255 0 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(204 255 0 / 0.3);
}

.fallback-text {
  margin: 0;
  font-size: 15px;
}

.fallback-text a,
.done-text a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-color: rgb(204 255 0 / 0.35);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.done,
.off {
  gap: 12px;
  outline: none;
}

.done p,
.off p {
  margin: 0;
}

.done-title {
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--lime);
}

.done-text {
  font-size: 17px;
  color: var(--soft);
}

/* ---------- Patička ---------- */

.foot-site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px 40px;
  font-size: 14px;
  color: var(--mute-2);
}

.foot-site::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--shell);
  right: var(--shell);
  height: 1px;
  background: rgb(255 255 255 / 0.08);
}

.foot-site p {
  margin: 0;
}

.foot-site a {
  color: var(--soft);
}

.foot-site a:hover {
  color: var(--lime);
}

/* ---------- Responzivita ---------- */

@media (width >= 40rem) {
  .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field.is-wide {
    grid-column: 1 / -1;
  }

  .incident {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

@media (width >= 64rem) {
  .report {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: start;
  }
}

@media (width < 40rem) {
  .panel {
    padding: 20px;
    border-radius: var(--r-m);
  }

  .bar {
    height: 36px;
    gap: 1px;
  }

  .day {
    border-radius: 1.5px;
  }

  .legend {
    gap: 6px 14px;
  }
}

@media (width < 22rem) {
  .btn-ghost {
    padding: 0 14px;
    font-size: 14px;
  }

  .bar-scale span:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .drift-1, .drift-2, .drift-3,
  .summary-dot::after,
  .service.is-skeleton {
    animation: none;
  }

  .btn-primary,
  .btn-ghost,
  .btn-roll > span,
  .day,
  .summary-dot,
  .field input,
  .field textarea,
  .field select {
    transition: none;
  }

  .btn-roll-b {
    display: none;
  }

  .btn-primary:hover .btn-roll-a,
  .btn-primary:focus-visible .btn-roll-a {
    transform: none;
  }

  .day.is-current {
    transform: none;
  }
}

@media (forced-colors: active) {
  .day,
  .sw {
    forced-color-adjust: none;
  }
}
