.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 42px);
}

.flyer-frame {
  width: 100%;
  height: 118px;
  min-height: 0;
  max-height: 118px;
  margin: 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 7px 22px rgba(30, 48, 57, 0.08);
}

.flyer-image {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 118px;
  margin: 0 auto;
  object-fit: contain;
}

.search-panel h1 {
  max-width: none;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.top-actions .secondary-button {
  margin-top: 0;
}

.saved-floating-button {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 50;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(132, 42, 42, 0.28);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.saved-floating-button:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 32px rgba(132, 42, 42, 0.34);
  transform: translateY(-1px);
}

.saved-floating-button:active {
  transform: translateY(1px);
}

.saved-floating-button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.saved-floating-icon {
  width: 20px;
  height: 25px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
}

.saved-floating-label {
  position: absolute;
  top: 50%;
  right: calc(100% + 11px);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(5px, -50%);
  transition: opacity 150ms ease, transform 150ms ease;
  white-space: nowrap;
}

.saved-floating-button:hover .saved-floating-label,
.saved-floating-button:focus-visible .saved-floating-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.visited-count {
  position: absolute;
  top: -4px;
  right: -3px;
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 0 5px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
}

.visit-actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.visit-button,
.list-action-button {
  border: 1px solid #dfb0b0;
  border-radius: 10px;
  background: #ffffff;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 800;
  transition: background 150ms ease, transform 150ms ease;
}

.visit-button {
  min-height: 42px;
  padding: 0 15px;
}

.visit-button:hover,
.list-action-button:hover {
  background: #fff3f3;
}

.visit-button:active,
.list-action-button:active {
  transform: translateY(1px);
}

.visit-button.is-visited {
  border-color: #d7a2a2;
  background: #fff0f0;
  color: #8f3434;
  cursor: default;
}

.person-card .visit-actions {
  padding-top: 12px;
}

.is-modal-open {
  overflow: hidden;
}

.visited-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 43, 56, 0.58);
  backdrop-filter: blur(3px);
}

.visited-modal-dialog {
  width: min(980px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 34px clamp(24px, 5vw, 48px) clamp(32px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(10, 31, 40, 0.34);
}

.visited-panel-header {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.visited-kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visited-modal-dialog h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  letter-spacing: -0.035em;
}

.visited-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list-action-button {
  min-height: 42px;
  padding: 0 14px;
}

.list-action-button.is-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.list-action-button.is-primary:hover {
  background: var(--accent-dark);
}

.list-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.visited-search-label {
  display: block;
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
}

.visited-search {
  width: min(520px, 100%);
  min-height: 48px;
  margin-top: 24px;
}

.visited-summary {
  min-height: 20px;
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.visited-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.visited-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

.visited-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.visited-card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 17px 18px 14px;
}

.visited-card-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
}

.visited-at {
  flex: 0 0 auto;
  color: #8f3b3b;
  font-size: 0.72rem;
  font-weight: 750;
  text-align: right;
}

.visited-card-data {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 72px 72px;
  margin: 0;
  border-top: 1px solid var(--line);
  background: #fbfcfc;
}

.visited-card-data > div {
  min-width: 0;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}

.visited-card-data > div:last-child {
  border-right: 0;
}

.visited-card-data dd {
  font-size: 0.84rem;
}

.visited-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
}

.visited-card-actions .list-action-button {
  min-height: 38px;
  font-size: 0.8rem;
}

@media (max-width: 820px) {
  .visited-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .saved-floating-button {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 54px;
    height: 54px;
  }

  .saved-floating-icon {
    width: 18px;
    height: 22px;
  }

  .saved-floating-label {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 14px 14px 24px;
  }

  .flyer-frame {
    width: 100%;
    height: 88px;
    max-height: 88px;
    border-radius: 12px;
  }

  .flyer-image {
    max-height: 88px;
  }

  .search-panel h1 {
    font-size: clamp(1.75rem, 9vw, 2.45rem);
  }

  .top-actions,
  .top-actions .secondary-button {
    width: 100%;
  }

  .top-actions .secondary-button {
    justify-content: center;
  }

  .visited-modal {
    align-items: end;
    padding: 0;
  }

  .visited-modal-dialog {
    width: 100%;
    max-height: 88dvh;
    padding: 26px 14px 30px;
    border-radius: 20px 20px 0 0;
  }

  .visited-panel-header,
  .visited-toolbar {
    width: 100%;
  }

  .visited-toolbar .list-action-button {
    flex: 1 1 auto;
  }

  .visited-card-header {
    flex-direction: column;
    gap: 7px;
  }

  .visited-at {
    text-align: left;
  }

  .visited-card-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visited-card-data > div {
    padding: 11px;
  }

  .visited-card-data > div:nth-child(2n) {
    border-right: 0;
  }

  .visited-card-data > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

/* Apariencia sobria de la versión 1.3. El rojo queda reservado para acciones. */
:root {
  --page: #f2f2f0;
  --surface: #ffffff;
  --surface-soft: #f7f7f5;
  --ink: #24282c;
  --muted: #666b70;
  --line: #dededb;
  --accent: #b4232d;
  --accent-dark: #901b23;
  --navy: #24282c;
  --danger: #a1262f;
  --shadow: 0 10px 32px rgba(28, 31, 34, 0.08);
}

body {
  background: var(--page);
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(180, 35, 45, 0.35);
  outline-offset: 2px;
}

.page-shell {
  width: min(1060px, calc(100% - 32px));
  padding: 28px 0 24px;
}

.app-card {
  border: 1px solid #d8d8d5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-grid {
  gap: 26px;
  padding: clamp(20px, 4vw, 34px);
}

.flyer-frame {
  height: 96px;
  max-height: 96px;
  border: 1px solid #e2e2df;
  border-radius: 10px;
  background: #fafaf9;
  box-shadow: none;
}

.flyer-image {
  max-height: 96px;
}

.search-panel h1 {
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.local-context {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.45;
}

.intro {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.search-form {
  margin-top: 24px;
}

input {
  min-height: 52px;
  border-color: #c8c8c4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

input:focus {
  border-color: var(--accent);
}

.primary-button,
.secondary-button {
  border-radius: 8px;
  font-weight: 700;
  box-shadow: none;
}

.primary-button {
  min-height: 52px;
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  border-color: #c9c9c5;
  background: #ffffff;
  color: var(--ink);
}

.secondary-button:hover {
  background: #f2f2f0;
}

.status {
  margin-top: 16px;
}

.pwa-status {
  color: var(--muted);
  font-weight: 600;
}

.results {
  padding: 28px clamp(20px, 4vw, 34px) 34px;
  border-color: var(--line);
  background: #f8f8f6;
}

.results-heading {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.detail-card,
.person-card {
  border-color: #d9d9d6;
  border-radius: 10px;
  box-shadow: none;
}

.result-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 17px 18px 15px;
}

.result-card-header h2,
.visited-card-header h3 {
  margin: 0;
  color: var(--ink);
}

.result-card-header h2 {
  font-size: 1rem;
  line-height: 1.35;
}

.result-ci {
  color: #51565a;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.result-card-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  background: #fafaf9;
}

.result-card-data > div {
  min-width: 0;
  padding: 13px 18px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.result-card-data > div:first-child {
  grid-column: auto;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.result-card-data > div:last-child {
  border-right: 0;
}

.result-card-data dd {
  font-size: 0.86rem;
}

.visited-card-data {
  background: #fafaf9;
}

.visit-actions {
  background: #ffffff;
}

.visit-button,
.list-action-button {
  border-color: #c8c8c4;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.visit-button:not(.is-visited) {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.visit-button:not(.is-visited):hover,
.list-action-button.is-primary:hover {
  background: var(--accent-dark);
}

.list-action-button:hover {
  background: #f1f1ef;
}

.visit-button.is-visited {
  border-color: #cfcfcb;
  background: #ececea;
  color: #52575b;
}

.saved-floating-button {
  width: 58px;
  height: 58px;
  background: #292d31;
  box-shadow: 0 6px 18px rgba(25, 28, 31, 0.2);
}

.saved-floating-button:hover {
  background: #171a1d;
  box-shadow: 0 8px 22px rgba(25, 28, 31, 0.24);
}

.saved-floating-label {
  border-radius: 6px;
  background: #292d31;
  font-weight: 700;
}

.visited-count {
  background: var(--accent);
}

.visited-modal {
  background: rgba(24, 26, 28, 0.48);
  backdrop-filter: none;
}

.visited-modal-dialog {
  border-color: #d9d9d6;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(20, 22, 24, 0.24);
}

.visited-kicker {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.07em;
}

.visited-modal-dialog h2 {
  color: var(--ink);
  font-size: clamp(1.55rem, 4vw, 2rem);
  letter-spacing: -0.025em;
}

.list-action-button.is-primary {
  border-color: var(--accent);
  background: var(--accent);
}

.visited-card {
  border-color: #d9d9d6;
  border-radius: 10px;
}

.visited-at {
  color: var(--muted);
  font-weight: 650;
}

.page-footer {
  color: #74787c;
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 16px, 1060px);
    padding-top: 8px;
  }

  .app-card {
    border-radius: 12px;
  }

  .hero-grid {
    gap: 18px;
    padding: 12px 14px 24px;
  }

  .flyer-frame {
    height: 76px;
    max-height: 76px;
    border-radius: 8px;
  }

  .flyer-image {
    max-height: 76px;
  }

  .search-panel h1 {
    font-size: clamp(1.8rem, 9vw, 2.25rem);
  }

  .local-context {
    font-size: 0.78rem;
  }

  .saved-floating-button {
    width: 50px;
    height: 50px;
  }

  .results {
    padding: 24px 14px 28px;
  }

  .result-card-header {
    gap: 10px;
    padding: 14px 12px 12px;
  }

  .result-card-header h2 {
    font-size: 0.94rem;
  }

  .result-ci {
    font-size: 0.94rem;
  }

  .result-card-data > div {
    padding: 11px 12px;
  }

  .visited-modal-dialog {
    border-radius: 14px 14px 0 0;
  }
}

/* Popup de guardados: lista compacta inspirada en chats, sin avatares. */
.visited-modal-dialog {
  width: min(760px, 100%);
  padding: 26px clamp(20px, 4vw, 34px) 30px;
}

.visited-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
}

.visited-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  width: auto;
}

.visited-close-button {
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #c8c8c4;
  border-radius: 8px;
  padding: 0;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}

.visited-close-button:hover {
  background: #f1f1ef;
}

.visited-close-button:active {
  transform: translateY(1px);
}

.visited-list {
  display: block;
  overflow: hidden;
  border: 1px solid #d9d9d6;
  border-radius: 10px;
  background: #ffffff;
}

.visited-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
}

.visited-card:last-child {
  border-bottom: 0;
}

.visited-card-header {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px 2px;
}

.visited-card-header h3 {
  min-width: 0;
  font-size: 0.98rem;
}

.visited-at {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.visited-chat-preview {
  padding: 0 16px 5px;
}

.visited-chat-preview p {
  margin: 0;
}

.visited-chat-ci {
  color: #4f5458;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.visited-chat-voting {
  margin-top: 3px !important;
  color: var(--muted);
  font-size: 0.78rem;
}

.visited-card-actions {
  gap: 2px;
  padding: 2px 8px 8px;
  border-top: 0;
}

.visited-card-actions .list-action-button {
  min-height: 32px;
  border: 0;
  padding: 0 9px;
  background: transparent;
  color: #555a5e;
  font-size: 0.76rem;
}

.visited-card-actions .list-action-button:hover {
  background: #f1f1ef;
}

@media (max-width: 560px) {
  .visited-modal {
    align-items: center;
    padding:
      calc(10px + env(safe-area-inset-top, 0px))
      8px
      calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .visited-modal-dialog {
    width: 100%;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    padding: 18px 12px 20px;
    border-radius: 14px;
  }

  .visited-panel-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .visited-toolbar {
    width: auto;
  }

  .visited-toolbar .list-action-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .visited-close-button {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .visited-search-label {
    margin-top: 20px;
  }

  .visited-search {
    margin-top: 18px;
  }

  .visited-card-header {
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
    padding: 13px 12px 2px;
  }

  .visited-at {
    text-align: right;
  }

  .visited-chat-preview {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Centra la consulta inicial y libera espacio superior al comenzar a buscar. */
body.is-search-empty .page-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100dvh;
  align-items: center;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

body.is-search-empty .app-card {
  align-self: center;
}

body.is-search-empty .page-footer {
  align-self: end;
  padding-top: 12px;
}

/* El archivo incluye franjas negras; el marco muestra solo el banner central. */
.flyer-frame {
  position: relative;
  display: block;
  height: auto;
  max-height: none;
  aspect-ratio: 2172 / 481;
  background: #ffffff;
}

.flyer-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  object-fit: initial;
  transform: translateY(-16.85%);
}

/* Tipografía y buscador inspirados en la referencia visual. */
:root {
  --ink: #111418;
  --accent: #f20d18;
  --accent-dark: #ce0811;
  --navy: #111418;
}

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.search-panel h1,
.local-context,
.results-heading,
.result-card-header h2,
.visited-modal-dialog h2,
.visited-card-header h3 {
  color: var(--ink);
}

.search-panel h1 {
  font-weight: 700;
}

.search-input-shell {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cfd2d6;
  border-radius: 8px;
  background: #ffffff;
}

.search-input-shell:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(242, 13, 24, 0.14);
}

.search-icon-box {
  display: grid;
  place-items: center;
  border-right: 1px solid #d9dce0;
  background: #f4f5f7;
  color: #24282c;
}

.search-input-shell input {
  min-width: 0;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  padding: 0 16px;
  background: #ffffff;
  box-shadow: none;
  color: var(--ink);
}

.search-input-shell input:focus,
.search-input-shell input:focus-visible {
  border: 0;
  outline: 0;
}

.search-input-shell input::placeholder {
  color: #9a9faa;
  opacity: 1;
}

.search-magnifier {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-magnifier::after {
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.primary-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.search-magnifier-button {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
  border-width: 2px;
}

/* Cierre visual de la versión 1.3, alineado con el buscador de concejales. */
.search-panel {
  text-align: center;
}

.search-panel h1 {
  margin-bottom: 24px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: 0;
  text-align: center;
}

.search-form {
  display: grid;
  justify-items: center;
}

.search-controls {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 20px;
}

.search-input-shell {
  width: 100%;
}

.search-input-shell input {
  text-align: center;
}

.search-controls .primary-button {
  width: auto;
  min-width: 164px;
  min-height: 50px;
  padding: 0 24px;
}

.status,
.pwa-status {
  text-align: center;
}

.top-actions {
  justify-content: center;
}

.ios-install-help {
  max-width: 520px;
  margin: 12px auto 0;
  color: #5f6468;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.data-protection {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #d9d9d6;
  border-radius: 10px;
  background: #f7f7f5;
}

.data-protection-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.data-protection-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.protection-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid #c9ccc9;
  border-radius: 999px;
  padding: 0 10px;
  background: #ffffff;
  color: #626762;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.protection-badge.is-protected {
  border-color: #9fc7ae;
  background: #edf7f0;
  color: #24613b;
}

.protection-badge.is-warning {
  border-color: #d7b8b8;
  background: #fff5f5;
  color: #8d3434;
}

.protection-status,
.backup-status {
  margin: 8px 0 0;
  color: #62676b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.backup-status.is-safe {
  color: #2d6742;
}

.backup-status.is-warning {
  color: #913b3b;
  font-weight: 650;
}

.backup-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.backup-actions .list-action-button {
  min-height: 42px;
  padding: 0 10px;
  font-size: 0.78rem;
}

@media (max-width: 560px) {
  .data-protection {
    margin-top: 16px;
    padding: 13px;
  }

  .data-protection-heading {
    align-items: flex-start;
  }

  .backup-actions {
    grid-template-columns: 1fr;
  }

  .backup-actions .list-action-button {
    width: 100%;
  }

  .visited-search {
    margin-top: 14px;
  }
}
