/* ---------------------------------------------------------------
   Perks LK
   A eucalyptus-paper ledger for Sri Lankan card offers.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Darker Grotesque";
  src: url("/fonts/darker-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-italic-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("/fonts/dm-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("/fonts/dm-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #edf0e4;
  --paper-deep: #e2e7d8;
  --surface: #fbfbf4;
  --surface-raised: #fffef8;
  --ink: #112a23;
  --ink-soft: #42564d;
  --ink-muted: #586860;
  --forest: #0b3d2e;
  --forest-bright: #145441;
  --sage: #b9ccb9;
  --sage-soft: #dfe9da;
  --sage-pale: #eef3e9;
  --gold: #d3a03a;
  --gold-deep: #805810;
  --gold-soft: #f3e1b3;
  --gold-pale: #faf1d9;
  --cinnabar: #b84933;
  --cinnabar-soft: #f3ded7;
  --line: rgba(17, 42, 35, 0.14);
  --line-soft: rgba(17, 42, 35, 0.08);
  --line-strong: rgba(17, 42, 35, 0.25);
  --white: #fffdf6;
  --shadow-sm: 0 1px 2px rgba(17, 42, 35, 0.04), 0 8px 20px rgba(17, 42, 35, 0.04);
  --shadow-md: 0 2px 4px rgba(17, 42, 35, 0.04), 0 20px 50px rgba(17, 42, 35, 0.08);
  --shadow-lg: 0 30px 80px rgba(8, 33, 25, 0.19);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --display: "Darker Grotesque", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --shell: 1160px;
  --page-gutter: 32px;
  --header-h: 76px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
  margin: 0;
  background:
    radial-gradient(1000px 620px at 92% -6%, rgba(211, 160, 58, 0.14), transparent 64%),
    radial-gradient(920px 740px at -12% 22%, rgba(11, 61, 46, 0.075), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(17, 42, 35, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 42, 35, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

::selection {
  background: var(--gold-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled) {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

svg {
  display: block;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  fill: currentColor;
}

.icon--star {
  color: var(--gold);
}

.icon--outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.shell {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------------------------------------------------------------
   Type & shared actions
   --------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--ink {
  color: var(--ink-soft);
}

.eyebrow-line {
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button .icon {
  width: 16px;
  height: 16px;
}

.button--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.button--ink:hover {
  background: var(--forest);
  border-color: var(--forest);
}

.button--quiet {
  background: transparent;
  border-color: var(--line);
}

.button--quiet:hover {
  background: var(--surface-raised);
  border-color: var(--line-strong);
}

.button--danger {
  color: var(--cinnabar);
  border-color: rgba(196, 79, 58, 0.35);
}

.button--danger:hover {
  background: var(--cinnabar-soft);
  border-color: var(--cinnabar);
}

.button--small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 12px;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.icon-button .icon {
  width: 18px;
  height: 18px;
}

.icon-button:hover {
  background: rgba(251, 251, 244, 0.75);
  color: var(--ink);
}

.icon-button:active {
  transform: scale(0.96);
}

.icon-button--bordered {
  border-color: var(--line);
  background: transparent;
}

.icon-button--bordered:hover {
  border-color: var(--line-strong);
}

.text-button {
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.text-button:hover {
  color: var(--ink);
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--forest-bright);
  box-shadow: 0 0 0 3px rgba(20, 84, 65, 0.1);
}

.status-dot.is-offline {
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(196, 79, 58, 0.12);
}

.status-dot.is-loading {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(211, 160, 58, 0.15);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

.spin {
  animation: spin 0.9s linear infinite;
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(237, 240, 228, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 246, 0.16), 0 4px 14px rgba(11, 61, 46, 0.16);
}

.brand-mark .icon {
  width: 19px;
  height: 19px;
}

.brand-stack {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.9;
}

.brand-dot {
  color: var(--gold-deep);
}

.brand-lk {
  margin-left: 2px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: top;
}

.brand-caption {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.view-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(251, 251, 244, 0.62);
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.view-tab .icon {
  width: 15px;
  height: 15px;
}

.view-tab:hover {
  color: var(--ink);
}

.view-tab[aria-current="page"] {
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 2px 8px rgba(17, 42, 35, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.install-button {
  min-height: 38px;
  padding-inline: 13px;
  background: transparent;
}

.edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  margin-left: 4px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 251, 244, 0.55);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.edit-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.edit-toggle .icon {
  width: 14px;
  height: 14px;
}

.edit-toggle__dot {
  display: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.edit-toggle.is-editing {
  border-color: rgba(211, 160, 58, 0.45);
  background: var(--gold-pale);
  color: var(--gold-deep);
}

.edit-toggle.is-editing .edit-toggle__dot {
  display: block;
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(34px, 4.8vw, 60px) 0 clamp(28px, 4vw, 42px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 52px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  animation: rise-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > .eyebrow {
  margin-bottom: 16px;
}

.hero-title {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 7.35vw, 94px);
  font-weight: 590;
  letter-spacing: -0.035em;
  line-height: 0.79;
}

.hero-title em {
  position: relative;
  color: var(--forest);
  font-family: var(--body);
  font-size: 0.85em;
  font-style: italic;
  font-weight: 440;
  letter-spacing: -0.055em;
}

.hero-title em::after {
  content: "";
  position: absolute;
  right: 0.05em;
  bottom: 0.06em;
  left: 0.04em;
  height: 0.08em;
  background: var(--gold);
  opacity: 0.65;
}

.hero-title-star {
  position: absolute;
  top: 0.06em;
  right: -0.42em;
  width: 0.21em;
  height: 0.21em;
  fill: var(--gold);
  transform: rotate(15deg);
}

.hero-lede {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  letter-spacing: -0.005em;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 0;
  width: max-content;
  max-width: 100%;
  margin: 26px 0 0;
  padding: 0;
}

.hero-stats > div {
  min-width: 98px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.hero-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats > div:last-child {
  padding-right: 0;
}

.hero-stats dt {
  margin: 0 0 2px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.sync-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.035em;
  line-height: 1.5;
}

.hero-seal {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  justify-self: end;
  color: var(--forest);
  animation: seal-in 1s 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-seal::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 7deg, rgba(11, 61, 46, 0.13) 0deg 0.55deg, transparent 0.55deg 6deg),
    radial-gradient(circle, transparent 0 35%, rgba(11, 61, 46, 0.06) 35.5% 36%, transparent 36.5% 56%, rgba(11, 61, 46, 0.09) 56.5% 57%, transparent 57.5%);
  -webkit-mask-image: radial-gradient(circle, transparent 0 33%, #000 34% 54%, transparent 55% 64%, #000 65% 72%, transparent 73%);
  mask-image: radial-gradient(circle, transparent 0 33%, #000 34% 54%, transparent 55% 64%, #000 65% 72%, transparent 73%);
  opacity: 0.8;
}

.seal-rotor {
  position: absolute;
  inset: 0;
  animation: seal-turn 160s linear infinite;
}

.seal-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.seal-rim,
.seal-guide {
  fill: none;
  stroke: var(--forest);
}

.seal-rim {
  stroke-width: 1.4;
  opacity: 0.85;
}

.seal-guide {
  stroke-width: 0.8;
  stroke-dasharray: 1.5 4;
  opacity: 0.55;
}

.seal-guide--fine {
  stroke-dasharray: 0.5 3;
  opacity: 0.38;
}

.seal-arc-text {
  fill: var(--forest);
  font-family: var(--mono);
  font-size: 9.2px;
  font-weight: 500;
  letter-spacing: 2.15px;
  text-transform: uppercase;
  opacity: 0.83;
}

.seal-ticks {
  fill: none;
  stroke: var(--forest);
  stroke-width: 1;
  opacity: 0.55;
}

.seal-core {
  position: absolute;
  inset: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11, 61, 46, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 34%, rgba(255, 253, 246, 0.88), rgba(238, 243, 233, 0.45) 62%, transparent 100%);
  color: var(--forest);
  text-align: center;
}

.seal-kicker,
.seal-year {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.seal-kicker {
  color: var(--ink-muted);
}

.seal-core strong {
  margin: 1px 0 2px;
  font-family: var(--display);
  font-size: clamp(33px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.9;
  white-space: nowrap;
}

.seal-year {
  color: var(--gold-deep);
}

/* ---------------------------------------------------------------
   Filters
   --------------------------------------------------------------- */

.filter-panel {
  position: relative;
  z-index: 4;
  margin-top: 4px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 251, 244, 0.8);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.filter-top {
  display: grid;
  grid-template-columns: minmax(230px, 288px) minmax(0, 1fr);
  gap: 22px;
  align-items: end;
}

.filter-context {
  min-width: 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-field:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.09);
}

.search-field > .icon {
  width: 17px;
  height: 17px;
  color: var(--ink-muted);
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.search-field input::placeholder {
  color: var(--ink-muted);
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink-soft);
}

.search-clear .icon {
  width: 13px;
  height: 13px;
}

.select-field {
  display: grid;
  gap: 5px;
  width: 100%;
}

.select-field__label {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.select-field__control {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
}

.select-field__control:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.09);
}

.select-field select {
  width: 100%;
  height: 100%;
  padding: 0 38px 0 13px;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}

.select-field__control > .icon {
  position: absolute;
  right: 13px;
  width: 15px;
  height: 15px;
  color: var(--ink-muted);
  pointer-events: none;
}

.card-filter {
  min-width: 0;
}

.card-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}

.card-filter__head p {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bank-filter-scroll {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  padding: 1px 1px 2px;
}

.bank-filter-scroll::-webkit-scrollbar {
  height: 4px;
}

.bank-filter-scroll::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(17, 42, 35, 0.16);
}

.bank-card {
  --bank-color: var(--forest);
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 10px 10px 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.bank-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--bank-color);
  opacity: 0.9;
}

.bank-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 5px 14px rgba(17, 42, 35, 0.07);
  transform: translateY(-1px);
}

.bank-card__chip {
  position: relative;
  align-self: center;
  width: 15px;
  height: 11px;
  border: 1px solid rgba(155, 109, 30, 0.65);
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(155, 109, 30, 0.55) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 44%, rgba(155, 109, 30, 0.55) 44% 56%, transparent 56%),
    var(--gold-soft);
}

.bank-card__abbr {
  align-self: center;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.bank-card__name {
  grid-column: 1 / -1;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-card:hover .bank-card__abbr {
  color: var(--ink-soft);
}

.bank-card[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 5px 16px rgba(17, 42, 35, 0.16);
}

.bank-card[aria-pressed="true"] .bank-card__abbr {
  color: rgba(255, 253, 246, 0.63);
}

.bank-card[aria-pressed="true"] .bank-card__name {
  color: var(--surface);
}

.bank-card[aria-pressed="true"]::before {
  opacity: 1;
}

.bank-card--all {
  --bank-color: linear-gradient(90deg, var(--forest), var(--gold));
}

.bank-card--all::before {
  background: linear-gradient(90deg, var(--forest) 0 45%, var(--gold) 45% 100%);
}

.bank--commercial {
  --bank-color: #c45b3f;
}

.bank--sampath {
  --bank-color: #bf8b22;
}

.bank--dfcc {
  --bank-color: #397b98;
}

.bank--ndb {
  --bank-color: #4a7e5e;
}

.bank--ntb {
  --bank-color: #7a619d;
}

.bank--cargills {
  --bank-color: #b84b5d;
}

.bank--other {
  --bank-color: #63746b;
}

.notice-wrap {
  margin-top: 14px;
}

.data-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(196, 79, 58, 0.24);
  border-radius: 12px;
  background: rgba(243, 222, 215, 0.55);
  color: #79392b;
  font-size: 12px;
}

.data-notice > .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.data-notice p {
  flex: 1;
  margin: 0;
}

.data-notice .text-button {
  flex: 0 0 auto;
  color: inherit;
}

/* ---------------------------------------------------------------
   Section heads
   --------------------------------------------------------------- */

.view-panel {
  margin-top: clamp(36px, 4.6vw, 56px);
  margin-bottom: 96px;
}

.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.view-head .eyebrow {
  margin-bottom: 9px;
}

.view-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 570;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.view-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-bottom: 3px;
}

.result-count {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.045em;
  text-align: right;
  line-height: 1.5;
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   Store ledger
   --------------------------------------------------------------- */

.shop-list {
  display: grid;
  gap: 14px;
}

.shop-group {
  display: grid;
  gap: 12px;
}

.shop-group + .shop-group {
  margin-top: 12px;
}

.group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 2px 2px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.group-head:first-child {
  margin-top: 0;
}

.group-head .icon {
  width: 12px;
  height: 12px;
}

.group-head::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.group-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shop-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.shop-card:hover {
  border-color: rgba(17, 42, 35, 0.21);
  box-shadow: var(--shadow-md);
}

.shop-card.is-pinned {
  border-color: rgba(211, 160, 58, 0.48);
  background:
    linear-gradient(112deg, rgba(250, 241, 217, 0.42), transparent 36%),
    var(--surface);
}

.shop-card.is-pinned:hover {
  border-color: rgba(211, 160, 58, 0.72);
}

.shop-card.is-pinned::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--gold);
  opacity: 0.72;
}

.shop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px 16px;
}

.shop-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.shop-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(17, 42, 35, 0.12);
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--forest);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 4px rgba(251, 251, 244, 0.55);
}

.is-pinned .shop-avatar {
  border-color: rgba(211, 160, 58, 0.55);
  background: var(--gold-soft);
  color: var(--forest);
  box-shadow: inset 0 0 0 4px rgba(255, 253, 246, 0.63);
}

.shop-avatar.tone-2 {
  background: #dce6e8;
  color: #2d5b69;
}

.shop-avatar.tone-3 {
  background: #eadfd2;
  color: #774e32;
}

.shop-avatar.tone-4 {
  background: #e7e0ec;
  color: #645178;
}

.shop-avatar.tone-5 {
  background: #f0e1d8;
  color: #804736;
}

.shop-avatar.tone-6 {
  background: #dfe8cf;
  color: #526b32;
}

.is-pinned .shop-avatar.tone-2,
.is-pinned .shop-avatar.tone-3,
.is-pinned .shop-avatar.tone-4,
.is-pinned .shop-avatar.tone-5,
.is-pinned .shop-avatar.tone-6 {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.shop-info {
  min-width: 0;
}

.shop-name {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.shop-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.shop-meta .meta-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}

.shop-meta .pinned-word {
  color: var(--gold-deep);
  font-weight: 500;
}

.shop-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
}

.pin-button,
.shop-edit-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.pin-button .icon,
.shop-edit-button .icon {
  width: 17px;
  height: 17px;
}

.pin-button {
  border-color: var(--line-soft);
}

.pin-button:hover,
.shop-edit-button:hover {
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--ink);
}

.pin-button:active,
.shop-edit-button:active {
  transform: scale(0.92);
}

.pin-button[aria-pressed="true"] {
  border-color: rgba(211, 160, 58, 0.45);
  background: var(--gold-pale);
  color: var(--gold-deep);
}

.pin-button[aria-pressed="true"] .icon {
  filter: drop-shadow(0 1px 0 rgba(155, 109, 30, 0.18));
}

.offer-list {
  margin: 0;
  padding: 0 24px 8px;
  list-style: none;
}

.offer {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(148px, 205px);
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px dashed var(--line);
}

.offer:first-child {
  border-top: 0;
}

.offer-value {
  --stamp-bg: var(--sage-soft);
  --stamp-ink: var(--forest);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(11, 61, 46, 0.2);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(11, 61, 46, 0.055) 0deg 0.8deg, transparent 0.8deg 10deg),
    radial-gradient(circle, var(--stamp-bg) 0 48%, transparent 49%),
    var(--stamp-bg);
  color: var(--stamp-ink);
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px rgba(11, 61, 46, 0.13);
  line-height: 1;
}

.is-pinned .offer-value {
  --stamp-bg: var(--gold-soft);
  --stamp-ink: var(--gold-deep);
  border-color: rgba(155, 109, 30, 0.25);
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px rgba(155, 109, 30, 0.2);
}

.offer-up {
  margin-bottom: 2px;
  color: currentColor;
  font-family: var(--mono);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.78;
}

.offer-number {
  display: flex;
  align-items: flex-start;
  font-family: var(--display);
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -0.06em;
}

.offer-number small {
  margin-top: 3px;
  margin-left: 1px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
}

.offer-number--word {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: uppercase;
}

.offer-main {
  min-width: 0;
}

.offer-banks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bank-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 21px;
  padding: 3px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.bank-chip__dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bank-color, var(--ink-muted));
}

.bank-chip.bank--commercial {
  --bank-color: #c45b3f;
}

.bank-chip.bank--sampath {
  --bank-color: #bf8b22;
}

.bank-chip.bank--dfcc {
  --bank-color: #397b98;
}

.bank-chip.bank--ndb {
  --bank-color: #4a7e5e;
}

.bank-chip.bank--ntb {
  --bank-color: #7a619d;
}

.bank-chip.bank--cargills {
  --bank-color: #b84b5d;
}

.bank-chip.bank--other {
  --bank-color: #63746b;
}

.offer-note {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.45;
}

.offer-condition {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.offer-when {
  justify-self: end;
  text-align: right;
}

.offer-date {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.55;
  text-transform: uppercase;
}

.offer-date .icon {
  width: 13px;
  height: 13px;
  margin-top: 0;
  color: var(--ink-muted);
}

.offer-date span {
  max-width: 185px;
}

.offer-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0 0;
  color: var(--forest-bright);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(20, 84, 65, 0.08);
}

.is-pinned .offer-live {
  color: var(--gold-deep);
}

.is-pinned .offer-live::before {
  box-shadow: 0 0 0 3px rgba(155, 109, 30, 0.08);
}

.group-empty,
.empty-state {
  padding: 54px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(251, 251, 244, 0.55);
  text-align: center;
}

.empty-mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--gold-deep);
}

.empty-mark .icon {
  width: 25px;
  height: 25px;
}

.empty-state h3 {
  margin: 0 0 7px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1;
}

.empty-state p {
  max-width: 360px;
  margin: 0 auto;
  color: var(--ink-muted);
  font-size: 13px;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.shop-skeleton {
  display: grid;
  gap: 12px;
  padding: 25px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(251, 251, 244, 0.55);
}

.skeleton {
  display: block;
  height: 11px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--paper-deep) 20%, #eef1e7 40%, var(--paper-deep) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton--title {
  width: 36%;
  height: 20px;
}

.skeleton--line {
  width: 76%;
}

.skeleton--short {
  width: 48%;
}

/* ---------------------------------------------------------------
   Calendar
   --------------------------------------------------------------- */

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 18px;
  align-items: start;
}

.calendar-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.month-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
}

.month-label {
  min-width: 150px;
  text-align: center;
}

.month-label p {
  margin: 0;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.month-label span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 6px;
  padding: 0 2px;
}

.weekday-row span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-blank {
  min-height: 82px;
  border-radius: 10px;
}

.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 82px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.calendar-day:hover {
  border-color: var(--line);
  background: var(--surface-raised);
}

.calendar-day.has-offers {
  border-color: var(--line-soft);
  background: rgba(223, 233, 218, 0.43);
}

.calendar-day.has-offers:hover {
  background: rgba(223, 233, 218, 0.72);
}

.calendar-day.is-today .day-number {
  color: var(--cinnabar);
  font-weight: 650;
}

.calendar-day.is-today::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--cinnabar);
  border-radius: 50%;
}

.calendar-day.is-selected,
.calendar-day.is-selected:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--surface);
  box-shadow: 0 8px 20px rgba(11, 61, 46, 0.18);
}

.calendar-day.is-selected .day-number {
  color: var(--surface);
}

.calendar-day.is-selected::after {
  border-color: var(--gold);
}

.day-number {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 580;
  letter-spacing: -0.03em;
  line-height: 1;
}

.day-star {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 11px;
  height: 11px;
  color: var(--gold-deep);
}

.calendar-day.is-selected .day-star {
  color: var(--gold-soft);
}

.day-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 8px;
  margin-top: 12px;
}

.day-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bank-color, var(--ink-muted));
  box-shadow: 0 0 0 1px rgba(251, 251, 244, 0.25);
}

.day-more {
  margin-left: 1px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1;
}

.calendar-day.is-selected .day-more {
  color: rgba(255, 253, 246, 0.58);
}

.calendar-legend,
.calendar-key {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.045em;
  line-height: 1.4;
  text-transform: uppercase;
}

.calendar-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.calendar-key__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest-bright);
}

.calendar-key__ring {
  width: 8px;
  height: 8px;
  border: 1px solid var(--cinnabar);
  border-radius: 50%;
}

.calendar-key .icon {
  width: 11px;
  height: 11px;
  color: var(--gold-deep);
}

/* Agenda */

.agenda-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(440px 300px at 105% -5%, rgba(211, 160, 58, 0.24), transparent 60%),
    linear-gradient(155deg, #104535, var(--forest) 72%);
  color: var(--surface);
  box-shadow: 0 18px 38px rgba(8, 33, 25, 0.17);
}

.agenda-panel::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(243, 225, 179, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(243, 225, 179, 0.035),
    0 0 0 46px rgba(243, 225, 179, 0.026);
  pointer-events: none;
}

.agenda-head {
  position: relative;
  z-index: 1;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 253, 246, 0.16);
}

.agenda-weekday {
  margin: 0 0 7px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.agenda-head h3 {
  margin: 0;
  color: var(--surface);
  font-family: var(--display);
  font-size: 37px;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.agenda-summary {
  margin: 8px 0 0;
  color: rgba(255, 253, 246, 0.72);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.agenda-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin-top: 2px;
}

.agenda-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 253, 246, 0.13);
}

.agenda-item:last-child {
  border-bottom: 0;
}

.agenda-item-shop {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.agenda-item-shop .icon {
  width: 11px;
  height: 11px;
  color: var(--gold);
}

.agenda-item .bank-chip {
  border-color: rgba(255, 253, 246, 0.16);
  background: rgba(255, 253, 246, 0.07);
  color: rgba(255, 253, 246, 0.78);
}

.agenda-item .bank-chip__dot {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.agenda-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.agenda-item-note {
  margin: 6px 0 0;
  color: rgba(255, 253, 246, 0.62);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.agenda-item-value {
  align-self: start;
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-align: right;
  white-space: nowrap;
}

.agenda-item-value small {
  margin-left: 1px;
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: 0;
}

.agenda-item-value--word {
  max-width: 55px;
  color: rgba(255, 253, 246, 0.55);
  font-family: var(--body);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: right;
  text-transform: uppercase;
}

.agenda-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 8px;
  color: rgba(255, 253, 246, 0.6);
  text-align: center;
}

.agenda-empty .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
  color: var(--gold);
  opacity: 0.7;
}

.agenda-empty p {
  max-width: 210px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.agenda-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: auto 0 0;
  padding-top: 18px;
  color: rgba(255, 253, 246, 0.66);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.035em;
  line-height: 1.5;
}

.agenda-foot .icon {
  width: 10px;
  height: 10px;
  color: var(--gold);
  opacity: 0.7;
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

.site-footer {
  padding: 34px 0;
  background: var(--forest);
  color: rgba(255, 253, 246, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 30px;
  align-items: center;
}

.brand-name--footer {
  color: var(--surface);
  font-size: 24px;
}

.brand-name--footer .brand-lk {
  color: rgba(255, 253, 246, 0.68);
}

.footer-brand p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.4;
}

.footer-note {
  max-width: 360px;
  margin: 0;
  font-size: 10.5px;
  line-height: 1.6;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  color: rgba(255, 253, 246, 0.68);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.footer-meta .status-dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(211, 160, 58, 0.12);
}

/* ---------------------------------------------------------------
   Dialogs & forms
   --------------------------------------------------------------- */

.modal {
  width: min(calc(100vw - 32px), 460px);
  max-width: none;
  max-height: min(860px, calc(100svh - 40px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 246, 0.3);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.modal::backdrop {
  background: rgba(6, 27, 20, 0.58);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.modal[open] {
  animation: dialog-in 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.modal[open]::backdrop {
  animation: backdrop-in 220ms ease both;
}

.modal > form {
  display: flex;
  max-height: inherit;
  flex-direction: column;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 16px;
}

.modal-head .eyebrow {
  margin-bottom: 7px;
}

.modal-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.modal-head .icon-button {
  margin: -4px -7px 0 0;
}

.modal-body {
  padding: 2px 26px 26px;
}

.modal-lede {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 7px;
}

.field-label {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.editor-input {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.editor-input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.08);
}

.field input[type="date"],
.editor-input[type="date"] {
  min-height: 40px;
  padding: 8px 9px;
  font-family: var(--mono);
  font-size: 10px;
}

.field-hint {
  margin: 11px 0 0;
  color: var(--ink-muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.form-error {
  margin: 12px 0 0;
  padding: 9px 11px;
  border: 1px solid rgba(196, 79, 58, 0.25);
  border-radius: 8px;
  background: var(--cinnabar-soft);
  color: #7b3426;
  font-size: 11.5px;
  line-height: 1.5;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 15px 26px;
  border-top: 1px solid var(--line-soft);
  background: rgba(237, 240, 228, 0.38);
}

.modal--editor {
  width: min(calc(100vw - 32px), 900px);
  max-height: min(900px, calc(100svh - 36px));
}

.modal--editor > form {
  min-height: 0;
}

.modal-head--editor {
  padding-bottom: 12px;
}

.editor-scroll {
  min-height: 0;
  padding: 3px 26px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 42, 35, 0.25) transparent;
}

.editor-alert {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(196, 79, 58, 0.25);
  border-radius: 9px;
  background: var(--cinnabar-soft);
  color: #7b3426;
  font-size: 12px;
  line-height: 1.5;
}

.editor-store-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(237, 240, 228, 0.36);
}

.editor-store-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
}

.editor-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.editor-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
}

.editor-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--forest);
}

.editor-offer-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.editor-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.editor-section-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1;
}

.editor-section-head p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.editor-offer {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.editor-offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.editor-offer-title {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.remove-offer,
.remove-period {
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.remove-offer:hover,
.remove-period:hover {
  border-color: rgba(196, 79, 58, 0.22);
  background: var(--cinnabar-soft);
  color: var(--cinnabar);
}

.remove-offer .icon,
.remove-period .icon {
  width: 14px;
  height: 14px;
}

.editor-field-grid {
  display: grid;
  grid-template-columns: 120px auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.editor-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.editor-field > span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.editor-check--inline {
  min-height: 43px;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.editor-note-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.editor-banks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.bank-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.bank-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bank-pick__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bank-color, var(--ink-muted));
}

.bank-pick:has(input:checked) {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--surface);
}

.bank-pick:has(input:focus-visible) {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.bank-pick--commercial {
  --bank-color: #c45b3f;
}

.bank-pick--sampath {
  --bank-color: #bf8b22;
}

.bank-pick--dfcc {
  --bank-color: #397b98;
}

.bank-pick--ndb {
  --bank-color: #4a7e5e;
}

.bank-pick--ntb {
  --bank-color: #7a619d;
}

.bank-pick--cargills {
  --bank-color: #b84b5d;
}

.bank-pick--other {
  --bank-color: #63746b;
}

.editor-periods {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.editor-periods-label {
  margin: 0 0 7px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.period-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.period-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  flex: 1;
}

.period-fields span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.editor-add-dates {
  margin-top: 9px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--forest);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editor-add-offer {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease;
}

.editor-add-offer:hover {
  border-color: var(--forest);
  background: rgba(223, 233, 218, 0.35);
  color: var(--forest);
}

.editor-add-offer .icon {
  width: 14px;
  height: 14px;
}

.modal-foot--editor {
  justify-content: space-between;
  gap: 18px;
}

.modal-foot__end {
  display: flex;
  gap: 8px;
}

/* ---------------------------------------------------------------
   Toast
   --------------------------------------------------------------- */

.toast {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  max-width: min(390px, calc(100vw - 32px));
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 253, 246, 0.12);
  border-radius: 12px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: toast-in 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.toast__icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(243, 225, 179, 0.14);
  color: var(--gold-soft);
}

.toast__icon .icon {
  width: 12px;
  height: 12px;
}

.toast p {
  margin: 1px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.toast.toast--error .toast__icon {
  background: rgba(196, 79, 58, 0.2);
  color: #ffd4c8;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 120;
  padding: 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--surface);
  text-align: center;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 36px;
  }

  .hero-seal {
    width: 250px;
  }

  .calendar-layout {
    grid-template-columns: minmax(0, 1fr) 286px;
  }

  .calendar-day {
    min-height: 75px;
  }

  .calendar-blank {
    min-height: 75px;
  }

  .offer {
    grid-template-columns: 72px minmax(0, 1fr) minmax(132px, 176px);
    gap: 16px;
  }

  .offer-value {
    width: 66px;
    height: 66px;
  }

  .offer-number {
    font-size: 28px;
  }
}

@media (max-width: 900px) {
  :root {
    --page-gutter: 24px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 205px;
    gap: 28px;
  }

  .hero-seal {
    width: 205px;
  }

  .seal-core strong {
    font-size: 38px;
  }

  .filter-top {
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
    gap: 16px;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .agenda-panel {
    min-height: 260px;
  }

  .agenda-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
  }

  .agenda-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .agenda-foot {
    margin-top: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 18px;
    --header-h: auto;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0 12px;
    padding-top: 11px;
    padding-bottom: 10px;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark .icon {
    width: 17px;
    height: 17px;
  }

  .brand-name {
    font-size: 27px;
  }

  .brand-caption {
    display: none;
  }

  .header-actions {
    grid-row: 1;
    grid-column: 2;
  }

  .view-tabs {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 9px;
    padding: 3px;
  }

  .view-tab {
    flex: 1;
    justify-content: center;
    min-height: 34px;
    font-size: 11.5px;
  }

  .hero {
    padding-top: 31px;
    padding-bottom: 28px;
  }

  .hero-grid {
    display: block;
  }

  .hero-seal {
    display: none;
  }

  .hero-title {
    font-size: clamp(57px, 15vw, 82px);
    line-height: 0.82;
  }

  .hero-title-star {
    right: -0.36em;
  }

  .hero-lede {
    max-width: 520px;
    margin-top: 17px;
    font-size: 15px;
  }

  .hero-stats {
    margin-top: 22px;
  }

  .hero-stats > div {
    min-width: 86px;
    padding: 0 19px;
  }

  .hero-stats dd {
    font-size: 30px;
  }

  .sync-line {
    margin-top: 16px;
  }

  .filter-panel {
    padding: 13px;
    border-radius: var(--radius-md);
  }

  .filter-top {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .search-field,
  .select-field__control {
    height: 44px;
  }

  .view-panel {
    margin-top: 36px;
    margin-bottom: 70px;
  }

  .view-head {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .view-head h2 {
    font-size: 40px;
  }

  .view-tools {
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    padding-top: 1px;
  }

  .result-count {
    font-size: 8px;
  }

  .shop-head {
    gap: 10px;
    padding: 18px 17px 13px;
  }

  .shop-identity {
    gap: 11px;
  }

  .shop-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .shop-name {
    font-size: 23px;
  }

  .shop-meta {
    font-size: 7.5px;
  }

  .shop-card {
    border-radius: var(--radius-md);
  }

  .shop-card.is-pinned::after {
    top: 18px;
    bottom: 18px;
  }

  .offer-list {
    padding: 0 17px 4px;
  }

  .offer {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 0;
  }

  .offer-value {
    align-self: start;
    width: 60px;
    height: 60px;
    margin-top: 2px;
  }

  .offer-number {
    font-size: 26px;
  }

  .offer-when {
    display: flex;
    grid-column: 2;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    justify-self: stretch;
    margin-top: -4px;
    text-align: left;
  }

  .offer-date {
    justify-content: flex-start;
  }

  .offer-date span {
    max-width: none;
  }

  .offer-live {
    margin-top: 0;
    flex: 0 0 auto;
  }

  .offer-note {
    font-size: 13px;
  }

  .offer-condition {
    font-size: 8px;
  }

  .bank-chip {
    padding: 3px 6px;
    font-size: 8px;
    min-height: 21px;
  }

  .calendar-card {
    padding: 14px;
    border-radius: var(--radius-md);
  }

  .calendar-head {
    margin-bottom: 15px;
  }

  .month-label p {
    font-size: 25px;
  }

  .calendar-grid,
  .weekday-row {
    gap: 4px;
  }

  .calendar-day,
  .calendar-blank {
    min-height: 68px;
  }

  .calendar-day {
    padding: 7px;
    border-radius: 8px;
  }

  .day-number {
    font-size: 18px;
  }

  .day-star {
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
  }

  .day-dots {
    margin-top: 8px;
  }

  .agenda-panel {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .agenda-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-meta {
    grid-column: auto;
  }

  .modal {
    width: min(calc(100vw - 20px), 460px);
    max-height: calc(100svh - 20px);
    border-radius: var(--radius-md);
  }

  .modal--editor {
    width: calc(100vw - 14px);
    max-height: calc(100svh - 14px);
  }

  .modal-head,
  .editor-scroll,
  .modal-body {
    padding-right: 17px;
    padding-left: 17px;
  }

  .modal-head {
    padding-top: 18px;
  }

  .modal-head h2 {
    font-size: 31px;
  }

  .modal-foot {
    padding: 12px 17px;
  }

  .editor-store-grid {
    grid-template-columns: 1fr;
  }

  .editor-grid-two,
  .editor-note-row {
    grid-template-columns: 1fr;
  }

  .editor-field-grid {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .editor-field-grid .editor-field:last-child {
    grid-column: 1 / -1;
  }

  .modal-foot--editor {
    flex-wrap: wrap;
  }

  .modal-foot--editor .button--danger {
    order: 2;
  }

  .modal-foot__end {
    width: 100%;
    justify-content: flex-end;
  }

  .toast {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .brand-caption {
    display: none;
  }

  .header-actions {
    gap: 1px;
  }

  .header-actions .icon-button {
    width: 37px;
    height: 37px;
  }

  .install-button {
    width: 37px;
    height: 37px;
    min-height: 37px;
    padding: 0;
    border-radius: 50%;
  }

  .install-button span {
    display: none;
  }

  .edit-toggle {
    width: 37px;
    height: 37px;
    min-height: 37px;
    justify-content: center;
    margin-left: 1px;
    padding: 0;
    border-radius: 50%;
  }

  .edit-toggle > span:not(.edit-toggle__dot) {
    display: none;
  }

  .edit-toggle .icon {
    width: 15px;
    height: 15px;
  }

  .edit-toggle.is-editing .edit-toggle__dot {
    position: absolute;
    margin: 25px 0 0 23px;
  }

  .hero-title {
    font-size: clamp(50px, 13.5vw, 66px);
  }

  .hero-title-star {
    display: none;
  }

  .hero-lede {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .hero-stats > div {
    min-width: 0;
    padding: 0 16px;
  }

  .hero-stats dd {
    font-size: 27px;
  }

  .eyebrow {
    font-size: 8px;
  }

  .filter-panel {
    margin-top: 0;
  }

  .view-head {
    gap: 12px;
  }

  .view-head h2 {
    font-size: 35px;
  }

  .view-head .eyebrow {
    margin-bottom: 7px;
  }

  .view-tools {
    gap: 7px;
  }

  .view-tools .button span {
    display: none;
  }

  .view-tools .button {
    width: 36px;
    min-height: 36px;
    padding: 0;
  }

  .shop-name {
    font-size: 21px;
  }

  .shop-actions {
    gap: 0;
  }

  .pin-button,
  .shop-edit-button {
    width: 32px;
    height: 32px;
  }

  .shop-avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .offer {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .offer-value {
    width: 53px;
    height: 53px;
  }

  .offer-number {
    font-size: 23px;
  }

  .offer-up {
    font-size: 5.5px;
  }

  .offer-number small {
    font-size: 9px;
  }

  .offer-number--word {
    font-size: 8px;
  }

  .offer-when {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .bank-chip {
    padding: 3px 6px;
    font-size: 7.6px;
    letter-spacing: 0.025em;
  }

  .calendar-card {
    padding: 11px;
  }

  .calendar-head {
    gap: 8px;
  }

  .month-switcher {
    gap: 7px;
  }

  .month-label {
    min-width: 120px;
  }

  .month-label p {
    font-size: 22px;
  }

  .month-label span {
    font-size: 6.5px;
  }

  .icon-button--bordered {
    width: 33px;
    height: 33px;
  }

  .calendar-head .button--small {
    padding-inline: 10px;
  }

  .weekday-row span {
    font-size: 6.5px;
    letter-spacing: 0.05em;
  }

  .calendar-grid,
  .weekday-row {
    gap: 3px;
  }

  .calendar-day,
  .calendar-blank {
    min-height: 58px;
  }

  .calendar-day {
    padding: 6px 5px;
    border-radius: 7px;
  }

  .day-number {
    font-size: 16px;
  }

  .day-star {
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
  }

  .day-dots {
    gap: 2px;
    margin-top: 6px;
  }

  .day-dot {
    width: 4px;
    height: 4px;
  }

  .day-more {
    font-size: 6px;
  }

  .calendar-day.is-today::after {
    right: 5px;
    bottom: 6px;
    width: 5px;
    height: 5px;
  }

  .calendar-key {
    gap: 11px;
    font-size: 6.5px;
  }

  .agenda-head h3 {
    font-size: 33px;
  }

  .modal-foot__end {
    gap: 6px;
  }

  .modal-foot__end .button {
    flex: 1;
    padding-inline: 10px;
  }

  .modal-foot--editor {
    gap: 10px;
  }

  .modal-foot--editor .button--danger {
    width: 100%;
    order: 0;
  }

  .period-row {
    align-items: flex-start;
  }

  .period-fields {
    gap: 5px;
  }

  .period-fields span {
    padding-top: 12px;
    font-size: 7px;
  }

  .remove-period {
    margin-top: 2px;
  }

  .editor-offer {
    padding: 13px;
  }
}

@media (max-width: 380px) {
  :root {
    --page-gutter: 13px;
  }

  .brand-name {
    font-size: 25px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-stats > div {
    padding: 0 12px;
  }

  .shop-avatar {
    display: none;
  }

  .shop-head {
    padding-inline: 14px;
  }

  .offer-list {
    padding-inline: 14px;
  }

  .calendar-card {
    padding: 8px;
  }

  .calendar-day {
    padding: 5px 4px;
  }
}

/* ---------------------------------------------------------------
   Motion
   --------------------------------------------------------------- */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes shimmer {
  0% {
    background-position: 110% 0;
  }
  100% {
    background-position: -110% 0;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes seal-in {
  from {
    opacity: 0;
    transform: scale(0.94) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes seal-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------
   Editor and calendar details added by the complete build
   --------------------------------------------------------------- */

body:has(dialog[open]) {
  overflow: hidden;
}

.filter-panel,
.view-panel {
  scroll-margin-top: 94px;
}

.editor-scroll {
  flex: 1 1 auto;
}

.editor-offers-head {
  margin-top: 22px;
}

.editor-inline-hint {
  margin: 0;
  padding: 9px 11px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.5;
}

.editor-other-bank {
  margin-top: 10px;
}

.editor-field > span em {
  color: var(--ink-muted);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}

.agenda-prefix {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 253, 246, 0.56);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.calendar-day.has-pinned:not(.is-selected) {
  background:
    linear-gradient(135deg, rgba(211, 160, 58, 0.11), transparent 62%),
    rgba(223, 233, 218, 0.43);
}

.calendar-day.is-selected.has-pinned {
  background:
    radial-gradient(120px 100px at 100% 0, rgba(211, 160, 58, 0.17), transparent 65%),
    var(--forest);
}

.calendar-day.is-today .day-number {
  text-decoration: underline;
  text-decoration-color: var(--cinnabar);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .filter-panel,
  .view-panel {
    scroll-margin-top: 123px;
  }
}

/* Keep every card filter visible on phone-sized screens. */
@media (max-width: 760px) {
  .bank-filter-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .bank-card {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 9px 8px 8px;
  }

  .bank-card__name {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .hero .eyebrow-line,
  .view-head .eyebrow-line {
    display: none;
  }

  .view-head .eyebrow > span:last-child {
    display: none;
  }
}

@media (max-width: 1000px) {
  .filter-top {
    grid-template-columns: 1fr;
    gap: 13px;
  }
}
