/* A compact admission ticket shared by the studios and Creative Desk. */
#hiru-pass { padding-block-start: 12px; scroll-margin-block-start: 10px; }
#hiru-pass [hidden] { display: none !important; }
.hiru-pass {
  --pass-ink: #344b45;
  --pass-muted: #55645e;
  --pass-color: #485c57;
  --pass-tint: #f0f2eb;
  --pass-edge: #b7c3b8;
  --pass-sheet: #fffefa;
  margin: 0 0 24px;
  min-width: 0;
  border: 1px solid var(--pass-edge);
  border-radius: 15px;
  background: var(--pass-sheet);
  color: var(--pass-ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.hiru-pass[data-tier="basic"] {
  --pass-color: #245d4c;
  --pass-tint: #e6f3e9;
  --pass-edge: #9bbfa8;
}
.hiru-pass[data-tier="premium"] {
  --pass-color: #744b19;
  --pass-tint: #fcf0d3;
  --pass-edge: #cfb47e;
}
.hiru-pass[data-tier="error"] {
  --pass-color: #773e35;
  --pass-tint: #f8ebe6;
  --pass-edge: #c6a298;
}
#hiru-pass .hiru-pass-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 0 20px 0 0;
  list-style: none;
  border-radius: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.hiru-pass-summary::-webkit-details-marker { display: none; }
.hiru-pass-summary::after {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  margin-inline-start: -6px;
  border: solid var(--pass-color);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.hiru-pass[open] > .hiru-pass-summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.hiru-pass-summary:focus-visible {
  outline: 3px solid var(--pass-color);
  outline-offset: 3px;
}
.hiru-pass-stub {
  display: grid;
  flex: 0 0 58px;
  align-self: stretch;
  position: relative;
  place-items: center;
  border-inline-end: 1px dashed var(--pass-edge);
  border-radius: 14px 0 0 14px;
  background: var(--pass-tint);
  color: var(--pass-color);
  font-size: 23px;
  line-height: 1;
}
.hiru-pass-stub::before,
.hiru-pass-stub::after {
  content: "";
  position: absolute;
  inset-inline-end: -5px;
  width: 9px;
  height: 5px;
  border: 1px solid var(--pass-edge);
  background: #fffaf0;
}
.hiru-pass-stub::before { top: -1px; border-block-start: 0; border-radius: 0 0 8px 8px; }
.hiru-pass-stub::after { bottom: -1px; border-block-end: 0; border-radius: 8px 8px 0 0; }
.hiru-pass[open] .hiru-pass-stub { border-end-start-radius: 0; }
.hiru-pass[open] .hiru-pass-stub::after { display: none; }
.hiru-pass-heading { flex: 1; min-width: 0; padding-block: 9px; }
.hiru-pass-kicker,
.hiru-pass-title { display: block; }
#hiru-pass .hiru-pass-kicker { color: var(--pass-muted); font-size: 12px; font-weight: 620; line-height: 1.5; }
.hiru-pass-title { color: var(--pass-color); font-size: 19px; font-weight: 770; line-height: 1.4; letter-spacing: -.035em; }
.hiru-pass-usage,
.hiru-pass-toggle { color: var(--pass-color); font-size: 13px; line-height: 1.55; font-weight: 650; }
.hiru-pass-usage { max-width: 30em; }
.hiru-pass-toggle { flex-shrink: 0; }
.hiru-pass-meter {
  appearance: none;
  display: block;
  width: 100%;
  max-width: 13em;
  height: 5px;
  margin-top: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--pass-tint);
  color: var(--pass-color);
}
.hiru-pass-meter::-webkit-progress-bar { background: var(--pass-tint); }
.hiru-pass-meter::-webkit-progress-value { background: var(--pass-color); border-radius: 8px; }
.hiru-pass-meter::-moz-progress-bar { background: var(--pass-color); border-radius: 8px; }
.hiru-pass-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px 32px;
  padding: 20px 24px 22px;
  border-block-start: 1px dashed var(--pass-edge);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.hiru-pass-body > * { min-width: 0; }
#hiru-pass .hiru-pass-body h2 {
  margin: 0 0 8px;
  color: var(--pass-ink);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 740;
}
#hiru-pass .hiru-pass-body p { margin: 6px 0; color: var(--pass-muted); font-size: 14px; line-height: 1.65; word-break: keep-all; }
#hiru-pass .hiru-pass-scope, #hiru-pass .hiru-pass-contribution { margin-bottom: 12px; }
.hiru-pass-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.5;
}
.hiru-pass-table :is(th, td) {
  padding: 8px 9px;
  border-block-end: 1px solid #dce1d7;
  vertical-align: middle;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hiru-pass-table thead th { color: var(--pass-muted); font-size: 13px; }
.hiru-pass-table tbody th { color: var(--pass-ink); font-weight: 650; text-align: start; }
.hiru-pass-table [data-current="true"] { background: var(--pass-tint); color: var(--pass-color); font-weight: 750; }
.hiru-pass-table th:first-child { width: 32%; text-align: start; }
.hiru-pass-current {
  display: inline-block;
  margin: 2px;
  padding: 1px 5px;
  border: 1px solid var(--pass-edge);
  border-radius: 5px;
  color: var(--pass-color);
  background: var(--pass-sheet);
  font-size: 11px;
  white-space: nowrap;
}
.hiru-pass-eligibility ol { margin: 10px 0 4px; padding-inline-start: 28px; }
.hiru-pass-eligibility li { position: relative; padding-block-end: 10px; }
.hiru-pass-eligibility li::marker { color: transparent; }
.hiru-pass-eligibility li::before {
  content: counter(list-item) / "";
  display: grid;
  position: absolute;
  inset: 0 auto auto -28px;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--pass-edge);
  border-radius: 50%;
  background: var(--pass-tint);
  color: var(--pass-color);
  font-size: 12px;
  font-weight: 700;
}
.hiru-pass-eligibility li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: 25px auto 3px -18px;
  border-inline-start: 1px dashed var(--pass-edge);
}
#hiru-pass .hiru-pass-eligibility li p { margin: 1px 0 0; }
.hiru-pass-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.hiru-pass-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: none;
  background: none;
  padding: 0;
  color: var(--pass-color);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
#hiru-pass .hiru-pass-note { margin-top: 10px; font-size: 13px; line-height: 1.6; }
#hiru-pass :is(.hiru-pass-retry, .hiru-pass-signin) {
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--pass-edge);
  border-radius: 9px;
  background: var(--pass-tint);
  color: var(--pass-color);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
#hiru-pass .hiru-pass-signin { margin-bottom: 10px; }
#hiru-pass .hiru-pass-retry:disabled { cursor: wait; opacity: .7; }
@media (hover: hover) {
  .hiru-pass-summary:hover .hiru-pass-toggle { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 780px) {
  .hiru-pass-body { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px; }
}
@media (max-width: 600px) {
  .hiru-pass { margin-block-end: 18px; }
  #hiru-pass .hiru-pass-summary {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) auto 8px;
    gap: 0 9px;
    min-height: 60px;
    padding-inline-end: 13px;
  }
  .hiru-pass-stub { grid-area: 1 / 1 / 3 / 2; font-size: 17px; }
  .hiru-pass-heading { grid-area: 1 / 2; padding-bottom: 0; }
  .hiru-pass-title { font-size: 16px; }
  .hiru-pass-usage { grid-area: 2 / 2; align-self: start; padding-block-end: 9px; font-size: 12px; }
  .hiru-pass-toggle { grid-area: 1 / 3 / 3 / 4; max-width: 6.5em; font-size: 12px; }
  .hiru-pass-summary::after { grid-area: 1 / 4 / 3 / 5; margin: 0; }
  .hiru-pass-table :is(th, td) { padding: 8px 4px; font-size: 13px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hiru-pass-summary::after { transition: transform .16s ease-out; }
  .hiru-pass[open] > .hiru-pass-body { animation: hiru-pass-reveal .16s ease-out; }
  @keyframes hiru-pass-reveal { from { opacity: .65; transform: translateY(-2px); } to { opacity: 1; transform: translateY(0); } }
}
