/* Fee sheet: signature component styled like a stamped application form */
.fee-sheet { position: relative; margin-top: 1.5rem; }
.fee-sheet::after {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 34px;
  height: 34px;
  border: 2px solid var(--brand);
  border-radius: 6px;
  transform: rotate(8deg);
  opacity: .55;
  pointer-events: none;
}
.fee-sheet select { width: 100%; min-width: 64px; }
.fs-awards {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: .9rem 1rem 1rem;
  margin: 1rem 0 0;
  display: grid;
  gap: .6rem;
}
.fs-awards legend {
  padding: 0 .4rem;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.fs-awards[disabled] { opacity: .5; }
.fs-awards .field input { width: 7rem; min-width: 64px; }
.fee-sheet .result-list li span:first-child { color: var(--ink); }
.fee-sheet .result-list li.fs-minus .num { color: var(--brand); }
.fee-sheet .result-list li.fs-info span { color: var(--muted); }
.fee-sheet .note a { color: var(--brand); }

/* Tables: scroll fallback, stacked cards on phones */
lg-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
lg-table td:empty { color: var(--muted); }
@media (max-width: 600px) {
  .fee-sheet::after { display: none; }
  .fs-awards { padding: .75rem; }
  lg-table table,
  lg-table tbody,
  lg-table tr,
  lg-table tr > * {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    white-space: normal !important;
  }
  lg-table thead {
    position: absolute;
    width: 1px !important;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  lg-table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem .8rem;
    margin: 0 0 .75rem;
  }
  lg-table tbody tr > * {
    display: flex !important;
    justify-content: space-between;
    gap: 1rem;
    padding: .25rem 0;
    border: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }
  lg-table tbody tr > *:empty { display: none !important; }
  lg-table tbody tr > *::before {
    flex: none;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
  }
  .tbl-glance tbody tr > :nth-child(1) { display: block !important; text-align: left; font-weight: 600; }
  .tbl-glance tbody tr > :nth-child(1)::before { content: none; }
  .tbl-glance tbody tr > :nth-child(2)::before { content: "Language"; }
  .tbl-glance tbody tr > :nth-child(3)::before { content: "Duration"; }
  .tbl-glance tbody tr > :nth-child(4)::before { content: "Tuition"; }
  .tbl-english tbody tr > :nth-child(1)::before { content: "City"; }
  .tbl-english tbody tr > :nth-child(2)::before { content: "School"; }
  .tbl-english tbody tr > :nth-child(3)::before { content: "Language"; }
  .tbl-english tbody tr > :nth-child(4)::before { content: "Tuition"; }
}