/* UI redesign ? Data Dashboard + restraint (ui-design-brain) */

:root {
  --display-font: 'Markazi Text', 'Vazirmatn', serif;
  --space: 8px;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Crect x='2' y='2' width='28' height='28' rx='9' fill='%23ff6900'/%3E%3Cpath d='M10.5 13.25L16 18.75L21.5 13.25' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --select-chevron-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Crect x='2' y='2' width='28' height='28' rx='9' fill='%23e05a00'/%3E%3Cpath d='M10.5 13.25L16 18.75L21.5 13.25' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --select-chevron-disabled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Crect x='2' y='2' width='28' height='28' rx='9' fill='%2394a3b8'/%3E%3Cpath d='M10.5 13.25L16 18.75L21.5 13.25' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body.theme-dark {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Crect x='2' y='2' width='28' height='28' rx='9' fill='%23ff6900'/%3E%3Cpath d='M10.5 13.25L16 18.75L21.5 13.25' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --select-chevron-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Crect x='2' y='2' width='28' height='28' rx='9' fill='%23ff8533'/%3E%3Cpath d='M10.5 13.25L16 18.75L21.5 13.25' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --select-chevron-disabled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Crect x='2' y='2' width='28' height='28' rx='9' fill='%23475569'/%3E%3Cpath d='M10.5 13.25L16 18.75L21.5 13.25' stroke='%23cbd5e1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body {
  font-size: 15px;
  line-height: 1.65;
}

h1,
h2,
h3,
.hero-title,
.brand-t1,
.empty-title {
  font-family: var(--display-font);
  letter-spacing: -0.02em;
}

.btn-primary,
.hero-cta,
.btn-search.btn-primary,
.notify-portal-cta.btn-primary,
.report-submit.btn-primary {
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  padding: 0 16px;
}

.btn-primary:hover,
.hero-cta:hover,
.btn-search.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-secondary,
.btn-locate-text {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 0 14px;
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--brand);
}

.btn-compact {
  min-height: 40px;
  font-size: 0.86rem;
}

.hidden {
  display: none !important;
}

.back-chip-quiet {
  opacity: 0.85;
  font-size: 0.82rem;
}

.theme-toggle {
  min-height: 44px;
  gap: 8px;
}

.theme-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.theme-icon svg {
  width: 18px;
  height: 18px;
}

.hero-banner-slim {
  padding: calc(var(--space) * 3) calc(var(--space) * 2.5);
}

.hero-banner-slim .hero-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  max-width: none;
}

.hero-banner-slim .hero-banner-text {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 640px;
}

.hero-banner-slim .hero-kicker {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand);
  margin: 0 0 8px;
}

.hero-banner-slim .hero-title {
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 10px;
}

.hero-banner-slim .hero-desc {
  margin: 0 0 18px;
  max-width: 36em;
  color: var(--ink-soft);
}

.hero-banner-slim .hero-cta {
  width: auto;
}

/* ????? ???? ???? ? ???? ???? ?? */
.hero-live-card {
  position: relative;
  z-index: 1;
  flex: 0 1 473px;
  min-width: 400px;
  max-width: 510px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
}

.hero-live-title {
  margin: 0 0 6px;
  font-family: var(--display-font);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.hero-live-guide {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero-live-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.hero-live-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px 8px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
}

.hero-live-value {
  font-family: var(--display-font);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}

.hero-live-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-faint);
}

.hero-live-stat.live .hero-live-value {
  color: var(--status-live);
}

.hero-live-stat.warn .hero-live-value {
  color: var(--status-warn);
}

.hero-live-stat.done .hero-live-value {
  color: var(--status-done);
}

.hero-live-stat.total .hero-live-value {
  color: var(--brand);
}

.hero-live-card.is-alerting .hero-live-stat.live {
  border-color: color-mix(in srgb, var(--status-live) 45%, var(--border));
  background: color-mix(in srgb, var(--status-live) 10%, var(--surface-2));
}

.hero-live-trust {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .hero-banner-slim .hero-banner-content {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-live-card {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .hero-live-stat {
    padding: 8px 4px 6px;
  }

  .hero-live-value {
    font-size: 1.25rem;
  }
}

.search-bar-panel {
  --sb-control-h: 46px;
  --sb-field-radius: 12px;
  position: sticky;
  top: 64px;
  z-index: 20;
  margin-bottom: 16px;
  padding: clamp(14px, 2vw, 20px);
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 55%),
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--surface) 92%, var(--brand-soft)) 0%,
      var(--surface) 48%,
      color-mix(in srgb, var(--surface) 94%, var(--surface-2)) 100%
    );
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 6%, transparent) inset,
    0 18px 40px color-mix(in srgb, var(--ink) 6%, transparent);
  backdrop-filter: blur(10px);
}

body.theme-light .search-bar-panel {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 16px 40px rgba(20, 28, 43, 0.06);
}

.search-bar-panel .compact-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(13rem, 1.7fr) auto;
  gap: 12px;
  margin: 0;
  align-items: end;
}

.search-bar-panel .field {
  margin: 0;
  min-width: 0;
}

.search-bar-panel .field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.search-bar-panel .field select,
.search-bar-panel .date-field-wrap > input[type='text'],
.search-bar-panel .search-query-field .dash-search-wrap input {
  box-sizing: border-box;
  width: 100%;
  height: var(--sb-control-h);
  min-height: var(--sb-control-h);
  margin: 0;
  border: 1px solid transparent;
  border-radius: var(--sb-field-radius);
  background: color-mix(in srgb, var(--input-bg) 88%, var(--surface-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.search-bar-panel .search-query-field .dash-search-wrap {
  position: relative;
  width: 100%;
}

.search-bar-panel .search-query-field .dash-search-wrap input {
  padding: 0 46px 0 14px;
  -webkit-appearance: none;
  appearance: none;
}

.search-bar-panel .search-query-field .dash-search-wrap input::-webkit-search-decoration,
.search-bar-panel .search-query-field .dash-search-wrap input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-bar-panel .dash-search-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--brand);
  opacity: 0.85;
  pointer-events: none;
}

.search-bar-panel .field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-inline: 12px 2.9rem;
  background-color: color-mix(in srgb, var(--input-bg) 88%, var(--surface-2));
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: left 0.45rem center;
  background-size: 28px 28px;
}

.search-bar-panel .date-field-wrap {
  position: relative;
}

.search-bar-panel .date-field-wrap > input[type='text'] {
  padding-inline: 12px;
  cursor: pointer;
  caret-color: transparent;
}

.search-bar-panel .field select:hover,
.search-bar-panel .date-field-wrap > input[type='text']:hover,
.search-bar-panel .search-query-field .dash-search-wrap input:hover {
  background-color: var(--input-bg);
}

.search-bar-panel .field select:hover,
.search-bar-panel .field select:focus {
  background-image: var(--select-chevron-hover);
}

.search-bar-panel .field select:focus,
.search-bar-panel .date-field-wrap > input[type='text']:focus,
.search-bar-panel .search-query-field .dash-search-wrap input:focus {
  outline: none;
  background-color: var(--input-bg);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow:
    0 0 0 3px var(--brand-ring),
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
}

.search-bar-panel .field select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-image: var(--select-chevron-disabled);
}

.search-bar-panel .field-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.search-bar-panel .field-actions .btn-search,
.search-bar-panel .field-actions .btn-compact {
  box-sizing: border-box;
  width: auto;
  min-width: 7rem;
  height: var(--sb-control-h);
  min-height: var(--sb-control-h);
  margin: 0;
  padding-inline: 1rem;
  border-radius: var(--sb-field-radius);
  font-size: 0.9rem;
  white-space: nowrap;
}

.search-bar-panel .field-actions .btn-compact {
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--input-bg) 70%, transparent);
  color: var(--ink-soft);
}

.search-bar-panel .field-actions .btn-compact:hover {
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  color: var(--ink);
  background: var(--input-bg);
}

.search-bar-panel .btn-search {
  border: 0;
  clip-path: none;
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--brand) 22%, transparent);
  font-weight: 800;
}

.search-bar-panel .btn-search:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.search-bar-panel .jalali-calendar {
  z-index: 40;
  width: min(280px, calc(100vw - 32px));
}

@media (prefers-reduced-motion: reduce) {
  .search-bar-panel .btn-search,
  .search-bar-panel .field select,
  .search-bar-panel .field input,
  .search-bar-panel .dash-search-wrap input {
    transition: none;
  }

  .search-bar-panel .btn-search:hover {
    transform: none;
    filter: none;
  }
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
}

.status-legend-item {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.status-legend-item strong {
  font-weight: 800;
  margin-inline-end: 4px;
}

.status-legend-item.live,
.status-legend-item.live strong {
  color: var(--status-live);
}

.status-legend-item.warn,
.status-legend-item.warn strong {
  color: var(--status-warn);
}

.status-legend-item.done,
.status-legend-item.done strong {
  color: var(--status-done);
}

.results-approx-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.5;
  width: 100%;
}

/* Shared section heads */
.support-head {
  margin-bottom: 14px;
}

.support-head h2 {
  margin: 0 0 6px;
  font-family: var(--display-font);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--ink);
}

.support-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 40em;
}

/* FAQ + report duo */
.support-block.faq-showcase {
  margin: 28px 0 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 20px;
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--surface) 92%, var(--brand-soft)) 0%,
      var(--surface) 45%,
      color-mix(in srgb, var(--surface) 94%, var(--surface-2)) 100%
    );
  scroll-margin-top: 96px;
  overflow: hidden;
  box-shadow: 0 14px 36px color-mix(in srgb, var(--ink) 5%, transparent);
}

.faq-report-duo {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 0;
  align-items: stretch;
}

.faq-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 16px 16px 14px;
  border-inline-end: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}

.faq-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.faq-panel-copy {
  flex: 1 1 10rem;
  min-width: 0;
}

.faq-panel-copy h2 {
  margin: 0 0 4px;
  font-family: var(--display-font);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.faq-intro-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: 28em;
}

.faq-intro-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand-deep));
  color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--brand) 22%, transparent);
  transition: transform 0.18s ease, filter 0.18s ease;
  flex: 0 0 auto;
}

.faq-intro-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.faq-intro-cta span {
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.9;
}

.faq-intro-cta strong {
  font-size: 1rem;
  font-weight: 900;
}

.support-faq {
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
}

.support-faq.is-scrollable {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: 2px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  max-height: none;
}

.support-faq.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.support-faq.is-scrollable::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink-faint) 45%, transparent);
  border-radius: 999px;
}

.support-faq.is-scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.support-faq-item {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 70%, var(--surface-2));
  padding: 0;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.support-faq-item:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.support-faq-item[open],
.support-faq-item.is-open {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  background: var(--surface);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ink) 5%, transparent);
}

.support-faq-item[hidden] {
  display: none !important;
}

.support-faq-item summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  color: var(--ink);
}

.support-faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand);
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
  min-width: 1.6em;
}

.faq-q {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
}

.faq-toggle {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface-2));
  flex-shrink: 0;
  border: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.support-faq-item[open] .faq-toggle,
.support-faq-item.is-open .faq-toggle {
  background: color-mix(in srgb, var(--brand) 22%, var(--surface));
}

.support-faq-item[open] .faq-toggle::after,
.support-faq-item.is-open .faq-toggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  overflow: hidden;
  padding: 0 14px 14px;
  padding-inline-start: calc(14px + 1.6em + 10px);
  transition:
    height 0.28s ease,
    opacity 0.22s ease,
    padding-top 0.28s ease,
    padding-bottom 0.28s ease;
}

.support-faq-item:not([open]):not(.is-open) .faq-answer {
  height: 0 !important;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.support-faq-item.is-open .faq-answer,
.support-faq-item[open] .faq-answer {
  opacity: 1;
}

.faq-answer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.65;
  border-top: 1px dashed color-mix(in srgb, var(--border) 85%, transparent);
  padding-top: 10px;
  transition: opacity 0.22s ease, transform 0.25s ease;
}

.support-faq-item:not(.is-open):not([open]) .faq-answer p {
  opacity: 0;
  transform: translateY(6px);
}

.faq-report-duo > .support-safety-office,
.faq-report-duo > .action-panel--office {
  margin: 0;
  height: auto;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--brand) 7%, transparent),
      transparent 36%
    ),
    color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}

.faq-report-duo .action-panel-anchor {
  height: 100%;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  gap: 0;
}

.faq-report-duo .action-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.faq-report-duo .action-panel-title {
  font-size: 1.05rem;
}

.faq-report-duo .action-panel-desc {
  font-size: 0.8rem;
  line-height: 1.55;
}

.faq-report-duo .report-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  min-height: 0;
}

.faq-report-duo .report-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.faq-report-duo .report-form .field {
  margin: 0;
}

.faq-report-duo .report-form .field label,
.faq-report-duo .report-time-group-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.faq-report-duo .report-form .field input,
.faq-report-duo .report-form .field textarea,
.faq-report-duo .report-time-trigger {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: color-mix(in srgb, var(--input-bg) 88%, var(--surface-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  padding: 0 12px;
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.faq-report-duo .report-form .field textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.6;
}

.faq-report-duo .report-form .field input:focus,
.faq-report-duo .report-form .field textarea:focus,
.faq-report-duo .report-time-trigger:focus {
  outline: none;
  background: var(--input-bg);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow:
    0 0 0 3px var(--brand-ring),
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
}

.faq-report-duo .report-time-group {
  margin: 0;
}

.faq-report-duo .report-time-row {
  display: grid;
  grid-template-columns: minmax(4.5rem, 1fr) auto minmax(4.5rem, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.faq-report-duo .report-time-mini {
  margin: 0;
  min-width: 0;
}

.faq-report-duo .report-time-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--ink-soft);
  padding: 0;
}

.faq-report-duo .report-time-now {
  min-height: 44px;
  min-width: 4.25rem;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--input-bg) 70%, transparent);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.faq-report-duo .report-time-now:hover {
  border-color: color-mix(in srgb, var(--brand) 50%, transparent);
  color: var(--ink);
  background: var(--input-bg);
}

.faq-report-duo .action-121 {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 4.5rem;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand-deep));
  color: #fff;
  box-shadow: 0 8px 16px color-mix(in srgb, var(--brand) 22%, transparent);
}

.faq-report-duo .action-121-label {
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.9;
}

.faq-report-duo .action-121 strong {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.faq-report-duo .action-report-mark {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 4.6rem;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--brand) 16%, var(--surface)), var(--surface-2));
  color: var(--brand-deep);
  box-shadow: none;
}

.faq-report-duo .action-report-mark-ico {
  display: grid;
  place-items: center;
  color: var(--brand);
  line-height: 0;
}

.faq-report-duo .action-report-mark-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}

.faq-report-duo .action-report-mark-hint {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.faq-report-duo .report-form-actions {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-report-duo .report-submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
}

.faq-report-duo .report-note {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--ink-faint);
}

.support-safety-office {
  margin: 0;
  height: 100%;
  overflow: visible;
}

.support-safety-office.action-panel {
  grid-column: auto;
  overflow: visible;
}

.report-time-field,
.report-time-row,
.report-form,
.action-panel-anchor {
  overflow: visible;
}

@media (max-width: 980px) {
  .faq-report-duo {
    grid-template-columns: 1fr;
  }

  .faq-panel {
    border-inline-end: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  }

  .faq-report-duo > .support-safety-office,
  .faq-report-duo > .action-panel--office {
    background: color-mix(in srgb, var(--surface-2) 40%, var(--surface));
  }
}

@media (max-width: 640px) {
  .faq-panel {
    padding: 14px 12px 12px;
  }

  .faq-panel-head {
    flex-direction: row;
    align-items: center;
  }

  .faq-intro-cta {
    padding: 8px 10px;
  }

  .faq-answer {
    padding-inline-start: 12px;
  }

  .faq-report-duo .report-time-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .faq-report-duo .report-time-now {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-intro-cta,
  .support-faq-item,
  .faq-toggle,
  .faq-answer,
  .faq-answer p,
  .support-faq-item.is-opening,
  .support-faq-item.is-opening .faq-toggle {
    transition: none !important;
    animation: none !important;
  }
}

/* Help hub ????? ??????? */
.help-hub {
  display: none !important;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state-rich {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 36px 20px;
  background: var(--empty-bg);
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--ink-soft);
}

.empty-state-rich.hidden {
  display: none;
}

.empty-illustration {
  color: var(--brand);
  margin-bottom: 4px;
}

.empty-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
}

.empty-desc {
  margin: 0 0 8px;
  max-width: 28em;
}

.results-skeleton {
  display: grid;
  gap: 12px;
  margin: 8px 0 18px;
}

.results-skeleton.hidden {
  display: none;
}

.skel-row {
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    var(--surface-2) 0%,
    var(--surface) 45%,
    var(--surface-2) 100%
  );
  background-size: 200% 100%;
  animation: skel-shimmer 1.2s ease-in-out infinite;
}

.skel-kpi {
  height: 96px;
}

.skel-card {
  height: 148px;
}

@keyframes skel-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.outage-card {
  box-shadow: none;
  border: 1px solid var(--border);
}

.outage-card-top {
  align-items: center;
}

.more-sections {
  margin: 20px 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.more-sections-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 800;
  font-family: var(--display-font);
  min-height: 48px;
}

.more-sections-summary::-webkit-details-marker {
  display: none;
}

.more-sections-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-faint);
  font-family: 'Vazirmatn', sans-serif;
}

.more-sections-body {
  border-top: 1px solid var(--border);
  padding: 8px 0 4px;
}

.more-sections-body .pro-section {
  margin-inline: 8px;
}

.faq-simple {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 0 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  min-height: 44px;
}

.faq-item p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ?? Help hub (??????) ?? */
.help-hub {
  margin: 28px 0 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  scroll-margin-top: 96px;
}

.help-hub-head {
  margin-bottom: 16px;
}

.help-hub-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand);
}

.help-hub-head h2 {
  margin: 0 0 8px;
  font-family: var(--display-font);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

.help-hub-lead {
  margin: 0;
  max-width: 40em;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.help-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.help-tab {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.help-tab:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}

.help-tab.is-active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-deep);
}

body.theme-dark .help-tab.is-active {
  color: var(--brand);
}

.help-panel[hidden] {
  display: none !important;
}

.help-panel.is-active {
  display: block;
}

.help-status-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.help-status-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-status-item strong {
  font-size: 0.9rem;
}

.help-status-item span {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.help-status-item.live strong {
  color: var(--status-live);
}

.help-status-item.warn strong {
  color: var(--status-warn);
}

.help-status-item.done strong {
  color: var(--status-done);
}

.help-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.help-steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.help-step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 0.9rem;
}

body.theme-dark .help-step-num {
  color: var(--brand);
}

.help-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.help-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.help-panel-note {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

.help-safety {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.help-safety-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.help-safety-card h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  color: var(--ink);
}

.help-safety-card ul {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.75;
}

.help-quiz-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.help-quiz-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand);
}

.help-quiz-meta {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.help-quiz-question {
  margin: 0 0 16px;
  font-family: var(--display-font);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
}

.help-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.help-quiz-answer {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.help-quiz-answer.hidden {
  display: none;
}

.help-quiz-answer p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.help-faq {
  display: grid;
  gap: 8px;
}

.help-faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 0 14px;
}

.help-faq-item summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  padding: 14px 0;
  min-height: 44px;
  color: var(--ink);
  list-style: none;
}

.help-faq-item summary::-webkit-details-marker {
  display: none;
}

.help-faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.help-faq-item[open] summary::after {
  content: '-';
}

.help-faq-item p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .help-status-legend,
  .help-safety {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .help-hub {
    padding: 16px;
  }

  .help-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }

  .help-tab {
    flex: 0 0 auto;
  }
}

.notify-banner-simple {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: none;
}

.notify-form-simple {
  display: grid;
  gap: 12px;
}

.notify-form-simple .field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  font-weight: 700;
}

/* ????? ????? ? ??????? ?? notify/KPI? ????????? ???? ???? ????? */
#section-report {
  width: 100%;
  max-width: 100%;
}

.report-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-sizing: border-box;
}

.report-panel-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.report-panel-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand);
}

.report-panel-copy h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}

.report-panel-copy > p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 36em;
}

.report-panel .report-121 {
  align-self: flex-start;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: var(--live);
  box-shadow: none;
}

.report-121-label {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.95;
}

.report-panel .report-121 strong {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.report-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

.report-form-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 160px);
  gap: 12px;
  width: 100%;
}

.report-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.report-form .field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.report-form .field label span {
  font-weight: 600;
  color: var(--ink-faint);
}

.report-form .field input,
.report-form .field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
}

.report-form .field input[type='time'] {
  min-width: 0;
  width: 100%;
}

.report-form .field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

.report-form .report-desc-field {
  grid-column: 1 / -1;
}

.report-form-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.report-form .report-submit {
  width: 100%;
  min-height: 44px;
  box-shadow: none;
}

.report-form .report-note,
.report-form .report-ticket-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: start;
}

.report-form .report-note.ok,
.report-form .report-ticket-note.ok {
  color: var(--ok);
  font-weight: 700;
}

/* ????????? ?????? ???? ????? ??? ???? ????? ???? */
.report-ticket,
#section-report .report-ticket {
  display: block !important;
  grid-template-columns: none !important;
  max-width: none !important;
  width: 100% !important;
}

@media (max-width: 820px) {
  .report-panel {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .report-panel {
    padding: 16px;
  }

  .report-panel .report-121 {
    width: 100%;
    justify-content: center;
  }

  .report-form-fields {
    grid-template-columns: 1fr;
  }
}

/* Footer wireframe: navy top + brand accent bottom bar */
.footer-wire {
  margin-top: 56px;
  padding: 0;
  background: transparent;
  border-top: none;
  color: #fff;
  font-family: Vazirmatn, Tahoma, sans-serif;
}

.footer-wire .footer-wire-top {
  background: #152033;
  padding: 44px 0 40px;
}

.footer-wire .footer-wire-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 28px 36px;
  align-items: start;
}

.footer-wire .footer-brand-col {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-wire .footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  object-fit: cover;
  background: transparent;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.footer-wire .footer-brand-text {
  min-width: 0;
}

.footer-wire .footer-brand-text h3 {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer-wire .footer-brand-tag {
  margin: 4px 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.footer-wire .footer-brand-desc {
  margin: 10px 0 0;
  max-width: 28ch;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.footer-wire .footer-legal-note {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.footer-wire .footer-col h4 {
  margin: 0 0 14px;
  padding: 0 0 10px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
}

.footer-wire .footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-wire .footer-col a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.footer-wire .footer-col a:hover {
  color: #fff;
}

.footer-wire .footer-social-list {
  gap: 4px;
}

.footer-wire .footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}

.footer-wire .footer-social-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  flex-shrink: 0;
  overflow: visible;
  box-shadow: none;
}

.footer-wire .footer-social-ico img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  background: transparent;
}

.footer-wire .footer-social-link:hover {
  color: #fff;
}

.footer-wire .footer-social-link:hover .footer-social-ico {
  box-shadow: none;
}

.footer-wire #footer-phone {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.footer-wire .footer-wire-bottom {
  background: var(--brand);
  color: #fff;
}

.footer-wire .footer-wire-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  min-height: 48px;
  padding-block: 12px;
  grid-template-columns: none;
}

.footer-wire .footer-credit-line {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.96);
}

.footer-wire .footer-credit-line a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.footer-wire .footer-credit-line a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 960px) {
  .footer-wire .footer-wire-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  .footer-wire .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-wire .footer-wire-top {
    padding: 32px 0 28px;
  }

  .footer-wire .footer-wire-inner {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 26px;
  }

  .footer-wire .footer-brand-text h3 {
    font-size: 1rem;
  }

  .footer-wire .footer-wire-bottom-inner {
    justify-content: center;
    padding-block: 12px;
  }
}

.footer-wire .footer-brand-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

.footer-wire .footer-brand-note a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.footer-wire .footer-brand-note a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Compact emergency strip — before footer */
.emergency-strip {
  margin: 40px 0 0;
  padding: 0 16px;
}

.emergency-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 18px 22px;
  text-align: start;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--brand) 12%, transparent), transparent 55%),
    var(--surface);
}

.emergency-strip-copy {
  min-width: 0;
  flex: 1 1 240px;
  max-width: none;
}

.emergency-strip-copy h2 {
  margin: 0 0 4px;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.emergency-strip-copy p {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-soft);
}

.emergency-strip-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  margin-inline-start: auto;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 28%, transparent);
  transition: filter 0.15s ease;
}

.emergency-strip-call:hover {
  filter: brightness(1.05);
}

.emergency-strip-call-label {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.92;
}

.emergency-strip-call strong {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

@media (max-width: 560px) {
  .emergency-strip {
    margin-top: 28px;
    padding-inline: 12px;
  }

  .emergency-strip-inner {
    padding: 16px;
  }

  .emergency-strip-copy p {
    white-space: normal;
  }

  .emergency-strip-call {
    width: 100%;
    margin-inline-start: 0;
    justify-content: center;
  }
}

.toast-host {
  position: fixed;
  inset-inline: 0;
  bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 16px;
}

.toast {
  pointer-events: auto;
  min-width: min(92vw, 360px);
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: toast-in 0.2s ease-out;
}

.toast button {
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.75;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  min-width: 32px;
  min-height: 32px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .notify-banner-simple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .filters-row.compact-filters {
    grid-template-columns: 1fr;
  }

  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ?? Web Interface Guidelines hardening ?? */
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skel-row,
  .toast,
  .hero-banner-glow,
  .network-status-dot {
    animation: none !important;
  }
}

body,
.page-wrap {
  overflow-x: hidden;
  max-width: 100%;
}

.page-wrap {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.dash-header {
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}

button,
a,
input,
select,
textarea,
.theme-toggle,
.call-chip,
.back-chip {
  touch-action: manipulation;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--brand) 22%, transparent);
}

:where(
  a,
  button,
  .btn-primary,
  .btn-secondary,
  .btn-search,
  .theme-toggle,
  .call-chip,
  .back-chip,
  .hero-cta,
  .report-121,
  .fav-btn,
  .share-btn,
  .scroll-top,
  .quiz-reveal-btn,
  .quiz-next-btn,
  .card-guide-toggle,
  .more-sections-summary,
  .help-tab,
  .faq-item summary,
  .help-faq-item summary,
  .jalali-cal-nav
):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.dash-search-wrap input:focus,
.field select:focus,
.field input:focus,
.report-form .field input:focus,
.report-form .field textarea:focus,
.notify-form-simple .field input:focus,
.notify-form-simple .field select:focus {
  outline: none;
}

.dash-search-wrap:focus-within,
.field:focus-within {
  border-radius: 10px;
}

.dash-search-wrap input:focus-visible,
.field select:focus-visible,
.field input:focus-visible,
.report-form .field input:focus-visible,
.report-form .field textarea:focus-visible,
.notify-form-simple .field input:focus-visible,
.notify-form-simple .field select:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.hero-title,
.empty-title,
.report-form-titles h2,
.notify-banner-copy h2 {
  text-wrap: balance;
}

.hero-live-value,
.schedule-summary,
.results-count {
  font-variant-numeric: tabular-nums;
}

.card-address,
.empty-desc,
.notify-banner-copy p {
  overflow-wrap: anywhere;
}

#results-toolbar,
#section-notify,
#section-report,
#section-faq,
#section-more,
#app-wrapper {
  scroll-margin-top: 96px;
}

.field-action-spacer {
  display: block;
  min-height: 1.15em;
  margin-bottom: 6px;
}

.outage-card {
  content-visibility: auto;
  contain-intrinsic-size: 220px;
}

.scroll-top,
.toast-host {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.toast-host {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Report / office panel (embedded in safety section) */
.action-panels-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.action-panel--office,
.action-panel--dispatch {
  grid-column: auto;
}

.action-panels-single {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
}

.action-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 18px 18px;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: var(--ah-card-radius, 18px);
  background: color-mix(in srgb, var(--surface) 88%, #fff);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 55%, transparent) inset,
    0 12px 28px color-mix(in srgb, var(--ink) 5%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.theme-dark .action-panel {
  background: color-mix(in srgb, var(--surface-2) 92%, #0b1220);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 4%, transparent) inset,
    0 14px 32px color-mix(in srgb, #000 28%, transparent);
}

.action-panel:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.action-panel-anchor {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 16px;
}

.action-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.action-panel-badge {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 28%, transparent);
}

.action-panel-badge--soft {
  background: color-mix(in srgb, var(--surface-2) 70%, var(--brand-soft));
  color: var(--brand-deep);
  box-shadow: none;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
}

body.theme-dark .action-panel-badge--soft {
  color: var(--brand);
  background: color-mix(in srgb, var(--surface) 70%, var(--brand-soft));
}

.action-office-mark {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--brand-deep);
}

body.theme-dark .action-office-mark {
  color: var(--brand);
}

.action-office-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
}

body.theme-dark .action-office-kicker {
  color: var(--brand);
}

.action-panel--office {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
  background:
    radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 88%, #fff);
}

body.theme-dark .action-panel--office {
  background:
    radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface-2) 92%, #0b1220);
}

.action-panel-copy {
  min-width: 0;
}

.action-panel-title {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.action-panel-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.65;
}

.action-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.support-safety-office .report-form-fields.report-form-top-row,
.action-panel--office .report-form-fields.report-form-top-row,
.report-form-fields.report-form-top-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(5.75rem, 6.5rem)
    auto
    minmax(5.75rem, 6.5rem)
    auto;
  align-items: end;
  gap: 8px 6px;
}

.report-form-top-row .report-desc-field {
  grid-column: 1 / -1;
}

.report-form-top-row .report-time-mini {
  min-width: 0;
}

.report-form-top-row .report-time-mini label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.report-form-top-row .report-time-sep--row {
  align-self: end;
  margin-bottom: 12px;
  line-height: 46px;
}

.report-form-top-row .report-time-now-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.report-form-top-row .report-time-now-spacer {
  display: block;
  min-height: 1.15em;
}

.report-form-top-row .report-time-now {
  width: 100%;
}

.report-time-pick {
  position: relative;
  min-width: 0;
}

.report-time-trigger {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  padding-inline: 12px 2.9rem;
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--ink);
  background-color: color-mix(in srgb, var(--input-bg) 88%, var(--surface-2));
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: left 0.45rem center;
  background-size: 28px 28px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent);
  cursor: pointer;
}

.report-time-trigger:hover,
.report-time-trigger:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  background-color: var(--input-bg);
  background-image: var(--select-chevron-hover);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow:
    0 0 0 3px var(--brand-ring),
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
}

.report-time-trigger:focus {
  outline: none;
  background-color: var(--input-bg);
  background-image: var(--select-chevron-hover);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow:
    0 0 0 3px var(--brand-ring),
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
}

.report-time-sep {
  color: var(--ink-faint);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}

.report-time-now {
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

body.theme-dark .report-time-now {
  color: var(--brand);
}

.report-time-now:hover {
  background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand));
}

.report-time-popup {
  position: fixed;
  z-index: 6000;
  min-width: 200px;
  max-height: min(340px, 65vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cal-bg, var(--surface));
  box-shadow: var(--shadow, 0 16px 40px color-mix(in srgb, var(--ink) 12%, transparent));
  user-select: none;
  touch-action: pan-y;
}

.report-time-popup.hidden {
  display: none;
}

.report-time-popup-title {
  position: sticky;
  top: -12px;
  z-index: 1;
  margin: -12px -10px 10px;
  padding: 12px 10px 8px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--cal-bg, var(--surface));
}

.report-time-popup-grid {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.report-time-popup.cols-6 .report-time-popup-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.report-time-cell {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-time-cell:hover:not(.selected) {
  background: var(--brand-soft);
}

.report-time-cell.selected {
  background: var(--cal-accent, var(--brand));
  color: #fff;
  font-weight: 700;
}

.support-safety-office .report-form .field input,
.support-safety-office .report-form .field textarea,
.action-panel--office .report-form .field input,
.action-panel--office .report-form .field textarea {
  border: 1px solid transparent;
  border-radius: 12px;
  background: color-mix(in srgb, var(--input-bg) 88%, var(--surface-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent);
  min-height: 46px;
}

.support-safety-office .report-form .field input:focus,
.support-safety-office .report-form .field textarea:focus,
.action-panel--office .report-form .field input:focus,
.action-panel--office .report-form .field textarea:focus {
  outline: none;
  background: var(--input-bg);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow:
    0 0 0 3px var(--brand-ring),
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
}

.support-safety-office .report-form .report-submit,
.action-panel--office .report-form .report-submit {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand-deep));
  color: #fff;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--brand) 28%, transparent);
  font-weight: 800;
  cursor: pointer;
}

.office-dispatch {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.office-preview {
  flex: 1;
  min-height: 140px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--border));
  background: color-mix(in srgb, var(--input-bg) 90%, var(--brand-soft));
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.office-preview.is-ready {
  color: var(--ink);
  border-style: solid;
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}

.office-dispatch-actions {
  display: grid;
  gap: 8px;
}

.office-dispatch-actions .btn-primary,
.office-dispatch-actions .btn-secondary,
.office-call-btn,
.office-eitaa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  box-sizing: border-box;
  cursor: pointer;
}

.office-call-btn {
  background: linear-gradient(165deg, color-mix(in srgb, var(--live) 88%, #fff), var(--live));
  color: #fff;
  border: 0;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--live) 28%, transparent);
}

.support-safety-office .report-note,
.action-panel--office .report-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-faint);
  text-align: center;
}

.support-safety-office .report-note.ok,
.action-panel--office .report-note.ok {
  color: var(--ok);
  font-weight: 700;
}

.report-panel {
  display: none !important;
}

@media (max-width: 800px) {
  .action-panels-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .support-safety-office .report-form-fields.report-form-top-row,
  .action-panel--office .report-form-fields.report-form-top-row,
  .report-form-fields.report-form-top-row {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(4.2rem, 5rem)
      auto
      minmax(4.2rem, 5rem)
      auto;
  }
}

@media (max-width: 640px) {
  .support-safety-office .report-form-fields.report-form-top-row,
  .action-panel--office .report-form-fields.report-form-top-row,
  .report-form-fields.report-form-top-row {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .report-form-top-row .report-area-field {
    grid-column: 1 / -1;
  }

  .report-form-top-row .report-time-sep--row {
    display: none;
  }

  .report-form-top-row .report-time-now-wrap {
    grid-column: 1 / -1;
  }

  .report-form-top-row .report-time-now-spacer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action-panel,
  .report-time-now {
    transition: none;
  }

  .report-time-now:hover {
    transform: none;
  }
}

/* Share menu (fixed popover on outage cards) */
.share-menu {
  position: fixed;
  z-index: 80;
  min-width: 168px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 96%, #fff);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 50%, transparent) inset,
    0 16px 36px color-mix(in srgb, var(--ink) 14%, transparent);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.theme-dark .share-menu {
  background: color-mix(in srgb, var(--surface-2) 94%, #0b1220);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 5%, transparent) inset,
    0 18px 40px color-mix(in srgb, #000 45%, transparent);
}

.share-menu.hidden {
  display: none;
}

.share-menu [data-share-to] {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.share-menu [data-share-to]:hover,
.share-menu [data-share-to]:focus-visible {
  background: var(--brand-soft);
  color: var(--brand-deep);
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

body.theme-dark .share-menu [data-share-to]:hover,
body.theme-dark .share-menu [data-share-to]:focus-visible {
  color: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  .share-menu [data-share-to] {
    transition: none;
  }
}

/* ========== Responsive polish (devices) ========== */

.fav-btn,
.share-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  box-sizing: border-box;
}

.footer-grid a {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.report-time-popup {
  max-width: calc(100vw - 16px);
}

@media (min-width: 700px) and (max-width: 1100px) {
  .outage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .outage-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .search-bar-panel .compact-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(11rem, 1.4fr) auto;
    gap: 10px;
  }

  .search-bar-panel .field-actions .btn-search,
  .search-bar-panel .field-actions .btn-compact {
    min-width: 6.25rem;
    padding-inline: 0.75rem;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .search-bar-panel .compact-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-bar-panel .search-query-field {
    grid-column: 1 / -1;
  }

  .search-bar-panel .field-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .search-bar-panel .field-actions .btn-search,
  .search-bar-panel .field-actions .btn-compact {
    flex: 1;
    min-width: 0;
  }
}

@media (min-width: 561px) and (max-width: 700px) {
  .search-bar-panel .compact-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-bar-panel .search-query-field,
  .search-bar-panel .field-actions {
    grid-column: 1 / -1;
  }

  .search-bar-panel .field-actions .btn-search,
  .search-bar-panel .field-actions .btn-compact {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .search-bar-panel .compact-filters,
  .filters-row.compact-filters {
    grid-template-columns: 1fr;
  }

  .search-bar-panel .search-query-field,
  .search-bar-panel .field-actions {
    grid-column: auto;
  }

  .search-bar-panel .field-actions {
    flex-direction: column;
  }

  .search-bar-panel .field-actions .btn-search,
  .search-bar-panel .field-actions .btn-compact {
    width: 100%;
    min-width: 0;
  }

  .search-bar-panel .jalali-calendar {
    right: 0;
    left: 0;
    width: 100%;
  }
}

@media (max-width: 820px) {
  .search-bar-panel {
    position: static;
    top: auto;
  }

  .search-bar-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .hero-banner-slim {
    padding: 18px 16px;
  }
}

@media (max-width: 720px) {
  .support-safety-office .report-form-fields.report-form-top-row,
  .action-panel--office .report-form-fields.report-form-top-row,
  .report-form-fields.report-form-top-row {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .report-form-top-row .report-area-field {
    grid-column: 1 / -1;
  }

  .report-form-top-row .report-time-sep--row {
    display: none;
  }

  .report-form-top-row .report-time-now-wrap {
    grid-column: 1 / -1;
  }

  .report-form-top-row .report-time-now-spacer {
    display: none;
  }
}

@media (max-width: 560px) {
  .support-faq.is-scrollable,
  .faq-showcase .support-safety-list,
  .faq-showcase .support-safety-grid {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
    padding-inline-end: 0;
  }

  #faq-scroll-hint,
  .faq-scroll-hint {
    display: none !important;
  }

  .toast-host {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    padding-inline: 12px;
  }

  .toast {
    width: min(100%, 360px);
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .scroll-top {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .results-toolbar {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .dash-app {
    padding: 12px 12px 96px;
  }

  .dash-header-inner {
    padding-inline: 12px;
    gap: 10px;
  }

  .brand-t1 {
    font-size: 14px;
  }

  .brand-t2 {
    font-size: 11px;
  }

  .header-meta {
    width: 100%;
  }

  .header-meta .theme-toggle,
  .header-meta .back-chip,
  .header-meta .call-chip {
    min-height: 44px;
  }

  .hero-banner-slim .hero-cta {
    width: 100%;
    justify-content: center;
  }

  .hero-live-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-live-value {
    font-size: 1.2rem;
  }

  .hero-live-label {
    font-size: 0.68rem;
  }

  .site-footer-pro.footer-wire {
    padding-inline: 0;
  }

  .report-time-popup.cols-6 .report-time-popup-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .report-time-cell {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .share-menu [data-share-to] {
    min-height: 44px;
    padding: 12px;
  }

  .outage-card {
    min-height: 0;
  }
}

@media (max-width: 360px) {
  .search-bar-panel {
    --sb-control-h: 44px;
  }

  .outage-card-top {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }

  .card-top-actions {
    margin-inline-start: auto;
  }

  .hero-live-stat {
    padding: 8px 4px;
  }
}
