:root{
  color-scheme: light dark;
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, "Roboto Mono", monospace;

  --bg: #F5F5F6;
  --card: #FFFFFF;
  --surface: #F5F5F6;
  --surface-hover: #F5F5F6;
  --surface-2: #EDEDEF;
  --ink: #1D1D1F;
  --ink-hover: #3A3A3E;
  --ink-2: #3F3F43;
  --muted: #68686D;
  --line: #E5E5E8;
  --line-strong: #D2D2D7;
  --accent: #3155D4;
  --selected: #EFF1FC;
  --on-ink: #FFFFFF;

  --success: #0E7A47;
  --success-soft: #E8F5EE;
  --danger: #B4261E;
  --danger-soft: #FDECEA;
  --notice-soft: #F5F5F6;

  --ticket-bg: #F5F5F6;
  --ticket-ink: #1D1D1F;
  --ticket-tooth: 8px;

  --shadow-card: 0 1px 2px rgba(29,29,31,.04), 0 6px 20px rgba(29,29,31,.05);
  --shadow-btn: 0 2px 8px rgba(29,29,31,.18);
  --shadow-btn-off: 0 2px 8px rgba(29,29,31,0);
  --shadow-thumb: 0 1px 2px rgba(29,29,31,.08), 0 2px 8px rgba(29,29,31,.08);
  --shadow-toast: 0 8px 24px rgba(29,29,31,.2);

  --fs-title: 26px;  --lh-title: 1.3;  --ls-title: -0.02em; --fw-title: 700;
  --fs-lead: 16px;   --lh-lead: 1.55;  --fw-lead: 500;
  --fs-h2: 18px;     --lh-h2: 1.4;     --fw-h2: 700;
  --fs-body: 16px;   --lh-body: 1.6;   --ls-body: -0.01em;
  --fs-step: 15px;   --lh-step: 1.6;
  --fs-small: 13px;  --lh-small: 1.55;
  --fs-code: clamp(16px, 4.6vw, 22px); --ls-code: .04em; --fw-code: 600;
  --fs-btn: 16px;    --fw-btn: 650;

  --gutter: 16px;
  --container: 1040px;
  --claim-w: 416px;
  --card-pad: 20px;
  --r-card: 20px;
  --r-row: 14px;
  --r-btn: 14px;
  --r-ticket: 14px;
  --icon-hero: 64px;
  --icon-row: 44px;
  --btn-h: 54px; --btn2-h: 50px; --row-h: 64px; --tab-h: 44px; --tap: 44px;
  --header-h: 60px;
  --ok: var(--success);
  --ease: var(--kit-ease);

  /* base.css 연결 */
  --ys-ink: var(--ink); --ys-muted: var(--muted); --ys-line: var(--line);
  --ys-container: var(--container); --ys-gutter: var(--gutter);
  --ys-skip-bg: var(--ink); --ys-skip-fg: var(--on-ink);
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#101114; --card:#1B1C20; --surface:#26272C; --surface-hover:#232429; --surface-2:#2E2F35;
    --ink:#ECECEF; --ink-hover:#FFFFFF; --ink-2:#C9C9CE; --muted:#A3A3A8; --line:#2A2B30; --line-strong:#3A3B41;
    --accent:#8EA8FF; --selected:#2B303F; --on-ink:#101114;
    --success:#5BD69A; --success-soft:#23322F;
    --danger:#FF8A80;  --danger-soft:#36292C;
    --notice-soft:#26272C; --ticket-bg:#26272C; --ticket-ink:#ECECEF;
    --shadow-card: 0 0 0 1px #24252A;
    --shadow-btn: 0 2px 8px rgba(0,0,0,0);
    --shadow-btn-off: 0 2px 8px rgba(0,0,0,0);
    --shadow-thumb: 0 1px 2px rgba(0,0,0,.2);
    --shadow-toast: 0 8px 24px rgba(0,0,0,.5);
  }
}
@media (min-width:768px){ :root{ --gutter:24px; } }
@media (min-width:1024px){
  :root{ --fs-title:32px; --lh-title:1.28; --fs-code:24px; --icon-hero:72px; --header-h:68px; --card-pad:24px; }
}
html { background: var(--bg); }
body{ font-family:var(--font-sans); background:var(--bg); color:var(--ink); font-size:var(--fs-body); line-height:var(--lh-body); letter-spacing:var(--ls-body); }
.hidden{ display:none !important; }
.yee-clipboard-proxy{ position:fixed; top:0; left:0; width:1px; height:1px; opacity:0; pointer-events:none; }
.icon { width: 20px; height: 20px; flex: none; }
.page, .site-header__inner, .site-footer__admin { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.page { padding-top: 12px; }

/* Header */
.site-header { height: var(--header-h); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.brand__tile { width: 28px; height: 28px; flex: none; }
.brand__tile rect { fill: var(--ink); }
.brand__tile path { fill: none; stroke: var(--bg); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.brand__word { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.language-switch { position: relative; display: flex; padding: 3px; border-radius: 12px; background: var(--surface-2); }
.language-link { position: relative; z-index: 1; min-width: 44px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 200ms var(--ease); }
.language-link.is-active { color: var(--ink); }
.language-switch__thumb { border-radius: 9px; background: var(--card); box-shadow: var(--shadow-thumb); }
.language-switch:not(.has-thumb) .language-link.is-active { background: var(--card); box-shadow: var(--shadow-thumb); }
@media (hover:hover) { .language-link:hover { color: var(--ink); } }

/* Title */
.task-head { margin-bottom: 20px; }
.task-head__icon { width: var(--icon-hero); height: var(--icon-hero); border-radius: 22%; box-shadow: 0 0 0 1px var(--line), 0 4px 16px rgba(29,29,31,.08); margin-bottom: 16px; }
.task-head__title { font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--ls-title); font-weight: var(--fw-title); }
.task-head__lead { margin-top: 6px; font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: var(--fw-lead); color: var(--ink-2); max-width: 34em; }
.task-main, .help, .task-head__text, .picker, .claim { min-width: 0; }

/* Cards */
.picker, .claim, .howto, .faq, .state-block { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.picker { padding: var(--card-pad) calc(var(--card-pad) - 8px) calc(var(--card-pad) - 8px); }
.claim { padding: var(--card-pad); }
.howto, .faq { padding: var(--card-pad); }
.public-form { display: grid; gap: 12px; }
.field-label { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: var(--fw-h2); margin: 0 8px 12px; }

/* Search */
.search-field { position: relative; height: 48px; margin: 0 8px 8px; }
.search-field > .icon { position: absolute; top: 14px; left: 14px; color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; height: 100%; border: 0; border-radius: var(--r-row); background: var(--surface); box-shadow: inset 0 0 0 2px transparent; font-size: 16px; padding: 0 48px 0 44px; transition: box-shadow 180ms var(--ease); -webkit-appearance: none; appearance: none; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.search-clear { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity 160ms linear, visibility 160ms linear, transform 220ms var(--ease); }
.search-clear .icon { width: 18px; height: 18px; }
.search-field.has-value .search-clear { opacity: 1; visibility: visible; }

/* App list */
.app-list { position: relative; display: grid; isolation: isolate; }
.app-list__thumb { z-index: -1; border-radius: var(--r-row); background: var(--selected); }
.app-row { position: relative; display: grid; grid-template-columns: var(--icon-row) minmax(0,1fr) auto 24px; align-items: center; column-gap: 12px; min-height: var(--row-h); padding: 10px 8px; border-radius: var(--r-row); color: var(--ink); text-decoration: none; }
.app-list:not(.has-thumb) .app-row.is-selected { background: var(--selected); }
@media (hover:hover) { .app-row:not(.is-selected):hover { background: var(--surface-hover); } }
.app-row__icon { width: 44px; height: 44px; border-radius: 22%; box-shadow: 0 0 0 1px var(--line); }
.app-row__name { font-size: 16px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.app-row__tag { grid-column: 3; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.app-row__radio { grid-column: 4; position: relative; width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 50%; }
.app-row__radio::before { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; background: var(--accent); opacity: 0; scale: .5; transition: opacity 160ms linear, scale 300ms var(--ease); }
.app-row__radio .icon { position: relative; width: 14px; height: 14px; color: var(--card); stroke-width: 2.4; opacity: 0; transition: opacity 160ms linear; }
.is-selected .app-row__radio::before { opacity: 1; scale: 1; }
.is-selected .app-row__radio .icon { opacity: 1; }
/* Keep the receipt and claim action near the first mobile screen with a searchable catalog. */
@media (max-width: 1023px) {
  .js .app-list--search { max-height: 304px; overflow-y: auto; padding-bottom: 16px; -webkit-mask-image: linear-gradient(#000 calc(100% - 20px), transparent); mask-image: linear-gradient(#000 calc(100% - 20px), transparent); scrollbar-width: none; }
  .js .app-list--search::-webkit-scrollbar { display: none; }
}
.search-empty { margin: 0 8px 8px; padding: 28px 16px; border-radius: var(--r-row); background: var(--surface); text-align: center; font-size: 14px; color: var(--ink-2); }
.search-empty > .icon { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--muted); }
.search-empty__title { font-size: 16px; font-weight: 650; color: var(--ink); }
.search-empty .btn { margin-top: 12px; width: auto; display: inline-flex; background: var(--card); }

/* Buttons */
.btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r-btn); font-size: var(--fs-btn); font-weight: var(--fw-btn); text-decoration: none; cursor: pointer; white-space: nowrap; padding: 0 16px; }
.btn--primary { height: var(--btn-h); background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-btn); }
.btn--primary.press::after { background: var(--kit-press-on-ink); }
@media (hover:hover) { .btn--primary:hover { background: var(--ink-hover); } }
.btn--primary:disabled, .btn--primary[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); box-shadow: var(--shadow-btn-off); cursor: not-allowed; }
/* Waiting for the server keeps the ink fill; only the label changes. */
.btn--primary.is-loading, .btn--primary.is-loading:disabled { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-btn); cursor: progress; }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: promo-spin 700ms linear infinite; }
@keyframes promo-spin { to { transform: rotate(360deg); } }
.btn--secondary { height: var(--btn2-h); background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 600; }
@media (hover:hover) { .btn--secondary:hover { background: var(--surface-2); } }
.btn--small { height: 44px; padding-inline: 16px; }
#issue-code-button { margin-bottom: 12px; }
/* Sold out stays pressable (stock is advisory and the server decides) but stops being the main call to action. */
.public-form:has(.ticket[data-state="sold-out"]) #issue-code-button:not(.is-loading) { background: var(--surface-2); color: var(--ink); box-shadow: var(--shadow-btn-off); }
.public-form:has(.ticket[data-state="sold-out"]) #issue-code-button.press::after { background: var(--kit-press); }
.public-form[data-step="3"] #issue-code-button, .public-form[data-result-state="no-codes"] #issue-code-button { display: none; }

/* Claim card */
.claim-steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 16px; }
.claim-steps__seg { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: clip; }
.claim-steps__seg i { display: block; height: 100%; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease), background-color 240ms linear; }
.claim-steps.is-instant i { transition: none; }
.claim-steps[data-progress="1"] .claim-steps__seg:first-child i,
.claim-steps[data-progress="2"] .claim-steps__seg i { transform: scaleX(1); }
.claim-steps.is-done i { background: var(--ok); }
.ticket-app { grid-area: 1 / 1 / 2 / 2; display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 16px; font-weight: 650; }
.ticket-app img { width: 28px; height: 28px; flex: none; border-radius: 22%; box-shadow: 0 0 0 1px var(--line); }
.ticket-app__slot { display: none; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 22%; background: var(--surface); color: var(--muted); }
.ticket-app__slot .icon { width: 16px; height: 16px; }
.ticket-app[data-empty] { color: var(--muted); font-weight: 500; font-size: 15px; }
.ticket-app[data-empty] img { display: none; }
.ticket-app[data-empty] .ticket-app__slot { display: grid; }
.public-form[data-count="one"] .ticket-app { display: none; }
.public-form[data-count="one"] .ticket { margin-top: 0; }
.code-display { position: relative; display: grid; overflow: clip; overflow-clip-margin: 6px; margin-bottom: 16px; --text-3: var(--muted); }
.ticket { position: relative; grid-area: 2 / 1 / 3 / 2; display: grid; margin-top: 12px; background: var(--ticket-bg); border-radius: var(--r-ticket) var(--r-ticket) 0 0; padding: 20px 8px calc(20px + var(--ticket-tooth)/2); text-align: center; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--ticket-tooth) 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--ticket-tooth) 100%; }
.ticket__label { grid-area: 1 / 1 / 2 / 2; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.ticket__label .icon { width: 16px; height: 16px; }
.ticket__code { grid-area: 2 / 1 / 3 / 2; font-family: var(--font-code); font-size: var(--fs-code); font-weight: var(--fw-code); letter-spacing: var(--ls-code); color: var(--ticket-ink); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; word-break: break-all; line-height: 1.35; font-variant-numeric: tabular-nums; }
.ticket[data-state="placeholder"] .ticket__code, .ticket[data-state="sold-out"] .ticket__code { color: var(--text-3); user-select: none; -webkit-user-select: none; }
.ticket__hint { grid-area: 3 / 1 / 4 / 2; margin-top: 8px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-3); }
.ticket[data-state="placeholder"] .ticket__hint { display: none; }
.ticket[data-state="sold-out"] .ticket__hint { color: var(--danger); }
.ticket__type { position: absolute; grid-area: 2 / 1 / 3 / 2; inset: 0; font-family: var(--font-code); font-size: var(--fs-code); font-weight: var(--fw-code); letter-spacing: var(--ls-code); line-height: 1.35; font-variant-numeric: tabular-nums; color: var(--ticket-ink); overflow-wrap: anywhere; word-break: break-all; pointer-events: none; }
.ticket__type:empty { display: none; }
/* Transparent glyphs keep the original selectable and exposed to screen readers. */
.ticket.is-rolling .ticket__code { color: transparent; }
.tt-cell { display: inline-block; position: relative; vertical-align: top; width: calc(1ch + var(--ls-code)); height: 1.35em; overflow: clip; letter-spacing: 0; text-align: left; }
.tt-old, .tt-new { display: block; position: absolute; inset: 0; }
.tt-old { transform: translateY(-100%); }
.tt-dot { display: inline; }
.ticket-burst { position: absolute; grid-area: 2 / 1 / 3 / 2; inset: 0; overflow: clip; pointer-events: none; }
.ticket-burst__piece { position: absolute; left: 50%; top: 50%; width: 6px; height: 10px; border-radius: 2px; background: var(--accent); }
.ticket-burst__piece--1 { background: var(--ink); }
.ticket-burst__piece--2 { background: var(--line-strong); }
.result { margin-bottom: 16px; }
.result:focus { outline: none; }
.result__status { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.55; font-weight: 600; }
.result__status > .icon { margin-top: 1px; }
.result--issued .result__status { color: var(--success); }
.result--already .result__status, .result--expired .result__status { background: var(--notice-soft); color: var(--ink-2); border-radius: 12px; padding: 12px 14px; }
.result--no-codes .result__status, .result--error .result__status, .result--select-first .result__status, .result--no-apps .result__status { background: var(--danger-soft); color: var(--danger); border-radius: 12px; padding: 12px 14px; }
.result__actions { grid-area: 3 / 1 / 4 / 2; margin-top: 12px; display: grid; gap: 8px; }
.result__note { grid-area: 4 / 1 / 5 / 2; margin-top: 12px; }
.fineprint { list-style: none; padding: 0; display: grid; gap: 6px; }
.fineprint li, .result__note { display: flex; gap: 8px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.fineprint .icon, .result__note .icon { width: 16px; height: 16px; margin-top: 2px; }
.fineprint span, .result__note span { min-width: 0; word-break: keep-all; }
.fineprint a { color: var(--ink); text-underline-offset: 3px; }
@media (hover:hover) { .fineprint a:hover { color: var(--accent); } }
.store-row { margin-top: 8px; min-height: 44px; display: flex; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: -8px; padding: 0 8px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; }
.text-link .icon { width: 18px; height: 18px; }
.store-row__hint { font-size: 13px; color: var(--muted); }

/* Copy button: both icons stay in one slot, so the state change never moves anything. */
.copy-icons { display: grid; width: 20px; height: 20px; }
.copy-icons .icon { grid-area: 1 / 1; transition: opacity 160ms linear, scale 300ms var(--ease); }
.copy-icons .icon-done { opacity: 0; scale: .6; }
.is-copied { color: var(--success); }
.is-copied .copy-icons .icon-copy { opacity: 0; scale: .6; }
.is-copied .copy-icons .icon-done { opacity: 1; scale: 1; }

/* Toast: feedback floats, so the card keeps its height. */
.copy-feedback { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; width: max-content; max-width: min(440px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 500; line-height: 1.5; text-align: center; box-shadow: var(--shadow-toast); opacity: 0; visibility: hidden; transform: translate(-50%, 12px); pointer-events: none; transition: opacity 200ms linear, transform 320ms var(--ease), visibility 200ms linear; }
.copy-feedback.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Empty and error states */
.state-block { padding: 28px var(--card-pad); text-align: center; }
.state-block__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 18px; background: var(--surface); color: var(--muted); }
.state-block__icon .icon { width: 28px; height: 28px; }
.state-block__title { font-size: 18px; font-weight: 700; }
.state-block__text { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.state-block .btn { margin-top: 20px; width: auto; padding: 0 20px; display: inline-flex; }

/* How to and FAQ */
.help { margin-top: 12px; display: grid; gap: 12px; }
.help__title { display: flex; align-items: center; gap: 10px; font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: var(--fw-h2); margin-bottom: 16px; }
.help__tile { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--surface); color: var(--ink-2); }
.help__tile .icon { width: 18px; height: 18px; }
.tabs { position: relative; display: flex; padding: 3px; margin-bottom: 16px; border-radius: 13px; background: var(--surface); }
.tabs button { position: relative; z-index: 1; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color 200ms var(--ease), transform 220ms var(--ease); }
.tabs button .icon { width: 18px; height: 18px; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs:not(.has-thumb) button[aria-selected="true"] { background: var(--card); box-shadow: var(--shadow-thumb); }
.tabs__thumb { border-radius: 10px; background: var(--card); box-shadow: var(--shadow-thumb); }
@media (prefers-color-scheme: dark) { .tabs__thumb, .tabs:not(.has-thumb) button[aria-selected="true"] { background: var(--surface-2); } }
@media (hover:hover) { .tabs button:hover { color: var(--ink); } }
.tabs button:focus-visible { outline-offset: -2px; }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 24px minmax(0,1fr); column-gap: 12px; font-size: var(--fs-step); line-height: var(--lh-step); color: var(--ink-2); }
.steps li::before { counter-increment: step; content: counter(step); width: 24px; height: 24px; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.steps strong { color: var(--ink); font-weight: 650; }
.steps a { color: var(--accent); text-underline-offset: 3px; }
.howto__panel-title { font-size: 15px; font-weight: 650; margin-bottom: 8px; }
.howto__panel + .howto__panel { margin-top: 20px; }
/* Both panels share one grid cell: the card is always as tall as the taller one, so switching cannot change its height. */
.js .howto__panels { display: grid; overflow: clip; }
.js .howto__panel { grid-area: 1 / 1; margin: 0; visibility: hidden; opacity: 0; transition: opacity 120ms linear, transform 280ms var(--ease), visibility 120ms linear; }
.js #panel-phone:not(.is-active) { transform: translateX(-12px); }
.js #panel-computer:not(.is-active) { transform: translateX(12px); }
.js .howto__panel.is-active { visibility: visible; opacity: 1; transform: none; transition: opacity 180ms linear 110ms, transform 280ms var(--ease) 60ms, visibility 0ms; }
.js .howto__panel-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.howto__after { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.howto__after .icon { width: 16px; height: 16px; margin-top: 3px; }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; margin-inline: -8px; padding: 12px 8px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary > span { min-width: 0; }
.faq__chev { color: var(--muted); transform: rotate(90deg); transition: transform 280ms var(--ease); }
.faq__item.is-open .faq__chev { transform: rotate(-90deg); }
.faq__answer p { font-size: 14px; line-height: 1.65; color: var(--ink-2); padding: 4px 0 16px; }
.faq__answer strong { color: var(--ink); }

/* Footer */
.site-footer { margin-top: 40px; }
.site-footer__admin { margin-bottom: 4px; }
.site-footer__admin a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: -8px; padding: 0 8px; border-radius: 10px; font-size: 13px; color: var(--muted); text-decoration: none; }
.site-footer__admin .icon { width: 14px; height: 14px; }
@media (hover:hover) { .site-footer__admin a:hover { color: var(--ink); } }
.ys-studio a { min-width: 44px; }
.ys-web a { min-width: 44px; }
.ys-web__h { word-break: keep-all; }

@media (max-width: 374px) { .language-link { padding-inline: 6px; min-width: 40px; } }
@media (min-width: 640px) and (max-width: 1023px) { .task { max-width: 560px; margin-inline: auto; } }
@media (min-width: 1024px) {
  .page { padding-top: 24px; }
  .task-head { margin-bottom: 24px; }
  .task-head--one { display: flex; align-items: center; gap: 20px; }
  .task-head__icon { margin-bottom: 0; flex: none; }
  .public-form[data-count="many"] { grid-template-columns: minmax(0,1fr) var(--claim-w); gap: 16px; align-items: start; }
  .public-form[data-count="many"] .claim { position: sticky; top: 16px; }
  .task-grid--one { display: grid; grid-template-columns: var(--claim-w) minmax(0,1fr); gap: 16px; align-items: start; }
  .task-grid--one .help { margin-top: 0; }
  .task-grid--many .help { margin-top: 16px; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; align-items: start; }
  .task-grid--none, .task-grid--down { max-width: 480px; margin-inline: auto; }
  .state-block { padding: 40px 32px; }
  .site-footer { margin-top: 64px; }
}
/* Japanese titles need their natural character boundaries to meet the two-line limit. */
html[lang="ja"] .task-head__title { word-break: normal; }
html[lang="ja"] #selected-app-name { white-space: nowrap; }
@media print {
  .ticket.is-rolling .ticket__code { color: var(--ticket-ink); }
  .ticket__type, .ticket-burst { display: none; }
}
