@layer tokens, base, layout, components, pages, utilities, overrides;
/* COMPATIBILITY LAYER — do not add new styles here. Migrate to src/styles/ instead. */

@layer overrides {
/* Split from theme-lineoa.css: base. */
/*
  Smatch LINE OA mobile skin.
  Keep this file cascade-stable: cleanup passes should be verified with
  scripts/audit_theme_lineoa_cleanliness.js and scripts/theme_lineoa_visual_smoke.js.
*/

@font-face {
  font-family: "Google Sans Thai";
  font-style: normal;
  font-weight: 300 900;
  font-display: block;
  src:
    url("/assets/fonts/google-sans/GoogleSansThai-subset.woff") format("woff");
}

@font-face {
  font-family: "Google Sans Thai";
  font-style: italic;
  font-weight: 300 900;
  font-display: block;
  src:
    url("/assets/fonts/google-sans/GoogleSansThai-Italic-subset.woff") format("woff");
}body.lineoa-theme.is-overlay-open {
  overflow: hidden;
}body.lineoa-theme.is-groups-tab #tab-groups.is-detail-open #groupDetailScreen {
  z-index: 74 !important;
}body.lineoa-theme.is-groups-tab.is-group-detail-open #groupDetailScreen {
  top: calc(env(safe-area-inset-top) + 2px) !important;
}body.lineoa-theme.is-groups-tab.is-group-detail-open #groupDetailScreen #groupDetailName {
  margin: 0;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis !important;
}
.lineoa-theme {
  --qp-accent: #BDF21F;
  --qp-accent-soft: rgba(189, 242, 31, 0.2);
}
body.lineoa-theme #homeMatchFilterModal {
  align-items: stretch !important;
  justify-content: center !important;
  padding: 0 !important;
  background: #F8F9FA ;
}body.lineoa-theme #myMatchesList,
body.lineoa-theme #homeFeedList {
  touch-action: pan-y;
}
body.lineoa-theme #tab-profile #profileDashboardView {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
}body.lineoa-theme #tab-profile #profileSettingsView {
  gap: 10px;
}body.lineoa-theme #homeMatchFilterForm.home-match-filter-modal-card {
  position: relative;
  width: min(430px, 100%);
  height: 100dvh;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
  padding: 0 14px calc(26px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: #F8F9FA;
  box-shadow: 0 0 34px rgba(18, 22, 24, 0.10);
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
}
body.lineoa-theme #communityRankingView {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.lineoa-theme #tab-groups {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}
body.lineoa-theme #tab-arena {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}body.lineoa-theme #communitySwitchCard {
  padding: 0;
  margin: 0;
  border: 0;
}body.lineoa-theme #groupDetailActivityList {
  min-height: min(52svh, 480px) !important;
}body.lineoa-theme #communityCourtsView #courtFilterResetBtn {
  position: relative;
}body.lineoa-theme #communityCourtsView #courtFilterResetBtn.has-active-filters::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #267B1B;
}
body.lineoa-theme #groupOpenFeedList {
  gap: 12px;
}
:root,
body.lineoa-theme {
  --bg: #F5F6F7;
  --surface: #F5F6F7;
  --surface-container-lowest: #FFFFFF;
  --surface-container-low: #EFF1F2;
  --surface-container: #E6E8EA;
  --surface-container-high: #E6E8EA;
  --surface-container-highest: #DADDE0;
  --surface-low: #EFF1F2;
  --surface-mid: #E6E8EA;
  --text: #2C2F30;
  --text-muted: #595C5D;
  --text-soft: #8A8D90;
  --on-surface: var(--text);
  --on-surface-variant: var(--text-muted);
  --brand: #BDF21F;
  --brand-text: #2B4900;
  --brand-forest: #3E6600;
  --primary: var(--brand-forest);
  --primary-container: var(--brand);
  --primary-fixed: var(--brand);
  --primary-fixed-dim: var(--brand);
  --on-primary-fixed: var(--brand-text);
  --secondary-container: var(--surface-mid);
  --on-secondary-container: var(--text-muted);
  --green-tint: rgba(189,242,31,0.18);
  --green-text: #365900;
  --win-bg: var(--green-tint);
  --win-text: var(--green-text);
  --neutral-tint: rgba(24,33,35,0.08);
  --orange: #F3A341;
  --orange-border: rgba(243,163,65,0.45);
  --red: #F25A49;
  --red-border: rgba(242,90,73,0.4);
  --loss-bg: rgba(242,90,73,0.12);
  --loss-text: var(--red);
  --border: rgba(171,173,174,0.18);
  --border-strong: rgba(171,173,174,0.28);
  --outline-variant: var(--border);
  --shadow-card: 0 8px 32px -16px rgba(44,47,48,0.14);
  --shadow-glow: 0 20px 40px -12px rgba(189,242,31,0.35);
  --shadow-float: var(--shadow-glow);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font-headline: var(--font-google-sans-thai);
  --font-body: var(--font-google-sans-thai);
  --smatch-ci-primary: #073B31;
  --smatch-ci-mint: #4ED1A5;
  --smatch-ci-accent: #FF7FA3;
  --smatch-ci-cream: #FFF6F2;
  --smatch-ci-gray: #E7E7E7;
  --smatch-ci-ink: #071F1A;
  --brand-forest: var(--smatch-ci-primary);
  --primary: var(--smatch-ci-primary);
  --win-text: var(--smatch-ci-primary);
  --brand-mint: var(--smatch-ci-mint);
  --brand-accent: var(--smatch-ci-accent);
  --brand-cream: var(--smatch-ci-cream);
}
body.lineoa-theme #groupsCreateBtn.groups-create-btn,
body.lineoa-theme #groupsCreateBtn[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}
body.lineoa-theme {
  --surface: #F5F6F7;
  --surface-container-lowest: #FFFFFF;
  --surface-container-low: #EFF1F2;
  --surface-container: #E6E8EA;
  --surface-container-high: #E6E8EA;
  --surface-container-highest: #DADDE0;
  --on-surface: #2C2F30;
  --on-surface-variant: #595C5D;
  --outline-variant: rgba(171,173,174,0.18);
  --primary: #3E6600;
  --primary-container: #BDF21F;
  --primary-fixed: #BDF21F;
  --primary-fixed-dim: #BDF21F;
  --on-primary-fixed: #2B4900;
  --secondary-container: #E6E8EA;
  --on-secondary-container: #595C5D;
  --brand: #BDF21F;
  --brand-text: #2B4900;
  --brand-forest: #3E6600;
  --text: #2C2F30;
  --text-muted: #595C5D;
  --text-soft: #8A8D90;
  --border: rgba(171,173,174,0.18);
  --border-strong: rgba(171,173,174,0.28);
  --win-bg: rgba(189,242,31,0.18);
  --win-text: #365900;
  --loss-bg: rgba(242,90,73,0.12);
  --loss-text: #F25A49;
  --shadow-card: 0 8px 32px -16px rgba(44,47,48,0.14);
  --shadow-float: 0 20px 40px -12px rgba(189,242,31,0.35);
  --shadow-glow: var(--shadow-float);
  --shadow-glass: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 20px -14px rgba(24, 33, 35, 0.16);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --space-0: 0;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-7: 14px;
  --space-8: 16px;
  --space-9: 18px;
  --space-10: 20px;
  --space-12: 24px;
  --space-14: 28px;
  --space-16: 32px;
  --space-20: 40px;
  --text-2xs: 0.625rem;
  --text-xs: 0.6875rem;
  --text-sm: 0.75rem;
  --text-body-sm: 0.8125rem;
  --text-body: 0.9375rem;
  --text-label: 0.8125rem;
  --text-title-sm: 1.0625rem;
  --text-title: 1.25rem;
  --text-title-lg: 1.5rem;
  --text-display: 1.85rem;
  --control-height-sm: 32px;
  --control-height-md: 44px;
  --control-height-lg: 48px;
  --button-height: var(--control-height-md);
  --button-padding-x: var(--space-8);
  --button-font-size: 0.875rem;
  --button-radius: var(--radius-full);
  --card-padding: var(--space-8);
  --card-gap: var(--space-6);
  --font-google-sans-thai: "Google Sans Thai", sans-serif;
  --font-thai: var(--font-google-sans-thai);
  --font-latin-headline: var(--font-google-sans-thai);
  --font-latin-body: var(--font-google-sans-thai);
  --font-headline: var(--font-google-sans-thai);
  --font-body: var(--font-google-sans-thai);
  background: #F5F6F7;
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  padding: 0 10px calc(110px + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  padding: 0 20px calc(132px + env(safe-area-inset-bottom));
  font-size: 14px;
  line-height: 1.45;
  padding: 0 16px calc(104px + env(safe-area-inset-bottom));
  --brand: #BDF21F;
  --brand-text: #172600;
  --brand-forest: #2F7400;
  --text: #141718;
  --text-muted: #5D6467;
  --text-soft: #8C9295;
  --bg: #F7F8F7;
  --surface: #F7F8F7;
  --surface-container-lowest: #FFFFFF;
  --surface-container-low: #F1F2F3;
  --surface-container: #ECEDEF;
  --border: rgba(20, 23, 24, 0.08);
  --border-strong: rgba(20, 23, 24, 0.14);
  --shadow-card: 0 12px 28px -22px rgba(20, 23, 24, 0.28);
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-google-sans-thai);
  font-size: 15px;
  line-height: 1.6;
  padding: 0 16px calc(104px + env(safe-area-inset-bottom));
  background: #F5F6F7 !important;
  color: #2C2F30;
  font-family: var(--font-google-sans-thai);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
  padding-inline: 16px;
  font-size: 14px;
  line-height: 1.45;
  padding-inline: 14px;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  --bg: #FDFDFD;
  --surface: #FDFDFD;
  --surface-container-lowest: #FFFFFF;
  --surface-container-low: #F3F4F5;
  --surface-container: #ECEDEF;
  --brand: #BDF21F;
  --primary-container: #BDF21F;
  --primary-fixed: #BDF21F;
  --primary-fixed-dim: #B4EE10;
  --brand-text: #111A00;
  --brand-forest: #2F6C08;
  --primary: #2F6C08;
  --text: #111516;
  --text-muted: #5E6467;
  --text-soft: #8A8F92;
  --border: rgba(17, 21, 22, 0.08);
  --border-strong: rgba(17, 21, 22, 0.13);
  background: #FDFDFD !important;
  color: #111516;
  font-size: 14px;
  line-height: 1.42;
  padding-inline: 14px;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
  --ui-bg: #F6F8F8;
  --ui-surface: #FFFFFF;
  --ui-surface-soft: #F3F6F6;
  --ui-border: #E5EAEC;
  --ui-border-strong: #D7E0E3;
  --ui-text: #111516;
  --ui-muted: #687277;
  --ui-soft: #8A969B;
  --ui-accent: #BDF21F;
  --ui-radius-card: 14px;
  --ui-radius-control: 12px;
  --ui-radius-chip: 999px;
  --ui-shadow-card: 0 8px 24px -20px rgba(22, 27, 30, 0.28);
  --ui-shadow-sheet: 0 -14px 38px -24px rgba(22, 27, 30, 0.38);
  background: var(--ui-bg) !important;
  color: var(--ui-text);
  font-size: 14px;
  line-height: 1.5;
  padding-inline: 11px;
  --brand: #BDF21F;
  --brand-text: #111A00;
  --brand-forest: #2F6C08;
  --primary: var(--brand-forest);
  --primary-container: var(--brand);
  --primary-fixed: var(--brand);
  --primary-fixed-dim: var(--brand);
  --on-primary-fixed: var(--brand-text);
  --green-tint: rgba(189, 242, 31, 0.18);
  --win-bg: var(--green-tint);
  --shadow-glow: 0 20px 40px -12px rgba(189, 242, 31, 0.35);
  --shadow-float: var(--shadow-glow);
  --space-0: 0;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-7: 14px;
  --space-8: 16px;
  --space-9: 18px;
  --space-10: 20px;
  --space-12: 24px;
  --space-14: 28px;
  --space-16: 32px;
  --space-20: 40px;
  --text-2xs: 0.625rem;
  --text-xs: 0.6875rem;
  --text-sm: 0.75rem;
  --text-body-sm: 0.8125rem;
  --text-body: 0.9375rem;
  --text-label: 0.8125rem;
  --text-title-sm: 1.0625rem;
  --text-title: 1.25rem;
  --text-title-lg: 1.5rem;
  --text-display: 1.85rem;
  --control-height-xs: 28px;
  --control-height-sm: 32px;
  --control-height-md: 44px;
  --control-height-lg: 48px;
  --button-height: var(--control-height-md);
  --button-padding-x: var(--space-8);
  --button-font-size: 0.875rem;
  --button-radius: var(--radius-full);
  --chip-height: var(--control-height-sm);
  --chip-padding-x: var(--space-6);
  --card-padding: var(--space-8);
  --card-gap: var(--space-6);
  font-size: var(--text-body);
  line-height: 1.6;
  --section-title-accent: #2F6E0F;
  --smatch-page-gap: 14px;
  --smatch-section-gap: 12px;
  --smatch-title-green: #2F6E0F;
  --smatch-control-height-sm: 36px;
  --smatch-control-radius-sm: 11px;
  --smatch-mobile-tab-gutter: 10px;
  background:
    radial-gradient(circle at 50% -10%, rgba(78, 209, 165, 0.12), transparent 34rem),
    linear-gradient(180deg, var(--smatch-ci-cream) 0, #F5F6F7 10rem, #F5F6F7 100%);
  --smatch-shell-max-width: 800px;
}
body.lineoa-theme.is-group-detail-open #groupDetailScreen {
  margin-inline: 0 !important;
  box-shadow: none !important;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding-inline: 0 !important;
  background: #f6f8f8 !important;
}body.lineoa-theme.is-group-detail-open #groupDetailPanelOpen {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding: 0 20px !important;
}body.lineoa-theme.is-group-detail-open #groupDetailPanelOpen #groupOpenFeedList {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin: 0 ;
  padding: 0 !important;
}
body.lineoa-theme.is-cancel-challenge-open {
  overflow: hidden;
}

}
