.language-app [data-language-panel] {
  display: none;
}

.language-app[data-language="zh"] [data-language-panel="zh"],
.language-app[data-language="en"] [data-language-panel="en"] {
  display: block;
}

.language-app [data-language-visible] {
  display: none;
}

.language-app[data-language="zh"] [data-language-visible="zh"],
.language-app[data-language="en"] [data-language-visible="en"] {
  display: inline-flex;
}

.quota-main {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 64px;
}

.quota-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 22px 28px 24px;
  border: 1px solid var(--yw-line);
  border-radius: 24px;
  background: var(--yw-surface-glass);
  box-shadow: var(--yw-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.quota-hero > :not(.quota-shape) {
  position: relative;
  z-index: 2;
}

.quota-shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.quota-shape.navy {
  width: 42%;
  height: 66%;
  right: -14%;
  bottom: -32%;
  background: var(--yw-navy);
  clip-path: polygon(22% 0, 100% 18%, 100% 100%, 0 100%);
  opacity: 0.82;
}

.quota-shape.teal {
  width: 27%;
  height: 48%;
  right: 7%;
  top: -24%;
  background: var(--yw-teal);
  clip-path: polygon(18% 0, 100% 0, 76% 100%, 0 70%);
  opacity: 0.78;
}

.quota-shape.coral {
  width: 13%;
  height: 18%;
  right: 23%;
  bottom: 4%;
  background: var(--yw-coral);
  clip-path: polygon(0 34%, 72% 0, 100% 68%, 26% 100%);
  opacity: 0.82;
}

.quota-shape.gold {
  width: 4%;
  height: 9%;
  right: 18%;
  bottom: 19%;
  background: var(--yw-gold);
  clip-path: polygon(48% 0, 100% 36%, 74% 100%, 0 70%);
  opacity: 0.9;
}

.quota-eyebrow {
  margin: 0 0 6px;
  color: var(--yw-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quota-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--yw-ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.quota-title-accent {
  width: 78px;
  height: 5px;
  margin: 12px 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yw-coral) 0 80%, var(--yw-gold) 80% 100%);
}

.summary {
  max-width: 790px;
  margin: 12px 0 0;
  color: var(--yw-ink);
}

.updated {
  margin: 8px 0 0;
  color: var(--yw-muted);
  font-size: 14px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  max-width: 790px;
  margin-top: 10px;
  color: var(--yw-muted);
}

.stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

.stat + .stat::before {
  margin: 0 9px;
  color: rgba(108, 115, 128, 0.55);
  content: "·";
}

.stat strong {
  display: inline;
  color: var(--yw-muted);
  font-size: 13px;
  font-weight: 700;
}

.stat span {
  color: var(--yw-muted);
  font-size: 12px;
}

.notice {
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid var(--yw-line);
  border-radius: var(--yw-radius-card);
  background: var(--yw-surface);
  box-shadow: var(--yw-shadow-card);
}

.answer {
  margin-top: 24px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(65, 107, 150, 0.04);
  box-shadow: none;
}

.notice {
  border-left: 5px solid var(--yw-coral);
}

.notice h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.notice p {
  margin: 0;
}

.answer h2 {
  margin: 0 0 3px;
  color: var(--yw-muted);
  font-size: 14px;
  font-weight: 600;
}

.answer p {
  margin: 0;
  color: var(--yw-muted);
  font-size: 12px;
  line-height: 1.65;
}

.quota-section {
  margin-top: 24px;
}

.section-heading {
  position: relative;
  padding: 0 6px 12px 20px;
}

.section-heading::before {
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 38px;
  background: var(--yw-blue);
  clip-path: polygon(0 0, 100% 10%, 72% 100%, 0 86%);
  content: "";
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--yw-muted);
}

.table-shell {
  overflow: hidden;
  border: 1px solid var(--yw-line);
  border-radius: var(--yw-radius-table);
  background: var(--yw-surface);
  box-shadow: var(--yw-shadow-card);
}

.quota-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.quota-table th,
.quota-table td {
  padding: var(--yw-space-4);
  border-bottom: 1px solid var(--yw-line);
  overflow-wrap: anywhere;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.quota-table thead th {
  color: var(--yw-ink);
  background: var(--yw-tint-blue-soft);
  font-size: 13px;
}

.quota-table thead th:nth-child(1),
.quota-table tbody th {
  width: var(--yw-directory-platform-column);
}

.quota-table thead th:nth-child(2),
.quota-table td:nth-child(2) {
  width: var(--yw-directory-quota-column);
}

.quota-table thead th:nth-child(3),
.quota-table td:nth-child(3) {
  width: var(--yw-directory-reference-column);
}

.quota-table thead th:nth-child(4),
.quota-table td:nth-child(4) {
  width: var(--yw-directory-action-column);
}

.quota-table thead th:nth-child(3),
.quota-table thead th:nth-child(4),
.quota-table td:nth-child(3),
.quota-table td:nth-child(4) {
  text-align: center;
}

.quota-table td.row-action {
  vertical-align: middle;
}

.quota-table tbody tr:last-child > * {
  border-bottom: 0;
}

.platform {
  font-weight: 650;
}

.signup {
  width: var(--yw-directory-action-width);
  margin-inline: auto;
}

.quota-toggle {
  display: none;
}

.quota-toggle[hidden] {
  display: none;
}

.quota-footer {
  text-align: center;
}

@media (max-width: 720px) {
  .quota-main {
    width: min(100% - 20px, 1180px);
    margin: 14px auto 42px;
  }

  .quota-hero {
    padding: 20px 20px 24px;
    border-radius: 18px;
    background: rgba(252, 251, 247, 0.96);
  }

  .quota-shape.navy {
    width: 46%;
    height: 30%;
    right: -36%;
    bottom: -16%;
    opacity: 0.12;
  }

  .quota-shape.teal {
    width: 42%;
    height: 22%;
    right: -16%;
    top: -9%;
    opacity: 0.62;
  }

  .quota-shape.coral {
    width: 22%;
    height: 10%;
    right: -8%;
    bottom: -7%;
    opacity: 0.62;
  }

  .quota-shape.gold {
    width: 7%;
    height: 8%;
    right: -1%;
    bottom: 1%;
    opacity: 0.82;
  }

  .stats {
    gap: 4px 12px;
  }

  .stat + .stat::before {
    display: none;
  }

  .notice {
    padding: 19px;
  }

  .table-shell {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .quota-table,
  .quota-table tbody,
  .quota-table tr,
  .quota-table th,
  .quota-table td {
    display: block;
    width: 100% !important;
  }

  .quota-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .quota-table tbody {
    display: grid;
    gap: 12px;
  }

  .quota-table tbody tr {
    overflow: hidden;
    border: 1px solid var(--yw-line);
    border-radius: var(--yw-radius-card);
    background: var(--yw-surface);
    box-shadow: var(--yw-shadow-card);
  }

  .quota-table tbody th,
  .quota-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--yw-line);
  }

  .quota-table tbody th.platform {
    padding: var(--yw-space-4);
    background: var(--yw-tint-blue-soft);
    font-size: var(--yw-font-body);
    font-weight: 650;
  }

  .quota-table td[data-label]::before {
    display: block;
    margin-bottom: 3px;
    color: var(--yw-muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
  }

  .quota-copy.is-collapsible:not(.is-expanded) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--yw-directory-clamp-lines);
  }

  .quota-toggle {
    display: inline-flex;
    margin-top: var(--yw-space-2);
  }

  .quota-table .row-action {
    display: grid;
    grid-template-columns: minmax(var(--yw-directory-label-min), 1fr) auto;
    align-items: center;
    gap: var(--yw-space-3);
    text-align: left;
  }

  .quota-table td.row-action {
    text-align: left;
  }

  .quota-table .row-action::before {
    margin: 0;
    text-align: left;
  }

  .quota-table .row-action .yw-text-link,
  .quota-table .row-action .signup {
    justify-self: end;
  }

  .quota-table .row-action .signup {
    width: var(--yw-directory-action-width-mobile);
  }
}

@media (max-width: 360px) {
  .quota-hero {
    padding: var(--yw-space-4);
  }

  .quota-hero h1 {
    font-size: var(--yw-font-hero-compact);
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-nav,
  .quota-shape,
  .quota-toggle {
    display: none;
  }

  .quota-main {
    width: 100%;
    margin: 0;
  }

  .quota-hero,
  .table-shell,
  .answer,
  .notice {
    box-shadow: none;
  }
}
