.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(237, 241, 240, 0.86);
  border-bottom: 1px solid rgba(21, 36, 31, 0.1);
}

.site-header-inner {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.site-logo-mark {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 1.7rem;
  padding: 0 0.4rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #128577, #0a544c);
  color: #f4fffc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-logo-text {
  font-weight: 700;
  font-size: 0.98rem;
  color: #15241f;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-dropdown {
  position: relative;
}

.nav-drop-btn {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-drop-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: min(720px, 92vw);
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(21, 36, 31, 0.12);
  background: rgba(247, 250, 248, 0.98);
  box-shadow: 0 18px 40px rgba(21, 36, 31, 0.14);
  z-index: 60;
}

.nav-drop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
}

.nav-drop-link {
  display: block;
  text-decoration: none;
  color: #2a3d38;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 0.65rem;
  border-radius: 9px;
}

.nav-drop-link:hover,
.nav-drop-link.is-active {
  background: rgba(13, 110, 99, 0.1);
  color: #0a544c;
}

.site-nav-link {
  text-decoration: none;
  color: #5a6d66;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.42rem 0.62rem;
  border-radius: 9px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav-link:hover {
  color: #0a544c;
  background: rgba(13, 110, 99, 0.08);
}

.site-nav-link.is-active {
  color: #0a544c;
  background: rgba(13, 110, 99, 0.12);
}

.site-nav-support {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(21, 36, 31, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #15241f;
}

/* Shared tool panel helpers */
.tool-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(21, 36, 31, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(21, 36, 31, 0.1);
  padding: 1.25rem;
}

.tool-grid {
  display: grid;
  gap: 1rem;
}

.tool-grid.two {
  grid-template-columns: 1.1fr 0.9fr;
}

@media (max-width: 860px) {
  .tool-grid.two {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header-inner {
    position: relative;
  }

  .site-nav-link {
    padding: 0.7rem 0.8rem;
  }

  .nav-drop-panel {
    position: static;
    width: auto;
    max-height: none;
    box-shadow: none;
    border: 0;
    padding: 0.25rem 0 0;
    background: transparent;
  }

  .nav-drop-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.field label,
.field-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.field input[type="text"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(21, 36, 31, 0.14);
  border-radius: 12px;
  background: #f7faf8;
  color: #15241f;
  font: inherit;
  padding: 0.75rem 0.85rem;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(13, 110, 99, 0.28);
  outline-offset: 1px;
  border-color: rgba(13, 110, 99, 0.4);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(21, 36, 31, 0.12);
  background: #f7faf8;
  font-size: 0.9rem;
  cursor: pointer;
}

.check-item input {
  accent-color: #0d6e63;
}

.result-box {
  border-radius: 12px;
  border: 1px solid rgba(21, 36, 31, 0.12);
  background: #f7faf8;
  padding: 0.85rem 0.95rem;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  min-height: 3rem;
}

.unit-table {
  width: 100%;
  border-collapse: collapse;
}

.unit-table th,
.unit-table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid rgba(21, 36, 31, 0.08);
  font-size: 0.92rem;
}

.unit-table th {
  color: #5a6d66;
  font-weight: 600;
}

.unit-table input {
  width: 100%;
  border: 1px solid rgba(21, 36, 31, 0.14);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  padding: 0.55rem 0.65rem;
}

.hint {
  margin: 0.35rem 0 0;
  color: #5a6d66;
  font-size: 0.86rem;
}

.field input[type="range"] {
  width: 100%;
  accent-color: #0d6e63;
}

.tool-card h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display, "DM Serif Display", Georgia, serif);
  font-weight: 400;
  font-size: 1.25rem;
}

/* Site footer */
.site-footer {
  position: relative;
  width: 100%;
  margin-top: 2.5rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) clamp(1.75rem, 3vw, 2.25rem);
  color: rgba(244, 255, 252, 0.82);
  animation: enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.site-footer-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 80% 0%, rgba(18, 133, 119, 0.35), transparent 60%),
    linear-gradient(165deg, #0a3d38 0%, #0d6e63 50%, #0a544c 100%);
  z-index: 0;
}

.site-footer-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.site-footer-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer-brand {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}

.site-footer-mark {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 1.7rem;
  padding: 0 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f4fffc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-footer-name {
  font-family: var(--font-display, "DM Serif Display", Georgia, serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.site-footer-desc {
  margin: 0;
  max-width: 28rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(244, 255, 252, 0.62);
}

.site-footer-col {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.site-footer-heading {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 255, 252, 0.55);
}

.site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer-links a {
  color: rgba(244, 255, 252, 0.82);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-footer-links a:hover {
  color: #fff;
}

.site-footer-more {
  color: rgba(244, 255, 252, 0.55) !important;
  font-size: 0.82rem !important;
}

.site-footer-more:hover {
  color: rgba(244, 255, 252, 0.9) !important;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.35rem;
}

.site-footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(244, 255, 252, 0.48);
}

.site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  font-size: 0.82rem;
}

.site-footer-meta a {
  color: rgba(244, 255, 252, 0.72);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.site-footer-meta a:hover {
  color: #fff;
}

.site-footer-support-link,
.site-footer-support-btn {
  border: 0;
  background: none;
  padding: 0;
  color: rgba(244, 255, 252, 0.72);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}

.site-footer-support-link:hover,
.site-footer-support-btn:hover {
  color: #fff;
}

.site-footer-links .site-footer-support-btn {
  width: 100%;
}

.site-footer-note {
  color: rgba(244, 255, 252, 0.55);
  padding-right: 0.65rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 960px) {
  .site-footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer {
    margin-top: 1.75rem;
  }

  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-note {
    border-right: 0;
    padding-right: 0;
    width: 100%;
  }
}

/* Online support widget */
.support-widget {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 70;
}

.support-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 48px;
  padding: 0.55rem 0.95rem 0.55rem 0.8rem;
  border: 1px solid rgba(13, 110, 99, 0.28);
  border-radius: 999px;
  background: linear-gradient(145deg, #128577, #0a544c);
  color: #f4fffc;
  box-shadow: 0 12px 32px rgba(13, 110, 99, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(13, 110, 99, 0.34);
}

.support-fab-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.support-fab-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.support-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(320px, calc(100vw - 2rem));
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(21, 36, 31, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 48px rgba(21, 36, 31, 0.18);
}

.support-panel[hidden] {
  display: none !important;
}

.support-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.support-panel-title {
  display: block;
  font-family: var(--font-display, "DM Serif Display", Georgia, serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: #15241f;
}

.support-panel-tip {
  margin: 0.25rem 0 0;
  color: #5a6d66;
  font-size: 0.84rem;
  line-height: 1.5;
}

.support-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(13, 110, 99, 0.08);
  color: #0a544c;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.support-hours {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(13, 110, 99, 0.08);
  color: #0a544c;
  font-size: 0.8rem;
}

.support-actions {
  display: grid;
  gap: 0.5rem;
}

.support-action {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(21, 36, 31, 0.1);
  border-radius: 12px;
  background: #f7faf8;
  color: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.support-action:hover {
  border-color: rgba(13, 110, 99, 0.28);
  background: rgba(13, 110, 99, 0.06);
}

.support-action-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: rgba(13, 110, 99, 0.12);
  color: #0a544c;
  font-size: 0.78rem;
  font-weight: 700;
}

.support-action-body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.support-action-body strong {
  font-size: 0.88rem;
  color: #15241f;
}

.support-action-body span {
  font-size: 0.8rem;
  color: #5a6d66;
  word-break: break-all;
}

.support-qr {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(21, 36, 31, 0.08);
}

.support-qr img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(21, 36, 31, 0.1);
  background: #fff;
}

.support-qr span {
  font-size: 0.78rem;
  color: #5a6d66;
}

.support-toast {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(13, 110, 99, 0.12);
  color: #0a544c;
  font-size: 0.82rem;
  text-align: center;
}

.support-toast[hidden] {
  display: none !important;
}

body.support-open {
  overflow: hidden;
}
