.xq-kicker { color: var(--x-muted); font-size: .8125rem; font-weight: 600; letter-spacing: var(--x-caps-track); text-transform: var(--x-caps); }
.xq-lead { max-width: 42rem; font-size: 1.0625rem; }
:where(#main) .xq-h { margin-top: 10px; font-size: 1.25rem; }

@keyframes xq-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes xq-mark { from { opacity: .35; transform: scale(.7); } }
.xq-in, .xq-mine, .xq-ticket--moved { animation: xq-in var(--x-panel) var(--x-ease) both; }

.xq-strip { background: var(--x-surface-2); border-bottom: 1px solid var(--x-hair); }
.xq-strip-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.xq-strip-t { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .9375rem; font-weight: 600; line-height: var(--x-lh-label); }
.xq-strip-t > .x-i { color: var(--x-accent-ink); }
.xq-strip-a { flex: none; font-size: .9375rem; font-weight: 600; white-space: nowrap; }

@media (max-width: 19.9em) {
  .xq-strip.x-stick { position: static; }
  .xq-bar-t:has(+ .x-hint) { display: none; }
}

.xq-strip-below { border-top: 1px solid var(--x-hair); }
.xq-cats { display: block; min-width: 0; }
.xq-cats .x-filter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.xq-cats .x-chips { --x-under: var(--x-surface-2); position: relative; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; background: linear-gradient(90deg, var(--x-under) 40%, transparent) 0 0 / 32px 100% no-repeat local, linear-gradient(270deg, var(--x-under) 40%, transparent) 100% 0 / 32px 100% no-repeat local, linear-gradient(90deg, var(--x-hair), transparent) 0 0 / 14px 100% no-repeat scroll, linear-gradient(270deg, var(--x-hair), transparent) 100% 0 / 14px 100% no-repeat scroll; }
.xq-cats .x-chip { flex: none; }
.xq-cats .x-chip-face { white-space: nowrap; }

.xq-start { display: grid; gap: 32px; }
.xq-start-main, .xq-start-side { align-content: start; }
.xq-tent { display: grid; justify-items: start; gap: 6px; padding: 20px; border: 1px solid var(--x-hair); border-top: 4px solid var(--x-accent); border-radius: calc(var(--x-radius, 8px) + 4px); background: var(--x-surface); }
.xq-tent-k { color: var(--x-muted); font-size: .875rem; }
.xq-tent-n { font-family: var(--x-display, var(--x-text)); font-size: clamp(2.25rem, 1.6rem + 3.4vw, 3.25rem); font-weight: var(--x-display-weight, 600); line-height: var(--x-lh-head); }

.xq-tent-n:lang(th) { font-family: "x-figures", var(--x-display, var(--x-text)); font-weight: var(--x-th-display-weight, 600); }
.xq-tent-z { margin-bottom: 10px; color: var(--x-muted); }
.xq-tent-more { display: grid; gap: 4px; margin-top: 8px; }
.xq-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: 8px; }
.xq-table { display: grid; align-content: center; gap: 2px; min-height: 60px; margin: 0; padding: 8px 12px; border: 1px solid var(--x-line); border-radius: var(--x-radius, 8px); background: var(--x-surface); color: inherit; text-decoration: none; }
.xq-table-n { font-weight: 600; }
.xq-table-z { color: var(--x-muted); font-size: .875rem; }

.xq-table[aria-current] { border-color: var(--x-ink); box-shadow: inset 0 0 0 1px var(--x-ink); }
.xq-table[aria-current] .xq-table-n::after { content: ""; display: inline-block; width: 6px; height: 11px; margin: 0 0 1px 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(40deg); }
.xq-how { display: grid; gap: 12px; }
.xq-how li { display: flex; align-items: baseline; gap: 12px; }
.xq-how-n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid var(--x-line); border-radius: 50%; font-size: .8125rem; font-weight: 700; line-height: 1; }
@media (min-width: 56.25em) {
  .xq-start { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
}

.xq-period { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.xq-period > .x-i { color: var(--x-accent-ink); }
.xq-sec { --x-gap: 12px; }
.xq-sec + .xq-sec { margin-top: 14px; }
.xq-sec-head { display: grid; gap: 2px; }
.xq-grid { --x-min: 260px; }
.xq-card-b { display: flex; }
.xq-card-d { color: var(--x-muted); font-size: .9375rem; }

.xq-card-f { justify-self: start; padding: 2px 10px; border: 1px solid var(--x-line); border-radius: var(--x-radius, 8px); font-size: .875rem; font-weight: 600; }

.xq-card-go { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.xq-card-go-t { display: inline-flex; align-items: center; gap: 4px; color: var(--x-accent-ink); font-size: .9375rem; font-weight: 600; }
.xq-card .x-card-actions { align-items: center; gap: 6px 10px; }
.xq-card--off .x-card-media { opacity: .5; }

.xq-bar-t { display: flex; align-items: center; min-width: 0; min-height: 44px; font-size: .9375rem; }

@media (max-width: 37.4375em) {
  .xq-card { flex-direction: row; }
  .xq-card .x-card-media { flex: none; width: 96px; border-radius: calc(var(--x-radius, 8px) - 1px) 0 0 calc(var(--x-radius, 8px) - 1px); }
  .xq-card .x-card-media .x-img { height: 100%; }
  .xq-card .x-card-body { padding: 12px 14px; }
}

.xq-item { display: grid; gap: 14px; }
.xq-item-grid { display: grid; gap: 20px; }
.xq-item-grid > * { min-width: 0; }

.xq-item-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--x-radius, 8px); }
.xq-item-media .x-img { height: 100%; }
.xq-item-meta { color: var(--x-muted); }
.xq-group { display: grid; gap: 4px; padding: 14px 16px 8px; border: 1px solid var(--x-hair); border-radius: var(--x-radius, 8px); background: var(--x-surface); }
.xq-group--bad { border-color: var(--x-danger); box-shadow: inset 0 0 0 1px var(--x-danger); }

.xq-group-l { float: left; width: 100%; padding: 0 0 2px; }
.xq-rule { margin-inline-start: 6px; color: var(--x-muted); font-size: .875rem; }
.xq-opts { display: grid; }
.xq-opt--off { color: var(--x-muted); }
.xq-opt-n { display: block; font-size: .875rem; }

@media (min-width: 53.75em) {
  .xq-item-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; gap: 24px 48px; align-items: start; }
  .xq-item-media { grid-column: 1; grid-row: 1; aspect-ratio: auto; }
  .xq-item-media .x-img { height: auto; }
  .xq-item-main { grid-column: 2; grid-row: 1 / span 2; }
  .xq-item-info { grid-column: 1; grid-row: 2; }
  .xq-bar--item .x-actionbar-in { justify-content: flex-end; gap: 20px; }
}

.xq-lines { border-bottom: 1px solid var(--x-hair); }
.xq-line { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; padding: 14px 0; border-top: 1px solid var(--x-hair); }
.xq-lines--read .xq-line { grid-template-columns: minmax(0, 1fr); }
.xq-line-img { width: 64px; border-radius: var(--x-radius, 8px); }
.xq-line-main { display: grid; align-content: start; gap: 4px; min-width: 0; }
.xq-line-n { font-weight: 600; }
.xq-line-q { font-variant-numeric: tabular-nums; }
.xq-line-c { display: inline-block; margin-inline-start: 8px; padding: 1px 8px; border-radius: 999px; background: var(--x-surface-2); color: var(--x-muted); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.xq-line-o { color: var(--x-muted); font-size: .9375rem; }
.xq-line-o li { display: inline; }
.xq-line-o li + li::before { content: " · "; }
.xq-line-note { padding-inline-start: 10px; border-inline-start: 2px solid var(--x-line); font-size: .9375rem; }
.xq-line-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.xq-line--bad { padding-inline-start: 12px; box-shadow: inset 3px 0 0 var(--x-danger); }
.xq-blocked-list { padding-inline-start: 1.2em; list-style: disc; font-weight: 600; }

.xq-prep { display: grid; gap: 6px; }
.xq-prep-l { margin-top: 4px; color: var(--x-muted); font-size: .8125rem; font-weight: 700; letter-spacing: var(--x-caps-track); text-transform: var(--x-caps); }
.xq-prep .xq-lines { border-bottom: 0; }
@media (min-width: 45em) {
  .xq-line { grid-template-columns: auto minmax(0, 1fr) auto; }
  .xq-line-acts { grid-column: auto; justify-content: flex-end; align-self: start; }
  .xq-lines--read .xq-line { grid-template-columns: minmax(0, 1fr); }
}

:is(.xq-cart, .xq-review, .xq-track, .xq-sent, .xq-requests) > * { max-width: 52rem; }
.xq-track-m { color: var(--x-muted); }
.xq-status { display: grid; justify-items: start; gap: 12px; padding: 16px; border: 1px solid var(--x-hair); border-radius: var(--x-radius, 8px); background: var(--x-surface); }
.xq-status-now { font-weight: 600; }
.xq-flow { display: grid; width: 100%; }
.xq-flow-s { position: relative; display: flex; align-items: center; gap: 12px; min-height: 38px; color: var(--x-muted); }
.xq-flow-s + .xq-flow-s::before { content: ""; position: absolute; inset-inline-start: 10px; top: -10px; width: 2px; height: 20px; background: var(--x-line); }
.xq-flow-d { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 2px solid var(--x-line); border-radius: 50%; background: var(--x-surface); font-size: .75rem; }

.xq-flow-s--done { color: var(--x-ink); }
.xq-flow-s--done .xq-flow-d { border-color: var(--x-ink); }
.xq-flow-s--now { color: var(--x-ink); font-weight: 700; }
.xq-flow-s--now .xq-flow-d { border-color: var(--x-accent); background: var(--x-accent); box-shadow: 0 0 0 3px var(--x-surface), 0 0 0 4px var(--x-accent); animation: xq-mark var(--x-panel) var(--x-ease) both; }
.xq-rounds { display: grid; gap: 12px; }
.xq-related { margin-top: 6px; }

.xq-related > .x-link, .xq-related > .x-link:focus-visible { display: block; width: fit-content; padding-block: 11px; }
.xq-sent-below { margin-top: 12px; }

.xq-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 12px; }
.xq-kind { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 16px; border: 1px solid var(--x-hair); border-radius: var(--x-radius, 8px); background: var(--x-surface); }
.xq-kind--on { border-color: var(--x-line); background: var(--x-surface-2); }
.xq-kind--out { border-style: dashed; border-color: var(--x-line); background: none; }
:where(#main) .xq-kind-t { font: 600 1.0625rem/var(--x-lh-label) var(--x-text); }
.xq-log li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--x-hair); }
.xq-log-t { margin-inline-end: auto; font-weight: 600; }

.xq-staff { --x-gap: 12px; }
.xq-role { border-block: 1px solid var(--x-hair); color: var(--x-muted); font-size: .9375rem; }
.xq-role summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; }
.xq-role summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-inline-start: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.xq-role[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.xq-role summary::-webkit-details-marker { display: none; }
.xq-role p { max-width: 46rem; padding-bottom: 12px; }

.xq-counts { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: .9375rem; }
.xq-count { display: flex; align-items: baseline; gap: 6px; }
.xq-count dt { color: var(--x-muted); }
.xq-count dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.xq-queue { display: grid; gap: 10px; }
:where(#main) .xq-queue-h { font-size: 1.1875rem; }
.xq-queue-n { color: var(--x-muted); font-weight: 400; }
.xq-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); align-items: start; gap: 12px; }
.xq-ticket { display: grid; gap: 8px; min-width: 0; padding: 14px 16px; border: 1px solid var(--x-hair); border-inline-start: 4px solid var(--x-line); border-radius: var(--x-radius, 8px); background: var(--x-surface); }
.xq-ticket--sent, .xq-ticket--accepted, .xq-ticket--preparing { border-inline-start-color: var(--x-info); }
.xq-ticket--open { border-inline-start-color: var(--x-warn); }
.xq-ticket--ready { border-inline-start-color: var(--x-ok); }

.xq-ticket--req { border-style: dashed; border-inline-start-style: solid; border-color: var(--x-line); background: var(--x-surface-2); }
.xq-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
:where(#main) .xq-ticket-t { font: 700 1.125rem/var(--x-lh-label) var(--x-text); }
.xq-ticket-m { color: var(--x-muted); font-size: .875rem; }
.xq-req-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; font-weight: 600; }
.xq-ticket .xq-line { padding: 8px 0; }
.xq-ticket-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xq-done summary { padding: 10px 0; font-weight: 600; cursor: pointer; }
.xq-done[open] summary { margin-bottom: 8px; }
.xq-avail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 20px 32px; }
.xq-avail-g { display: grid; align-content: start; }
.xq-avail-g legend { padding-bottom: 4px; }

@media (hover: hover) and (pointer: fine) {
  .xq-table:hover { border-color: var(--x-ink); }
}
@media (forced-colors: active) {
  .xq-flow-s--now .xq-flow-d { background: Highlight; border-color: Highlight; }
  .xq-table[aria-current] { border-color: Highlight; }
}

.xq-start-page { display: grid; gap: 0; }
.xq-start-page--welcome { padding-top: 0; }
.xq-opening { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .xq-opening { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--x-bg); pointer-events: none; animation: xq-op-out .62s cubic-bezier(.77, 0, .175, 1) 2.1s forwards; }
  .xq-opening::before { content: ""; position: absolute; inset: 0; background: radial-gradient(32% 24% at 50% 42%, color-mix(in srgb, var(--x-accent) 12%, transparent), transparent 74%); animation: xq-op-glow 1.8s cubic-bezier(.23, 1, .32, 1) both; }
  .xq-op-in { position: relative; display: grid; justify-items: center; gap: 14px; }
  .xq-op-logo { position: relative; display: block; width: 132px; height: 132px; }
  .xq-op-logo > * { position: absolute; inset: 0; width: 100%; height: 100%; }
  .xq-op-ghost, .xq-op-fill, .xq-op-glint { -webkit-mask: var(--op-mark) center / contain no-repeat; mask: var(--op-mark) center / contain no-repeat; }
  .xq-op-ghost { background: color-mix(in srgb, var(--x-accent) 16%, transparent); animation: xq-op-fade .5s ease .05s both; }
  .xq-op-fill { background: linear-gradient(0deg, var(--x-accent) 0 47%, color-mix(in srgb, var(--x-accent) 0%, transparent) 53% 100%) 0 0 / 100% 210% no-repeat; animation: xq-op-rise 1.15s cubic-bezier(.65, 0, .35, 1) .25s both; }
  .xq-op-img { transform-origin: 50% 100%; animation: xq-op-settle .55s cubic-bezier(.23, 1, .32, 1) 1.15s both; }
  .xq-op-glint { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%) 115% 0 / 320% 100% no-repeat; animation: xq-op-glint 1s cubic-bezier(.77, 0, .175, 1) 1.4s both; }
  .xq-op-name { margin: 0; font-family: var(--x-display, var(--x-text)); font-weight: var(--x-display-weight, 600); font-size: 1.625rem; letter-spacing: .02em; color: var(--x-ink); }
  .xq-op-name span { display: inline-block; white-space: pre; animation: xq-op-letter .7s cubic-bezier(.23, 1, .32, 1) both; }
  .xq-op-rule { display: block; width: 48px; height: 2px; border-radius: 2px; background: var(--x-accent); animation: xq-op-rule .7s cubic-bezier(.23, 1, .32, 1) 1.35s both; }
  .xq-op-kind { margin: 0; font-size: .75rem; letter-spacing: var(--x-caps-track, .14em); text-transform: uppercase; color: var(--x-muted); animation: xq-op-fade .6s ease 1.5s both; }
}
.xq-op-name span:nth-child(1) { animation-delay: .85s; } .xq-op-name span:nth-child(2) { animation-delay: .88s; } .xq-op-name span:nth-child(3) { animation-delay: .91s; }
.xq-op-name span:nth-child(4) { animation-delay: .94s; } .xq-op-name span:nth-child(5) { animation-delay: .97s; } .xq-op-name span:nth-child(6) { animation-delay: 1s; }
.xq-op-name span:nth-child(7) { animation-delay: 1.03s; } .xq-op-name span:nth-child(8) { animation-delay: 1.06s; } .xq-op-name span:nth-child(9) { animation-delay: 1.09s; }
.xq-op-name span:nth-child(10) { animation-delay: 1.12s; } .xq-op-name span:nth-child(11) { animation-delay: 1.15s; } .xq-op-name span:nth-child(12) { animation-delay: 1.18s; }
.xq-op-name span:nth-child(n+13) { animation-delay: 1.21s; }
@keyframes xq-op-out { to { opacity: 0; visibility: hidden; transform: scale(1.03); } }
@keyframes xq-op-glow { from { opacity: 0; transform: scale(.6); } }
@keyframes xq-op-fade { from { opacity: 0; } }
@keyframes xq-op-rise { from { background-position: 0 0; } to { background-position: 0 100%; } }
@keyframes xq-op-settle { from { opacity: 0; transform: scale(.985); } }
@keyframes xq-op-glint { from { background-position: 115% 0; } to { background-position: -15% 0; } }
@keyframes xq-op-letter { from { opacity: 0; transform: translateY(.5em); filter: blur(6px); } }
@keyframes xq-op-rule { from { opacity: 0; transform: scaleX(0); } }

.xq-welcome { position: relative; display: grid; align-items: end; min-height: min(38vh, 340px); overflow: hidden; isolation: isolate; color: #fff; }
.xq-welcome .xq-welcome-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.xq-welcome::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .2) 40%, rgba(0, 0, 0, .66) 100%); }
.xq-welcome-in { display: grid; justify-items: start; gap: 4px; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--x-gutter) 22px; }
.xq-welcome-mark { width: 52px; height: 52px; margin-bottom: 6px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }
.xq-welcome-name { margin: 0; font-family: var(--x-display, var(--x-text)); font-weight: var(--x-display-weight, 600); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.05; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.xq-welcome-k { margin: 0; font-size: .75rem; letter-spacing: var(--x-caps-track, .14em); text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.xq-start-page--welcome .xq-start { padding-top: 24px; }
.xq-start-page--welcome .xq-tent { position: relative; overflow: hidden; border: 0; box-shadow: inset 0 0 0 1px var(--x-hair), 0 18px 40px -26px color-mix(in srgb, var(--x-accent) 70%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--x-accent) 9%, var(--x-surface)) 0%, var(--x-surface) 55%); }
.xq-start-page--welcome .xq-tent::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--x-accent), color-mix(in srgb, var(--x-accent) 45%, #fff)); }
@media (prefers-reduced-motion: no-preference) {
  .xq-welcome .xq-welcome-img { animation: xq-drift 14s cubic-bezier(.23, 1, .32, 1) both; }
  .xq-welcome-in > * { animation: xq-welcome-in .8s cubic-bezier(.23, 1, .32, 1) both; }
  .xq-welcome-in > :nth-child(2) { animation-delay: .06s; } .xq-welcome-in > :nth-child(3) { animation-delay: .12s; }
  .xq-start-page:has(.xq-opening) .xq-welcome-in > * { animation-delay: 2.3s; }
  .xq-start-page:has(.xq-opening) .xq-welcome-in > :nth-child(2) { animation-delay: 2.36s; }
  .xq-start-page:has(.xq-opening) .xq-welcome-in > :nth-child(3) { animation-delay: 2.42s; }
  .xq-start-page:has(.xq-opening) .xq-welcome .xq-welcome-img { animation-delay: 2s; }
}
@keyframes xq-drift { from { transform: scale(1.08); } }
@keyframes xq-welcome-in { from { opacity: 0; transform: translateY(10px); } }
