/* CTGM V57 — shared design system: public web, customer PWA and administration.
   This file owns appearance; existing page styles retain their layout contracts. */
:root {
  --ct-bg: #0a0c0b;
  --ct-surface: #141815;
  --ct-raised: #1b211c;
  --ct-input: #0e120f;
  --ct-ink: #f4f5ef;
  --ct-muted: #b3bcb2;
  --ct-faint: #8e9c8c;
  --ct-accent: #b6f36a;
  --ct-orange: #ff985e;
  --ct-line: #333e33;
  --ct-radius: 24px;
  --ct-shadow: 0 16px 42px #0003;
  --ct-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html { color-scheme: dark; scroll-padding-top: 100px; }
html body.ctgm-ui {
  margin: 0; min-height: 100vh; color: var(--ct-ink) !important;
  background: radial-gradient(ellipse at 90% 0, #de742c0d, transparent 40%), var(--ct-bg) !important;
  font-family: var(--ct-font) !important; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  --v27-text: var(--ct-ink); --v27-muted: var(--ct-muted); --v27-label: var(--ct-muted);
  --hx-ink: var(--ct-ink); --hx-muted: var(--ct-muted); --hx-green: var(--ct-accent);
  --hx-green2: var(--ct-accent); --hx-orange2: var(--ct-orange);
}
html body.ctgm-ui::before, html body.ctgm-ui::after { display: none !important; }
.ctgm-ui *, .ctgm-ui *::before, .ctgm-ui *::after { box-sizing: border-box; }
html body.ctgm-ui [hidden], html body.ctgm-ui .hidden { display: none !important; }
html body.ctgm-ui :is(h1,h2,h3,h4,strong,b,.name,.big,.v,.pageTitle,.clientInfoValue) { color: var(--ct-ink) !important; }
html body.ctgm-ui :is(h1,h2,h3) { font-family: var(--ct-font); letter-spacing: -.035em; text-wrap: balance; }
html body.ctgm-ui h1 { line-height: 1.08; }
html body.ctgm-ui :is(p,small,.note,.lead,.muted,.meta,.sub,.pageSub,.terms,.footnote,.msg,.label,.k,label,.clientEmpty,.clientOrderMeta,.clientHistoryDate,.clientPointsMeta,.searchResultMeta,.loyaltyHelp) {
  color: var(--ct-muted) !important; opacity: 1 !important;
}
html body.ctgm-ui :is(.note,.msg) { background: transparent !important; border: 0 !important; }
html body.ctgm-ui :is(.eyebrow,.cq-kicker,.home-eyebrow) {
  color: var(--ct-accent) !important; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase;
}
html body.ctgm-ui a { color: var(--ct-accent) !important; text-underline-offset: 4px; }
html body.ctgm-ui img { max-width: 100%; }
html body.ctgm-ui :is(.card,.panel,.section,.box,.institutional-card,.cq-panel,.help-card,.loyaltyBox,.account-stat,.clientPanel,.account-detail-stats,.account-danger) {
  color: var(--ct-ink) !important; background: var(--ct-surface) !important;
  border: 1px solid var(--ct-line) !important; border-radius: var(--ct-radius) !important;
  box-shadow: var(--ct-shadow) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
html body.ctgm-ui .card { padding: 24px; }
html body.ctgm-ui :is(.item,.reward,.order,.account-detail-item,.clientOrder,.searchResult,.loyaltyStat,.help-row,.referral-code-box,.referral-benefit,.broadcast-rule,.notification-coupon-callout,.cq-service-detail,.cq-estimate,.cq-contact-link,.cq-hours) {
  color: var(--ct-ink) !important; background: var(--ct-input) !important;
  border-color: var(--ct-line) !important; box-shadow: none !important; border-radius: 16px !important;
}
html body.ctgm-ui :is(.order,.movement,.account-detail-item,.clientHistoryItem,.promo-terms,.points-stats,.account-row-footer,.referral-apply) { border-color: var(--ct-line) !important; }
html body.ctgm-ui :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea) {
  background: var(--ct-input) !important; color: var(--ct-ink) !important; -webkit-text-fill-color: var(--ct-ink) !important;
  caret-color: var(--ct-accent); border: 1px solid #465244 !important; border-radius: 12px !important;
  font: inherit; padding: 12px 14px; min-height: 46px; max-width: 100%; min-width: 0;
  box-shadow: none !important; outline: none;
}
html body.ctgm-ui :is(input,textarea)::placeholder { color: #98a394 !important; -webkit-text-fill-color: #98a394 !important; opacity: 1 !important; }
html body.ctgm-ui select option { color: var(--ct-ink) !important; background: var(--ct-input) !important; }
html body.ctgm-ui input:-webkit-autofill { box-shadow: 0 0 0 1000px var(--ct-input) inset !important; -webkit-text-fill-color: var(--ct-ink) !important; }
html body.ctgm-ui :is(input[type=checkbox],input[type=radio]) { accent-color: var(--ct-accent); width: 18px; height: 18px; flex-shrink: 0; }
html body.ctgm-ui label { letter-spacing: 0; text-transform: none; font-size: 13px; }
html body.ctgm-ui :is(button,.btn,.home-cta,.cq-action,.clientMiniBtn) {
  background: var(--ct-accent) !important; color: #15210e !important; -webkit-text-fill-color: #15210e !important;
  border: 1px solid transparent !important; border-radius: 12px !important; box-shadow: none !important;
  font-family: var(--ct-font); font-size: 14px; font-weight: 700 !important; line-height: 1.35;
  min-height: 44px; padding: 12px 18px; cursor: pointer; text-decoration: none !important;
  transition: background .18s, border-color .18s, transform .18s;
}
html body.ctgm-ui :is(button,.btn):hover { filter: brightness(1.07); }
html body.ctgm-ui :is(button.secondary,.btn.secondary,.clientMiniBtn,.profile-logout,.admin-tab,.clientTab,.cq-presets button,.chip,.navList button) {
  background: var(--ct-raised) !important; color: var(--ct-ink) !important; -webkit-text-fill-color: var(--ct-ink) !important; border-color: var(--ct-line) !important;
}
html body.ctgm-ui :is(.link-button,.profile-photo-action) { background: transparent !important; color: var(--ct-accent) !important; -webkit-text-fill-color: var(--ct-accent) !important; padding: 8px; border-color: transparent !important; }
html body.ctgm-ui :is(button.danger,.danger-action,.account-danger .btn) { background: #321b20 !important; color: #ffc0cb !important; -webkit-text-fill-color: #ffc0cb !important; border-color: #854652 !important; }
html body.ctgm-ui :is(.msg.error,.msg.danger,.account-points-neg) { color: #ffb6c2 !important; }
html body.ctgm-ui :is(.admin-tab.active,.clientTab.active,.navList button.active,.cq-presets button[aria-pressed=true]) { background: #27351f !important; color: var(--ct-accent) !important; -webkit-text-fill-color: var(--ct-accent) !important; border-color: #5b773e !important; }
html body.ctgm-ui :is(button:disabled,input:disabled,select:disabled) { opacity: .55 !important; cursor: not-allowed; }
html body.ctgm-ui :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--ct-accent) !important; outline-offset: 4px; box-shadow: none !important; }
html body.ctgm-ui :is(.badge,.clientStatus,.cq-status) { background: #25311d !important; color: #cef4a5 !important; border: 1px solid #455d30 !important; border-radius: 8px; font-size: 10px; line-height: 1.5; letter-spacing: .04em; }
html body.ctgm-ui .badge.account-badge-off { background: #242923 !important; color: #c1c9bd !important; border-color: #464e42 !important; }
html body.ctgm-ui :is(.badge.account-badge-warn,.date-line) { color: #ffc29e !important; }
html body.ctgm-ui :is(.sep,.hr) { height: 1px; background: var(--ct-line) !important; }
html body.ctgm-ui :is(.dialog,dialog) { color: var(--ct-ink) !important; background: var(--ct-surface) !important; border: 1px solid #4a5743 !important; border-radius: 24px; max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 32px 100px #0009; }
html body.ctgm-ui dialog::backdrop { background: #030704bf; backdrop-filter: blur(6px); }
html body.ctgm-ui :is(.toast,.banner) { background: #273321 !important; color: var(--ct-ink) !important; border: 1px solid #566c43; }
.ctgm-skip { position: fixed; top: -100px; left: 16px; z-index: 999; padding: 12px 20px; background: var(--ct-surface); border-radius: 12px; }
.ctgm-skip:focus { top: 12px; }
.ctgm-site-header { position: sticky; top: 0; z-index: 55; background: #0a0c0bec; backdrop-filter: blur(18px); border-bottom: 1px solid var(--ct-line); }
.ctgm-header-inner { max-width: 1280px; margin: auto; padding: 15px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ctgm-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.ctgm-brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 12px; border: 1px solid #485240; }
.ctgm-brand strong { font-size: 24px; letter-spacing: -.07em; }
.ctgm-brand span { color: var(--ct-faint); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-left: 3px; }
.ctgm-site-nav { display: flex; gap: 4px; align-items: center; min-width: 0; }
html body.ctgm-ui .ctgm-site-nav a { white-space: nowrap; text-decoration: none; color: var(--ct-muted) !important; padding: 10px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; }
html body.ctgm-ui .ctgm-site-nav a[aria-current=page] { color: var(--ct-accent) !important; background: #25311d; }
.ctgm-site-footer { max-width: 1220px; margin: 30px auto 0; padding: 25px 24px; border-top: 1px solid var(--ct-line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ctgm-site-footer small { font-size: 11px; }
.ctgm-site-footer a { font-size: 12px; text-decoration: none; }
html body.ctgm-ui :is(.institutional-main,.cq-page) { width: min(1180px,calc(100% - 48px)); max-width: 1180px; margin: auto; padding: 48px 0 64px; }
html body.ctgm-ui .institutional-title { font-size: clamp(32px,5vw,52px) !important; }
html body.ctgm-ui :is(.intro h1,.cq-heading h1) { font-size: clamp(32px,5vw,50px); letter-spacing: -.055em; }
html body.ctgm-ui :is(.reward-table th,.reward-table td) { background: transparent !important; color: var(--ct-ink) !important; border-color: var(--ct-line) !important; font-family: var(--ct-font); }
html body.ctgm-ui .reward-table th { background: #242c22 !important; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
html body.ctgm-ui .reward-table td:first-child { color: var(--ct-accent) !important; font-size: 26px; }
html body.ctgm-ui .n { background: #2a3621 !important; color: var(--ct-accent) !important; font-family: var(--ct-font); }

/* Public home. */
.ct-home { max-width: 1220px; margin: auto; padding: 28px 24px 20px; }
.ct-home-hero { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 500px; border: 1px solid var(--ct-line); border-radius: 32px; overflow: hidden; background: var(--ct-surface); }
.ct-home-copy { padding: 60px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ct-season { display: inline-flex; gap: 8px; align-items: center; color: #ffc39e; background: #2b2018; border: 1px solid #61412b; border-radius: 100px; padding: 6px 11px; font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.ct-season::before { content: ''; width: 5px; height: 5px; background: var(--ct-orange); border-radius: 50%; }
.ct-home h1 { font-size: clamp(42px,5.2vw,66px); font-weight: 700; margin: 25px 0 20px; letter-spacing: -.065em !important; }
.ct-home h1 span { color: var(--ct-accent); }
.ct-home-copy p { max-width: 400px; font-size: 16px; line-height: 1.75; margin: 0; }
.ct-home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ct-home-visual { position: relative; min-height: 420px; background: #151c10; }
.ct-home-visual>img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.ct-home-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#0b0f0bf7,transparent 70%); }
.ct-visual-note { position: absolute; bottom: 32px; left: 32px; right: 32px; z-index: 1; border: 1px solid #d3f3af33; padding: 23px; border-radius: 22px; background: #0c120dde; backdrop-filter: blur(12px); }
.ct-visual-note .eyebrow { margin-bottom: 12px; }
.ct-visual-note strong { font-size: 29px; letter-spacing: -.04em; display: block; margin: 4px 0; }
.ct-visual-note p { margin: 0; font-size: 13px; }
.ct-visual-chips { display: flex; gap: 7px; margin-top: 18px; }
.ct-visual-chips span { font-size: 10px; border: 1px solid var(--ct-line); border-radius: 7px; padding: 5px 9px; color: var(--ct-muted); }
.ct-shortcuts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.ct-shortcut { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 24px; min-height: 165px; border: 1px solid var(--ct-line); border-radius: 22px; background: var(--ct-surface); text-decoration: none; }
.ct-shortcut:hover { border-color: #687d53; }
.ct-shortcut>span:first-child { width: 34px; height: 34px; color: var(--ct-orange); font-size: 25px; line-height: 1; }
.ct-shortcut strong { font-size: 16px; }
.ct-shortcut small { font-size: 12px; line-height: 1.5; padding-right: 8px; }
.ct-shortcut::after { content: '↗'; position: absolute; top: 22px; right: 22px; color: var(--ct-faint); }
.ct-home-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px 0; font-size: 12px; }

/* Member dossier: actual identity, points and activity. */
html body.ctgm-ui .member-dossier { position: relative; border: 1px solid #607848; border-radius: 28px; background: radial-gradient(ellipse at 95% 0,#a9e76116,transparent 55%),var(--ct-surface); padding: 24px; margin: 0 0 18px; overflow: hidden; }
.member-dossier::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 2px; background: linear-gradient(90deg,var(--ct-accent),#ff985e80,transparent); }
.member-dossier-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.member-dossier-top span:last-child { font: 10px ui-monospace,monospace; color: var(--ct-faint); letter-spacing: .05em; }
html body.ctgm-ui .profile-top { grid-template-columns: 100px minmax(0,1fr); gap: 20px; margin: 0; align-items: start; }
html body.ctgm-ui .profile-avatar { width: 100px; height: 116px; display: grid; place-items: center; border: 1px solid #768b5f !important; border-radius: 21px !important; background: linear-gradient(145deg,#36482b,#182119) !important; color: #d3ffad !important; -webkit-text-fill-color: #d3ffad !important; font-size: 32px; padding: 0; overflow: hidden; }
html body.ctgm-ui .profile-avatar img { border-radius: 20px; width: 100%; height: 100%; object-fit: cover; }
html body.ctgm-ui .profile-avatar-edit { right: 4px; bottom: 4px; border: 0; background: var(--ct-accent); color: #182410; width: 23px; height: 23px; border-radius: 8px; }
html body.ctgm-ui .profile-photo-action { font-size: 11px; min-height: 32px; padding: 6px 0; }
html body.ctgm-ui .profile-name { font-size: clamp(23px,4vw,32px) !important; line-height: 1.12; margin: 2px 0 8px !important; overflow-wrap: anywhere; }
.member-role { color: var(--ct-orange); font-size: 10px; letter-spacing: .08em; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.member-contact { display: grid; gap: 3px; min-width: 0; }
.member-contact span { font-size: 12px; color: var(--ct-muted); overflow-wrap: anywhere; }
html body.ctgm-ui .profile-logout { grid-column: auto; margin-top: 12px; width: auto; min-height: 34px; padding: 7px 12px; font-size: 11px; }
.member-id-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 14px 16px; background: #0e130e; border: 1px solid var(--ct-line); border-radius: 14px; }
.member-id-row small { display: block; margin-bottom: 4px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.member-id-row strong { font: 600 13px ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap: anywhere; }
html body.ctgm-ui .member-id-row button { min-height: 36px; padding: 8px 12px; font-size: 11px; width: auto; flex-shrink: 0; }
.member-photo-note { display: block; font-size: 10px; margin-top: 10px; }
html body.ctgm-ui .points-card { background: radial-gradient(ellipse at 95% 8%,#a1e34812,transparent 60%),var(--ct-surface) !important; }
html body.ctgm-ui .points-big { font-size: 60px; font-weight: 650; letter-spacing: -.055em; margin: 8px 0 2px; color: var(--ct-accent); }
html body.ctgm-ui .points-big span { color: var(--ct-accent); }
.member-progress { margin-top: 22px; }
.member-progress-head,.member-progress-foot { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.member-progress-head>span { font-size: 10px; color: var(--ct-muted); }
.member-progress-head strong { font-size: 12px; }
.member-progress progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 7px; border: none; border-radius: 9px; overflow: hidden; background: #36412f; margin: 10px 0; }
.member-progress progress::-webkit-progress-bar { background: #36412f; border-radius: 9px; }
.member-progress progress::-webkit-progress-value { background: var(--ct-accent); border-radius: 9px; }
.member-progress progress::-moz-progress-bar { background: var(--ct-accent); border-radius: 9px; }
.member-progress-foot { font-size: 10px; color: var(--ct-muted); }
.member-progress-foot>span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.member-section-label { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; color: var(--ct-faint); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.member-section-label::after { content: ''; height: 1px; flex: 1; background: var(--ct-line); }
html body.ctgm-ui .points-stats { margin-top: 20px; padding-top: 17px; color: var(--ct-muted); font-size: 11px; }
html body.ctgm-ui .points-stats strong { font-size: 17px; margin-top: 5px; }
html body.ctgm-ui .profile-entry { max-width: 940px; margin: 36px auto; padding: 0 24px; }
.profile-entry-head { margin-bottom: 24px; }
.profile-entry-head h1 { font-size: clamp(36px,6vw,56px); margin: 12px 0; }
.profile-entry-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.profile-entry-grid .card { margin: 0 0 18px; }
.profile-entry-grid h2 { font-size: 23px; margin-top: 8px; }
.profile-entry-mark { font-size: 42px; color: var(--ct-accent); }
.profile-entry .login { display: grid; gap: 12px; grid-template-columns: 1fr; padding: 0; background: transparent !important; border: none !important; box-shadow: none !important; }

/* App navigation and responsive workspace. */
html body.ctgm-ui .app-header { max-width: 820px; margin: auto; padding: 20px 24px; background: transparent !important; border-bottom: 1px solid var(--ct-line) !important; }
html body.ctgm-ui .app-header .brand { color: var(--ct-ink) !important; font-size: 25px; letter-spacing: -.07em; }
html body.ctgm-ui .brand-mark { background: var(--ct-raised) !important; border: 1px solid var(--ct-line); box-shadow: none; }
html body.ctgm-ui .brand-mark i { background: var(--ct-accent) !important; }
.app-header .header-note { color: var(--ct-faint) !important; letter-spacing: .15em; }
html body.ctgm-ui #installInfo { visibility: visible; pointer-events: auto; background: transparent !important; color: var(--ct-muted) !important; -webkit-text-fill-color: var(--ct-muted) !important; border: 1px solid var(--ct-line) !important; padding: 9px; width: 40px; min-height: 40px; }
html body.ctgm-ui .shell { max-width: 820px; padding: 18px 24px 120px; margin: auto; }
html body.ctgm-ui .intro { padding: 10px 0 24px; }
html body.ctgm-ui .intro p { font-size: 14px; line-height: 1.65; }
html body.ctgm-ui .bottom-nav { width: min(calc(100% - 28px),580px); background: #171d17f2 !important; border: 1px solid #46513e !important; border-radius: 22px !important; box-shadow: 0 12px 50px #0009 !important; padding: 6px; grid-template-columns: repeat(4,minmax(0,1fr)); }
html body.ctgm-ui .bottom-nav a { color: var(--ct-muted) !important; border-radius: 16px; padding: 10px 4px; font-size: 10px; text-decoration: none; min-width: 0; }
html body.ctgm-ui .bottom-nav a[aria-current=page] { color: var(--ct-accent) !important; background: #2a3821 !important; }
.bottom-nav a svg { width: 21px; height: 21px; }
html body.ctgm-ui .cq-panel { padding: 26px; }
html body.ctgm-ui :is(.cq-panel::before,.promo-card::before,.help-card::before) { background: linear-gradient(90deg,var(--ct-accent),var(--ct-orange)) !important; height: 2px; }
html body.ctgm-ui .cq-amount input { font-size: 44px; }
html body.ctgm-ui :is(.cq-price-result,.cq-estimate) { background: #1d2918 !important; border-color: #425533 !important; border-radius: 18px; }
html body.ctgm-ui :is(.cq-price-result output,.cq-total strong) { color: var(--ct-accent) !important; }
html body.ctgm-ui .cq-presets { gap: 7px; }
html body.ctgm-ui .cq-presets button { padding: 9px 12px; font-size: 12px; }
html body.ctgm-ui .cq-contact { background: linear-gradient(130deg,#24241b,var(--ct-surface)) !important; }
html body.ctgm-ui .cq-contact-link strong { overflow-wrap: anywhere; }
html body.ctgm-ui .guide-bell { background: #29351f; border-color: var(--ct-surface); box-shadow: none; }
html body.ctgm-ui .guide-benefits>div { background: var(--ct-input); border-color: var(--ct-line); }
html body.ctgm-ui .guide-benefits span { background: #2a3821; color: var(--ct-accent); }
html body.ctgm-ui .install-gate { background: var(--ct-bg); color: var(--ct-ink); }
html body.ctgm-ui .install-logo { background: var(--ct-raised); box-shadow: none; }
html body.ctgm-ui .install-steps>div { background: var(--ct-surface); border-color: var(--ct-line); }
html body.ctgm-ui .install-steps span { background: #2a3821; color: var(--ct-accent); }

/* Administration: same dossier, room for operational controls. */
html body.ctgm-ui .admin-shell { max-width: 1180px; }
html body.ctgm-ui .admin-header { padding: 10px 0 24px; border-bottom: 1px solid var(--ct-line); }
html body.ctgm-ui .admin-tabs { border: 1px solid var(--ct-line); padding: 8px; gap: 7px; background: var(--ct-input); border-radius: 17px; overflow-x: auto; }
html body.ctgm-ui .admin-tab { white-space: nowrap; }
html body.ctgm-ui .adminShellNav { background: var(--ct-surface) !important; border: 1px solid var(--ct-line) !important; box-shadow: none !important; backdrop-filter: none !important; top: 96px !important; height: calc(100vh - 116px); border-radius: 22px !important; }
html body.ctgm-ui .navList { gap: 9px; }
html body.ctgm-ui .navBrand span { color: var(--ct-faint) !important; }
html body.ctgm-ui .account-row-card { border-color: #43533a !important; }
html body.ctgm-ui :is(.account-row-avatar,.member-admin-avatar,.clientAvatar) { border: 1px solid #68844c !important; border-radius: 16px !important; background: linear-gradient(140deg,#374c29,#172117) !important; color: var(--ct-accent) !important; display: grid; place-items: center; font-weight: 650; }
html body.ctgm-ui .account-row-avatar { width: 56px; height: 64px; font-size: 20px; flex-shrink: 0; }
html body.ctgm-ui .account-row-metrics { background: var(--ct-input) !important; border: 1px solid var(--ct-line) !important; border-radius: 14px; }
html body.ctgm-ui :is(.account-row-metrics span,.account-detail-stats span,.account-stat span,.account-row-identity span,.account-row-identity small) { color: var(--ct-muted) !important; }
html body.ctgm-ui .account-dialog { max-width: 900px; width: calc(100% - 32px); }
.member-admin-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.member-admin-head>div:last-child { min-width: 0; }
.member-admin-head h2 { overflow-wrap: anywhere; }
.member-admin-avatar { flex: 0 0 66px; height: 78px; font-size: 24px; }
html body.ctgm-ui .account-dialog-head { background: var(--ct-surface) !important; border-bottom: 1px solid var(--ct-line); padding-bottom: 20px; align-items: flex-start; }
html body.ctgm-ui .account-detail-stats { box-shadow: none !important; background: transparent !important; border: none !important; }
html body.ctgm-ui :is(.account-detail-stats>div,.referral-stats>div,.account-row-metrics>div) { background: var(--ct-input) !important; border: 1px solid var(--ct-line) !important; color: var(--ct-ink) !important; border-radius: 14px; }
html body.ctgm-ui :is(.referral-stats>div,.notification-coupon-callout span) { color: var(--ct-muted) !important; }
html body.ctgm-ui .referral-card::before { background: linear-gradient(90deg,var(--ct-accent),var(--ct-orange)); }
html body.ctgm-ui .ctgm-brand img { object-fit: contain; width: 49px; height: 34px; border: none; border-radius: 0; }
.account-edit-card { margin-top: 20px; }
html body.ctgm-ui .clientProfile { padding: 0; border: none !important; background: none !important; box-shadow: none; grid-template-columns: 240px minmax(0,1fr); grid-template-areas: 'identity info' 'points orders' 'history notes'; gap: 16px; }
html body.ctgm-ui .clientIdentity { padding: 24px; border: 1px solid #587143; background: radial-gradient(ellipse at 0 0,#99de4230,transparent 75%),var(--ct-surface); border-radius: 24px; min-height: 220px; align-content: center; gap: 13px; text-align: center; }
html body.ctgm-ui .clientAvatar { width: 100px; height: 112px; font-size: 38px; transform: none; }
html body.ctgm-ui .clientAvatar::before,html body.ctgm-ui .clientAvatar::after { display: none; }
.clientIdentity small { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.clientIdentity strong { font-size: 16px; overflow-wrap: anywhere; }
html body.ctgm-ui .clientPanel { padding: 23px; }
html body.ctgm-ui .clientPanelTitle { font-size: 15px; letter-spacing: -.01em; text-transform: none; font-weight: 700; }
html body.ctgm-ui .clientInfoLabel { font-size: 11px; font-weight: 500; text-transform: none; color: var(--ct-muted) !important; }
html body.ctgm-ui .clientInfoValue { font-size: 15px; font-weight: 600; }
html body.ctgm-ui .clientInfoRow { grid-template-columns: 65px minmax(0,1fr) auto; gap: 10px; border-color: var(--ct-line); }
html body.ctgm-ui .clientMiniBtn { display: block; font-size: 11px; min-height: 36px; }
html body.ctgm-ui .clientProfileActions { gap: 8px; }
html body.ctgm-ui .clientProfileActions button { width: auto !important; padding: 10px 13px !important; }
html body.ctgm-ui .clientPoints { align-items: stretch; text-align: left; }
html body.ctgm-ui .clientPointsNumber { font-size: 60px; font-weight: 650; letter-spacing: -.06em; color: var(--ct-accent) !important; margin-top: 10px; }
html body.ctgm-ui .clientPointsMeta { font-size: 11px; }
html body.ctgm-ui .clientOrderTop { flex-wrap: wrap; }
html body.ctgm-ui .clientOrderCode { font: 600 12px ui-monospace,monospace; }
html body.ctgm-ui .clientHistoryPoints { color: var(--ct-accent) !important; white-space: nowrap; }
html body.ctgm-ui .clientHistoryPoints.neg { color: #ffb6c2 !important; }
html body.ctgm-ui .clientNotesText { background: var(--ct-input); border-color: var(--ct-line); color: var(--ct-muted) !important; line-height: 1.7; }
html body.ctgm-ui .clientTab { font-size: 13px !important; padding: 12px 14px !important; }
html body.ctgm-ui #loginCard { max-width: 480px; margin: 50px auto; }
html body.ctgm-ui #app { max-width: 1440px; margin: auto; }
html body.ctgm-ui .account-danger { background: #231619 !important; border-color: #60303a !important; margin-top: 20px; }
html body.ctgm-ui .account-danger h2 { font-size: 17px; }

@media(min-width:1000px) {
  html body.ctgm-ui .shell { max-width: 1020px; }
  #profileData { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 0 18px; }
  #profileData>.card { margin-top: 0; }
  #profileData>.member-section-label { grid-column: 1/-1; }
  #profileData>.points-card { grid-column: 1/-1; }
}
@media(max-width:1000px) {
  .ctgm-header-inner { flex-wrap: wrap; gap: 10px; padding: 12px 24px; }
  .ctgm-site-nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  html body.ctgm-ui .ctgm-site-nav a { padding: 8px 11px; }
  html body.ctgm-ui .adminShellNav { top: 122px !important; }
}
@media(max-width:900px) {
  html body.ctgm-ui .adminShellNav { top: 119px !important; height: auto !important; border-radius: 0 !important; }
  .ct-home-copy { padding: 36px 28px; }
  .ct-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  html { scroll-padding-top: 136px; }
  .ctgm-header-inner { padding: 11px 16px; gap: 8px; }
  .ctgm-brand img { width: 31px; height: 31px; border-radius: 9px; }
  .ctgm-brand strong { font-size: 22px; }
  .ctgm-brand span { font-size: 9px; }
  html body.ctgm-ui .ctgm-site-nav a { font-size: 11px; min-height: 36px; display: flex; align-items: center; }
  .ct-home { padding: 18px 16px; }
  .ct-home-hero { grid-template-columns: 1fr; border-radius: 25px; }
  .ct-home-copy { padding: 30px 24px; }
  .ct-home h1 { font-size: 46px; margin: 22px 0 17px; }
  .ct-home-copy p { font-size: 14px; }
  .ct-home-visual { min-height: 280px; }
  .ct-visual-note { left: 20px; right: 20px; bottom: 20px; padding: 20px; }
  .ct-visual-note strong { font-size: 25px; }
  .ct-shortcut { padding: 20px; min-height: 153px; }
  .ct-shortcuts { gap: 11px; }
  .ct-home-note { align-items: flex-start; font-size: 10px; }
  html body.ctgm-ui :is(.institutional-main,.cq-page) { width: calc(100% - 32px); padding-top: 28px; }
  html body.ctgm-ui :is(.card,.cq-panel) { padding: 20px; border-radius: 22px !important; }
  html body.ctgm-ui .shell { padding: 14px 16px 120px; }
  html body.ctgm-ui .intro h1 { font-size: 35px; }
  html body.ctgm-ui .app-header { padding: 16px 20px; }
  html body.ctgm-ui .member-dossier { padding: 21px; border-radius: 24px; }
  html body.ctgm-ui .profile-top { grid-template-columns: 84px minmax(0,1fr); gap: 16px; }
  html body.ctgm-ui .profile-avatar { width: 84px; height: 103px; }
  .member-id-row strong { font-size: 12px; }
  .profile-entry-grid { grid-template-columns: 1fr; gap: 0; }
  html body.ctgm-ui .profile-entry { padding: 0 16px; margin: 26px auto; }
  .ctgm-site-footer { margin: 20px 16px 0; padding: 22px 0; align-items: flex-start; }
  html body.ctgm-ui .adminShellNav { top: 109px !important; }
  html body.ctgm-ui .clientProfile { grid-template-columns: 1fr; grid-template-areas: 'identity' 'info' 'points' 'orders' 'history' 'notes'; gap: 12px; }
  html body.ctgm-ui .clientIdentity { min-height: 190px; }
  html body.ctgm-ui .clientInfoRow { grid-template-columns: 56px minmax(0,1fr) auto; gap: 7px; }
  html body.ctgm-ui .account-dialog { padding: 18px; }
  .member-admin-head { gap: 11px; }
  .member-admin-avatar { flex-basis: 48px; height: 58px; font-size: 18px; }
  html body.ctgm-ui .account-dialog-head h2 { font-size: 20px; }
  html body.ctgm-ui :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size: 16px; }
}
@media(max-width:380px) {
  .ct-home h1 { font-size: 39px; }
  .ct-shortcut { padding: 17px; }
  .ct-shortcut strong { font-size: 14px; }
  .member-id-row { padding: 12px; gap: 7px; }
  .member-id-row strong { font-size: 10px; }
  .member-progress-head { align-items: flex-start; }
  .member-progress-head strong { text-align: right; }
  html body.ctgm-ui .profile-name { font-size: 23px !important; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto !important; }
  .ctgm-ui * { animation: none !important; transition: none !important; }
}
/* Shipping labels remain neutral for printing and PNG export. */
html body.ctgm-ui .guideSheet,html body.ctgm-ui .guideSheet * { color: #111 !important; -webkit-text-fill-color: #111 !important; text-shadow: none !important; }
html body.ctgm-ui .guideSheet { background: #fff !important; border-radius: 2px !important; }
html body.ctgm-ui .guideSheet :is(input,textarea,select) { background: #fff !important; }
