.notice-card { --notice-ink: #244438; --card-footer-color: #75836c; width: 100%; height: 100%; min-height: 0; padding: var(--format-top) max(var(--edge), env(safe-area-inset-right)) var(--content-bottom) max(var(--edge), env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 20px; color: var(--notice-ink); background: radial-gradient(ellipse at 90% 15%, #d1e4b995, transparent 52%), radial-gradient(ellipse at 10% 85%, #d7e4d1aa, transparent 55%), #e9f0e5; }
.notice-card__scroll { flex: 1; min-height: 0; display: flex; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #a9bba0 transparent; }
.notice-card__scroll.is-scrollable { touch-action: pan-y; }
.notice-card__body { flex: none; width: 100%; max-width: 640px; margin: auto; padding-block: 10px; }
.notice-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.notice-card__badge { display: inline-flex; align-items: center; gap: 7px; flex: 0 1 auto; max-width: 65%; padding: 8px 10px; border: 1px solid #aebfa380; border-radius: 20px; font-size: 9px; font-weight: 650; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; background: #f8faf05c; overflow-wrap: anywhere; }
.notice-card__badge svg { width: 14px; height: 14px; flex: none; }
.notice-card__sender { margin: 0; min-width: 0; max-width: 16ch; color: #738168; font-size: 10px; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }
.notice-card__title { margin: 0; max-width: 15ch; font-size: clamp(34px, 5.2vw, 54px); font-weight: 650; line-height: 1.08; letter-spacing: -.05em; white-space: pre-line; overflow-wrap: anywhere; }
.notice-card__message { max-width: 44ch; margin: 18px 0 28px; font-size: 14px; line-height: 1.6; color: #66775f; overflow-wrap: anywhere; }
.notice-payment { position: relative; display: grid; grid-template-columns: 118px minmax(0, 1fr); width: 100%; padding: 24px 18px; gap: 20px; border: 1px solid #fff; border-radius: 20px; background: #fbfcf5; box-shadow: 0 16px 28px -24px #24443866; }
.notice-payment__date { text-align: center; border-right: 1px dashed #c9d3bf; padding-right: 20px; }
.notice-payment__label { margin: 0 0 10px; font-size: 9px; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #7b8871; }
.notice-payment__calendar { display: flex; flex-direction: column; align-items: center; }
.notice-payment__day { color: #355b3e; font-size: 80px; font-weight: 500; letter-spacing: -.07em; line-height: .95; }
.notice-payment__month { margin-top: 9px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; }
.notice-payment__year { margin-top: 4px; font-size: 10px; color: #88947d; }
.notice-payment__details { min-width: 0; align-self: center; }
.notice-payment__amount { margin: 0; font-size: clamp(24px, 3.7vw, 32px); font-weight: 650; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.notice-payment__currency { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .06em; color: #7b8871; }
.notice-payment__concept { margin: 17px 0 0; font-size: 12px; line-height: 1.5; color: #728068; overflow-wrap: anywhere; }
.notice-card__validity { margin: 20px 0 0; padding: 12px; border-radius: 10px; background: #dde4d6; font-size: 13px; line-height: 1.5; }
.notice-card__footer { flex: none; }
.notice-card__action { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; max-width: 640px; min-height: 54px; padding: 14px 18px; margin-inline: auto; border: 0; border-radius: 12px; background: var(--notice-button, #2c513f); color: #fff; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; transition: background 150ms ease, transform 150ms ease; }
.notice-card__action:hover { background: var(--notice-button-hover, #224333); }
.notice-card__action:active { transform: scale(.99); }
.notice-card__arrow { display: inline-flex; }
.notice-card__arrow svg { width: 18px; height: 18px; }
.notice-card__action:disabled, .notice-card__action[aria-disabled="true"] { background: #d4decb; color: #7f8e73; cursor: default; transform: none; }
.notice-card__action:focus-visible, .notice-card__scroll:focus-visible { outline: 2px solid var(--notice-focus, #3e6c4a); outline-offset: 3px; }
.notice-destination__body { padding: 22px 24px; }
.notice-destination__title { margin: 0 0 12px; font-size: 24px; line-height: 1.15; letter-spacing: -.04em; }
.notice-destination__message { margin: 0 0 24px; font-size: 14px; line-height: 1.6; color: #64725c; }
.notice-destination__footer { flex: none; padding: 14px 24px var(--content-bottom); border-top: 1px solid #e7e9df; }
.notice-destination .notice-card__action { font-size: 14px; font-weight: 600; }
.notice-payment--compact { padding: 20px 12px; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; box-shadow: none; border-color: #e2e8d9; }
.notice-payment--compact .notice-payment__day { font-size: 64px; }
@media (max-width: 699px) {
  .notice-destination__body, .notice-destination__footer { padding-inline: max(var(--edge), env(safe-area-inset-left)) max(var(--edge), env(safe-area-inset-right)); }
}
@media (max-width: 359px), (max-height: 650px) {
  .notice-card { gap: 12px; }
  .notice-card__meta { margin-bottom: 20px; }
  .notice-card__title { font-size: 32px; }
  .notice-card__message { margin: 14px 0 20px; font-size: 13px; }
  .notice-payment { padding: 18px 12px; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
  .notice-payment__date { padding-right: 14px; }
  .notice-payment__day { font-size: 64px; }
}
@media (min-width: 900px) and (min-height: 650px) {
  .notice-card__body { max-width: 920px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: center; }
  .notice-card__meta, .notice-card__title, .notice-card__message { grid-column: 1; }
  .notice-card__meta { justify-content: flex-start; gap: 20px; }
  .notice-card__sender { text-align: left; }
  .notice-card__message { margin-bottom: 0; }
  .notice-card__body > .notice-payment { grid-column: 2; grid-row: 1 / 4; }
  .notice-card__validity { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .notice-card__action { transition: none; } }

/* The overdue payment remains actionable; notice expiration is a separate state. */
.notice-card--overdue { --notice-ink: #633c30; --card-footer-color: #9b7869; background: radial-gradient(ellipse at 90% 12%, #efb89465, transparent 55%), radial-gradient(ellipse at 0% 85%, #f1d4c275, transparent 55%), #f8ebe3; }
.notice-card--overdue .notice-card__badge { border-color: #cf9b805c; background: #fff8ef91; color: #9a5035; }
.notice-card--overdue .notice-card__sender { color: #98745f; }
.notice-card--overdue .notice-card__message { color: #946f5d; }
:is(.notice-card--overdue, .notice-destination--overdue) { --notice-button: #a24e31; --notice-button-hover: #883e26; --notice-focus: #ab5839; }
:is(.notice-card--overdue, .notice-destination--overdue) .notice-payment { background: #fffaf4; border-color: #fffdf9; box-shadow: 0 16px 28px -24px #7c432d66; }
:is(.notice-card--overdue, .notice-destination--overdue) .notice-payment__date { border-color: #e4cbbb; }
:is(.notice-card--overdue, .notice-destination--overdue) .notice-payment__day { color: #a24e31; }
:is(.notice-card--overdue, .notice-destination--overdue) :is(.notice-payment__label, .notice-payment__currency, .notice-payment__year, .notice-payment__concept) { color: #9b7965; }
.notice-payment__status { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 16px; border-top: 1px solid #ecd9cb; }
.notice-payment__overdue { padding: 6px 9px; border-radius: 7px; background: #f6e0cd; color: #945034; font-size: 11px; font-weight: 650; }
.notice-payment__as-of { max-width: 22ch; margin: 0; color: #967865; font-size: 10px; line-height: 1.5; }
.notice-destination--overdue { --sheet-surface: #fff8f1; --sheet-ink: #633c30; --sheet-muted: #9b7965; --sheet-border: #eeded0; --sheet-control: #f4e6d9; --sheet-control-ink: #8a604a; --sheet-focus: #ab5839; --sheet-handle: #dfc6b5; --sheet-backdrop: #34211e66; }
.notice-destination--overdue .notice-destination__message { color: #946f5d; }
.notice-destination--overdue .notice-destination__footer { border-color: #eeded0; }
