/* แบนเนอร์ประชาสัมพันธ์ของโดเมน ncd.mshprimary.com (ncd-banner.js) — ต่อจากเมนูย่อย (ncd-subnav.css) ทุกหน้า
   การ์ดกว้างเท่าเนื้อหาหน้าแรก (1180px) · มีรูป+ข้อความ = รูปซ้าย ข้อความกลาง ปุ่มขวา · มีแต่รูป = รูปเต็มแถบ
   สีพื้นแต่ละแผ่นเลือกได้ 6 สี (theme-*) · สีประกาศในขอบเขตของตัวเอง ไม่แตะ :root ของหน้า
   หน้าต่างรายละเอียดเมื่อกดแผ่น (.ncd-banner-dialog) และฟอร์มแก้ไขของผู้ดูแลระบบ (.ncd-be) อยู่ท้ายไฟล์ */
.ncd-banner {
  --nb-ink: #172033;
  --nb-muted: #526078;
  --nb-line: #dbe5ef;
  --nb-accent: #2477d4;
  --nb-bg: #eef5ff;
  --nb-bg-2: #ffffff;
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px));
  margin: 6px auto 4px;
}
.ncd-banner[hidden] {
  display: none !important;
}
.ncd-banner *,
.ncd-be * {
  box-sizing: border-box;
}
.theme-blue {
  --nb-accent: #2477d4;
  --nb-bg: #e8f2ff;
}
.theme-green {
  --nb-accent: #13795b;
  --nb-bg: #e5f6ee;
}
.theme-amber {
  --nb-accent: #b45309;
  --nb-bg: #fff3e0;
}
.theme-rose {
  --nb-accent: #be2350;
  --nb-bg: #fdebf0;
}
.theme-violet {
  --nb-accent: #6d43c9;
  --nb-bg: #f1ebfd;
}
.theme-slate {
  --nb-accent: #475467;
  --nb-bg: #eef1f5;
}

.ncd-banner-frame {
  position: relative;
  min-height: 84px;
}
.ncd-banner-slide[hidden] {
  display: none !important;
}
.ncd-banner-slide.is-entering {
  animation: ncd-banner-in 0.35s ease-out;
}
@keyframes ncd-banner-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ncd-banner-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 12px 104px 12px 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--nb-accent) 22%, #fff);
  border-left: 4px solid var(--nb-accent);
  border-radius: 14px;
  background: linear-gradient(100deg, var(--nb-bg) 0%, var(--nb-bg-2) 92%);
  color: var(--nb-ink);
  text-decoration: none;
  /* ปุ่มเปิดหน้าต่างรายละเอียด: ล้างหน้าตาปุ่มของเบราว์เซอร์ */
  width: 100%;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
.ncd-banner-card:hover {
  border-color: color-mix(in srgb, var(--nb-accent) 45%, #fff);
  border-left-color: var(--nb-accent);
  color: var(--nb-ink);
  text-decoration: none;
}
.ncd-banner-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--nb-accent) 40%, transparent);
  outline-offset: 2px;
}
.ncd-banner-media {
  flex: none;
  width: 132px;
  height: 66px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}
.ncd-banner-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ncd-banner-body {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
}
.ncd-banner-title {
  color: var(--nb-ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}
.ncd-banner-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: var(--nb-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.ncd-banner-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
  min-height: 36px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: var(--nb-accent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
}
.ncd-banner-cta .material-symbols-outlined {
  font-size: 18px;
}
/* มีแต่รูป: รูปเต็มแถบ ไม่มีกรอบสี */
.is-image-only .ncd-banner-card {
  padding: 0;
  border: 1px solid var(--nb-line);
  background: #fff;
}
.is-image-only .ncd-banner-media {
  width: 100%;
  height: auto;
  max-height: 180px;
  aspect-ratio: 1600 / 260;
  border-radius: 0;
}
.is-text-only .ncd-banner-card {
  padding-left: 20px;
}

/* ปุ่มเปลี่ยนแผ่น · จุด · ปุ่มแก้ไข/ปิด */
.ncd-banner-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--nb-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.1);
  color: #344054;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.15s ease;
}
.ncd-banner-arrow.is-prev {
  left: -12px;
}
.ncd-banner-arrow.is-next {
  right: -12px;
}
.ncd-banner-frame:hover .ncd-banner-arrow,
.ncd-banner-arrow:focus-visible {
  opacity: 1;
}
.ncd-banner-arrow .material-symbols-outlined {
  font-size: 20px;
}
.ncd-banner-dots {
  position: absolute;
  right: 14px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  gap: 2px;
}
.ncd-banner-dot {
  position: relative;
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ncd-banner-dot::before {
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.22);
  content: '';
  transition:
    background-color 0.2s ease,
    inset 0.2s ease;
}
.ncd-banner-dot[aria-current='true']::before {
  inset: 7px 3px;
  background: #344054;
}
.ncd-banner-dot:focus-visible {
  outline: 2px solid #2477d4;
  outline-offset: -2px;
  border-radius: 6px;
}
.ncd-banner-tools {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: flex;
  gap: 4px;
}
.ncd-banner-tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  min-height: 0;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #475467;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ncd-banner-tool:hover {
  border-color: var(--nb-line);
  background: #fff;
  color: #172033;
}
.ncd-banner-tool:focus-visible {
  outline: 2px solid #2477d4;
  outline-offset: 1px;
}
/* ปุ่มแก้ไขแบนเนอร์เป็นไอคอนอย่างเดียว ไม่มีเส้นใต้ (เจ้าของระบบ 6 พ.ย. 2569) */
.ncd-banner-tool.is-close,
.ncd-banner-tool.is-edit {
  width: 28px;
  padding: 0;
  justify-content: center;
}
.ncd-banner-tool .material-symbols-outlined {
  font-size: 17px;
}
/* ผู้ดูแลระบบ: ยังไม่มีแผ่นที่แสดง (คนทั่วไปไม่เห็นแถบนี้) */
.ncd-banner-empty {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  flex-wrap: wrap;
  padding: 6px 8px 6px 14px;
  border: 1px dashed #b9c8d8;
  border-radius: 12px;
  color: #667085;
  font-size: 0.84rem;
}
.ncd-banner-empty > .material-symbols-outlined {
  color: #2477d4;
  font-size: 20px;
}
.ncd-banner-empty .ncd-banner-tools {
  position: static;
  margin-left: auto;
}
.ncd-banner-empty .ncd-banner-tool.is-edit {
  border-color: #b9d3f0;
  background: #eaf3ff;
  color: #185fae;
}

@media (max-width: 760px) {
  .ncd-banner {
    width: calc(100% - 24px);
    margin-top: 2px;
  }
  .ncd-banner-card {
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: 0;
    padding: 12px 40px 30px 14px;
  }
  .ncd-banner-media {
    width: 76px;
    height: 52px;
  }
  .ncd-banner-body {
    flex-basis: calc(100% - 88px);
  }
  .is-text-only .ncd-banner-body,
  .ncd-banner-card:not(:has(.ncd-banner-media)) .ncd-banner-body {
    flex-basis: 100%;
  }
  .ncd-banner-title {
    font-size: 0.95rem;
  }
  .ncd-banner-text {
    font-size: 0.82rem;
  }
  .ncd-banner-cta {
    min-height: 32px;
    font-size: 0.8rem;
  }
  .ncd-banner-frame:not(.is-multi) .ncd-banner-card {
    padding-bottom: 12px;
  }
  .is-image-only .ncd-banner-card {
    padding: 0;
  }
  .is-image-only .ncd-banner-media {
    aspect-ratio: 1600 / 330;
  }
  .ncd-banner-arrow {
    display: none;
  }
  .ncd-banner-empty > span:not(.material-symbols-outlined) {
    font-size: 0.78rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ncd-banner-slide.is-entering {
    animation: none;
  }
  .ncd-banner-arrow,
  .ncd-banner-dot::before {
    transition: none;
  }
}
@media print {
  .ncd-banner {
    display: none !important;
  }
}

/* ---------- ฟอร์มสร้าง/จัดการแบนเนอร์ (หน้า /banner · ผู้ดูแลระบบ) ---------- */
.ncd-be {
  color: #172033;
}
.ncd-be-form {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  background: #fff;
}
.ncd-be-scroll {
  padding: 14px 18px;
  background: #f6f9fc;
}
.ncd-be-slide {
  margin: 0 0 12px;
  padding: 10px 14px 14px;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  background: #fff;
}
.ncd-be-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  float: left;
  margin-bottom: 8px;
}
.ncd-be-head + * {
  clear: both;
}
.ncd-be-no {
  font-weight: 700;
}
.ncd-be-active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #344054;
  font-size: 0.86rem;
}
.ncd-be-move {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
}
.ncd-be-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #475467;
  cursor: pointer;
}
.ncd-be-icon:hover:not(:disabled) {
  border-color: #dbe5ef;
  background: #f2f6fa;
}
.ncd-be-icon:disabled {
  opacity: 0.3;
  cursor: default;
}
.ncd-be-icon.is-danger {
  color: #c2362f;
}
.ncd-be-icon .material-symbols-outlined {
  font-size: 20px;
}
.ncd-be-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 14px;
}
.ncd-be-image {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 6px;
}
.ncd-be-image small {
  color: #667085;
  font-size: 0.74rem;
  line-height: 1.45;
}
.ncd-be-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--nb-accent) 25%, #fff);
  border-radius: 10px;
  background: var(--nb-bg);
  color: var(--nb-accent);
  font-size: 0.78rem;
}
.ncd-be-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ncd-be-file {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #b9d3f0;
  border-radius: 999px;
  background: #eaf3ff;
  color: #185fae;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ncd-be-file:focus-within {
  outline: 2px solid #2477d4;
  outline-offset: 2px;
}
.ncd-be-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.ncd-be-file .material-symbols-outlined {
  font-size: 18px;
}
.ncd-be-link-btn {
  min-height: 0;
  padding: 2px 0;
  border: 0;
  background: none;
  color: #c2362f;
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}
.ncd-be-fields {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ncd-be-fields label {
  color: #475467;
  font-size: 0.78rem;
  font-weight: 600;
}
.ncd-be-fields label small {
  color: #667085;
  font-weight: 400;
}
.ncd-be-fields input[type='text'],
.ncd-be-fields input[type='date'],
.ncd-be-fields textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  margin: 0 0 6px;
  padding: 7px 10px;
  border: 1px solid #cbd8e5;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 0.9rem;
}
.ncd-be-fields textarea {
  resize: vertical;
}
.ncd-be-fields input:focus-visible,
.ncd-be-fields textarea:focus-visible {
  border-color: #2477d4;
  outline: 3px solid rgba(36, 119, 212, 0.18);
}
.ncd-be-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ncd-be-row > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ncd-be-themes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 600;
}
.ncd-be-swatch {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--nb-accent);
  box-shadow: 0 0 0 1px #cbd8e5;
  cursor: pointer;
}
.ncd-be-swatch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.ncd-be-swatch:has(input:checked) {
  box-shadow: 0 0 0 2px var(--nb-accent);
}
.ncd-be-swatch:has(input:focus-visible) {
  outline: 2px solid #172033;
  outline-offset: 3px;
}
.ncd-be-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 46px;
  border: 1px dashed #9fbfe2;
  border-radius: 14px;
  background: #fff;
  color: #185fae;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.ncd-be-add:hover:not(:disabled) {
  background: #f2f8ff;
}
.ncd-be-add:disabled {
  opacity: 0.45;
  cursor: default;
}
.ncd-be-add small {
  color: #667085;
  font-weight: 500;
}
.ncd-be-none {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 12px;
  padding: 20px;
  color: #667085;
}
.ncd-be-error {
  margin: 0;
  padding: 8px 18px;
  border-top: 1px solid #f3c9c5;
  background: #fff1f0;
  color: #b42318;
  font-size: 0.86rem;
}
.ncd-be-error[hidden] {
  display: none;
}
.ncd-be-foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 18px;
  border-top: 1px solid #e3eaf2;
}
.ncd-be-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #344054;
  font-size: 0.86rem;
}
.ncd-be-inline input[type='number'] {
  width: 64px;
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid #cbd8e5;
  border-radius: 8px;
  font: inherit;
}
.ncd-be-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.ncd-be-btn {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #cbd8e5;
  border-radius: 12px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.ncd-be-btn.is-primary {
  border-color: #2477d4;
  background: #2477d4;
  color: #fff;
}
.ncd-be-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.ncd-be .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .ncd-be-scroll {
    padding: 12px;
  }
  .ncd-be-grid {
    grid-template-columns: 1fr;
  }
  .ncd-be-image {
    grid-template-columns: 120px 1fr;
    align-items: center;
  }
  .ncd-be-image .ncd-be-preview {
    grid-row: span 3;
  }
  .ncd-be-actions {
    width: 100%;
  }
  .ncd-be-actions .ncd-be-btn {
    flex: 1;
  }
}
.ncd-banner-empty > span:not(.material-symbols-outlined) {
  flex: 1 1 180px;
  min-width: 0;
}
.ncd-be-locked {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px;
  border: 1px dashed #b9c8d8;
  border-radius: 14px;
  color: #475467;
}
.ncd-be-locked .material-symbols-outlined {
  color: #2477d4;
}
/* หน้า /banner: ตัวอย่างอยู่ในเนื้อหา กว้างเต็มคอลัมน์ */
.nbp-preview .ncd-banner {
  width: 100%;
  margin: 0;
}
.nbp-section {
  margin: 0 0 22px;
}
.nbp-section > h2 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}
.nbp-section > p {
  margin: 0 0 10px;
  color: #667085;
  font-size: 0.86rem;
}
/* จอกว้าง: ตัวอย่างติดอยู่ใต้แถบเมนูขณะเลื่อนแก้ฟอร์ม เห็นผลทันที */
@media (min-width: 761px) {
  .nbp-preview {
    position: sticky;
    top: var(--msh-navbar-h, 72px);
    z-index: 3;
    padding: 8px 0 10px;
    background: #f4f8fd;
  }
}

/* ---------- หน้าต่างรายละเอียด (กดแผ่นแบนเนอร์) ---------- */
html.ncd-banner-dialog-open {
  overflow: hidden;
}
.ncd-banner-dialog {
  --nb-ink: #172033;
  --nb-muted: #526078;
  --nb-line: #dbe5ef;
  box-sizing: border-box;
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--nb-ink);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}
.ncd-banner-dialog * {
  box-sizing: border-box;
}
.ncd-banner-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}
.ncd-banner-dialog[open] {
  animation: ncd-bd-in 0.2s ease-out;
}
@keyframes ncd-bd-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ncd-bd-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 48px);
}
.ncd-bd-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nb-ink);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}
.ncd-bd-close:hover {
  background: #fff;
}
.ncd-bd-close:focus-visible,
.ncd-bd-btn:focus-visible,
.ncd-bd-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--nb-accent) 45%, transparent);
  outline-offset: 2px;
}
.ncd-bd-media {
  flex: none;
  max-height: 42vh;
  overflow: hidden;
  border-bottom: 1px solid var(--nb-line);
  background: var(--nb-bg);
}
.ncd-bd-media img {
  display: block;
  width: 100%;
  max-height: 42vh;
  object-fit: contain;
}
.ncd-bd-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 24px 8px;
  overflow-y: auto;
  border-top: 4px solid var(--nb-accent);
}
.ncd-bd-media + .ncd-bd-body {
  border-top: 0;
}
.ncd-bd-title {
  margin: 0 48px 8px 0;
  color: var(--nb-ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}
.ncd-bd-media + .ncd-bd-body .ncd-bd-title {
  margin-right: 0;
}
.ncd-bd-text {
  margin: 0 0 12px;
  color: var(--nb-ink);
  font-size: 0.98rem;
  line-height: 1.65;
}
.ncd-bd-detail {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--nb-bg);
  color: var(--nb-ink);
  font-size: 0.94rem;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.ncd-bd-when {
  margin: 0 0 8px;
  color: var(--nb-muted);
  font-size: 0.84rem;
}
.ncd-bd-foot {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--nb-line);
}
.ncd-bd-btn,
.ncd-bd-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.ncd-bd-btn {
  border: 1px solid var(--nb-line);
  background: #fff;
  color: var(--nb-ink);
}
.ncd-bd-link {
  border: 1px solid var(--nb-accent);
  background: var(--nb-accent);
  color: #fff;
}
.ncd-bd-link:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.06);
}
.ncd-bd-link .material-symbols-outlined {
  font-size: 18px;
}
@media (max-width: 560px) {
  .ncd-banner-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }
  .ncd-bd-sheet {
    max-height: calc(100dvh - 24px);
  }
  .ncd-bd-body {
    padding: 16px 18px 6px;
  }
  .ncd-bd-foot {
    padding: 10px 18px 14px;
  }
  .ncd-bd-foot > * {
    flex: 1 1 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ncd-banner-dialog[open] {
    animation: none;
  }
}
