:root {
  --primary: #0052cc;
  --primary-dark: #003f9e;
  --on-primary: #ffffff;
  --bg: #f4f3f9;
  --surface: #ffffff;
  --surface-2: #f7f9ff;
  --outline: #d9e0ef;
  --text: #171a21;
  --muted: #5b6475;
  --error: #ba1a1a;
  --error-bg: #ffdad6;
  --warning-bg: #fff4e5;
  --tertiary: #e8f0ff;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(20, 40, 80, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

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

button {
  color: inherit;
}

a {
  color: var(--primary);
}

img {
  max-width: 100%;
}

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

.boot {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}

.boot-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(0, 82, 204, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 243, 249, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 224, 239, 0.8);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 12px 8px 16px;
}

.header-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.header-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 8px;
}

.profile-menu,
.language-menu {
  position: relative;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  padding: 5px 12px 5px 5px;
  border: 0;
  border-radius: 999px;
  background: #dde3f4;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.profile-chip::-webkit-details-marker,
.language-summary::-webkit-details-marker {
  display: none;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3d475c;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.avatar-small {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.caret {
  color: #4b5568;
  font-size: 11px;
}

.profile-panel,
.language-panel {
  position: absolute;
  top: 42px;
  z-index: 120;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(20, 40, 80, 0.16);
}

.profile-panel {
  left: 0;
}

.language-panel {
  right: 0;
  min-width: 190px;
}

.profile-panel .menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-item.is-current {
  background: var(--surface-2);
}

.menu-check {
  margin-left: auto;
  color: var(--primary);
  font-weight: 800;
}

.menu-divider {
  height: 1px;
  margin: 5px 6px;
  background: var(--outline);
}

.language-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.icon-svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}

.language-item:hover,
.language-item.is-current {
  background: var(--surface-2);
}

.language-item.is-current {
  color: var(--primary);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.header-profile {
  padding: 0 16px 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(0, 82, 204, 0.08);
}

.icon-button:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
.symptom-card:focus-visible,
.guide-button:focus-visible,
.tag-remove:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.select {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--outline);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.select-language {
  width: auto;
  max-width: 118px;
  min-height: 36px;
  padding: 5px 6px;
  font-size: 12px;
}

.select-profile {
  min-height: 38px;
  background: var(--surface-2);
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 100;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(20, 40, 80, 0.16);
}

.menu-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.menu-item:hover {
  background: var(--surface-2);
}

.menu-item.danger {
  color: var(--error);
}

.screen {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px 72px;
}

.screen.narrow {
  max-width: 520px;
}

.screen-title {
  margin: 8px 0 16px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  text-align: center;
}

.lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.body-text {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.75;
}

.pre-line {
  white-space: pre-line;
}

.footnote {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.banner-error {
  background: var(--error-bg);
  color: #5b0e0e;
  border: 1px solid #f4b8b2;
}

.banner-muted {
  background: #eef1f7;
  color: var(--muted);
  border: 1px solid #dfe5ef;
}

.banner-warning {
  background: var(--warning-bg);
  border: 1px solid #ffd59e;
}

.banner strong {
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

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

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-danger {
  background: transparent;
  border-color: var(--error);
  color: var(--error);
}

.btn-small {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.disclaimer-icon {
  width: 64px;
  height: 64px;
  margin: 20px auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--tertiary);
  color: var(--primary);
  font-size: 36px;
  font-weight: 300;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 18px 0;
  font-size: 12.5px;
}

.legal-links a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 82, 204, 0.35);
}

.app-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding: 20px 16px 32px;
  border-top: 1px solid var(--outline);
  color: var(--muted);
  font-size: 11.5px;
}

.app-footer .legal-links {
  margin: 4px 0 0;
}

.guide-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 8px 0 12px;
  padding: 12px 14px;
  border: 1.5px solid #263241;
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.guide-icon {
  font-size: 22px;
}

.guide-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.guide-copy strong {
  font-size: 14px;
}

.guide-copy small {
  color: var(--muted);
  font-size: 11.5px;
}

.chevron {
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.promo {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid #c8d9ff;
  border-radius: 18px;
  background: var(--tertiary);
}

.promo-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.promo-head h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.promo-icon {
  font-size: 19px;
  line-height: 1.3;
}

.promo .body-text {
  margin: 0 0 10px;
  font-size: 13px;
  color: #33415c;
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.category {
  margin-top: 22px;
}

.category-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

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

.symptom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 118px;
  padding: 12px 8px;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 40, 80, 0.03);
}

.symptom-card:active {
  transform: scale(0.985);
}

.symptom-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.guide-card {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
}

.store-list {
  margin: 8px 0 10px 1.2em;
  padding: 0;
  font-size: 14px;
  line-height: 1.8;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0;
}

.field > label {
  font-size: 14px;
  font-weight: 700;
}

.input,
.textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--outline);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
}

.input {
  min-height: 46px;
}

.textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.6;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: 2px solid rgba(0, 82, 204, 0.35);
  border-color: var(--primary);
}

.input.is-invalid {
  border-color: var(--error);
}

.readonly {
  padding: 10px 12px;
  border: 1px solid var(--outline);
  border-radius: 10px;
  background: var(--surface-2);
  font-weight: 700;
}

.helper {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.field-error {
  min-height: 0;
  margin: 0;
  color: var(--error);
  font-size: 12px;
}

.field-error:empty {
  display: none;
}

.required {
  margin-left: 2px;
  color: var(--error);
}

.section {
  margin: 18px 0;
  padding-top: 14px;
  border-top: 1px solid var(--outline);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
}

.check-row input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.check-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.check-row.compact {
  padding: 5px 0;
  font-size: 13px;
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 12px;
  margin: 6px 0;
}

.nested {
  margin-left: 30px;
}

.tag-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-input .input {
  flex: 1;
  min-width: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 10px;
  border: 1px solid #cddcff;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 12px;
}

.tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.sheet-hint {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #eef1f7;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.sheet-summary {
  margin: 14px 0 10px;
  text-align: center;
}

.sheet-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.sheet-title {
  margin: 8px 0 0;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 800;
}

.sheet-title-user {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card {
  margin: 12px 0;
  padding: 16px;
  border: 1.5px solid #263241;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.divider {
  height: 1px;
  margin: 12px 0;
  background: var(--outline);
}

.bilingual {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 4px;
}

.label-ja {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.label-user {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f6;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row.is-danger .label-ja,
.info-row.is-danger .value-ja {
  color: var(--error);
}

.info-value {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.value-ja {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.value-ja.value-large {
  font-size: 19px;
}

.value-user {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.value-highlight {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--tertiary);
}

.value-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 8px 12px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.chip {
  position: relative;
}

.chip.is-selected {
  border-color: #b9c7e6;
  background: #dfe3f5;
  color: var(--text);
  padding-left: 28px;
}

.chip.is-selected::before {
  content: '✓';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.chip-ja {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.chip-user {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.chip.is-selected .chip-user {
  color: var(--muted);
}

.save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.safety-header h2 {
  margin: 0;
  color: var(--primary);
  font-size: 15px;
}

.safety-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 1000;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: #1f2937;
  color: #ffffff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: #8f1d1d;
}

.dialog {
  width: calc(100% - 32px);
  max-width: 420px;
  padding: 20px;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(10, 20, 40, 0.3);
}

.dialog::backdrop {
  background: rgba(12, 20, 35, 0.4);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 17px;
}

.dialog-body {
  margin: 8px 0 16px;
}

@media (max-width: 380px) {
  .header-title {
    font-size: 15px;
  }

  .select-language {
    max-width: 92px;
  }

  .screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .condition-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 700px) {
  .screen {
    padding-top: 24px;
  }

  .symptom-grid {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* 初回のウェルカム画面 */
.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 40px;
}

.welcome-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 82, 204, 0.18);
}

.welcome-title {
  margin: 18px 0 8px;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 800;
}

.welcome-body {
  margin: 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.privacy-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 22px 0 20px;
  padding: 14px;
  border: 1px solid #c8d9ff;
  border-radius: 16px;
  background: var(--tertiary);
  text-align: left;
}

.privacy-icon {
  flex-shrink: 0;
  font-size: 19px;
  line-height: 1.4;
}

.privacy-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.privacy-card p {
  margin: 0;
  color: #33415c;
  font-size: 12.5px;
  line-height: 1.65;
}

.welcome-language-title {
  align-self: flex-start;
  margin: 0 0 8px;
  font-size: 15px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 6px 4px;
  border: 1px solid var(--outline);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.language-option.is-current {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

.language-option .menu-check {
  color: inherit;
}

.welcome-start {
  margin-top: 20px;
}

.disclaimer-svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.info-label .bilingual {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.info-icon {
  flex-shrink: 0;
  width: 22px;
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 6px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.symptom-card {
  border: 1.5px solid #263241;
  background: #f7f6fb;
}

@media (max-width: 360px) {
  .language-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-title {
    font-size: 22px;
  }
}


.map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 6px;
  padding: 9px 12px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  color: var(--primary);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.map-link:hover {
  background: var(--tertiary);
}

.map-link .icon-svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.map-note {
  margin-bottom: 4px;
}
