/* =====================================================================
   SAFES — phone (portrait) layout: compact, app-like screens.
   Loaded after styles.css. Only applies to screens 640px wide or less.
   ===================================================================== */
@media (max-width: 640px) {

  /* ---------- Page background & cards ---------- */
  body:not(.m-embed) { background: #f1f5f9; }
  body:not(.m-embed) .card {
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    border: 1px solid #e8edf3;
  }
  body:not(.m-embed) .page-header { margin-bottom: 0.6rem; gap: 0.25rem; }
  body:not(.m-embed) .page-title { font-size: 1.1rem; line-height: 1.25; }
  body:not(.m-embed) .page-subtitle { font-size: 0.76rem; line-height: 1.35; }

  /* ---------- Buttons: smaller, rounder, like a phone app ---------- */
  body:not(.m-embed) button, body:not(.m-embed) .btn { min-height: 38px; }
  body:not(.m-embed) .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.84rem;
    border-radius: 10px;
    gap: 0.35rem;
  }
  body:not(.m-embed) .btn svg, body:not(.m-embed) .btn i[data-lucide] { width: 16px !important; height: 16px !important; }
  body:not(.m-embed) .btn-sm { min-height: 34px; padding: 0.35rem 0.7rem; font-size: 0.78rem; }
  body:not(.m-embed) .page-header .btn { width: auto; }
  body:not(.m-embed) .nav-item { min-height: 42px; }

  /* Form fields: still 16px text (stops iPhone zooming in), but less bulky */
  body:not(.m-embed) input[type="text"], body:not(.m-embed) input[type="password"], body:not(.m-embed) input[type="number"], body:not(.m-embed) input[type="email"],
  body:not(.m-embed) input[type="tel"], body:not(.m-embed) input[type="date"], body:not(.m-embed) select, body:not(.m-embed) textarea {
    min-height: 40px;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
  }

  /* ---------- List header (title + action buttons) ---------- */
  .m-listhead {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.6rem !important;
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
  .m-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    width: 100%;
  }
  .m-actions > .btn {
    justify-content: center;
    padding: 0 10px !important;
    min-height: 38px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
    white-space: nowrap;
  }

  /* ---------- Class tabs: one swipeable row of pills ---------- */
  .m-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 6px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: -2px; margin-right: -2px;
  }
  .m-tabs::-webkit-scrollbar { display: none; }
  .m-tabs > button {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 0.8rem !important;
    border-radius: 999px !important;
    border: 1px solid #e2e8f0 !important;
  }

  /* ---------- Tables shown as card lists ---------- */
  table.m-cards, table.m-cards tbody, table.m-cards tr, table.m-cards td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  table.m-cards { min-width: 0 !important; border: 0 !important; background: transparent !important; margin: 0 !important; }
  table.m-cards thead { display: none; }
  table.m-cards tbody tr {
    height: auto !important;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff !important;
    border: 1px solid #e5e9f0 !important;
    border-radius: 14px;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  }
  table.m-cards td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.28rem 0 !important;
    border: 0 !important;
    font-size: 0.84rem !important;
    white-space: normal !important;
    text-align: right !important;
    min-height: 0;
    height: auto !important;
    width: 100% !important;
    max-width: none !important;
  }
  table.m-cards td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 auto;
    max-width: 46%;
    text-align: left;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  table.m-cards td.m-full { display: block; text-align: center !important; padding: 1.5rem 0.5rem !important; }
  table.m-cards td.m-full::before { display: none; }
  table.m-cards tbody tr:has(td.m-full) { box-shadow: none; }

  /* Action cell (last column): buttons at the bottom of the card */
  table.m-cards td.m-act {
    justify-content: flex-end;
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 0.35rem;
    padding-top: 0.55rem !important;
    gap: 6px;
    flex-wrap: wrap;
  }
  table.m-cards td.m-act::before { display: none; }
  table.m-cards td .btn, table.m-cards td button { min-height: 32px !important; }

  /* Other tables: first column is the card title */
  table.m-auto td:first-child:not(.m-full):not(.m-check) {
    justify-content: flex-start; text-align: left !important; font-weight: 700; font-size: 0.9rem !important;
    padding-bottom: 0.4rem !important; border-bottom: 1px solid #f1f5f9 !important; margin-bottom: 0.2rem;
  }
  table.m-auto td:first-child:not(.m-full)::before { display: none; }
  table.m-cards td:empty { display: none; }

  /* Students: name as the card title, ID underneath */
  table.m-students td:nth-child(2) {
    order: -2;
    justify-content: flex-start;
    text-align: left !important;
    font-size: 0.95rem !important;
    padding-top: 0 !important;
  }
  table.m-students td:nth-child(1) {
    order: -1;
    justify-content: flex-start;
    font-size: 0.75rem !important;
    padding-bottom: 0.4rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 0.25rem;
  }
  table.m-students td:nth-child(1)::before, table.m-students td:nth-child(2)::before { display: none; }

  /* Teachers: tick box in the corner, name as the card title */
  table.m-teachers td.m-check {
    position: absolute;
    top: 0.7rem; right: 0.8rem;
    width: auto !important;
    padding: 0 !important;
  }
  table.m-teachers td.m-check::before { display: none; }
  table.m-teachers td.m-check input { width: 20px; height: 20px; }
  table.m-teachers td:nth-child(2) {
    justify-content: flex-start;
    text-align: left !important;
    font-size: 0.95rem !important;
    padding: 0 2rem 0.4rem 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 0.25rem;
  }
  table.m-teachers td:nth-child(2)::before { display: none; }

  /* School profile checklist */
  table.m-checklist td:first-child { justify-content: flex-start; text-align: left !important; }
  table.m-checklist td:first-child::before { display: none; }
  table.m-checklist td:nth-child(2) { font-size: 0.8rem !important; color: #475569; }

  /* Pagination footer under lists */
  .m-pager {
    justify-content: center !important;
    padding: 0.6rem !important;
    gap: 0.5rem !important;
    border-radius: 12px !important;
    border: 1px solid #e5e9f0 !important;
    background: #fff !important;
  }
  .m-pager > div:first-child { font-size: 0.75rem !important; gap: 0.6rem !important; flex-wrap: wrap; justify-content: center; width: 100%; }
  .m-pager select { min-height: 30px !important; padding: 0 0.4rem !important; font-size: 14px !important; }
  .m-pager button { min-height: 32px !important; padding: 0 0.75rem !important; font-size: 0.78rem !important; border-radius: 8px !important; }

  /* ---------- Marks entry: one card per student ---------- */
  .m-filters { grid-template-columns: 1fr 1fr !important; gap: 0.6rem !important; }
  .m-filters > div:first-child, .m-filters > div:nth-child(2) { grid-column: 1 / -1; }
  .m-filters label { font-size: 0.74rem !important; color: #64748b; margin-bottom: 0.2rem !important; }
  .m-filters select, .m-filters > div > div { font-size: 0.88rem !important; padding: 0.5rem 0.65rem !important; border-radius: 10px !important; min-height: 40px !important; box-sizing: border-box; }
  .m-filters select { font-size: 16px !important; }

  .m-marks-wrap { border: 0 !important; overflow: visible !important; border-radius: 0 !important; }
  table.m-marks tbody tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem 0.5rem;
    padding: 0.75rem;
  }
  table.m-marks td { padding: 0 !important; }
  table.m-marks td:first-child {
    grid-column: 1 / -1;
    display: block;
    text-align: left !important;
    padding-bottom: 0.4rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }
  table.m-marks td:first-child::before { display: none; }
  table.m-marks td.m-input {
    grid-column: span 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    text-align: left !important;
  }
  table.m-marks td.m-input::before { max-width: none; font-size: 0.66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  table.m-marks td.m-input input {
    width: 100% !important;
    min-height: 42px !important;
    font-size: 17px !important;
    border-radius: 10px !important;
  }
  table.m-marks td:not(:first-child):not(.m-input) {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.1rem;
    text-align: center !important;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.35rem 0.2rem !important;
    border-top: 0 !important;
    margin-top: 0.15rem;
    font-size: 0.8rem !important;
  }
  table.m-marks td:not(:first-child):not(.m-input)::before { max-width: none; font-size: 0.62rem; text-align: center; }
  table.m-marks td.row-total { grid-column-start: 1; }
  table.m-marks td.m-full { grid-column: 1 / -1; background: none; }

  .m-bottom-bar { flex-direction: column; align-items: stretch !important; gap: 0.6rem !important; }
  .m-bottom-bar > div { width: 100%; }
  .m-bottom-bar .btn { flex: 1 1 100%; justify-content: center; }
  .m-hide-phone { display: none; }
  .m-show-phone { display: inline !important; }

  /* ---------- Analytics numbers: 2 x 2 tiles ---------- */
  .m-kpis { grid-template-columns: 1fr 1fr !important; gap: 0.6rem !important; margin-bottom: 0.9rem !important; }
  .m-kpis > .card { padding: 0.75rem 0.6rem !important; margin: 0 !important; }
  .m-kpis > .card div[style*="font-size: 2"], .m-kpis > .card div[style*="font-size: 1.8"], .m-kpis > .card div[style*="font-size: 2.2"] { font-size: 1.45rem !important; }

  /* ---------- Documents toolbar (Question papers / Answer keys) ---------- */
  .m-toolbar { padding: 0.6rem !important; flex-direction: column; align-items: stretch !important; }
  .m-seg { display: flex !important; width: 100%; }
  .m-seg > button { flex: 1 1 auto; min-height: 34px !important; padding: 0 6px !important; white-space: nowrap; font-size: 0.76rem !important; }
  .m-toolbar-right { flex-direction: column; align-items: stretch !important; gap: 0.5rem !important; }
  .m-toolbar-right > div:first-child { display: flex !important; overflow-x: auto; scrollbar-width: none; }
  .m-toolbar-right > div:first-child > button { flex: 0 0 auto; min-height: 32px !important; padding: 0 12px !important; border-radius: 999px !important; }
  .m-toolbar-right > div[style*="width: 1px"] { display: none !important; }
  .m-toolbar-right input { width: 100% !important; }
  .m-toolbar-right > div:last-child { width: 100%; }

  /* ---------- Dashboard numbers: 2 x 2 tiles ---------- */
  .m-stats { grid-template-columns: 1fr 1fr !important; gap: 0.6rem !important; }
  .m-stats > .card {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.45rem !important;
    padding: 0.8rem !important;
    margin-bottom: 0;
  }
  .m-stats > .card > div:first-child { width: 34px !important; height: 34px !important; border-radius: 9px !important; }
  .m-stats > .card > div:first-child svg { width: 18px !important; height: 18px !important; }
  .m-stats > .card > div:last-child > div:first-child { font-size: 1.4rem !important; }
  .m-stats > .card > div:last-child > div:nth-child(2) { font-size: 0.76rem !important; line-height: 1.25; }
  .m-stats > .card > div:last-child > div:nth-child(3) { font-size: 0.66rem !important; }

  /* ---------- Pop-up windows slide up from the bottom ---------- */
  .modal-overlay { align-items: flex-end; }
  .modal-overlay .modal-box {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 18px 18px 0 0 !important;
    padding: 0.6rem 1rem calc(1rem + env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    transform: translateY(24px);
    transition: transform 0.22s ease;
  }
  .modal-overlay.active .modal-box { transform: translateY(0); }
  .modal-overlay .modal-box::before {
    content: '';
    display: block;
    width: 38px; height: 4px;
    border-radius: 4px;
    background: #cbd5e1;
    margin: 0 auto 0.6rem;
  }
  .modal-overlay .modal-header { padding-bottom: 0.55rem !important; margin-bottom: 0.75rem !important; }
  .modal-overlay .modal-title { font-size: 1rem !important; }
  .modal-overlay .btn { min-height: 40px !important; }
}

/* Small helper used by views: text shown only on phones */
.m-show-phone { display: none; }

/* =====================================================================
   Notifications window (all screen sizes)
   ===================================================================== */
.ntf-modal-title { display: flex; align-items: center; gap: 0.6rem; }
.ntf-modal-title > span { display: flex; flex-direction: column; line-height: 1.2; }
.ntf-modal-title small { font-size: 0.74rem; font-weight: 500; color: #64748b; margin-top: 2px; }
.ntf-selectbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.25rem 0.15rem 0.6rem; font-size: 0.8rem; color: #64748b;
}
.ntf-selectbar label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 600; color: #334155; margin: 0; user-select: none; }
.ntf-selectbar input, .ntf-top input { width: 17px; height: 17px; min-height: 0 !important; margin: 0; cursor: pointer; accent-color: #2563eb; }
.ntf-list { max-height: 420px; overflow-y: auto; padding: 1px; }
.ntf-card {
  background: #fff; border: 1px solid #e5e9f0; border-radius: 12px;
  padding: 0.75rem 0.85rem; margin-bottom: 0.55rem; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ntf-card.is-unread { background: #f5f9ff; border-color: #cfe0fb; }
.ntf-top { display: flex; align-items: flex-start; gap: 0.6rem; }
.ntf-top input { margin-top: 2px; flex-shrink: 0; }
.ntf-head { flex: 1; min-width: 0; }
.ntf-title { font-size: 0.9rem; font-weight: 700; color: #0f172a; line-height: 1.35; }
.ntf-card:not(.is-unread) .ntf-title { font-weight: 600; color: #334155; }
.ntf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2563eb; margin-right: 6px; vertical-align: 1px; }
.ntf-time { font-size: 0.72rem; color: #94a3b8; margin-top: 2px; }
.ntf-del {
  flex-shrink: 0; width: 32px; height: 32px; min-height: 0 !important; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: #94a3b8; cursor: pointer;
}
.ntf-del:hover { background: #fef2f2; color: #dc2626; }
.ntf-msg { font-size: 0.84rem; color: #475569; line-height: 1.5; margin: 0.4rem 0 0 calc(17px + 0.6rem); word-break: break-word; }
.ntf-code {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin: 0.6rem 0 0 calc(17px + 0.6rem); padding: 0.45rem 0.45rem 0.45rem 0.7rem;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
}
.ntf-code-text { display: flex; flex-direction: column; min-width: 0; }
.ntf-code-text span { font-size: 0.66rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
.ntf-code-text code { font-size: 0.86rem; font-weight: 700; color: #6d28d9; letter-spacing: 0.3px; word-break: break-all; }
.ntf-copy {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 32px !important; padding: 0 0.7rem; border-radius: 8px;
  border: 1px solid #dbe3ee; background: #fff; color: #334155; font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.ntf-footer {
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
  margin-top: 0.75rem; padding-top: 0.7rem; border-top: 1px solid #eef2f6;
}
.ntf-action {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 34px !important; padding: 0 0.75rem; border-radius: 9px;
  border: 1px solid #e2e8f0; background: #fff; color: #334155;
  font-size: 0.78rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.ntf-action svg { width: 15px; height: 15px; }
.ntf-action.ntf-danger { color: #dc2626; border-color: #fbd5d5; }
.ntf-action[disabled] { opacity: 0.45; cursor: not-allowed; }
.ntf-close { margin-left: auto; }

@media (max-width: 640px) {
  .ntf-list { max-height: none; }
  .ntf-footer {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem;
    position: sticky; bottom: calc(-1rem - env(safe-area-inset-bottom));
    background: #fff; margin: 0.5rem -1rem 0; padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  }
  .ntf-footer #mark-read-btn { grid-column: 1 / -1; }
  .ntf-action { justify-content: center; }
  .ntf-close { display: none !important; }
}

/* =====================================================================
   School Information pages (inside the portal frame) on phones
   ===================================================================== */
@media (max-width: 640px) {
  body.m-embed { background: #f1f5f9; }
  body.m-embed .main-content { padding: 0.5rem !important; }
  body.m-embed .card { border-radius: 14px !important; box-shadow: 0 1px 2px rgba(15,23,42,0.06) !important; margin-bottom: 0.75rem !important; }
  body.m-embed .card-header { padding: 0.85rem 0.9rem !important; gap: 0.5rem !important; }
  body.m-embed .card-body { padding: 0.9rem !important; }
  body.m-embed #hm_read_state { padding: 0.9rem !important; }
  body.m-embed .hm-read-head { margin-bottom: 1rem !important; padding-bottom: 1rem !important; }
  body.m-embed .hm-read-head h2 { font-size: 1.2rem !important; }
  body.m-embed .hm-read-head .btn-secondary { width: auto !important; }

  /* Buttons: compact */
  body.m-embed .btn-primary, body.m-embed .btn-secondary {
    width: auto; min-height: 38px; padding: 0 0.9rem; font-size: 0.82rem; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  }
  /* Form footer: Back / Clear on one row, Save / Next on the next */
  body.m-embed .card-footer { padding: 0.75rem 0.9rem !important; gap: 0.5rem !important; }
  body.m-embed .card-footer > div {
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 0.5rem !important; width: 100%;
  }
  body.m-embed .card-footer .btn-primary, body.m-embed .card-footer .btn-secondary { width: 100%; padding: 0 0.5rem; }
  body.m-embed .card-footer > div > button[style*="display: none"] { display: none !important; }

  /* Choice buttons (Regular / In-charge, Male / Female ...) side by side */
  body.m-embed .radio-group { flex-direction: row !important; flex-wrap: wrap; gap: 0.5rem !important; }
  body.m-embed .radio-option { min-width: 0 !important; flex: 1 1 40%; }
  body.m-embed .radio-option label { height: 40px !important; border-radius: 10px; font-size: 0.84rem; }

  /* Fields */
  body.m-embed .form-group { margin-bottom: 0.9rem; }
  body.m-embed input[type="text"], body.m-embed input[type="tel"], body.m-embed input[type="number"], body.m-embed select {
    height: 42px; font-size: 16px; border-radius: 10px;
  }
  body.m-embed label.field-label { font-size: 0.72rem; color: #475569; }
}

/* ---------- Portal tab bar (School Profile / Headmaster / ...) ---------- */
@media (max-width: 640px) {
  .m-portal { border: 0 !important; background: transparent !important; min-height: 0 !important; }
  .m-portal-tabs {
    padding: 0.25rem 0 0.6rem !important; gap: 6px !important; background: transparent !important;
    border-bottom: 0 !important; scrollbar-width: none;
  }
  .m-portal-tabs::-webkit-scrollbar { display: none; }
  .m-portal-tabs > .portal-tab {
    flex: 0 0 auto; min-height: 34px !important; padding: 0 0.85rem !important;
    font-size: 0.8rem !important; border-radius: 999px !important; gap: 0.35rem !important;
  }
  .m-portal-tabs > .portal-tab svg { width: 15px; height: 15px; }
}

/* =====================================================================
   Footer helpline (all screens) and phone footer layout
   ===================================================================== */
#safes-helpline .hl-label { display: inline-flex; align-items: center; gap: 0; }
#safes-helpline .hl-label svg, #safes-helpline .hl-label i { margin-right: 0.3rem; }
#safes-helpline .hl-label::after { content: ':'; }
#safes-helpline .hl-info { display: inline; font-weight: 600; }
#safes-helpline a { color: #ffffff; text-decoration: underline; }
#safes-helpline .hl-num + .hl-num::before { content: ', '; display: inline-block; white-space: pre; text-decoration: none; }
#safes-helpline .hl-hours { font-weight: 500; opacity: 0.85; margin-left: 0.3rem; }
#safes-helpline .hl-hours::before { content: '('; }
#safes-helpline .hl-hours::after { content: ')'; }
#safes-helpline .hl-email { font-weight: 500; margin-left: 0.35rem; }
#safes-helpline .hl-email::before { content: '· '; display: inline-block; white-space: pre; }
#safes-helpline .hl-edit { color: #fde68a; margin-left: 0.4rem; }

@media (max-width: 640px) {
  .safes-official-declaration-footer { padding: 1rem 1rem 0.75rem !important; }
  .declaration-links-row { flex-wrap: wrap !important; gap: 0.4rem 1.25rem !important; margin-bottom: 0.75rem !important; }
  .declaration-links-row .decl-divider { display: none !important; }
  .declaration-links-row .decl-link { font-size: 0.8rem !important; font-weight: 500; margin: 0 0.45rem; }

  /* Helpline becomes its own block at the top */
  #safes-helpline {
    order: -1; flex: 0 0 100%;
    display: flex !important; flex-direction: column; align-items: center; gap: 0.4rem !important;
    padding-bottom: 0.75rem; margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }
  #safes-helpline .hl-label { font-size: 0.72rem; letter-spacing: 0.08em; opacity: 0.85; }
  #safes-helpline .hl-label::after { content: ''; }
  #safes-helpline .hl-info { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
  #safes-helpline .hl-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  #safes-helpline .hl-num {
    display: inline-flex; align-items: center; min-height: 34px; padding: 0 0.9rem;
    border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none; font-size: 0.92rem; font-weight: 700; letter-spacing: 0.02em;
  }
  #safes-helpline .hl-num + .hl-num::before { content: none; }
  #safes-helpline .hl-hours { margin: 0; font-size: 0.76rem; }
  #safes-helpline .hl-hours::before, #safes-helpline .hl-hours::after { content: none; }
  #safes-helpline .hl-email { margin: 0; font-size: 0.8rem; }
  #safes-helpline .hl-email::before { content: none; }
  #safes-helpline .hl-edit { margin: 0; font-size: 0.76rem; }

  .declaration-main-text { font-size: 0.78rem !important; line-height: 1.4 !important; margin-bottom: 0.4rem !important; }
  .declaration-sub-details { flex-direction: column !important; gap: 0.15rem !important; font-size: 0.72rem !important; line-height: 1.4 !important; }
  .declaration-sub-details > span:not([class]) { display: none !important; }
}
