:root {
  color-scheme: light;
  --feeci-ink: #182321;
  --feeci-muted: #66716f;
  --feeci-line: #dfe6e3;
  --feeci-surface: #ffffff;
  --feeci-canvas: #f3f6f4;
  --feeci-green: #176b52;
  --feeci-green-dark: #0f503d;
  --feeci-green-soft: #e5f3ed;
  --feeci-red: #a43f3f;
  --feeci-red-soft: #fae9e7;
  --feeci-amber: #8a5d13;
  --feeci-shadow: 0 24px 70px rgba(20, 43, 36, 0.12);
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
[hidden] { display: none !important; }
body.feeci-portal-body { margin: 0; min-height: 100vh; background: var(--feeci-canvas); color: var(--feeci-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.feeci-shell { min-height: 100vh; }
.feeci-header { height: 76px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--feeci-line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.feeci-brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.feeci-brand-mark { display: grid; place-items: center; color: white; background: var(--feeci-green); font-weight: 800; }
.feeci-brand-mark { width: 38px; height: 38px; border-radius: 12px; }
.feeci-brand span:last-child { display: grid; gap: 2px; }
.feeci-brand strong { font-size: 15px; letter-spacing: -.01em; }
.feeci-brand small, .feeci-viewer small { color: var(--feeci-muted); font-size: 12px; }
.feeci-viewer { display: flex; align-items: center; gap: 18px; }
.feeci-viewer > span { display: grid; text-align: right; gap: 1px; }
.feeci-viewer strong { font-size: 14px; }
.feeci-link-button { border: 0; background: transparent; color: var(--feeci-green); padding: 8px; cursor: pointer; font-weight: 700; }

.feeci-main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 72px; }
.feeci-login { min-height: calc(100vh - 116px); display: grid; place-items: center; padding: 24px 0 64px; }
.feeci-login-card { width: min(100%, 440px); background: var(--feeci-surface); border: 1px solid var(--feeci-line); border-radius: 22px; padding: 38px; box-shadow: var(--feeci-shadow); }
.feeci-title-lockup { display: flex; align-items: center; gap: 14px; min-width: 0; }
.feeci-title-logo { display: flex; align-items: center; flex: 0 0 auto; min-width: 48px; max-width: 108px; line-height: 0; }
.feeci-title-logo img { display: block; width: auto; height: auto; max-width: 108px; max-height: 48px; object-fit: contain; }
.feeci-login h1, .feeci-page-heading h1 { margin: 0; letter-spacing: -.035em; }
.feeci-login h1 { font-size: 30px; }
.feeci-login-copy { color: var(--feeci-muted); line-height: 1.55; margin: 12px 0 26px; }
.feeci-login form { display: grid; gap: 9px; }
.feeci-login form > label:not(.feeci-check), .feeci-field label, .feeci-search > label { font-size: 13px; font-weight: 750; margin-top: 7px; }
.feeci-login input[type="text"], .feeci-login input[type="password"], .feeci-login input[type="email"], .feeci-field select, .feeci-search input { width: 100%; border: 1px solid #cad4d0; border-radius: 11px; background: #fff; color: var(--feeci-ink); min-height: 48px; padding: 11px 13px; outline: none; }
.feeci-login input:focus, .feeci-field select:focus, .feeci-search input:focus { border-color: var(--feeci-green); box-shadow: 0 0 0 3px rgba(23,107,82,.12); }
.feeci-password-wrap { position: relative; }
.feeci-password-wrap input { padding-right: 64px !important; }
.feeci-password-wrap button { position: absolute; right: 7px; top: 7px; bottom: 7px; border: 0; background: transparent; color: var(--feeci-green); font-size: 12px; font-weight: 800; cursor: pointer; }
.feeci-check { display: inline-flex; gap: 8px; align-items: center; color: #46524f; font-size: 13px; cursor: pointer; }
.feeci-check input { accent-color: var(--feeci-green); width: 16px; height: 16px; }
.feeci-login .feeci-check { margin: 8px 0 12px; }
.feeci-primary-button, .feeci-secondary-button { min-height: 43px; border-radius: 10px; padding: 10px 17px; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; font-weight: 750; border: 1px solid transparent; cursor: pointer; transition: .16s ease; }
.feeci-primary-button { background: var(--feeci-green); color: white; }
.feeci-primary-button:hover { background: var(--feeci-green-dark); }
.feeci-primary-button:disabled { opacity: .6; cursor: wait; }
.feeci-secondary-button { background: white; color: var(--feeci-ink); border-color: #cfd8d5; }
.feeci-secondary-button:hover { border-color: #9daba6; background: #fafcfb; }
.feeci-danger { color: var(--feeci-red); }
.feeci-form-message { min-height: 20px; color: var(--feeci-red); font-size: 13px; }
.feeci-security-note { margin: 20px 0 0; text-align: center; color: var(--feeci-muted); font-size: 12px; }

.feeci-workspace { display: grid; gap: 22px; }
.feeci-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.feeci-page-heading h1 { font-size: clamp(30px, 5vw, 44px); }
.feeci-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 180px 180px; gap: 14px; padding: 18px; background: var(--feeci-surface); border: 1px solid var(--feeci-line); border-radius: 15px; }
.feeci-field { display: grid; gap: 7px; }
.feeci-search { background: var(--feeci-surface); border: 1px solid var(--feeci-line); border-radius: 15px; padding: 20px; display: grid; gap: 9px; }
.feeci-search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.feeci-search-input-wrap { position: relative; }
.feeci-search-icon { position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: #77827f; stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.feeci-search input { padding-left: 45px; padding-right: 48px; min-height: 51px; }
.feeci-search input::-webkit-search-cancel-button { appearance: none; }
.feeci-clear-search { position: absolute; right: 7px; top: 50%; width: 37px; height: 37px; transform: translateY(-50%); display: grid; place-items: center; border: 0; border-radius: 50%; padding: 0; background: transparent; color: #63706c; cursor: pointer; }
.feeci-clear-search[hidden] { display: none; }
.feeci-clear-search:hover { background: #eef3f1; color: var(--feeci-ink); }
.feeci-clear-search:focus-visible { outline: 2px solid var(--feeci-green); outline-offset: 1px; }
.feeci-clear-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.feeci-camera-button { width: 51px; min-width: 51px; min-height: 51px; padding: 0; display: grid; place-items: center; }
.feeci-camera-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.feeci-message { border-radius: 11px; padding: 13px 15px; font-size: 14px; font-weight: 650; }
.feeci-message-success { color: var(--feeci-green-dark); background: var(--feeci-green-soft); border: 1px solid #bedfce; }
.feeci-message-error { color: #792c2c; background: var(--feeci-red-soft); border: 1px solid #efc7c3; }
.feeci-results-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 5px; }
.feeci-results-heading h2 { margin: 0; font-size: 20px; }
.feeci-results-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--feeci-muted); font-size: 13px; }
.feeci-results-meta label { font-weight: 700; }
.feeci-results-meta select { min-height: 34px; border: 1px solid #cad4d0; border-radius: 8px; background: white; color: var(--feeci-ink); padding: 5px 28px 5px 9px; }
.feeci-selection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 9px 12px; border: 1px solid var(--feeci-line); border-radius: 12px; background: var(--feeci-surface); }
.feeci-select-visible { display: inline-flex; align-items: center; gap: 8px; color: var(--feeci-ink); font-size: 13px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.feeci-select-visible input, .feeci-ticket-select input { width: 18px; height: 18px; margin: 0; accent-color: var(--feeci-green); cursor: pointer; }
.feeci-bulk-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.feeci-bulk-actions strong { margin-right: 3px; color: var(--feeci-muted); font-size: 12px; white-space: nowrap; }
.feeci-bulk-actions .feeci-primary-button, .feeci-bulk-actions .feeci-secondary-button { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.feeci-empty { text-align: center; background: rgba(255,255,255,.55); border: 1px dashed #cbd5d1; border-radius: 16px; padding: 58px 20px; }
.feeci-empty > svg { width: 34px; height: 34px; fill: none; stroke: #82908b; stroke-width: 1.5; stroke-linecap: round; }
.feeci-empty h3 { margin: 12px 0 5px; }
.feeci-empty p { margin: 0; color: var(--feeci-muted); }
.feeci-results { display: block; width: 100%; overflow: hidden; background: var(--feeci-surface); border: 1px solid var(--feeci-line); border-radius: 15px; box-shadow: 0 5px 18px rgba(25,50,42,.035); }
.feeci-ticket { position: relative; background: var(--feeci-surface); }
.feeci-ticket-selected { box-shadow: inset 3px 0 0 var(--feeci-green); background: #fbfefc; }
.feeci-ticket-select { position: absolute; z-index: 2; top: 22px; left: 20px; display: grid; place-items: center; opacity: 0; transition: opacity .15s ease; }
.feeci-ticket:hover .feeci-ticket-select, .feeci-ticket:focus-within .feeci-ticket-select, .feeci-ticket-selected .feeci-ticket-select { opacity: 1; }
.feeci-ticket + .feeci-ticket { border-top: 1px solid var(--feeci-line); }
.feeci-ticket-main { display: grid; grid-template-columns: 132px minmax(0, 1fr) 130px; align-items: start; gap: 18px; min-height: 106px; padding: 20px 20px 20px 58px; }
.feeci-ticket-id { display: grid; gap: 3px; min-width: 0; }
.feeci-ticket-id small { color: var(--feeci-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.feeci-ticket-id strong { overflow-wrap: anywhere; font-size: 17px; }
.feeci-ticket-person { min-width: 0; }
.feeci-ticket-person h3 { margin: 0 0 4px; overflow-wrap: anywhere; font-size: 17px; }
.feeci-ticket-person p { margin: 0 0 5px; overflow-wrap: anywhere; color: var(--feeci-muted); font-size: 13px; }
.feeci-ticket-person .feeci-purchaser { font-size: 12px; }
.feeci-ticket-person span { overflow-wrap: anywhere; color: #4d5956; font-size: 13px; }
.feeci-ticket-status { width: 130px; justify-self: end; text-align: right; }
.feeci-ticket-day { display: block; margin-top: 5px; color: var(--feeci-green); font-size: 12px; font-weight: 750; }
.feeci-status { display: inline-flex; justify-content: center; min-width: 104px; border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.feeci-status-checked { color: var(--feeci-green-dark); background: var(--feeci-green-soft); }
.feeci-status-pending { color: var(--feeci-amber); background: #fff3d9; }
.feeci-status-canceled { color: #8c3131; background: var(--feeci-red-soft); }
.feeci-status-unpaid { color: #5d526e; background: #eee9f5; }
.feeci-ticket-details { margin: 0; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 13px 28px; border-top: 1px solid #edf1ef; background: #fafcfb; }
.feeci-ticket-details div { display: grid; flex: 0 1 180px; min-width: 120px; gap: 2px; }
.feeci-ticket-details dt { color: var(--feeci-muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.feeci-ticket-details dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.feeci-ticket-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 67px; padding: 14px 20px; border-top: 1px solid #edf1ef; }
.feeci-ticket-actions .feeci-primary-button, .feeci-ticket-actions .feeci-secondary-button { min-height: 38px; padding: 8px 13px; font-size: 12px; }
.feeci-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; }
.feeci-pagination span { min-width: 92px; text-align: center; color: var(--feeci-muted); font-size: 13px; font-weight: 700; }
.feeci-pagination .feeci-secondary-button { min-height: 38px; padding: 7px 13px; font-size: 12px; }
.feeci-pagination .feeci-secondary-button:disabled { opacity: .45; cursor: default; }
.feeci-busy .feeci-search-input-wrap::after { content: ""; position: absolute; right: 16px; top: 17px; width: 14px; height: 14px; border: 2px solid #c8d3cf; border-top-color: var(--feeci-green); border-radius: 50%; animation: feeci-spin .7s linear infinite; }
.feeci-camera-dialog { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.feeci-camera-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(10,24,20,.72); cursor: default; }
.feeci-camera-card { position: relative; z-index: 1; width: min(100%, 620px); max-height: calc(100vh - 36px); overflow: auto; border-radius: 18px; padding: 20px; background: var(--feeci-surface); box-shadow: var(--feeci-shadow); }
.feeci-camera-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.feeci-camera-heading h2 { margin: 0; font-size: 22px; }
.feeci-camera-heading p { margin: 5px 0 0; color: var(--feeci-muted); font-size: 13px; }
.feeci-camera-close { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--feeci-line); border-radius: 10px; background: white; color: var(--feeci-ink); font-size: 25px; line-height: 1; cursor: pointer; }
#feeci-camera-reader { min-height: 280px; overflow: hidden; border-radius: 12px; background: #101614; }
#feeci-camera-reader video { display: block; width: 100% !important; height: auto !important; border-radius: 12px; }
#feeci-camera-reader img[alt="Info icon"] { display: none; }
.feeci-camera-message { min-height: 20px; margin: 12px 0 0; color: var(--feeci-muted); font-size: 13px; }
body.feeci-camera-open { overflow: hidden; }
@keyframes feeci-spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .feeci-viewer { gap: 5px; }
  .feeci-viewer > span { text-align: left; max-width: 110px; }
  .feeci-viewer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .feeci-main { width: min(100% - 22px, 1180px); padding-top: 26px; }
  .feeci-login-card { padding: 28px 22px; border-radius: 17px; }
  .feeci-page-heading { align-items: center; flex-direction: row; justify-content: space-between; gap: 8px; }
  .feeci-page-heading .feeci-title-lockup { flex: 1 1 auto; gap: 7px; }
  .feeci-page-heading .feeci-title-logo { flex: 0 0 46px; width: 46px; min-width: 46px; max-width: 46px; }
  .feeci-page-heading .feeci-title-logo img { width: 100%; height: 32px; max-width: 46px; max-height: 32px; object-fit: contain; }
  .feeci-page-heading h1 { font-size: 22px; white-space: nowrap; }
  .feeci-page-heading .feeci-viewer { flex: 0 0 auto; gap: 6px; }
  .feeci-page-heading .feeci-viewer > span { max-width: 66px; }
  .feeci-page-heading .feeci-viewer small { font-size: 9px; }
  .feeci-page-heading .feeci-viewer strong, .feeci-page-heading .feeci-link-button { font-size: 11px; }
  .feeci-page-heading .feeci-link-button { white-space: nowrap; }
  .feeci-title-lockup { gap: 10px; }
  .feeci-title-logo, .feeci-title-logo img { max-width: 72px; max-height: 40px; }
  .feeci-results-heading { align-items: flex-start; }
  .feeci-results-meta { flex-wrap: wrap; }
  .feeci-selection-toolbar { align-items: stretch; flex-direction: column; }
  .feeci-bulk-actions { justify-content: stretch; }
  .feeci-bulk-actions strong { width: 100%; }
  .feeci-bulk-actions button { flex: 1 1 calc(33.333% - 8px); }
  .feeci-toolbar { grid-template-columns: 1fr; }
  .feeci-search-row { grid-template-columns: minmax(0, 1fr) auto; }
  .feeci-ticket-select { top: 22px; left: 17px; opacity: 1; }
  .feeci-ticket-main { grid-template-columns: minmax(0, 1fr) auto; min-height: 0; padding-left: 52px; }
  .feeci-ticket-person { grid-column: 1 / -1; grid-row: 2; }
  .feeci-ticket-status { grid-column: 2; grid-row: 1; width: auto; }
  .feeci-ticket-actions > * { flex: 1 1 calc(50% - 8px); }
}

@media (hover: none) {
  .feeci-ticket-select { opacity: 1; }
}
.feeci-pass-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.3rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
