@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap");
/* Shared interface foundation. Artwork and printed tickets retain their own styling. */
@media screen {
  :root {
    --bg: #0c0f12;
    --panel: #14191e;
    --panel-2: #1a2026;
    --text: #f0f2f3;
    --ink: #f0f2f3;
    --muted: #a7b0b7;
    --line: #2c343b;
    --line-2: #414b54;
    --accent: #a3ded1;
    --cyan: #a3ded1;
    --lime: #a3ded1;
    --violet: #abb9cf;
    --shadow: none;
    --pay-bg: #0c0f12;
    --pay-surface: #14191e;
    --pay-surface2: #1a2026;
    --pay-line: #2c343b;
    --pay-text: #f0f2f3;
    --pay-muted: #a7b0b7;
    --pay-accent: #a3ded1;
    --pay-radius: 8px;
    --admin-v317-bg: #0c0f12;
    --admin-v317-surface: #14191e;
    --admin-v317-line: #2c343b;
    --admin-v317-accent: #a3ded1;
  }
  html { background: #0c0f12; scroll-padding-top: 100px; }
  body { background: #0c0f12 !important; color: #f0f2f3; font-family: Inter, "Noto Sans Thai", system-ui, -apple-system, sans-serif; line-height: 1.55; }
  button, input, select, textarea { font-family: inherit; }
  h1, h2, h3 { text-wrap: balance; }
  p { text-wrap: pretty; }
  button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
  :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid #a3ded1 !important; outline-offset: 4px; }
  :is(input, select, textarea) { accent-color: #a3ded1; }
  :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]) {
    border-radius: 6px; border-color: #3b454e; box-shadow: none; color: #f0f2f3; background-color: #10151a;
  }
  input::placeholder, textarea::placeholder { color: #8f9aa3; opacity: 1; }
  select option { background: #14191e; color: #f0f2f3; }
  :is(.button, .primary-button, .secondary-button, .pay-button, .primary, .secondary, .ta-button) {
    border-radius: 6px !important; box-shadow: none !important; text-shadow: none !important;
    font-weight: 600; letter-spacing: 0; min-height: 42px;
  }
  :is(.button-primary, .primary-button, .pay-button:not(.secondary):not(.danger), .primary) {
    color: #10221e !important; background: #a3ded1 !important; border-color: #a3ded1 !important;
  }
  :is(.button-secondary, .secondary-button, .secondary) { background: #171d22; border-color: #414b54; color: #e7ebee; }
  :is(.button, .primary-button, .secondary-button, .pay-button):hover { transform: none !important; filter: brightness(1.08); }
  :is(.section-label, .eyebrow, .account-kicker, .pay-kicker, .scan-kicker, .dashboard-eyebrow) { font-size: 11px; font-weight: 600; letter-spacing: .11em; color: #a3ded1; }
  :is(.account-card, .pay-card, .ta-card, .ta-panel, .surface, .data-card, .role-guide-grid > article, .merch-card, .summary-grid article, .system-summary-grid article) {
    background: #14191e !important; border-color: #2c343b; border-radius: 8px !important; box-shadow: none !important;
  }
  :is(.account-topbar, .shop-header, .pay-top, .scan-topbar, .ta-topbar) {
    background: #0c0f12; backdrop-filter: none; border-bottom: 1px solid #2c343b; min-height: 72px; flex-wrap: wrap;
  }
  .global-language-switch { box-shadow: none; border-radius: 6px; background: #14191e; border-color: #414b54; }
  :is(.account-topbar, .shop-header, .pay-top, .scan-topbar) > .global-language-switch {
    position: static; margin-left: auto; padding: 6px 10px; gap: 8px; flex: 0 0 auto;
  }
  .global-language-switch select { background: #14191e; color: #f0f2f3; border-radius: 4px; min-height: 32px; }
  .global-language-switch label { font-size: 11px; }
  #language-button.language-switch { border: 1px solid #414b54; border-radius: 6px; min-width: 160px; width: auto; padding: 7px 10px; gap: 12px; }
  #language-button.language-switch label { max-width: 74px; font-size: 10px; line-height: 1.3; }
  #language-button.language-switch select { min-width: 80px; }
  :is(.account-shell, .pay-shell) { max-width: 1080px; padding-top: 36px; }
  :is(.account-hero h1, .pay-hero h1, .shop-hero h1) { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.15; letter-spacing: -.035em; }
  .account-details summary { min-height: 76px; }
  .account-details summary:hover { background: #1a2026; }
  .account-toolbar-actions #account-signout { background: transparent; border-color: transparent; }
  .account-auth-tabs { position: static; }
  .sos-account-surface:not(.account-is-signed-in) .account-shell { max-width: 760px; }
  .sos-account-surface:not(.account-is-signed-in) .account-hero { margin-bottom: 20px; }
  .sos-account-surface:not(.account-is-signed-in) .account-hero h1 { font-size: 32px; }
  .sos-account-surface .account-auth-tab { border-radius: 0 !important; }
  .sos-account-surface .account-auth-tab[aria-selected="true"] { color: #a3ded1; border-bottom-color: #a3ded1; }
  .sos-account-surface .account-provider { border-radius: 6px !important; min-height: 46px; }
  .sos-account-surface .account-auth-intro { display: none; }
  .sos-account-surface .account-auth-primary > .account-kicker { display: none; }
  .sos-account-surface .account-form input { border-radius: 6px; }
  .sos-account-surface .account-form button[type="submit"] { border-radius: 6px !important; min-height: 46px; }
  .sos-account-surface .account-auth-shortcuts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
  .sos-account-surface .account-home { border-radius: 6px; }
  .account-empty { border-style: solid; padding: 22px; }
  .pay-grid > aside { align-self: start; }
  .pay-top .pay-button { min-height: 36px; font-size: 13px; }
  .pay-card p, .pay-card li { max-width: 75ch; }
  .pay-card h2 { line-height: 1.25; }
  body:has(.pay-card > h1) .pay-shell { max-width: 860px; }
  .shop-hero { padding-block: 48px 32px !important; }
  .shop-hero h1 { max-width: 20ch; }
  .shop-search input { min-width: 0; }
  .shop-empty { border: 1px solid #2c343b; padding: 28px; border-radius: 6px; }

  /* Public programme: a compact masthead, followed by full-sized event artwork. */
  .sos-public-home .reference-header { background: #0c0f12; border-bottom: 1px solid #2c343b; }
  .sos-public-home #loader { display: none; }
  .sos-public-home > .background { display: none; }
  .sos-public-home.loading:not(.menu-open) { overflow: auto; }
  .sos-public-home .coded-psy-hero,
  .sos-public-home .coded-psy-hero[data-scroll-motion="reduced"] {
    min-height: 0; height: auto; padding: 0; background: #10151a !important; perspective: none; overflow: hidden;
  }
  .sos-public-home :is(.psy-background, .hero-depth-field, .hero-scroll-progress, .coded-brand-line, .hero-aurora, .hero-orbit, .coded-scroll) { display: none !important; }
  .sos-public-home .coded-psy-hero::before, .sos-public-home .coded-psy-hero::after { display: none; }
  .sos-public-home .coded-hero-content,
  .sos-public-home .coded-psy-hero[data-scroll-motion="reduced"] .coded-hero-content {
    position: relative; top: auto; height: auto; min-height: 0; max-width: 1180px;
    display: flex; flex-direction: column; gap: 20px; padding: 112px 24px 60px !important;
    overflow: visible; perspective: none; margin: auto;
  }
  .sos-public-home .coded-brand-composition,
  .sos-public-home .coded-psy-hero[data-scroll-motion="reduced"] .coded-brand-composition {
    width: min(250px, 55vw); margin: 0; transform: none !important; opacity: 1 !important; animation: none;
  }
  .sos-public-home .coded-logo-art img { width: 100%; height: auto; object-fit: contain; }
  .sos-public-home .hero-intro,
  .sos-public-home .coded-psy-hero[data-scroll-motion="reduced"] .hero-intro {
    position: relative; width: 100%; max-width: 780px; margin: 0; align-self: center; opacity: 1 !important; transform: none !important; pointer-events: auto; text-align: center;
  }
  .sos-public-home .hero-intro h2 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.22; letter-spacing: -.035em; margin: 8px auto 14px; }
  .sos-public-home .hero-intro > p:last-child { font-size: 16px; max-width: 58ch; margin: 0 auto; color: #b6bec5; }
  .sos-public-home .coded-event-focus-group,
  .sos-public-home .coded-psy-hero[data-scroll-motion="reduced"] .coded-event-focus-group {
    display: flex; flex-wrap: wrap; justify-content: center; align-self: center; gap: 12px; width: auto; margin: 6px 0 0;
    opacity: 1 !important; transform: none !important; pointer-events: auto;
  }
  .sos-public-home .coded-event-focus-group .coded-event-focus {
    width: auto; min-width: 210px; min-height: 52px; padding: 14px 20px; border-radius: 6px; box-shadow: none;
    background: transparent; border: 1px solid #4a555e; color: #f0f2f3;
  }
  .sos-public-home .coded-event-focus-group .coded-event-focus-primary { background: #a3ded1 !important; color: #10221e !important; border-color: #a3ded1; }
  .sos-public-home .coded-event-focus small { display: none; }
  .sos-public-home .coded-event-focus strong { color: inherit !important; font-size: 15px; font-weight: 650; }
  .sos-public-home .experience-quick-nav { background: #0c0f12; }
  .sos-public-home #upcoming-events { scroll-margin-top: 44px; }
  .sos-public-home .experience-quick-nav-inner { border-radius: 0; box-shadow: none; border-inline: 0; background: #0c0f12; }
  .sos-public-home .experience-quick-nav a { min-height: 68px; padding: 14px 20px; }
  .sos-public-home .experience-quick-nav a > span { display: none; }
  .sos-public-home .section { padding-block: clamp(36px, 5vw, 72px); background: #0c0f12; }
  .sos-public-home .section-heading h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25 !important; }
  .sos-public-home .section-heading p { font-size: 15px; max-width: 68ch; }
  .sos-public-home .festival-showcase-divider { margin-block: 36px; }
  .sos-public-home .current-festival-block:has(#current-event-empty-state:not([hidden])) { padding-bottom: 0; }
  .sos-public-home .current-festival-block:has(#current-event-empty-state:not([hidden])) .section-heading { margin-bottom: 12px; }
  .sos-public-home .current-festival-block:has(#current-event-empty-state:not([hidden])) .section-heading > p:last-child { display: none; }
  .sos-public-home .event-empty-state { padding: 12px 18px; }
  .sos-public-home .event-empty-state > span { display: none; }
  .sos-public-home .event-empty-state h3 { font-size: 18px; }
  .sos-public-home .event-card { border-radius: 8px; background: #14191e; border-color: #2c343b; box-shadow: none; }
  .sos-public-home .event-card h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; }
  .sos-public-home .event-card :is(.event-status, .event-tag) { border: 0; background: transparent; padding-left: 0; font-size: 11px; }
  .sos-public-home .event-calendar-trigger { border-radius: 6px; min-height: 44px; background: #1a2429; border-color: #35444a; font-size: 14px; }
  .sos-public-home .contact-grid article { border-radius: 6px; box-shadow: none; background: #14191e; }
  .sos-public-home .menu-overlay :is(a, button) { border-radius: 0; }
  .sos-public-home .menu-overlay a { font-size: clamp(25px, 4vw, 48px); }
  .sos-public-home .reveal { opacity: 1; transform: none; }

  /* Staff workspaces: restrained chrome and denser, readable records. */
  .sos-admin-surface .dashboard { background: #0c0f12; }
  .sos-admin-surface .admin-sidebar { background: #101419; border-color: #2c343b; box-shadow: none; }
  .sos-admin-surface .sidebar-brand { min-height: 88px; padding-block: 12px; }
  .sos-admin-surface .sidebar-brand img { width: 60px; height: 60px; filter: none; }
  .sos-admin-surface .sidebar-nav-group { margin-bottom: 8px; padding-bottom: 12px; }
  .sos-admin-surface .sidebar-nav-group-header { background: transparent; border: 0; padding-block: 12px 5px; min-height: 0; }
  .sos-admin-surface .sidebar-nav-group-header > span { display: none; }
  .sos-admin-surface .sidebar-nav-group-header { display: block; }
  .sos-admin-surface .sidebar-nav-group-header strong { color: #8998a4; font-size: 11px; font-weight: 600; }
  .sos-admin-surface .sidebar-link { min-height: 42px; padding-block: 9px; border-radius: 4px; font-size: 13px; }
  .sos-admin-surface .sidebar-link:is(.active, .is-active) { background: #22342f; border-color: transparent; box-shadow: inset 2px 0 #a3ded1; }
  .sos-admin-surface .dashboard-header { background: #0c0f12; backdrop-filter: none; padding-block: 18px; }
  .sos-admin-surface .dashboard-title h1 { font-size: clamp(24px, 2.6vw, 34px) !important; line-height: 1.3; letter-spacing: -.025em; }
  .sos-admin-surface .dashboard-title span { font-size: 10px; color: #a7b0b7; }
  .sos-admin-surface .admin-header-tools { gap: 8px; }
  .sos-admin-surface .admin-language-switch { border-radius: 6px; padding: 3px; }
  .sos-admin-surface .admin-language-switch button { border-radius: 4px !important; min-height: 32px; min-width: 34px; }
  .sos-admin-surface .admin-account :is(button, .admin-user) { border-radius: 6px; min-height: 38px; font-size: 12px; }
  .sos-admin-surface .admin-v31-hub { padding: 20px 0; border: 0; border-bottom: 1px solid #2c343b; border-radius: 0; background: transparent; box-shadow: none; }
  .sos-admin-surface .admin-v31-hub-head h2 { font-size: 22px; }
  .sos-admin-surface .admin-v31-hub-grid a { transform: none; }
  .sos-admin-surface :is(.system-hero, .security-hero, .operations-hero, .live-control-hero, .public-content-hero, .brand-center-hero, .artist-stage-hero, .operational-analytics-hero, .post-event-report-hero, .admin-qr-hero, .merch-hero) {
    background: transparent; box-shadow: none; border: 0; border-bottom: 1px solid #2c343b; border-radius: 0; padding: 20px 0 24px;
  }
  .sos-admin-surface :is(.system-hero, .security-hero, .operations-hero, .live-control-hero, .public-content-hero, .brand-center-hero, .artist-stage-hero, .operational-analytics-hero, .post-event-report-hero, .admin-qr-hero, .merch-hero) h2 { font-size: clamp(23px, 2.5vw, 32px); line-height: 1.3; }
  .sos-admin-surface :is(.system-summary-grid, .summary-grid) strong { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.03em; }
  .sos-admin-surface :is(.system-summary-grid, .summary-grid) article { padding: 18px 20px; }
  .sos-admin-surface :is(.panel, .form-card, .records-panel, .system-check-card, .content-panel) { background: #14191e; border-color: #2c343b; border-radius: 8px; box-shadow: none; }
  .sos-admin-surface :is(.admin-role-banner, .admin-project) { border-radius: 4px; font-size: 11px; }
  .sos-admin-surface .admin-project { background: transparent; }
  :is(.sos-store-surface, .sos-organizer-surface) .topbar { background: #101419; backdrop-filter: none; border-color: #2c343b; }
  .sos-store-surface :is(.intro, .inventory-heading, .table-wrap, .store-list, .overview) { border-color: #354049; }
  .sos-store-surface .store-button.active { background: #22342f; }
  .sos-store-surface th { background: #1a2026; }
  .sos-store-surface tbody tr:hover { background: #1a2026; }
  .sos-store-surface td { border-color: #2c343b; }
  .sos-store-surface .qty { font-variant-numeric: tabular-nums; }
  .sos-store-surface .row-actions button { min-height: 38px; border-radius: 5px; }
  .sos-organizer-surface .orb { display: none; }
  .sos-organizer-surface .workspace-head h1 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; }
  .sos-organizer-surface .metrics-grid article { background: #14191e; border-radius: 6px; }
  .sos-organizer-surface .task-card { background: #1a2026; }
  .sos-organizer-surface .task-column { background: #101419; }
  .sos-ticket-ops-surface .ta-hero { background: transparent; border: 0; border-bottom: 1px solid #2c343b; padding: 24px 0; box-shadow: none; }
  .sos-ticket-ops-surface .ta-hero h1 { font-size: clamp(28px, 3vw, 40px); }
  .sos-ticket-ops-surface .ta-tabs { background: #101419; border-radius: 0; }
  .sos-ticket-ops-surface .ta-tabs button { border-radius: 4px; }
  .sos-scanner-surface .scan-hero h1 { font-size: clamp(28px, 3vw, 40px); }
  .sos-scanner-surface :is(.scan-card, .scan-result) { box-shadow: none; border-radius: 8px; }
  dialog { margin: auto; }
  dialog::backdrop { backdrop-filter: none; background: #020508bd; }
  @media (max-width: 760px) {
  .sos-public-home #upcoming-events { scroll-margin-top: 0; }
    input, select, textarea { font-size: 16px !important; }
    .sos-public-home .coded-hero-content,
    .sos-public-home .coded-psy-hero[data-scroll-motion="reduced"] .coded-hero-content { padding: 44px 20px 24px !important; gap: 16px; }
    .sos-public-home .coded-brand-composition,
    .sos-public-home .coded-psy-hero[data-scroll-motion="reduced"] .coded-brand-composition { width: 160px; }
    .sos-public-home .hero-intro > p:last-child { font-size: 14px; }
    .sos-public-home .coded-event-focus-group { width: 100%; }
    .sos-public-home .coded-event-focus-group .coded-event-focus { min-width: 0; width: 100%; }
    .sos-public-home .experience-quick-nav a { padding: 10px; min-height: 52px; }
    .sos-public-home .experience-quick-nav small { display: none; }
    .sos-admin-surface .dashboard-header { gap: 14px; padding-block: 14px; }
    .sos-admin-surface .admin-v31-hub-grid { grid-template-columns: 1fr; }
    .sos-admin-surface .admin-v31-hub-grid a { min-height: 64px; }
    :is(.account-topbar, .shop-header, .pay-top, .scan-topbar) { gap: 10px; padding: 12px 16px; }
    :is(.account-topbar, .shop-header, .pay-top, .scan-topbar) > .global-language-switch { padding: 3px 7px; }
    :is(.account-topbar, .shop-header, .pay-top, .scan-topbar) > .global-language-switch label { display: none; }
    .shop-header nav { gap: 12px; }
    .sos-merch-surface .shop-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .sos-merch-surface .shop-brand { order: 1; }
    .sos-merch-surface .shop-brand span { display: grid; }
    .sos-merch-surface .shop-brand strong { font-size: 10px; letter-spacing: .06em; }
    .sos-merch-surface .shop-brand small { font-size: 8px; }
    .sos-merch-surface .shop-header > .global-language-switch { order: 2; }
    .sos-merch-surface .shop-header nav { order: 3; grid-column: 1 / -1; border-top: 1px solid #2c343b; padding-top: 8px; }
    .sos-merch-surface .shop-header nav a:first-child { display: inline-flex; }
    .sos-merch-surface .shop-header nav a { border-radius: 4px; min-height: 40px; align-items: center; display: inline-flex; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
}
