/* =============================================================
   userapp.css — USER-APP-R1 Phase A: shell + theme foundation
   -------------------------------------------------------------
   Loaded by index.html only (never by public.html), after styles.css and home.css.
   index.html is shared with Admin, Auth and the Homepage, so EVERY rule here is
   scoped by one of two hooks that exist only while the logged-in user app shell
   is mounted (dashboard.jsx · UserAppShell):
     · html[data-ua-theme]   — ambient background + body-level modal/toast portals
     · .user-app-shell       — the shell itself
   Tokens use the --ua-* namespace. This file never redefines --acc or --font and
   never touches :root. The Page Editor's live phone preview (.phone) renders real
   landing-page blocks inside the shell, so it is kept as an island (section 9).
   ============================================================= */

/* ---------- 1. tokens ---------- */
html[data-ua-theme]{
  --ua-bg:#060B18; --ua-bg-2:#0A1122;
  --ua-surface:#0D1528; --ua-surface-2:#131D35; --ua-surface-3:#1A2644;
  --ua-ed-well:#0A1224; --ua-ed-raised:#18233F;   /* Page Editor: block settings box (recessed) / panels inside it (raised) - same navy hue as the card */
  --ua-border:rgba(148,172,220,.14); --ua-border-2:rgba(148,172,220,.26);
  --ua-text:#F2F6FC; --ua-text-2:#C6D0E1; --ua-text-muted:#9FACC3;
  --ua-blue:#3B82F6; --ua-blue-l:#6EA8FF; --ua-cyan:#22D3EE; --ua-jade:#2EE6FF;
  --ua-ink:#041022;
  --ua-grad:linear-gradient(120deg,#3B82F6 0%,#22D3EE 100%);
  --ua-grad-hover:linear-gradient(120deg,#4F8FF7 0%,#42DBF1 100%);
  --ua-on-accent:#041022;
  --ua-accent-text:#8DBAFF;
  --ua-accent-soft:rgba(59,130,246,.14); --ua-accent-line:rgba(96,165,250,.42);
  --ua-tint:rgba(148,172,220,.06); --ua-tint-2:rgba(148,172,220,.11);
  --ua-link:#5CC8F0;
  --ua-code-accent:#5EEAD4;
  --ua-tab-active-text:#8DBAFF;
  --ua-status-success-text:#34E3BE; --ua-status-online-text:#34E3BE;
  --ua-status-success-soft:rgba(0,244,203,.1); --ua-status-success-line:rgba(0,244,203,.3);
  --ua-status-warn-text:#F5C866; --ua-status-info-text:#8DBAFF;
  --ua-danger:#F87171; --ua-danger-soft:rgba(248,113,113,.1); --ua-danger-line:rgba(248,113,113,.32);
  --ua-focus:#6EA8FF;
  --ua-radius-sm:10px; --ua-radius:14px; --ua-radius-lg:20px;
  --ua-shadow:0 18px 44px -28px rgba(0,0,0,.8);
  --ua-shadow-pop:0 30px 80px -24px rgba(0,0,0,.78);
  --ua-scrim:rgba(3,6,14,.72);
  --ua-bar:rgba(6,11,24,.94);
  --ua-grid-line:rgba(148,172,220,.035);
  --ua-bloom-a:rgba(59,130,246,.2); --ua-bloom-b:rgba(34,211,238,.12);
  --ua-scroll:rgba(148,172,220,.2); --ua-scroll-hover:rgba(148,172,220,.34);
  --ua-d-fast:140ms; --ua-d:180ms; --ua-d-slow:220ms;
  --ua-ease:cubic-bezier(.22,1,.36,1);
  --ua-font-sans:'Anuphan','Plus Jakarta Sans',system-ui,-apple-system,sans-serif;
  --ua-font:var(--ua-font-sans);
  color-scheme:dark;
}
html[data-ua-theme="light"]{
  --ua-bg:#EEF3FA; --ua-bg-2:#E6EDF7;
  --ua-surface:#FFFFFF; --ua-surface-2:#F4F7FC; --ua-surface-3:#E9EFF8;
  --ua-ed-well:#E6EDF7; --ua-ed-raised:#FFFFFF;
  --ua-border:rgba(20,45,95,.13); --ua-border-2:rgba(20,45,95,.24);
  --ua-text:#0A1428; --ua-text-2:#2F3D58; --ua-text-muted:#4A5874;
  --ua-blue:#2563EB; --ua-blue-l:#1D4ED8; --ua-cyan:#0A5C74; --ua-jade:#046C4E;
  --ua-grad:linear-gradient(120deg,#2563EB 0%,#0E7490 100%);
  --ua-grad-hover:linear-gradient(120deg,#1D4ED8 0%,#0B6079 100%);
  --ua-on-accent:#FFFFFF;
  --ua-accent-text:#1D4ED8;
  --ua-accent-soft:rgba(37,99,235,.1); --ua-accent-line:rgba(37,99,235,.38);
  --ua-tint:rgba(20,45,95,.045); --ua-tint-2:rgba(20,45,95,.085);
  --ua-link:#0B5F7A;
  --ua-code-accent:#0B5F7A;
  --ua-tab-active-text:#1D4ED8;
  --ua-status-success-text:#046C4E; --ua-status-online-text:#046C4E;
  --ua-status-success-soft:rgba(4,108,78,.09); --ua-status-success-line:rgba(4,108,78,.34);
  --ua-status-warn-text:#8A4B08; --ua-status-info-text:#1D4ED8;
  --ua-danger:#B91C1C; --ua-danger-soft:rgba(185,28,28,.07); --ua-danger-line:rgba(185,28,28,.3);
  --ua-focus:#2563EB;
  --ua-shadow:0 18px 40px -30px rgba(20,45,95,.5);
  --ua-shadow-pop:0 30px 70px -30px rgba(20,45,95,.5);
  --ua-scrim:rgba(15,25,48,.46);
  --ua-bar:rgba(255,255,255,.94);
  --ua-grid-line:rgba(20,45,95,.05);
  --ua-bloom-a:rgba(96,165,250,.3); --ua-bloom-b:rgba(34,211,238,.18);
  --ua-scroll:rgba(20,45,95,.24); --ua-scroll-hover:rgba(20,45,95,.4);
  color-scheme:light;
}

/* ---------- 2. page + ambient background (siblings of the shell) ---------- */
html[data-ua-theme] .bg-grid{
  background-image:
    linear-gradient(to right, var(--ua-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ua-grid-line) 1px, transparent 1px);
}
html[data-ua-theme] .bg-blob.a{ background:radial-gradient(circle, var(--ua-bloom-a), transparent 70%) }
html[data-ua-theme] .bg-blob.b{ background:radial-gradient(circle, var(--ua-bloom-b), transparent 70%) }
html[data-ua-theme] ::-webkit-scrollbar-thumb{ background:var(--ua-scroll) }
html[data-ua-theme] ::-webkit-scrollbar-thumb:hover{ background:var(--ua-scroll-hover) }

/* ---------- 3. shell base ---------- */
.user-app-shell{ color:var(--ua-text) }
.user-app-shell .ua-sr{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0;
  overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}

/* ---------- 4. sidebar ---------- */
.user-app-shell .sidebar{
  background:linear-gradient(180deg, var(--ua-bg-2) 0%, var(--ua-bg) 100%);
  border-right-color:var(--ua-border);
  gap:4px;
}
.user-app-shell .sidebar::-webkit-scrollbar-thumb{ background:var(--ua-scroll) }
.user-app-shell .sidebar .ua-brand{ justify-content:flex-start; padding:4px 10px; margin-bottom:14px }
.user-app-shell .ua-logo{
  display:block; height:34px; width:auto; max-width:none; aspect-ratio:592 / 160; object-fit:contain;
}
.user-app-shell .ua-logo--bar{ height:28px }

.user-app-shell .nav-section{ color:var(--ua-text-muted); letter-spacing:.07em }
.user-app-shell .lp-count{ color:var(--ua-text-2); background:var(--ua-tint-2) }
.user-app-shell .lp-empty-note{ color:var(--ua-text-muted) }

.user-app-shell .nav-item,
.user-app-shell .settings-link{
  position:relative;
  color:var(--ua-text-2);
  border:1px solid transparent;            /* reserved: no 2px jump when a row becomes active */
  border-radius:var(--ua-radius-sm);
  transition:background-color var(--ua-d-fast) ease, color var(--ua-d-fast) ease, border-color var(--ua-d-fast) ease;
}
.user-app-shell .nav-item:hover,
.user-app-shell .settings-link:hover{ background:var(--ua-tint); color:var(--ua-text) }
.user-app-shell .nav-item.active,
.user-app-shell .settings-link.active{
  background:var(--ua-accent-soft); color:var(--ua-accent-text); border-color:transparent;
}
.user-app-shell .nav-icon{ color:var(--ua-text-muted); transition:color var(--ua-d-fast) ease }
.user-app-shell .nav-item:hover .nav-icon{ color:var(--ua-text-2) }
.user-app-shell .nav-item.active .nav-icon{ color:var(--ua-accent-text) }
.user-app-shell .nav-item .nav-chev{ color:var(--ua-text-muted); transition:transform var(--ua-d) var(--ua-ease) }

/* active indicator — grows from the centre of the row */
.user-app-shell .nav-item::before,
.user-app-shell .settings-link::before{
  content:""; position:absolute; left:-1px; top:50%; width:3px; height:18px; margin-top:-9px;
  border-radius:0 3px 3px 0; background:var(--ua-grad);
  transform:scaleY(0); opacity:0;
  transition:transform var(--ua-d) var(--ua-ease), opacity var(--ua-d-fast) ease;
}
.user-app-shell .nav-item.active::before,
.user-app-shell .settings-link.active::before{ transform:scaleY(1); opacity:1 }

.user-app-shell .nav-sub{ border-left-color:var(--ua-border); transition:max-height var(--ua-d-slow) var(--ua-ease), opacity var(--ua-d) ease }
.user-app-shell .lp-dot.on{ background:var(--ua-jade); box-shadow:none }
.user-app-shell .lp-dot.off{ background:var(--ua-border-2) }

.user-app-shell .nav-item:focus-visible,
.user-app-shell .settings-link:focus-visible,
.user-app-shell .user-nav-trigger:focus-visible,
.user-app-shell .ua-lang button:focus-visible{
  outline:2px solid var(--ua-focus); outline-offset:2px;
}

/* language control (top header) */
.user-app-shell .ua-lang{
  display:inline-flex; flex:none; padding:2px; border-radius:999px;
  background:var(--ua-tint); border:1px solid var(--ua-border);
}
.user-app-shell .ua-lang button{
  min-width:36px; min-height:32px; padding:0 10px; border-radius:999px;
  font-size:12px; font-weight:600; letter-spacing:.02em; color:var(--ua-text-muted);
  transition:background-color var(--ua-d-fast) ease, color var(--ua-d-fast) ease;
}
.user-app-shell .ua-lang button:hover{ color:var(--ua-text) }
.user-app-shell .ua-lang button[aria-pressed="true"]{ background:var(--ua-accent-soft); color:var(--ua-accent-text) }

/* ---------- 4b. top header (A2) ----------
   The header is a grid child of the shell (not of <main>), so it spans the whole content
   column; its inner row is aligned to the same max-width/padding as <main>. */
.app.user-app-shell{ grid-template-rows:auto 1fr }
.user-app-shell > .sidebar{ grid-column:1; grid-row:1 / span 2 }
.user-app-shell > .ua-header{ grid-column:2; grid-row:1 }
.user-app-shell > .main{ grid-column:2; grid-row:2 }
.user-app-shell .ua-header{
  position:sticky; top:0; z-index:30; min-width:0;
  background:var(--ua-bar); border-bottom:1px solid var(--ua-border);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
}
.user-app-shell .ua-header-in{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  max-width:1320px; margin:0 auto; min-height:60px; padding:8px 32px;
}
.user-app-shell .ua-header-start,
.user-app-shell .ua-header-end{ display:flex; align-items:center; gap:10px; min-width:0 }
.user-app-shell .ua-header-end{ flex:none }
.user-app-shell .ua-header .user-nav-trigger,
.user-app-shell .ua-header .ua-logo--bar{ display:none }
.user-app-shell .ua-context{
  display:flex; align-items:center; gap:8px; min-width:0; font-size:13px; color:var(--ua-text-muted);
}
.user-app-shell .ua-context-label{ flex:none }
.user-app-shell .ua-context-label::after{ content:"/"; margin-left:8px; color:var(--ua-border-2) }
.user-app-shell .ua-context .lp-dot{ flex:none }
.user-app-shell .ua-context-name{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ua-text); font-weight:600 }

.user-app-shell .ua-icon-btn{
  display:inline-flex; align-items:center; justify-content:center; flex:none;
  width:38px; height:38px; border-radius:var(--ua-radius-sm);
  border:1px solid var(--ua-border); background:var(--ua-tint); color:var(--ua-text-2);
  transition:background-color var(--ua-d-fast) ease, color var(--ua-d-fast) ease, border-color var(--ua-d-fast) ease;
}
.user-app-shell .ua-icon-btn:hover{ background:var(--ua-tint-2); color:var(--ua-text); border-color:var(--ua-border-2) }
.user-app-shell .ua-icon-btn svg{ transition:transform var(--ua-d-slow) var(--ua-ease) }
.user-app-shell .ua-theme-btn[aria-checked="false"] svg{ transform:rotate(45deg) }

/* account chip + menu */
.user-app-shell .ua-user{ position:relative; flex:none }
.user-app-shell .ua-user-chip{
  display:inline-flex; align-items:center; gap:8px; min-height:38px; max-width:220px;
  padding:3px 8px 3px 3px; border-radius:999px;
  border:1px solid var(--ua-border); background:var(--ua-tint); color:var(--ua-text);
  transition:background-color var(--ua-d-fast) ease, border-color var(--ua-d-fast) ease;
}
.user-app-shell .ua-user-chip:hover,
.user-app-shell .ua-user-chip[aria-expanded="true"]{ background:var(--ua-tint-2); border-color:var(--ua-border-2) }
.user-app-shell .ua-user-avatar.avatar{ width:30px; height:30px; border-radius:50% !important; font-size:13px }
.user-app-shell .ua-user-name{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; font-weight:600 }
.user-app-shell .ua-user-chev{ display:inline-flex; color:var(--ua-text-muted); transition:transform var(--ua-d) var(--ua-ease) }
.user-app-shell .ua-user-chip[aria-expanded="true"] .ua-user-chev{ transform:rotate(180deg) }

@keyframes ua-menu-in{ from{ opacity:0; transform:translateY(-4px) } to{ opacity:1; transform:none } }
.user-app-shell .ua-menu{
  position:absolute; top:calc(100% + 8px); right:0; z-index:40;
  width:min(288px, calc(100vw - 24px)); padding:8px;
  background:var(--ua-surface); border:1px solid var(--ua-border-2); border-radius:var(--ua-radius);
  box-shadow:var(--ua-shadow-pop);
  animation:ua-menu-in var(--ua-d-fast) var(--ua-ease) both;
}
.user-app-shell .ua-menu-head{ display:flex; align-items:center; gap:10px; padding:8px 8px 10px; min-width:0 }
.user-app-shell .ua-menu-avatar.avatar{ width:38px; height:38px; border-radius:50% !important; font-size:15px }
.user-app-shell .ua-menu-id{ min-width:0 }
.user-app-shell .ua-menu-name{ font-size:14px; font-weight:700; color:var(--ua-text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.user-app-shell .ua-menu-mail{ font-size:12px; color:var(--ua-text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.user-app-shell .ua-menu-sep{ height:1px; margin:4px 4px 6px; background:var(--ua-border) }
.user-app-shell .ua-menu-item{
  display:flex; align-items:center; gap:10px; width:100%; min-height:40px; padding:8px 10px;
  border-radius:var(--ua-radius-sm); text-align:left; font-size:13.5px; font-weight:500; color:var(--ua-text-2);
  transition:background-color var(--ua-d-fast) ease, color var(--ua-d-fast) ease;
}
.user-app-shell .ua-menu-item:hover,
.user-app-shell .ua-menu-item:focus-visible{ background:var(--ua-tint-2); color:var(--ua-text) }
.user-app-shell .ua-menu-item--danger{ color:var(--ua-danger) }
.user-app-shell .ua-menu-item--danger:hover,
.user-app-shell .ua-menu-item--danger:focus-visible{ background:var(--ua-danger-soft); color:var(--ua-danger) }

.user-app-shell .ua-icon-btn:focus-visible,
.user-app-shell .ua-user-chip:focus-visible,
.user-app-shell .ua-menu-item:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }

/* six page tabs fit the accordion (styles.css caps it at 240px) */
.user-app-shell .nav-sub.open{ max-height:320px }

/* ---------- 5. page container + generic page heading ---------- */
.user-app-shell .topbar h2{ color:var(--ua-text); letter-spacing:-.015em }
.user-app-shell .topbar .crumb{ color:var(--ua-text-muted) }
/* PageHeader subtitle is coloured inline with the legacy --muted (3.98:1) */
.user-app-shell .topbar h2 + div{ color:var(--ua-text-muted) !important }
.user-app-shell .topbar .crumb .here,
.user-app-shell .topbar .crumb strong{ color:var(--ua-text-2) }
/* page surface transition — opacity only, so there is no layout shift */
@keyframes ua-surface-in{ from{ opacity:0 } to{ opacity:1 } }
.user-app-shell .main > [data-screen-label]{ animation:ua-surface-in var(--ua-d) ease both }

/* ---------- 6. generic controls + surfaces (user app only) ---------- */
.user-app-shell .card{
  background:var(--ua-surface); border-color:var(--ua-border); border-radius:var(--ua-radius-lg);
}
.user-app-shell .divider{ background:var(--ua-border) }

.user-app-shell .btn,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .btn{
  border-color:var(--ua-border-2); background:var(--ua-tint); color:var(--ua-text);
  border-radius:var(--ua-radius-sm);
  transition:background-color var(--ua-d-fast) ease, border-color var(--ua-d-fast) ease,
    color var(--ua-d-fast) ease, box-shadow var(--ua-d-fast) ease;
}
.user-app-shell .btn:hover,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .btn:hover{
  background:var(--ua-tint-2); border-color:var(--ua-border-2); transform:none;
}
.user-app-shell .btn.primary,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .btn.primary{
  background:var(--ua-grad); color:var(--ua-on-accent); border-color:transparent;
  box-shadow:0 8px 22px -14px rgba(59,130,246,.9);
}
.user-app-shell .btn.primary:hover,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .btn.primary:hover{
  background:var(--ua-grad-hover); box-shadow:0 10px 26px -14px rgba(59,130,246,1);
}
.user-app-shell .btn.primary:disabled:hover,
.user-app-shell .btn.primary[disabled]:hover,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .btn.primary:disabled:hover{
  background:var(--ua-grad); box-shadow:none;
}
.user-app-shell .btn.ghost,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .btn.ghost{ background:transparent; border-color:transparent }
.user-app-shell .btn.ghost:hover,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .btn.ghost:hover{ background:var(--ua-tint) }
.user-app-shell .btn.danger,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .btn.danger{
  color:var(--ua-danger); border-color:var(--ua-danger-line); background:var(--ua-danger-soft);
}
.user-app-shell .btn.danger-solid,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .btn.danger-solid{
  background:#DC2626; color:#fff; border-color:transparent;
}
.user-app-shell .btn.danger-solid:hover,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .btn.danger-solid:hover{ background:#B91C1C; color:#fff }
.user-app-shell .btn:focus-visible,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .btn:focus-visible{
  outline:2px solid var(--ua-focus); outline-offset:2px;
}

.user-app-shell .input,
.user-app-shell .textarea,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .input,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .textarea{
  background:var(--ua-tint); border-color:var(--ua-border-2); color:var(--ua-text);
  border-radius:var(--ua-radius-sm);
  transition:border-color var(--ua-d-fast) ease, background-color var(--ua-d-fast) ease, box-shadow var(--ua-d-fast) ease;
}
.user-app-shell .input:focus,
.user-app-shell .textarea:focus,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .input:focus,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .textarea:focus{
  border-color:var(--ua-focus); background:var(--ua-tint-2); box-shadow:0 0 0 3px var(--ua-accent-soft);
}
/* validation states keep their own border colour (declared after :focus on purpose) */
.user-app-shell .input.input-err,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .input.input-err{ border-color:var(--ua-danger) }

/* Editable fields: Anuphan for Thai AND English, including the placeholder.
   Read-only technical values (IDs, codes shown in non-input elements) keep their mono face. */
.user-app-shell :is(input, textarea, select):not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) :is(input, textarea, select){
  font-family:var(--ua-font);
}
.user-app-shell :is(input, textarea):not(.phone *)::placeholder,
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) :is(input, textarea)::placeholder{
  font-family:var(--ua-font); color:var(--ua-text-muted); opacity:1;
}

/* ---------- 7. compact shell (≤1023px): header + drawer ---------- */
@media (max-width:1023px){
  .user-app-shell .sidebar.user-nav-drawer{
    background:linear-gradient(180deg, var(--ua-bg-2) 0%, var(--ua-bg) 100%);
    border-right:1px solid var(--ua-border);
    box-shadow:20px 0 50px -10px rgba(0,0,0,.45);
    transition:transform var(--ua-d-slow) var(--ua-ease);
  }
  .user-app-shell .user-nav-backdrop{ background:var(--ua-scrim); transition:opacity var(--ua-d) ease }
  .user-app-shell .ua-header-in{ min-height:64px; padding:8px 24px }
  .user-app-shell .ua-header .user-nav-trigger{
    display:inline-flex; flex:none; min-width:0;
    border-color:var(--ua-border-2); background:var(--ua-tint); color:var(--ua-text);
    border-radius:var(--ua-radius-sm);
    transition:background-color var(--ua-d-fast) ease;
  }
  .user-app-shell .ua-header .user-nav-trigger:hover{ background:var(--ua-tint-2) }
  .user-app-shell .ua-header .ua-logo--bar{ display:block }
  .user-app-shell .ua-context{ display:none }
  .user-app-shell .main{ padding-top:20px }
  .user-app-shell .ua-icon-btn{ width:44px; height:44px }
  .user-app-shell .ua-lang button{ min-width:44px; min-height:44px }
  .user-app-shell .ua-user-chip{ min-height:44px }
  .user-app-shell .ua-menu-item{ min-height:44px }
  .user-app-shell .nav-sub.open{ max-height:360px }
}
@media (max-width:640px){
  .user-app-shell .ua-header-in{ padding:8px 14px; gap:8px }
  .user-app-shell .ua-header-end{ gap:6px }
  .user-app-shell .main{ padding-top:16px }
  .user-app-shell .ua-header .user-nav-trigger{ position:relative; width:44px; padding:0 }
  .user-app-shell .ua-header .user-nav-trigger > span{
    position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
  }
  .user-app-shell .ua-user-name{ display:none }
  .user-app-shell .ua-user-chip{ padding-right:6px; gap:4px }
}
@media (max-width:420px){
  .user-app-shell .ua-header .ua-logo--bar{ display:none }
}

/* ---------- 7b. Integrations (C1) ---------- */
@keyframes ua-panel-in{ from{ opacity:0 } to{ opacity:1 } }
.user-app-shell .ua-integ-sum-head{ display:flex; align-items:center; gap:10px; margin-bottom:14px }
.user-app-shell .ua-integ-sum-head h4{ margin:0; font-size:15px }
.user-app-shell .ua-integ-sum-desc{ font-size:12px; color:var(--ua-text-muted) }
.user-app-shell .ua-integ-sum-ic{
  display:flex; align-items:center; justify-content:center; flex:none; width:36px; height:36px;
  border-radius:10px; background:var(--ua-accent-soft); color:var(--ua-accent-text);
}
.user-app-shell .ua-integ-sum-list{ margin:0; display:flex; flex-direction:column; gap:8px }
.user-app-shell .ua-integ-sum-list > div{
  display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:40px; padding:6px 12px;
  border-radius:var(--ua-radius-sm); background:var(--ua-tint); border:1px solid var(--ua-border);
}
.user-app-shell .ua-integ-sum-list dt{ font-size:13px; color:var(--ua-text-2) }
.user-app-shell .ua-integ-sum-list dd{ margin:0; font-size:13px; font-weight:600; color:var(--ua-text) }
.user-app-shell .ua-integ-sum-foot{ display:flex; justify-content:flex-end; margin-top:16px }

/* ---------- 8. body-level portals: modal + toast (user app instances only) ----------
   The Change Plan / Paddle checkout dialog (.plan-modal-dialog) is excluded everywhere. */
html[data-ua-theme] body > .scrim:not(:has(.plan-modal-dialog)){ background:var(--ua-scrim) }
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog){
  background:var(--ua-surface); border-color:var(--ua-border-2); color:var(--ua-text);
  border-radius:var(--ua-radius-lg); box-shadow:var(--ua-shadow-pop);
}
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) > .close{ color:var(--ua-text-muted) }
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) > .close:hover{ color:var(--ua-text) }
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) > .close:focus-visible{ outline-color:var(--ua-focus) }
html[data-ua-theme] .toast{
  background:var(--ua-surface-2); border-color:var(--ua-accent-line); color:var(--ua-text);
  border-radius:var(--ua-radius-sm); box-shadow:var(--ua-shadow-pop);
}
html[data-ua-theme] .toast.err{ border-color:var(--ua-danger-line) }
html[data-ua-theme] .toast .ic{ color:var(--ua-cyan) }
html[data-ua-theme] .toast.err .ic{ color:var(--ua-danger) }

/* ---------- 9. legacy bridge — LIGHT THEME ONLY ----------
   Feature screens (dashboard widgets, tables, settings, editor chrome) are not migrated
   to --ua-* yet and still read the legacy NEUTRAL tokens. In light mode those would be
   white-on-white, so the neutrals are mapped here, inside the shell and the user-app
   portals only. The accent (--acc*) and --font are deliberately NOT mapped.
   Delete this block when the feature phases have migrated their own colours. */
html[data-ua-theme="light"] .user-app-shell,
html[data-ua-theme="light"] body > .scrim:not(:has(.plan-modal-dialog)),
html[data-ua-theme="light"] .toast-anchor{
  --bg:#EEF3FA; --bg-2:#E6EDF7; --surface:#FFFFFF; --elev:#FFFFFF; --elev-2:#F4F7FC;
  --line:rgba(20,45,95,.13); --line-2:rgba(20,45,95,.24);
  --text:#0A1428; --text-mid:#2F3D58; --muted:#4A5874; --muted-2:#5B6880;
  --danger:#B91C1C; --warn:#92400E; --info:#1D4ED8;
}

/* DARK: only the two legacy muted greys are lifted (they were 2.4–4.0:1 on every feature screen) */
html[data-ua-theme="dark"] .user-app-shell,
html[data-ua-theme="dark"] body > .scrim:not(:has(.plan-modal-dialog)){ --muted:#97A3BA; --muted-2:#8793AB }

/* Editor live preview island: real landing-page blocks render here, so it keeps the
   exact values it inherits on a public page — in both themes. */
.user-app-shell .phone{
  color:#F5F6F8;
  --bg:#04101F; --bg-2:#0C0E14; --surface:#11141C; --elev:#161A24; --elev-2:#1C212D;
  --line:rgba(255,255,255,0.07); --line-2:rgba(255,255,255,0.12);
  --text:#F5F6F8; --text-mid:#B7BBC6; --muted:#6B7080; --muted-2:#4A4F5C;
  --danger:oklch(0.72 0.18 25); --warn:oklch(0.82 0.14 80); --info:oklch(0.74 0.14 245);
}

/* ---------- 11. typography: Anuphan for UI + readable text (TH and EN) ----------
   Same stack the page already inherits from --font, declared explicitly so the user app
   no longer depends on the global token. The live preview keeps the public value. */
.user-app-shell{ font-family:var(--ua-font-sans) }
.user-app-shell .phone{ font-family:var(--font) }
.user-app-shell :is(h1,h2,h3,h4,h5,h6,label,button,a,th,td,summary,legend,.btn,.nav-item,.chip,.field > label):not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) :is(h1,h2,h3,h4,label,button,.btn),
html[data-ua-theme] .toast{ font-family:var(--ua-font-sans) }
/* numeric read-outs and counters are UI copy, not code */
.user-app-shell :is(.hbc-axis, .hbc-axis span, .hbc-tip, .sl-quota-pill, .sl-quota-pill strong, .quota-num, .quota-sep,
  .slider-modern-value, .slider-modern-value small, .uc-days, .stat .val, .lp-count, .set-plan-days, .feed-tbl td):not(.phone *){
  font-family:var(--ua-font-sans); font-variant-numeric:tabular-nums;
}
/* an empty read-only slot shows instructions, not a code */
.user-app-shell .url-slug.ua-ph{ font-family:var(--ua-font-sans) }
/* mono stays for: .h-mono (ids), .url / .url-slug (URL fragments, stored codes), code, kbd, read-only inputs */

/* quota separator glyph was drawn at reduced opacity (2.6–3.6:1) */
.user-app-shell .quota-sep{ opacity:1; color:var(--ua-text-muted) }

/* ---------- 12. light theme: remaining non-accent text ---------- */
html[data-ua-theme="light"] .user-app-shell .tier-badge.tier-enterprise{ color:#5B21B6; background:rgba(109,40,217,.09); border-color:rgba(109,40,217,.3) }
html[data-ua-theme="light"] .user-app-shell .tier-badge.tier-pro{ color:#854D0E; background:rgba(202,138,4,.12); border-color:rgba(161,98,7,.34) }
html[data-ua-theme="light"] .user-app-shell .tier-badge.tier-starter{ color:#0F5F58; background:rgba(15,118,110,.1); border-color:rgba(15,118,110,.3) }
html[data-ua-theme="light"] .user-app-shell .tier-badge.tier-free{ color:#3F4B63; background:rgba(20,45,95,.06); border-color:rgba(20,45,95,.2) }
html[data-ua-theme="light"] .user-app-shell .badge-rainbow-text{ color:#5B21B6; background:none; -webkit-text-fill-color:currentColor }
html[data-ua-theme="light"] .user-app-shell .lp-dot.on{ background:var(--ua-jade) }
html[data-ua-theme="light"] .user-app-shell .upload-thumb{ background:var(--ua-surface-2) }

/* ---------- 13. semantic accent text ---------- */
/* >>> generated by h/userapp-r1-phase-a2c1-css-3.cjs — accent TEXT colour only (72 selectors from styles.css) */
.user-app-shell .icon-action-btn.confirm:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .icon-action-btn.confirm,
.user-app-shell .btn.icon-only.confirm:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .btn.icon-only.confirm,
.user-app-shell .pv-head-ic:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .pv-head-ic,
.user-app-shell .pv-empty-ic:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .pv-empty-ic,
.user-app-shell .empty .icon-blob:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .empty .icon-blob,
.user-app-shell .stat .delta:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .stat .delta,
.user-app-shell .cloak-badge[data-variant="ready"]:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .cloak-badge[data-variant="ready"],
.user-app-shell .toast .ic:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .toast .ic,
.user-app-shell .plan-row .days:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .plan-row .days,
.user-app-shell .add-block-btn:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .add-block-btn,
.user-app-shell .add-card:hover:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .add-card:hover,
.user-app-shell .access-badge.access-admin:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .access-badge.access-admin,
.user-app-shell .sl-group:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .sl-group,
.user-app-shell .sl-quota-pill:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .sl-quota-pill,
.user-app-shell .sl-quota-row:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .sl-quota-row,
.user-app-shell .sl-cn-msg.ok:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .sl-cn-msg.ok,
.user-app-shell .set-plan-days:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .set-plan-days,
.user-app-shell .pw-reqs li.ok svg:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .pw-reqs li.ok svg,
.user-app-shell .verify-mark.ok:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .verify-mark.ok,
.user-app-shell .verify-spin:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .verify-spin,
.user-app-shell .ads-filters-toggle.is-open:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .ads-filters-toggle.is-open,
.user-app-shell .ads-campaign-postback-action strong:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .ads-campaign-postback-action strong,
.user-app-shell .ads-section-icon:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .ads-section-icon,
.user-app-shell .plan-modal-card-points li svg:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .plan-modal-card-points li svg,
.user-app-shell .plan-order-row.plan-order-total span:last-child:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .plan-order-row.plan-order-total span:last-child{ color:var(--ua-accent-text) }
.user-app-shell .page-card .url .copy:hover:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .page-card .url .copy:hover,
.user-app-shell .settings-link.active:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .settings-link.active,
.user-app-shell .sl-url:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .sl-url,
.user-app-shell .sl-domain-btn.on:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .sl-domain-btn.on,
.user-app-shell .sl-stats-url:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .sl-stats-url,
.user-app-shell .link-btn:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .link-btn,
.user-app-shell .mkt-drawer-link.is-active:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .mkt-drawer-link.is-active{ color:var(--ua-link) }
.user-app-shell .chip.live:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .chip.live,
.user-app-shell .field-ok:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .field-ok,
.user-app-shell .mdv-badge.on:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .mdv-badge.on,
.user-app-shell .sec-hint:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .sec-hint,
.user-app-shell .pv-badge.on:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .pv-badge.on,
.user-app-shell .capi-badge.on:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .capi-badge.on,
.user-app-shell .feed-live:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .feed-live,
.user-app-shell .status-pill.live:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .status-pill.live,
.user-app-shell .stat-pill.on:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .stat-pill.on,
.user-app-shell .pagestat.online:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .pagestat.online,
.user-app-shell .sl-status.active:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .sl-status.active,
.user-app-shell .ads-status--active:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .ads-status--active{ color:var(--ua-status-online-text) }
.user-app-shell .pv-arrow:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .pv-arrow,
.user-app-shell .nav-item.active:not(.phone *),
.user-app-shell .nav-item.active .nav-icon:not(.phone *),
.user-app-shell .toggle.on:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .toggle.on,
.user-app-shell .seg button.on:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .seg button.on,
.user-app-shell .cp-seg button.on:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .cp-seg button.on,
.user-app-shell .acct-dot.on:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .acct-dot.on,
.user-app-shell .sl-sort-arrow:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .sl-sort-arrow,
.user-app-shell .dd-item.on:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .dd-item.on,
.user-app-shell .align-btn.on:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .align-btn.on,
.user-app-shell .border-type-btn.on:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .border-type-btn.on,
.user-app-shell .ts-btn-group button.on:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .ts-btn-group button.on,
.user-app-shell .set-tab.active:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .set-tab.active,
.user-app-shell .set-tab.active svg:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .set-tab.active svg,
.user-app-shell .ads-range button.active:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) .ads-range button.active{ color:var(--ua-tab-active-text) }
.user-app-shell [style*="color: var(--acc)"]:not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) [style*="color: var(--acc)"]{ color:var(--ua-accent-text) !important }
/* <<< generated */








/* ---------- 14. C2+F1 screens ---------- */

/* 14.1 — one context line (shell header), no in-page breadcrumb */
.user-app-shell .topbar .crumb{ display:none }
.user-app-shell .topbar{ margin-bottom:20px }
.user-app-shell .ua-context-section{ flex:none; display:inline-flex; align-items:center; color:var(--ua-text-muted) }
.user-app-shell .ua-context-section::before{ content:"/"; margin-right:8px; color:var(--ua-border-2) }

.user-app-shell .lp-section-end{ display:inline-flex; align-items:center; gap:6px }

/* 14.2 — readable URLs are UI text (Anuphan); stored verification codes stay mono */
.user-app-shell :is(.page-card .url, .url-display-row .url-slug, .input-wrap .prefix, .input-wrap .suffix):not(.phone *),
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog) :is(.input-wrap .prefix, .input-wrap .suffix){
  font-family:var(--ua-font-sans); letter-spacing:0;
}
.user-app-shell .ua-integ-sec--dv .url-slug:not(.ua-ph){ font-family:var(--mono) }
.user-app-shell .page-card .url{ font-size:14px }
/* a username is identity text, not a code */
.user-app-shell .ua-set .set-plan-id{ font-family:var(--ua-font-sans) }
.user-app-shell .ua-set .set-fields input[readonly]{ font-family:var(--ua-font-sans) !important }

/* 14.3 — Setup */
.user-app-shell .ua-setup-hero{ margin-bottom:16px }
.user-app-shell .ua-setup-hero .page-card{
  gap:18px; padding:24px 26px; border-radius:var(--ua-radius-lg);
  background:linear-gradient(135deg, var(--ua-surface-2) 0%, var(--ua-surface) 62%);
  border-color:var(--ua-border); box-shadow:var(--ua-shadow);
}
.user-app-shell .ua-setup-hero .page-card h3{ font-size:24px; letter-spacing:-.015em }
.user-app-shell .ua-setup-hero .divider{ background:var(--ua-border) }

.user-app-shell .ua-an{ padding:20px 24px; margin-bottom:16px }
.user-app-shell .ua-an-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px }
.user-app-shell .ua-an-head h3{ margin:0; font-size:15px; font-weight:650 }
.user-app-shell .ua-an-head p{ margin:2px 0 0; font-size:12px; color:var(--ua-text-muted) }
.user-app-shell .ua-an-body{ display:grid; grid-template-columns:minmax(0,1fr) minmax(200px,280px); gap:28px; align-items:stretch; min-height:76px }
.user-app-shell .ua-an-kpis{ margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 }
.user-app-shell .ua-an-kpis > div{ padding:2px 20px; border-left:1px solid var(--ua-border); min-width:0 }
.user-app-shell .ua-an-kpis > div:first-child{ padding-left:0; border-left:0 }
.user-app-shell .ua-an-kpis dt{ font-size:12px; color:var(--ua-text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.user-app-shell .ua-an-kpis dd{
  margin:6px 0 0; min-height:34px; font-size:26px; font-weight:700; line-height:1.3; letter-spacing:-.02em;
  color:var(--ua-text); font-variant-numeric:tabular-nums;
}
.user-app-shell .ua-skel{ display:block; width:64%; height:22px; margin-top:6px; border-radius:6px; background:var(--ua-tint-2) }
.user-app-shell .ua-an-today{ display:flex; flex-direction:column; justify-content:space-between; gap:8px; min-width:0 }
.user-app-shell .ua-an-today-cap{ display:flex; align-items:baseline; gap:6px; font-size:12px; color:var(--ua-text-muted); white-space:nowrap }
.user-app-shell .ua-an-today-cap strong{ font-size:14px; color:var(--ua-text); font-variant-numeric:tabular-nums }
.user-app-shell .ua-an-bars{ display:flex; align-items:flex-end; gap:4px; height:44px }
.user-app-shell .ua-an-bars > span{
  flex:1; min-width:0; border-radius:3px 3px 1px 1px; background:var(--ua-grad); opacity:.9;
}
.user-app-shell .ua-an-body.is-loading .ua-an-bars > span{ background:var(--ua-tint-2) }
.user-app-shell .ua-an-state{ display:flex; align-items:center; gap:12px; min-height:76px; font-size:13px; color:var(--ua-text-muted) }

.user-app-shell .ua-setup-grid{
  display:grid; gap:16px; align-items:stretch;
  grid-template-columns:minmax(0,7fr) minmax(0,5fr);
  grid-template-rows:auto auto 1fr;
  grid-template-areas:"seo link" "seo status" "seo integ";
}
.user-app-shell .ua-setup-grid > .settings-left-col,
.user-app-shell .ua-setup-grid > .settings-right-col{ display:contents }
.user-app-shell .ua-setup-link{ grid-area:link }
.user-app-shell .ua-setup-seo{ grid-area:seo }
.user-app-shell .ua-setup-grid > .settings-right-col > .ua-integ-sum{ grid-area:integ }
/* one calm icon treatment for every section header on Setup */
.user-app-shell .ua-setup-grid .card > div:first-child > div[style*="width: 36px"]{
  background:var(--ua-accent-soft) !important; color:var(--ua-accent-text) !important;
}
.user-app-shell .ua-setup-grid .card h4{ font-size:15px; font-weight:650 }
.user-app-shell .ua-setup-grid .url-display-row{ background:var(--ua-tint); border-color:var(--ua-border); border-radius:var(--ua-radius-sm); min-height:44px }
.user-app-shell .ua-setup-grid .url-display-row .url-slug{ font-size:15px; overflow-wrap:anywhere }
/* the left card takes the height of the right column: the description field absorbs it */
.user-app-shell .ua-setup-seo{ display:flex; flex-direction:column }
.user-app-shell .ua-setup-seo .fields{ gap:18px; flex:1 }
.user-app-shell .ua-setup-seo .fields > .field:nth-child(2){ flex:1; min-height:0 }
.user-app-shell .ua-setup-seo .fields > .field:nth-child(2) > textarea{ flex:1; min-height:96px }

/* Integrations pointer: compact read-only card that closes the right column */
.user-app-shell .ua-integ-sum{ padding:22px 24px }
.user-app-shell .ua-integ-sum-foot{ margin-top:auto; padding-top:14px }

@media (max-width:1100px){
  .user-app-shell .ua-an-body{ grid-template-columns:minmax(0,1fr); gap:18px }
}
@media (max-width:900px){
  .user-app-shell .ua-setup-grid{ grid-template-columns:minmax(0,1fr); grid-template-rows:none; grid-template-areas:"link" "status" "seo" "integ" }
  .user-app-shell .ua-setup-seo .fields > .field:nth-child(2) > textarea{ flex:none }
}
@media (max-width:640px){
  .user-app-shell .ua-an{ padding:18px 16px }
  .user-app-shell .ua-an-head{ flex-wrap:wrap }
  .user-app-shell .ua-an-kpis{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 0 }
  .user-app-shell .ua-an-kpis > div:nth-child(odd){ padding-left:0; border-left:0 }
  .user-app-shell .ua-an-kpis dd{ font-size:22px }
  .user-app-shell .ua-setup-hero .page-card{ padding:20px 16px }
  .user-app-shell .ua-setup-grid .card{ padding:20px 16px !important }
  .user-app-shell .ua-integ-sum-foot .btn{ width:100% }
}

/* 14.4 — Integrations (Owner 2026-10-16): two separate cards (Pixel Manager · Meta Domain Verification),
   same header anatomy, 16 px apart like the Setup grid */
.user-app-shell .ua-integ-stack{ display:flex; flex-direction:column; gap:16px }
.user-app-shell .ua-integ-sec{ min-width:0; animation:ua-panel-in var(--ua-d) ease both }
.user-app-shell .ua-integ-sec--dv{ animation-delay:60ms }
.user-app-shell .ua-integ-sec > .card{ margin:0 !important; padding:24px 26px !important }
.user-app-shell .ua-integ-sec .pv-head-ic,
.user-app-shell .ua-integ-sec--dv > .card > div:first-child > div[style*="width: 36px"]{
  background:var(--ua-accent-soft) !important; color:var(--ua-accent-text) !important;
}
.user-app-shell .ua-integ-sec :is(h4){ font-size:16px !important; font-weight:650 }
/* Domain Verification (Owner 2026-10-17): header row across the card like Pixel Manager (badge at the right end),
   the code field + its hint below at a readable width */
/* code field ≈ the length of a Meta code (≈ 30 chars) with room to spare; how-to beside it on PC, below on phones */
.user-app-shell .ua-integ-sec--dv .fields{ max-width:480px; min-width:0 }
.user-app-shell .ua-integ-sec--dv .mdv-howto{
  margin-top:14px; padding:12px 14px; border:1px solid var(--ua-border); border-radius:var(--ua-radius-sm);
  background:var(--ua-tint); font-size:12.5px; line-height:1.6; color:var(--ua-text-2);
}
.user-app-shell .ua-integ-sec--dv .mdv-howto h5{ margin:0 0 4px; font-size:13px; font-weight:600; color:var(--ua-text) }
.user-app-shell .ua-integ-sec--dv .mdv-howto ol{ margin:0; padding-left:20px }
.user-app-shell .ua-integ-sec--dv .mdv-howto a{ color:var(--ua-accent-text); text-decoration:underline; text-underline-offset:2px }
@media (min-width:1024px){
  .user-app-shell .ua-integ-sec--dv .mdv-body{ display:grid; grid-template-columns:minmax(0,480px) minmax(0,1fr); gap:28px; align-items:start }
  .user-app-shell .ua-integ-sec--dv .mdv-howto{ margin-top:22px }
}
.user-app-shell .ua-integ-sec--dv .mdv-hint.warn{ color:var(--ua-status-warn-text); font-size:12px; font-weight:500 }
.user-app-shell .ua-integ-sec--dv .mdv-hint.warn code{ color:inherit }
.user-app-shell .ua-integ-sec--dv .url-display-row{ background:var(--ua-tint); border-color:var(--ua-border); border-radius:var(--ua-radius-sm); min-height:44px }
.user-app-shell .ua-integ-sec--dv .mdv-hint{ max-width:64ch }
@media (max-width:640px){
  .user-app-shell .ua-integ-sec > .card{ padding:20px 16px !important }
}

/* 14.5 — dialogs of the user app: lighter blur, focus kept by the scrim + elevation */
html[data-ua-theme] body > .scrim:not(:has(.plan-modal-dialog)){
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
  animation:ua-scrim-in var(--ua-d-fast) ease both;
}
@keyframes ua-scrim-in{ from{ opacity:0 } to{ opacity:1 } }
@keyframes ua-dialog-in{ from{ opacity:0; transform:translateY(6px) scale(.985) } to{ opacity:1; transform:none } }
html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog){ animation:ua-dialog-in var(--ua-d-slow) var(--ua-ease) both }
html[data-ua-theme]{ --ua-scrim:rgba(3,6,14,.6) }
html[data-ua-theme="light"]{ --ua-scrim:rgba(15,25,48,.42) }

/* Pixel form */
html[data-ua-theme] .pixel-modal-root .pixel-modal-dialog{
  max-width:min(600px, calc(100vw - 32px)) !important; padding:0; display:flex; flex-direction:column;
}
/* PixelAccessibleModal wraps its content in one boundary element (the close button is its sibling) */
html[data-ua-theme] .pixel-modal-dialog > :not(.close) > *{ margin-left:24px; margin-right:24px }
html[data-ua-theme] .pixel-modal-dialog h3{
  margin-top:22px; margin-right:56px; margin-bottom:0; font-size:19px; font-weight:700; letter-spacing:-.01em;
}
html[data-ua-theme] .pixel-modal-dialog h3 > svg{
  box-sizing:content-box; padding:8px; border-radius:10px; flex:none;
  background:var(--ua-accent-soft); color:var(--ua-accent-text);
}
html[data-ua-theme] .pixel-modal-dialog .sub{ margin-top:8px; margin-bottom:0; font-size:13px; color:var(--ua-text-muted) }
/* Owner 2026-10-16: one field per row, top to bottom (no Name | ID side by side) */
html[data-ua-theme] .pixel-modal-dialog .fm-body{
  display:grid; grid-template-columns:minmax(0,1fr); gap:16px; margin-top:20px; margin-bottom:22px;
}
html[data-ua-theme] .pixel-modal-dialog .fm-body > *{ grid-column:1 / -1; min-width:0 }
/* GP 2026-10-17 — Conversions API box (Add: head + note · Edit: full box) */
html[data-ua-theme] .pixel-modal-dialog .capi-box{
  display:flex; flex-direction:column; gap:12px; padding:16px; border:1px solid var(--ua-border);
  border-radius:var(--ua-radius); background:var(--ua-surface-2); min-width:0;
}
html[data-ua-theme] .pixel-modal-dialog .capi-box-head{ display:flex; align-items:center; gap:8px; flex-wrap:wrap }
html[data-ua-theme] .pixel-modal-dialog .capi-box-head h4{ margin:0; font-size:14.5px; font-weight:700; color:var(--ua-text) }
html[data-ua-theme] .pixel-modal-dialog .capi-box-head .capi-badge{ margin-left:auto }
/* how-to: always open (Owner 2026-10-17 round 6) */
html[data-ua-theme] .pixel-modal-dialog .capi-howto{
  border:1px solid var(--ua-border); border-radius:var(--ua-radius-sm); background:var(--ua-tint);
}
html[data-ua-theme] .pixel-modal-dialog .capi-howto-h{ margin:0; padding:10px 12px 0; color:var(--ua-text); font:600 13px/1.3 var(--ua-font) }
html[data-ua-theme] .pixel-modal-dialog .capi-howto-b > div{ padding:0 12px 12px; font-size:12.5px; line-height:1.55; color:var(--ua-text-2) }
html[data-ua-theme] .pixel-modal-dialog .capi-howto-t{ margin-top:4px; font-weight:600; color:var(--ua-text) }
html[data-ua-theme] .pixel-modal-dialog .capi-howto-sep{ margin-top:10px; padding-top:8px; border-top:1px solid var(--ua-border) }
html[data-ua-theme] .pixel-modal-dialog .capi-howto ol, html[data-ua-theme] .pixel-modal-dialog .capi-howto ul{ margin:4px 0 6px; padding-left:20px }
html[data-ua-theme] .pixel-modal-dialog .capi-howto a{ color:var(--ua-accent-text); text-decoration:underline; text-underline-offset:2px }
html[data-ua-theme] .pixel-modal-dialog .capi-field{ display:flex; flex-direction:column; min-width:0 }
html[data-ua-theme] .pixel-modal-dialog .capi-warn{ margin-top:6px; font-size:12px; color:var(--ua-status-warn-text) }
html[data-ua-theme] .pixel-modal-dialog .capi-actions{ display:flex; justify-content:flex-start }
html[data-ua-theme] .pixel-modal-dialog .capi-test-btn{ display:inline-flex; align-items:center; gap:8px; min-height:42px }
html[data-ua-theme] .pixel-modal-dialog .capi-test-btn.is-busy{ cursor:progress }
html[data-ua-theme] .pixel-modal-dialog .capi-flow-msg{ padding:9px 12px; border-radius:var(--ua-radius-sm); font-size:12.5px; line-height:1.5 }
html[data-ua-theme] .pixel-modal-dialog .capi-flow-msg.ok{ color:var(--ua-status-success-text); background:color-mix(in srgb, var(--ua-status-success-text) 12%, transparent) }
html[data-ua-theme] .pixel-modal-dialog .capi-flow-msg.err{ color:var(--ua-danger); background:color-mix(in srgb, var(--ua-danger) 10%, transparent) }

html[data-ua-theme] .pixel-modal-dialog .capi-note.warn{
  padding:10px 12px; border-radius:var(--ua-radius-sm); font-size:12.5px; line-height:1.5;
  color:var(--ua-status-warn-text, #b45309); background:var(--ua-status-warn-bg, rgba(245,158,11,.12));
  border:1px solid var(--ua-status-warn-border, rgba(245,158,11,.35));
}
html[data-ua-theme] .pixel-modal-dialog > :not(.close) > :last-child:not(.actions){ margin-bottom:24px }
html[data-ua-theme] .pixel-modal-dialog .lbl{
  margin-bottom:6px; font-size:13px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--ua-text-2);
}
html[data-ua-theme] :is(.pixel-modal-dialog, .ua-share-modal, .tr-dd) .dd-trigger{
  border-color:var(--ua-border-2); background:var(--ua-tint); border-radius:var(--ua-radius-sm); min-height:44px;
}
html[data-ua-theme] :is(.pixel-modal-dialog, .ua-share-modal, .tr-dd) .dd-trigger:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
html[data-ua-theme] :is(.pixel-modal-dialog, .ua-share-modal, .tr-dd) .dd-trigger:hover{ background:var(--ua-tint-2); border-color:var(--ua-accent-line) }
html[data-ua-theme] :is(.pixel-modal-dialog, .ua-share-modal, .tr-dd) .dd-menu{
  background:var(--ua-surface-3); border-color:var(--ua-border-2); border-radius:var(--ua-radius-sm); box-shadow:var(--ua-shadow-pop);
}
html[data-ua-theme] :is(.pixel-modal-dialog, .ua-share-modal, .tr-dd) .dd-item{ min-height:38px; color:var(--ua-text-2) }
html[data-ua-theme] :is(.pixel-modal-dialog, .ua-share-modal, .tr-dd) .dd-item:hover{ background:var(--ua-tint-2); color:var(--ua-text) }
html[data-ua-theme] :is(.pixel-modal-dialog, .ua-share-modal, .tr-dd) .dd-item.on{ background:var(--ua-accent-soft); color:var(--ua-accent-text) }
html[data-ua-theme] .pixel-modal-dialog .input{ min-height:44px }
html[data-ua-theme] .pixel-modal-dialog .capi-optional{
  padding:1px 8px; border-radius:999px; font-size:11px; font-weight:600;
  color:var(--ua-text-muted); background:var(--ua-tint-2); border:1px solid var(--ua-border);
}
html[data-ua-theme] .pixel-modal-dialog .actions{
  position:sticky; bottom:0; margin:22px 0 0; padding:14px 24px; gap:10px;
  border-top:1px solid var(--ua-border); background:var(--ua-surface);
  border-radius:0 0 var(--ua-radius-lg) var(--ua-radius-lg);
}
@media (max-width:560px){
  html[data-ua-theme] .pixel-modal-dialog > :not(.close) > *{ margin-left:16px; margin-right:16px }
  html[data-ua-theme] .pixel-modal-dialog h3{ margin-top:18px; margin-right:52px }
  html[data-ua-theme] .pixel-modal-dialog .fm-body{ grid-template-columns:minmax(0,1fr); margin-top:18px }
  html[data-ua-theme] .pixel-modal-dialog .fm-body > div:nth-child(3){ grid-column:1 }
  html[data-ua-theme] .pixel-modal-dialog .actions{ margin-left:0; margin-right:0; padding:12px 16px }
  html[data-ua-theme] .pixel-modal-dialog .actions .btn{ flex:1; min-height:44px }
}

/* Owner 2026-10-31 — Edit Campaign pop-up: each topic on its own background, like the Pixel pop-up's CAPI box */
html[data-ua-theme] .pixel-modal-dialog .ads-cmp-sec{
  padding:16px; border:1px solid var(--ua-border); border-radius:var(--ua-radius); background:var(--ua-surface-2);
}
html[data-ua-theme] .pixel-modal-dialog .ads-cmp-sec .ads-wiz-field{ margin-bottom:0 }
html[data-ua-theme] .pixel-modal-dialog .ads-cmp-sec .ads-wiz-label{ font-size:13px; color:var(--ua-text-2) }
html[data-ua-theme] .pixel-modal-dialog .ads-cmp-sec.ads-cmp-fallback{ margin-top:0; border-top:1px solid var(--ua-border) }
html[data-ua-theme] .pixel-modal-dialog .ads-cmp-fallback-head{
  font-size:13px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--ua-text-2);
}
@media (max-width:560px){ html[data-ua-theme] .pixel-modal-dialog .ads-cmp-sec{ padding:14px } }

/* 14.6 — account menu */
.user-app-shell .ua-menu-item-end{ margin-left:auto; display:inline-flex }
.user-app-shell .ua-menu-head{ padding-bottom:8px }

/* 14.7 — Account settings: identity + section rail, content uses the remaining width */
.user-app-shell .ua-set-layout{ display:grid; grid-template-columns:minmax(220px,272px) minmax(0,1fr); gap:24px; align-items:start }
.user-app-shell .ua-set-rail{ position:sticky; top:84px; display:flex; flex-direction:column; gap:12px; min-width:0 }
.user-app-shell .ua-set-id{ display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:4px 12px; padding:16px; min-width:0 }
.user-app-shell .ua-set-id > .tier-badge{ grid-column:2; justify-self:start; margin-top:2px }
.user-app-shell .ua-set-id-avatar.avatar{ width:44px; height:44px; border-radius:50% !important; font-size:17px; flex:none }
.user-app-shell .ua-set-id-text{ flex:1; min-width:0 }
.user-app-shell .ua-set-id-name{ font-size:14px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.user-app-shell .ua-set-id-mail{ font-size:12px; color:var(--ua-text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.user-app-shell .ua-set .set-tabs{
  flex-direction:column; gap:2px; margin:0; padding:6px; overflow:visible;
  background:var(--ua-surface); border-color:var(--ua-border); border-radius:var(--ua-radius);
}
.user-app-shell .ua-set .set-tab{
  justify-content:flex-start; width:100%; min-height:42px; padding:9px 12px; border-radius:var(--ua-radius-sm);
  color:var(--ua-text-2); border-color:transparent; box-shadow:none;
  transition:background-color var(--ua-d-fast) ease, color var(--ua-d-fast) ease;
}
.user-app-shell .ua-set .set-tab:hover{ background:var(--ua-tint); color:var(--ua-text) }
.user-app-shell .ua-set .set-tab svg{ color:var(--ua-text-muted) }
.user-app-shell .ua-set .set-tab.active{ background:var(--ua-accent-soft); color:var(--ua-tab-active-text); border-color:transparent; box-shadow:none }
.user-app-shell .ua-set .set-tab.active svg{ color:var(--ua-tab-active-text) }
.user-app-shell .ua-set .set-tab:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
.user-app-shell .ua-set .set-panel{ max-width:none; min-width:0; animation:ua-panel-in var(--ua-d) ease both }
.user-app-shell .ua-set .set-card{ padding:26px 28px }
.user-app-shell .ua-set .set-sec-head h4{ font-size:17px }
.user-app-shell .ua-set .set-sec-head p{ color:var(--ua-text-muted) }
.user-app-shell .ua-set .set-fields{ max-width:none }
/* GP 2026-10-20 (Owner) — account: Username / E-mail side by side under the heading, then the profile picture in its own box */
.user-app-shell .ua-set .set-card:has(> .set-avatar-row){ display:flex; flex-direction:column; gap:22px }
.user-app-shell .ua-set .set-card:has(> .set-avatar-row) > .set-avatar-row{ margin-bottom:0; padding:16px 18px; border:1px solid var(--ua-border); border-radius:12px; background:var(--ua-tint) }
/* GP 2026-10-18 (Owner) — account: same label style + rhythm for Profile picture / Username / E-mail */
.user-app-shell .ua-set .set-card:has(> .set-avatar-row) > .set-sec-head{ margin-bottom:0 }
.user-app-shell .ua-set .set-avatar-row{ display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-rows:auto auto; gap:10px 16px; align-items:center }
.user-app-shell .ua-set .set-avatar-row > .set-field-label{ grid-column:1 / -1 }
.user-app-shell .ua-set .set-avatar-ctl{ display:flex; flex-direction:column; gap:8px; min-width:0 }
.user-app-shell .ua-set .set-avatar-btns{ display:flex; align-items:center; gap:8px; flex-wrap:wrap }
.user-app-shell .ua-set .set-field-label,
.user-app-shell .ua-set .set-fields > .field > label{ display:block; margin:0 0 8px; font-size:11.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--ua-text-muted) }
.user-app-shell .ua-set .set-avatar-row > .set-field-label{ margin:0 }
.user-app-shell .ua-set .set-card:has(> .set-avatar-row) > .set-fields{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start }
.user-app-shell .ua-set .set-card:has(> .set-avatar-row) > .set-fields > .field{ margin:0; padding:0 }
.user-app-shell .ua-set .set-ic-btn{ width:38px; height:38px; min-width:38px; padding:0; display:inline-grid; place-items:center }
.user-app-shell .ua-set .input.set-readonly{ background:var(--ua-tint-2); border-color:transparent; color:var(--ua-text-2); box-shadow:none; cursor:default; opacity:1 }
.user-app-shell .ua-set .input.set-readonly:focus{ outline:none; box-shadow:none; border-color:transparent }
/* GP 2026-10-18 (Owner) — package: bigger days number, cancel link, quota bars in the GP theme, inline plan list */
.user-app-shell .ua-set .set-plan-days{ font-size:46px; font-weight:800; line-height:1; letter-spacing:-.03em }
.user-app-shell .ua-set .set-plan-days-unit{ font-size:15px; margin-left:4px }
.user-app-shell .ua-set .set-plan-cancel-btn{ color:var(--ua-text-muted) }
.user-app-shell .ua-set .set-plan-cancel-btn:hover{ color:var(--ua-danger); border-color:var(--ua-danger-line); background:var(--ua-danger-soft) }
.user-app-shell .ua-set .set-plan-cancelled{ font-size:12.5px; color:var(--ua-status-warn-text) }
.user-app-shell .ua-set .set-plan-keep{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; text-align:right }
.user-app-shell .ua-set .set-cancel-body,
html[data-ua-theme] .set-cancel-body{ margin:0; font-size:13.5px; line-height:1.7; color:var(--ua-text-2) }
.user-app-shell .ua-set .quota-track{ height:8px; background:var(--ua-tint-2); box-shadow:none }
.user-app-shell .ua-set .quota-fill:not(.rainbow){ background:var(--ua-grad); box-shadow:none }
.user-app-shell .ua-set .quota-fill.near:not(.rainbow){ background:linear-gradient(90deg,#F59E0B,#FBBF24) }
.user-app-shell .ua-set .quota-fill.full:not(.rainbow){ background:var(--ua-danger) }
.user-app-shell .ua-set .quota-fill.is-skel{ width:100%; background:none }
.user-app-shell .ua-set .quota-row.is-loading .quota-num{ color:var(--ua-text-muted) }
@media (prefers-reduced-motion:no-preference){
  .user-app-shell .ua-set .quota-fill:not(.is-skel){ animation:set-quota-grow 700ms cubic-bezier(.2,.8,.2,1) both }
}
@keyframes set-quota-grow{ from{ width:0 } }
.user-app-shell .ua-set .set-stack > .set-plans{ grid-column:1 / -1 }
.user-app-shell .ua-set .set-plans > h3{ margin:0; font-size:17px }
.user-app-shell .ua-set .set-plans > .sub{ margin:4px 0 0; color:var(--ua-text-muted) }
.user-app-shell .ua-set .set-plans-wait{ margin:0; color:var(--ua-text-muted); font-size:13px }
.user-app-shell .ua-set .set-plans .plan-modal-card{ border-color:var(--ua-border); background:var(--ua-tint); border-radius:14px; padding:20px 18px 18px }
.user-app-shell .ua-set .set-plans .plan-modal-card.current{ border-color:var(--ua-accent-line); background:linear-gradient(160deg,var(--ua-accent-soft) 0%,var(--ua-tint) 70%); box-shadow:0 0 0 1px var(--ua-accent-line) }
.user-app-shell .ua-set .set-plans .plan-modal-card-badge{ background:var(--ua-grad); color:#fff }
.user-app-shell .ua-set .set-plans .plan-modal-card-name{ color:var(--ua-text-muted) }
.user-app-shell .ua-set .set-plans .plan-modal-card-price strong{ font-size:30px; color:var(--ua-text); display:inline-block }
.user-app-shell .ua-set .set-plans .plan-modal-card-price span{ color:var(--ua-text-muted); display:inline-block }
.user-app-shell .ua-set .set-plans .plan-modal-card-points li{ color:var(--ua-text-2) }
.user-app-shell .ua-set .set-plans .plan-modal-card-points li svg{ color:var(--ua-accent-text) }
/* GP 2026-10-21 (Owner) — Plan V2 grid: 4 in one row on a wide panel (PC), 2 per row below that,
   1 on a narrow phone. Measured on the panel itself, so the Settings card and the pop-up agree. */
.plan-v2-wrap{ container-type:inline-size }
.plan-v2-wrap > .plan-modal-grid{ grid-template-columns:1fr }
@container (min-width:440px){ .plan-v2-wrap > .plan-modal-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)) } }
@container (min-width:840px){ .plan-v2-wrap > .plan-modal-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)) } }
/* Homepage pricing motion: a sliding pill under the segmented controls, cards stagger in on a family switch,
   the price swaps in on a cycle switch */
.user-app-shell .ua-set .set-seg{ position:relative; isolation:isolate; display:inline-grid; grid-template-columns:1fr 1fr }
.user-app-shell .ua-set .set-seg::before{ content:''; position:absolute; z-index:-1; top:4px; bottom:4px; left:4px; width:calc(50% - 4px);
  border-radius:8px; background:var(--ua-grad); transition:transform 380ms cubic-bezier(.3,1.25,.5,1) }
.user-app-shell .ua-set .set-seg[data-on="1"]::before{ transform:translateX(100%) }
.user-app-shell .ua-set .set-seg .seg-btn,
.user-app-shell .ua-set .set-seg .seg-btn.active{ background:none; box-shadow:none; transition:color 260ms ease }
.user-app-shell .ua-set .set-seg .seg-btn.active{ color:#fff }
@media (prefers-reduced-motion:no-preference){
  .user-app-shell .ua-set .set-plans .plan-modal-card{ animation:set-plan-in 440ms cubic-bezier(.2,.8,.2,1) backwards; animation-delay:calc(var(--i, 0) * 55ms) }
  .user-app-shell .ua-set .set-plans .plan-modal-card-price strong,
  .user-app-shell .ua-set .set-plans .plan-modal-card-price span{ animation:set-price-in 340ms cubic-bezier(.2,.8,.2,1) backwards }
}
@media (prefers-reduced-motion:reduce){ .user-app-shell .ua-set .set-seg::before{ transition:none } }
@keyframes set-plan-in{ from{ opacity:0; transform:translateY(12px) scale(.985) } to{ opacity:1; transform:none } }
@keyframes set-price-in{ from{ opacity:0; transform:translateY(.45em) } to{ opacity:1; transform:none } }
/* GP 2026-10-18 (Owner) — security: password fields left (in fill order) + rules right; 2FA card below */
.user-app-shell .ua-set .set-sec-stack{ display:flex; flex-direction:column; gap:16px }
.user-app-shell .ua-set .set-pw-card > .set-sec-head{ margin-bottom:20px }
.user-app-shell .ua-set .set-pw-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,260px); gap:24px; align-items:start }
.user-app-shell .ua-set .set-pw-fields{ display:flex; flex-direction:column; gap:18px; min-width:0 }
.user-app-shell .ua-set .set-pw-fields > .field{ margin:0; padding:0 }
.user-app-shell .ua-set .set-pw-fields > .field:first-child{ padding-bottom:18px; border-bottom:1px dashed var(--ua-border) }
.user-app-shell .ua-set .set-pw-fields > .field > label{ display:block; margin:0 0 8px; font-size:12.5px; font-weight:600; color:var(--ua-text-2) }
.user-app-shell .ua-set .set-pw-fields .set-actions{ margin:4px 0 0; padding:0; border:0; justify-content:flex-start }
.user-app-shell .ua-set .set-pw-reqs{ padding:16px 18px; border:1px solid var(--ua-border); border-radius:12px; background:var(--ua-tint) }
.user-app-shell .ua-set .set-pw-reqs-t{ margin-bottom:10px; font-size:12.5px; font-weight:600; color:var(--ua-text-2) }
.user-app-shell .ua-set .set-pw-reqs .pw-reqs{ margin:0; display:flex; flex-direction:column; gap:9px }
.user-app-shell .ua-set .set-pw-reqs .pw-reqs li{ color:var(--ua-text-muted); transition:color 200ms ease }
.user-app-shell .ua-set .set-pw-reqs .pw-dot{ display:inline-block; width:13px; height:13px; flex:none; position:relative }
.user-app-shell .ua-set .set-pw-reqs .pw-dot::after{ content:''; position:absolute; inset:4px; border-radius:50%; background:currentColor; opacity:.6 }
.user-app-shell .ua-set .set-pw-reqs .pw-reqs li.ok{ color:var(--ua-status-ok-text, #34D399) }
@media (max-width:900px){ .user-app-shell .ua-set .set-pw-grid{ grid-template-columns:minmax(0,1fr) } }
.user-app-shell .ua-set .tfa-head{ display:flex; gap:14px; align-items:flex-start; flex-wrap:wrap }
.user-app-shell .ua-set .tfa-head > .set-sec-head{ flex:1 1 180px; min-width:0 }
.user-app-shell .ua-set .tfa-on-btn{ flex:none; margin-left:auto }
.user-app-shell .ua-set .tfa-ic{ display:grid; place-items:center; flex:none; width:40px; height:40px; border-radius:12px; background:var(--ua-tint-2); color:var(--ua-text-muted) }
.user-app-shell .ua-set .tfa-ic.is-on{ background:var(--ua-accent-soft); color:var(--ua-accent-text) }
.user-app-shell .ua-set .tfa-head h4{ display:flex; align-items:center; gap:8px; flex-wrap:wrap }
.user-app-shell .ua-set .tfa-badge{ font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; background:var(--ua-tint-2); color:var(--ua-text-muted) }
.user-app-shell .ua-set .tfa-badge.is-on{ background:rgba(52,211,153,.14); color:#34D399 }
.user-app-shell .ua-set .tfa-row{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-top:18px; padding-top:18px; border-top:1px solid var(--ua-border) }
.user-app-shell .ua-set .tfa-meta{ display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:var(--ua-text-2) }
.user-app-shell .ua-set .tfa-meta .is-low{ color:var(--ua-status-warn-text) }
.user-app-shell .ua-set .tfa-actions{ display:flex; gap:8px; flex-wrap:wrap }
/* Owner 10-20 — same look as the Page Editor block delete (.block-head .a-btn.del) */
.user-app-shell .ua-set .tfa-off-btn{
  width:30px; height:30px; min-width:30px; padding:0; justify-content:center; border-radius:var(--ua-radius-sm);
  background:var(--ua-danger-soft); border:1px solid var(--ua-danger-line); color:var(--ua-danger);
  transition:background-color var(--ua-d-fast) ease, border-color var(--ua-d-fast) ease, color var(--ua-d-fast) ease;
}
.user-app-shell .ua-set .tfa-off-btn:hover{ background:color-mix(in srgb, var(--ua-danger) 20%, transparent); border-color:var(--ua-danger); color:var(--ua-danger) }
.user-app-shell .ua-set .tfa-skel{ display:block; width:60%; height:14px; border-radius:7px; background:var(--ua-tint-2) }
/* 2FA pop-ups (rendered in the body, so scoped by the theme root) */
html[data-ua-theme] .tfa-steps{ display:flex; gap:6px; margin:0 0 18px; padding:0; list-style:none; counter-reset:none }
html[data-ua-theme] .tfa-steps li{ flex:1; display:flex; align-items:center; gap:6px; min-width:0; padding-bottom:8px; border-bottom:2px solid var(--ua-border); font-size:11.5px; color:var(--ua-text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:border-color 260ms ease, color 260ms ease }
html[data-ua-theme] .tfa-steps li.is-on{ border-color:var(--ua-accent-line); color:var(--ua-text) }
html[data-ua-theme] .tfa-steps li.is-done{ border-color:#34D399; color:var(--ua-text-2) }
html[data-ua-theme] .tfa-step-n{ display:grid; place-items:center; flex:none; width:18px; height:18px; border-radius:50%; background:var(--ua-tint-2); font-size:10.5px; font-weight:700 }
html[data-ua-theme] .tfa-steps li.is-on .tfa-step-n{ background:var(--ua-grad); color:#fff }
html[data-ua-theme] .tfa-steps li.is-done .tfa-step-n{ background:#34D399; color:#06281c }
html[data-ua-theme] .tfa-pane h5{ margin:0 0 6px; font-size:15px; color:var(--ua-text) }
html[data-ua-theme] .tfa-pane > p{ margin:0 0 14px; font-size:13px; line-height:1.65; color:var(--ua-text-2) }
@media (prefers-reduced-motion:no-preference){
  html[data-ua-theme] .tfa-pane.is-fwd{ animation:tfa-in-fwd 280ms cubic-bezier(.2,.8,.2,1) both }
  html[data-ua-theme] .tfa-pane.is-back{ animation:tfa-in-back 280ms cubic-bezier(.2,.8,.2,1) both }
}
@keyframes tfa-in-fwd{ from{ opacity:0; transform:translateX(18px) } to{ opacity:1; transform:none } }
@keyframes tfa-in-back{ from{ opacity:0; transform:translateX(-18px) } to{ opacity:1; transform:none } }
html[data-ua-theme] .tfa-scan{ display:grid; grid-template-columns:168px minmax(0,1fr); gap:18px; align-items:center }
html[data-ua-theme] .tfa-qr{ width:168px; height:168px; padding:8px; border-radius:12px; background:#fff }
html[data-ua-theme] .tfa-qr svg{ display:block; width:100%; height:100% }
html[data-ua-theme] .tfa-secret{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-width:0 }
html[data-ua-theme] .tfa-secret label{ font-size:12px; font-weight:600; color:var(--ua-text-muted) }
html[data-ua-theme] .tfa-secret code{ display:block; max-width:100%; padding:10px 12px; border-radius:10px; background:var(--ua-tint-2); font-family:var(--ua-font-mono, ui-monospace, monospace); font-size:13px; letter-spacing:.04em; color:var(--ua-text); word-break:break-all }
html[data-ua-theme] .tfa-otp{ display:flex; justify-content:center }
html[data-ua-theme] .tfa-otp .adm-otp{ gap:10px !important }
html[data-ua-theme] .tfa-otp .adm-otp-box{ width:46px; height:54px; border-radius:12px; border:1px solid var(--ua-border-2); background:var(--ua-tint); color:var(--ua-text); font-size:22px }
html[data-ua-theme] .tfa-otp .adm-otp-box:focus{ border-color:var(--ua-accent-line); box-shadow:0 0 0 3px var(--ua-accent-soft); outline:none }
html[data-ua-theme] .tfa-codes{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; margin:0 0 12px; padding:14px 16px 14px 34px; border-radius:12px; background:var(--ua-tint-2); font-size:13px; color:var(--ua-text-muted) }
html[data-ua-theme] .tfa-codes code{ font-family:var(--ua-font-mono, ui-monospace, monospace); font-size:14px; letter-spacing:.05em; color:var(--ua-text) }
html[data-ua-theme] .tfa-code-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px }
html[data-ua-theme] .tfa-check{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ua-text); cursor:pointer }
html[data-ua-theme] .tfa-form{ display:flex; flex-direction:column; gap:16px; margin-top:14px }
html[data-ua-theme] .tfa-form .field > label{ display:block; margin:0 0 8px; font-size:12.5px; font-weight:600; color:var(--ua-text-2) }
html[data-ua-theme] .tfa-switch{ margin-top:8px; font-size:12.5px }
html[data-ua-theme] .tfa-backup-input{ font-family:var(--ua-font-mono, ui-monospace, monospace); letter-spacing:.05em }
@media (max-width:560px){
  html[data-ua-theme] .tfa-scan{ grid-template-columns:minmax(0,1fr); justify-items:center }
  html[data-ua-theme] .tfa-steps li > span:last-child{ display:none }
  html[data-ua-theme] .tfa-otp .adm-otp-box{ width:40px; height:48px }
}
/* security: current password on its own row, new + confirm side by side */
.user-app-shell .ua-set .set-fields:has(.input-eye){ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; max-width:720px }
.user-app-shell .ua-set .set-fields:has(.input-eye) > *{ grid-column:1 / -1 }
.user-app-shell .ua-set .set-fields:has(.input-eye) > .field:nth-child(2){ grid-column:1 }
.user-app-shell .ua-set .set-fields:has(.input-eye) > .field:nth-child(3){ grid-column:2 }
.user-app-shell .ua-set .set-fields:has(.input-eye) > .field:first-child{ max-width:calc(50% - 10px) }
/* package: current plan + remaining days, then usage */
.user-app-shell .ua-set .set-stack{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:16px; align-items:stretch }
.user-app-shell .ua-set .set-plan{ flex-direction:column; align-items:stretch; justify-content:space-between; gap:22px; padding:26px 28px }
.user-app-shell .ua-set .set-plan-r{ text-align:left; display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap }
.user-app-shell .ua-set .set-plan-days-label{ flex-basis:100%; font-size:12px; color:var(--ua-text-muted) }
.user-app-shell .ua-set .set-plan-days{ font-family:var(--ua-font-sans); font-variant-numeric:tabular-nums }
.user-app-shell .ua-set .set-plan-days.warn{ color:var(--ua-status-warn-text) }
.user-app-shell .ua-set .set-plan-sub{ color:var(--ua-text-muted); max-width:none }
.user-app-shell .ua-set .quota-grid{ gap:12px }
/* each quota in its own frame, same frame as the avatar row on the Account tab (Owner 2026-11-04).
   The number sits after the bar so the label gets the full width ("แก้ไข Short Link (ต่อเดือน)" is 169px). */
.user-app-shell .ua-set .quota-row{ display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:12px; row-gap:10px; align-items:center; padding:14px 16px; border:1px solid var(--ua-border); border-radius:12px; background:var(--ua-tint) }
.user-app-shell .ua-set .quota-row-top{ display:contents }
.user-app-shell .ua-set .quota-label{ grid-column:1 / -1 }
.user-app-shell .ua-set .quota-track{ grid-column:1; grid-row:2 }
.user-app-shell .ua-set .quota-num{ grid-column:2; grid-row:2 }
/* two columns once the usage card has room (2 framed rows need 418px), so it stays as short as the plan card next to it
   (Owner 2026-11-04). Side by side the card reaches 420px only from a 1461px window, so narrower windows stack the cards. */
.user-app-shell .ua-set .set-card:has(> .quota-grid){ container-type:inline-size }
@container (min-width:420px){
  .user-app-shell .ua-set .quota-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }
}
@media (max-width:1460px){
  .user-app-shell .ua-set .set-stack{ grid-template-columns:minmax(0,1fr) }
}
@media (max-width:1023px){
  .user-app-shell .ua-set-layout{ grid-template-columns:minmax(0,1fr); gap:16px }
  .user-app-shell .ua-set-rail{ position:static }
  .user-app-shell .ua-set .set-tabs{ flex-direction:row; overflow-x:auto }
  .user-app-shell .ua-set .set-tab{ width:auto; flex:1 0 auto; justify-content:center; min-height:44px }
}
@media (max-width:760px){
  .user-app-shell .ua-set .set-card{ padding:20px 16px }
  .user-app-shell .ua-set .set-plan{ padding:20px 16px }
  .user-app-shell .ua-set .set-card:has(> .set-avatar-row) > .set-fields{ grid-template-columns:minmax(0,1fr) }
  .user-app-shell .ua-set .set-fields:has(.input-eye){ grid-template-columns:minmax(0,1fr) }
  .user-app-shell .ua-set .set-fields:has(.input-eye) > .field:nth-child(3){ grid-column:1 }
  .user-app-shell .ua-set .set-fields:has(.input-eye) > .field:first-child{ max-width:none }
}

@media (prefers-reduced-motion:reduce){
  .user-app-shell .ua-set .set-tab{ transition:none }
  .user-app-shell .ua-integ-sec,
  .user-app-shell .ua-set .set-panel,
  html[data-ua-theme] body > .scrim:not(:has(.plan-modal-dialog)),
  html[data-ua-theme] body > .scrim .modal:not(.plan-modal-dialog){ animation:none }
}
/* <<< 14 */

/* ---------- 10. reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .user-app-shell .nav-item,
  .user-app-shell .settings-link,
  .user-app-shell .nav-item::before,
  .user-app-shell .settings-link::before,
  .user-app-shell .nav-item .nav-chev,
  .user-app-shell .nav-sub,
  .user-app-shell .nav-icon,
  .user-app-shell .ua-icon-btn,
  .user-app-shell .ua-icon-btn svg,
  .user-app-shell .ua-user-chip,
  .user-app-shell .ua-user-chev,
  .user-app-shell .ua-menu-item,
  .user-app-shell .ua-lang button,
  .user-app-shell .btn,
  .user-app-shell .input,
  .user-app-shell .textarea,
  .user-app-shell .user-nav-trigger,
  .user-app-shell .sidebar.user-nav-drawer,
  .user-app-shell .user-nav-backdrop,
  html[data-ua-theme] body > .scrim .modal .btn,
  html[data-ua-theme] body > .scrim .modal .input,
  html[data-ua-theme] body > .scrim .modal .textarea{ transition:none }
  .user-app-shell .main > [data-screen-label],
  .user-app-shell .ua-menu{ animation:none }
}

/* ---------- 15. GLASS-R1 — subtle glass surfaces + ambient background ----------
   Visual only. Same scoping contract as the rest of this file (html[data-ua-theme] /
   .user-app-shell); the live phone preview (.phone) and the Change Plan / Paddle dialog
   (.plan-modal-dialog) are never matched.

   How the glass is built:
   · The fill lives on ::after (z-index:-1) of each surface, NOT on the surface itself.
     backdrop-filter on the surface would turn every card into a stacking context and a
     containing block for fixed descendants, so a dropdown opened in one card could be
     painted under the next card. The surface only gains position:relative.
   · Solid fill first; translucent fill + blur only inside @supports, and never on small
     screens, with reduced transparency, more contrast or forced colours.
   · A surface nested inside another surface gets a flat tint (no second blur). */

/* 15.1 tokens */
html[data-ua-theme]{
  --ua-glass-solid:#101A32;
  --ua-glass:rgba(17,27,52,.76);
  --ua-glass-strong:rgba(22,33,62,.86);
  --ua-glass-inner:rgba(148,172,220,.07);
  --ua-glass-border:rgba(165,190,240,.17);
  --ua-glass-border-strong:rgba(165,190,240,.3);
  --ua-glass-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 20px 44px -32px rgba(0,0,0,.9);
  --ua-glass-blur:14px;
  --ua-row-hover:rgba(148,172,220,.07);
  --ua-amb:linear-gradient(160deg,#08111F 0%,#060B18 46%,#07132A 100%);
  --ua-bloom-a:rgba(59,130,246,.3); --ua-bloom-b:rgba(34,211,238,.2);
  --ua-grid-line:rgba(148,172,220,.04);
}
html[data-ua-theme="light"]{
  --ua-glass-solid:#FFFFFF;
  --ua-glass:rgba(255,255,255,.72);
  --ua-glass-strong:rgba(255,255,255,.86);
  --ua-glass-inner:rgba(20,45,95,.04);
  --ua-glass-border:rgba(20,45,95,.12);
  --ua-glass-border-strong:rgba(20,45,95,.26);
  --ua-glass-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(20,45,95,.05), 0 18px 38px -30px rgba(20,45,95,.5);
  --ua-row-hover:rgba(20,45,95,.045);
  --ua-amb:linear-gradient(160deg,#EDF3FC 0%,#E4ECF8 48%,#E6F1F7 100%);
  --ua-bloom-a:rgba(96,165,250,.4); --ua-bloom-b:rgba(45,212,191,.34);
  --ua-grid-line:rgba(20,45,95,.045);
}

/* 15.2 ambient background: one fixed base gradient + the two existing blooms, re-placed so
   they sit behind the content column instead of behind the sidebar. Static (no animation). */
html[data-ua-theme] body{ background:var(--ua-amb) fixed; background-color:var(--ua-bg) }
html[data-ua-theme] .bg-blob{ opacity:1 !important; filter:blur(96px) }
html[data-ua-theme] .bg-blob.a{ top:-26vmax; left:18vw; width:56vmax; height:56vmax }
html[data-ua-theme] .bg-blob.b{ bottom:-24vmax; right:-12vmax; width:58vmax; height:58vmax }

/* 15.3 glass surfaces */
.user-app-shell :is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs):not(.phone *){
  position:relative;
  background:none;
  border-color:var(--ua-glass-border);
  box-shadow:var(--ua-glass-shadow);
}
.user-app-shell :is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs):not(.phone *)::after{
  content:""; position:absolute; inset:0; z-index:-1;
  border-radius:inherit; pointer-events:none;
  background:var(--ua-glass-solid);
}

/* nested surface: flat tint, no second pane of glass */
.user-app-shell :is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs)
  :is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs):not(.phone *){
  box-shadow:none;
}
.user-app-shell :is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs)
  :is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs):not(.phone *)::after{
  background:var(--ua-glass-inner);
  -webkit-backdrop-filter:none; backdrop-filter:none;
}

@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  @media (min-width:768px){
    .user-app-shell :is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs):not(.phone *)::after{
      background:var(--ua-glass);
      -webkit-backdrop-filter:blur(var(--ua-glass-blur)) saturate(135%);
      backdrop-filter:blur(var(--ua-glass-blur)) saturate(135%);
    }
    .user-app-shell :is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs)
      :is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs):not(.phone *)::after{
      background:var(--ua-glass-inner);
      -webkit-backdrop-filter:none; backdrop-filter:none;
    }
  }
}

/* 15.4 controls that sit directly on the ambient background (not inside a surface):
   they get an opaque fill of their own so their label never depends on what is behind. */
.user-app-shell .main :is(.ads-range, .sl-search, .add-block-btn):not(:is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs) *){
  background-color:var(--ua-glass-solid); border-color:var(--ua-glass-border-strong);
}
.user-app-shell .main .btn:not(.primary, .ghost, .danger, .danger-solid):not(:is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs, .phone) *){
  background:var(--ua-glass-solid);
}
.user-app-shell .main .btn:not(.primary, .ghost, .danger, .danger-solid):not(:is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs, .phone) *):hover{
  background:var(--ua-surface-3);
}

.user-app-shell .main .sl-quota-pill{
  background:linear-gradient(var(--ua-status-success-soft), var(--ua-status-success-soft)), var(--ua-glass-solid);
}

/* 15.5 user preferences */
@media (prefers-reduced-transparency:reduce){
  .user-app-shell :is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs):not(.phone *)::after{
    background:var(--ua-glass-solid);
    -webkit-backdrop-filter:none; backdrop-filter:none;
  }
}
@media (prefers-contrast:more){
  .user-app-shell :is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs):not(.phone *){
    border-color:var(--ua-glass-border-strong);
  }
  .user-app-shell :is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs):not(.phone *)::after{
    background:var(--ua-glass-solid);
    -webkit-backdrop-filter:none; backdrop-filter:none;
  }
}
@media (forced-colors:active){
  .user-app-shell :is(.card, .stat, .chart-card, .page-card, .ads-kpi, .ads-panel, .sl-table-wrap, .set-tabs):not(.phone *)::after{ display:none }
  html[data-ua-theme] .bg-blob{ display:none }
}

/* ---------- 16. SETUP-R1 — Page Online switch in the Setup header + Danger Zone ----------
   Markup: UaOnlineSwitch / UaDangerZone (dashboard.jsx), wired in PageSettings (editor.jsx).
   Same scoping contract as the rest of the file. Colours come from --ua-* tokens only. */

/* 16.1 Online switch — label stays "Online" (accessible name); state = knob + On/Off text + colour */
.user-app-shell .ua-online-switch{
  display:inline-flex; align-items:center; gap:10px; flex:none;
  min-height:36px; padding:4px 6px 4px 12px; border-radius:999px; cursor:pointer;
  border:1px solid var(--ua-border-2); background:var(--ua-glass-solid); color:var(--ua-text-2);
  font:inherit; font-size:13px; font-weight:600; line-height:1; white-space:nowrap;
  transition:background-color var(--ua-d-fast) ease, border-color var(--ua-d-fast) ease, color var(--ua-d-fast) ease;
}
.user-app-shell .ua-online-switch:hover:not(:disabled){ border-color:var(--ua-accent-line); background:var(--ua-surface-3) }
.user-app-shell .ua-online-switch:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
.user-app-shell .ua-online-switch .ua-online-state{ font-size:13px; font-weight:600; color:var(--ua-text-muted); min-width:2.2em; text-align:center }
.user-app-shell .ua-online-track{
  position:relative; flex:none; width:40px; height:24px; border-radius:999px;
  background:var(--ua-text-muted);
  transition:background-color var(--ua-d) var(--ua-ease);
}
.user-app-shell .ua-online-thumb{
  position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%;
  background:var(--ua-bg); box-shadow:0 1px 3px rgba(0,0,0,.35);
  transition:transform var(--ua-d) var(--ua-ease);
}
.user-app-shell .ua-online-switch.on{ border-color:var(--ua-status-success-line); background:var(--ua-glass-solid); color:var(--ua-text) }
.user-app-shell .ua-online-switch.on .ua-online-state{ color:var(--ua-status-success-text) }
.user-app-shell .ua-online-switch.on .ua-online-track{ background:var(--ua-status-success-text) }
.user-app-shell .ua-online-switch.on .ua-online-thumb{ transform:translateX(16px); background:var(--ua-on-accent) }
.user-app-shell .ua-online-switch:disabled{ cursor:not-allowed; opacity:.62 }
.user-app-shell .ua-online-switch.locked .ua-online-state{ color:var(--ua-status-warn-text) }

/* 16.2 hero: the switch replaces the status pill; keep one row on desktop, wrap on narrow widths */
.user-app-shell .ua-setup-hero .page-card .title-row{ gap:12px }

/* 16.3 Danger Zone */
.user-app-shell .ua-danger{
  grid-area:danger; align-self:end;
  display:flex; flex-direction:column; gap:16px; padding:22px 24px;
}
.user-app-shell .card.ua-danger:not(.phone *){ border-color:var(--ua-danger-line) }
.user-app-shell .ua-danger-head{ display:flex; align-items:flex-start; gap:12px }
.user-app-shell .ua-danger-ic{
  width:36px; height:36px; flex:none; border-radius:var(--ua-radius-sm);
  display:flex; align-items:center; justify-content:center;
  background:var(--ua-danger-soft); color:var(--ua-danger);
}
.user-app-shell .ua-danger h4{ margin:0; font-size:15px; font-weight:650; color:var(--ua-text) }
.user-app-shell .ua-danger-desc{ margin-top:2px; font-size:12.5px; line-height:1.5; color:var(--ua-text-muted) }
.user-app-shell .ua-danger-foot{ display:flex; justify-content:flex-start }
.user-app-shell .ua-danger-foot .btn{ min-height:40px }

/* 16.4 layout: link, Integrations, then Danger Zone closing the right column */
.user-app-shell .ua-setup-grid{
  grid-template-rows:auto auto 1fr;
  grid-template-areas:"seo link" "seo integ" "seo danger";
}
@media (max-width:900px){
  .user-app-shell .ua-setup-grid{ grid-template-rows:none; grid-template-areas:"link" "integ" "seo" "danger" }
  .user-app-shell .ua-danger{ align-self:stretch }
}
@media (max-width:640px){
  .user-app-shell .ua-online-switch{ min-height:44px }
  .user-app-shell .ua-danger{ padding:20px 16px }
  .user-app-shell .ua-danger-foot .btn{ width:100%; min-height:44px }
}
@media (prefers-reduced-motion:reduce){
  .user-app-shell .ua-online-switch,
  .user-app-shell .ua-online-track,
  .user-app-shell .ua-online-thumb{ transition:none }
}
@media (forced-colors:active){
  .user-app-shell .ua-online-track{ background:ButtonText; forced-color-adjust:none }
  .user-app-shell .ua-online-thumb{ background:ButtonFace }
  .user-app-shell .ua-online-switch.on .ua-online-track{ background:Highlight }
  .user-app-shell .ua-online-switch.on .ua-online-thumb{ background:HighlightText }
}

/* ---------- 17. EDITOR-R1 — Page Editor: block accordion, actions, colour-picker popup ----------
   Markup: BlockRow / PageEditor (editor.jsx) · ColorPickerAdvanced (controls.jsx).
   Same scoping contract as the rest of the file; tokens only. The live phone preview (.phone) is untouched. */

/* 17.1 accordion — grid-rows 0fr→1fr gives a true height:auto slide with no measuring.
   Collapsed content is visibility:hidden (after the slide) so it leaves the tab order and the a11y tree. */
.user-app-shell .block-row{ padding:16px 18px }
.user-app-shell .block-row.collapsed .block-body{ display:block }          /* legacy rule hid it with display:none (no animation) */
.user-app-shell .block-row.collapsed::after{ display:none }
.user-app-shell .block-collapse{
  display:grid; grid-template-rows:0fr; visibility:hidden;
  transition:grid-template-rows 260ms var(--ua-ease), visibility 0s linear 260ms;
}
.user-app-shell .block-row.open .block-collapse{
  grid-template-rows:1fr; visibility:visible;
  transition:grid-template-rows 260ms var(--ua-ease), visibility 0s;
}
.user-app-shell .block-collapse-inner{ min-height:0; overflow:hidden }
.user-app-shell .block-collapse.settled .block-collapse-inner{ overflow:visible }   /* dropdown menus inside the body must not be clipped */
.user-app-shell .block-collapse-inner > .block-body{
  margin-top:14px; opacity:0; transform:translateY(-6px);
  transition:opacity 200ms ease, transform 260ms var(--ua-ease);
}
.user-app-shell .block-row.open .block-collapse-inner > .block-body{ opacity:1; transform:none }

/* 17.2 head: the whole band is one real button (stretched), actions sit above it */
.user-app-shell .block-head{ position:relative; margin-bottom:0; gap:12px }
.user-app-shell .block-toggle{
  position:absolute; inset:-8px -8px; z-index:0; width:auto; height:auto;
  border:0; border-radius:var(--ua-radius); background:transparent; cursor:pointer; padding:0;
  transition:background-color var(--ua-d-fast) ease;
}
.user-app-shell .block-toggle:hover{ background:var(--ua-tint) }
.user-app-shell .block-toggle:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:0 }
.user-app-shell .block-head .ic,
.user-app-shell .block-head .info{ position:relative; z-index:1; pointer-events:none }
.user-app-shell .block-head .info .title-line{ display:flex; align-items:center; gap:8px; flex-wrap:wrap }
.user-app-shell .block-head .info h5{ color:var(--ua-text) }
.user-app-shell .block-head .info .id{ color:var(--ua-text-muted) }
.user-app-shell .block-chev{
  position:relative; z-index:1; pointer-events:none; display:inline-flex; color:var(--ua-text-muted);
  transition:transform 220ms var(--ua-ease);
}
.user-app-shell .block-row.open .block-chev{ transform:rotate(90deg) }
.user-app-shell .block-head .actions{ position:relative; z-index:1; margin-left:auto; align-items:center }
.user-app-shell .block-hidden-chip{
  display:inline-flex; align-items:center; padding:1px 9px; border-radius:999px;
  font-size:11px; font-weight:600; line-height:1.6;
  color:var(--ua-status-warn-text); border:1px solid var(--ua-border-2); background:var(--ua-tint);
}
.user-app-shell .block-row.is-hidden .block-head .ic{ opacity:.55; filter:saturate(.4) }

/* 17.3 action buttons (real <button>s): eye · duplicate · delete */
.user-app-shell .block-head .actions button.a-btn{
  width:30px; height:30px; padding:0; border:1px solid var(--ua-border); border-radius:var(--ua-radius-sm);
  background:var(--ua-tint); color:var(--ua-text-2); font:inherit; cursor:pointer;
  transition:background-color var(--ua-d-fast) ease, border-color var(--ua-d-fast) ease, color var(--ua-d-fast) ease;
}
.user-app-shell .block-head .actions button.a-btn:hover:not(:disabled){ background:var(--ua-tint-2); border-color:var(--ua-border-2); color:var(--ua-text) }
.user-app-shell .block-head .actions button.a-btn:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
.user-app-shell .block-head .actions button.a-btn:disabled{ opacity:.45; cursor:not-allowed }
.user-app-shell .block-head .actions button.a-btn.eye[aria-pressed="true"]{
  background:var(--ua-accent-soft); border-color:var(--ua-accent-line); color:var(--ua-accent-text);
}
.user-app-shell .block-head .actions button.a-btn.del{
  background:var(--ua-danger-soft); border-color:var(--ua-danger-line); color:var(--ua-danger);
}
.user-app-shell .block-head .actions button.a-btn.del:hover:not(:disabled){
  background:color-mix(in srgb, var(--ua-danger) 20%, transparent);
  border-color:var(--ua-danger); color:var(--ua-danger);
}

/* 17.4 colour-picker popup: the full-screen scrim no longer dims the page, so the colour being picked is seen
   as it really is (Live Preview and page background). It still catches the outside click. Fade in / out. */
html[data-ua-theme] .cp-modal-scrim{ background:transparent }
@keyframes ua-cp-in{ from{ opacity:0 } to{ opacity:1 } }
@keyframes ua-cp-out{ from{ opacity:1 } to{ opacity:0 } }
html[data-ua-theme] .cp-panel2{ animation:ua-cp-in 150ms ease both }
html[data-ua-theme] .cp-panel2.is-closing{ animation:ua-cp-out 150ms ease both; pointer-events:none }

/* 17.5 narrow screens: actions drop to their own row (right-aligned), bigger touch targets */
@media (max-width:560px){
  .user-app-shell .block-head .actions{ flex:0 0 100%; justify-content:flex-end; gap:8px }
  .user-app-shell .block-head .actions button.a-btn,
  .user-app-shell .block-head .actions .a-btn.move{ width:38px; height:38px }
}

@media (prefers-reduced-motion:reduce){
  .user-app-shell .block-collapse,
  .user-app-shell .block-row.open .block-collapse,
  .user-app-shell .block-collapse-inner > .block-body,
  .user-app-shell .block-chev,
  .user-app-shell .block-toggle{ transition:none }
  html[data-ua-theme] .cp-panel2,
  html[data-ua-theme] .cp-panel2.is-closing{ animation:none }
}
@media (forced-colors:active){
  .user-app-shell .block-toggle:focus-visible{ outline-color:Highlight }
  .user-app-shell .block-head .actions button.a-btn{ border-color:ButtonText }
}

/* ---------- 18. EDITOR-R2 — drag handle column, theme-aware picker + phone frame, glass rows ----------
   Markup: PageEditor / BlockRow (editor.jsx) · ColorPickerAdvanced (controls.jsx). Same scoping contract as the file.
   The phone SCREEN (the landing page's own background and blocks) is never restyled — only the frame around it. */

/* 18.1 tokens: floating-surface shadow (picker) and phone frame, per theme */
html[data-ua-theme]{
  --ua-pop-shadow:0 6px 18px -8px rgba(0,0,0,.5), 0 0 0 1px rgba(148,172,220,.1);
  --ua-phone-body:#07162C; --ua-phone-edge:rgba(148,172,220,.22); --ua-phone-notch:#1B2740;
  --ua-phone-shadow:0 14px 34px -22px rgba(0,0,0,.7);
}
html[data-ua-theme="light"]{
  --ua-pop-shadow:0 6px 18px -8px rgba(20,45,95,.3), 0 0 0 1px rgba(20,45,95,.06);
  --ua-phone-body:#F4F7FC; --ua-phone-edge:rgba(20,45,95,.26); --ua-phone-notch:#C3CCDC;
  --ua-phone-shadow:0 14px 34px -22px rgba(20,45,95,.45);
}

/* 18.2 list: [handle | block] — the pair spans the column, i.e. exactly the width of the Page Background card */
.user-app-shell .block-list{ position:relative }
.user-app-shell .block-item{
  display:grid; grid-template-columns:36px minmax(0,1fr); column-gap:8px; align-items:stretch;
  position:relative;
}
.user-app-shell .block-item > .block-row{ min-width:0; margin-bottom:14px }
.user-app-shell .block-list.is-sorting .block-item{ transition:transform 200ms var(--ua-ease) }
.user-app-shell .block-list.is-sorting .block-item.is-dragging{ transition:none; z-index:5; will-change:transform }
.user-app-shell .block-item.is-dragging > .block-row{
  border-color:var(--ua-accent-line); box-shadow:0 10px 22px -14px rgba(0,0,0,.45), 0 0 0 1px var(--ua-accent-line);
}
html.ua-dragging, html.ua-dragging *{ cursor:grabbing !important; user-select:none !important; -webkit-user-select:none !important }

.user-app-shell .block-grip{
  align-self:stretch; margin-bottom:14px; padding:27px 0 0; width:auto;
  display:flex; align-items:flex-start; justify-content:center;
  border:1px solid var(--ua-glass-border); border-radius:var(--ua-radius); background:var(--ua-glass-solid);
  color:var(--ua-text-muted); cursor:grab;
  touch-action:none; user-select:none; -webkit-user-select:none;
  transition:background-color var(--ua-d-fast) ease, border-color var(--ua-d-fast) ease, color var(--ua-d-fast) ease;
}
.user-app-shell .block-grip:hover{ background:var(--ua-surface-3); color:var(--ua-text); border-color:var(--ua-border-2) }
.user-app-shell .block-grip:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px; color:var(--ua-text) }
.user-app-shell .block-item.is-dragging .block-grip{
  cursor:grabbing; color:var(--ua-accent-text); border-color:var(--ua-accent-line); background:var(--ua-accent-soft);
}

/* 18.3 block rows follow the glass system (flat fill + glass edge — no extra blur layers) */
.user-app-shell .block-row{
  background:var(--ua-glass-solid); border-color:var(--ua-glass-border); box-shadow:var(--ua-glass-shadow);
}
.user-app-shell .block-row.selected{ border-color:var(--ua-accent-line); box-shadow:0 0 0 3px var(--ua-accent-soft) }

/* 18.4 colour picker popup: clean, small shadow; Light/Dark follow the app theme (the popup is a body-level portal,
   so it gets its own copy of the neutral tokens its inner controls read) */
html[data-ua-theme] .cp-panel2{ box-shadow:var(--ua-pop-shadow); border-color:var(--ua-border-2); border-radius:var(--ua-radius) }
html[data-ua-theme="dark"] .cp-panel2{
  background:var(--ua-surface-2); color:var(--ua-text);
  --elev:var(--ua-surface-2); --bg-2:var(--ua-bg-2);
  --line:var(--ua-border); --line-2:var(--ua-border-2);
  --text:var(--ua-text); --text-mid:var(--ua-text-2); --muted:var(--ua-text-muted);
}
html[data-ua-theme="light"] .cp-panel2{
  background:#FFFFFF; color:#0A1428;
  --bg:#EEF3FA; --bg-2:#F1F5FB; --surface:#FFFFFF; --elev:#FFFFFF; --elev-2:#F4F7FC;
  --line:rgba(20,45,95,.13); --line-2:rgba(20,45,95,.26);
  --text:#0A1428; --text-mid:#2F3D58; --muted:#4A5874; --muted-2:#5B6880;
}
html[data-ua-theme="light"] .cp-panel2 .cp-input-box,
html[data-ua-theme="light"] .cp-panel2 .cp-num{ background:rgba(20,45,95,.045) }
html[data-ua-theme="light"] .cp-panel2 .cp-seg{ background:rgba(20,45,95,.07) }
html[data-ua-theme="light"] .cp-panel2 .cp-preset-sw{ border-color:rgba(20,45,95,.2); box-shadow:0 1px 2px rgba(20,45,95,.2) }
html[data-ua-theme="light"] .cp-panel2 .cp-ctrl-row > div:nth-child(2){ background:rgba(20,45,95,.16) !important }   /* slider track is an inline white-alpha */
html[data-ua-theme="light"] .cp-panel2 .cp-tabs2 button.on{ color:#0A1428 }

/* 18.5 Live Mobile Preview frame: follows the theme; the screen inside keeps the page's own colours */
html[data-ua-theme] .phone-head{ color:var(--ua-text-2) }
.user-app-shell .phone{
  background:var(--ua-phone-body);
  box-shadow:var(--ua-phone-shadow), 0 0 0 1px var(--ua-phone-edge);
}
.user-app-shell .phone::before{ background:var(--ua-phone-notch) }

/* 18.6 narrow screens + motion preferences */
@media (max-width:560px){
  .user-app-shell .block-item{ grid-template-columns:30px minmax(0,1fr); column-gap:6px }
}
@media (prefers-reduced-motion:reduce){
  .user-app-shell .block-list.is-sorting .block-item{ transition:none }
  .user-app-shell .block-grip{ transition:none }
}
@media (forced-colors:active){
  .user-app-shell .block-grip{ border-color:ButtonText }
  .user-app-shell .block-item.is-dragging .block-grip{ border-color:Highlight }
}

/* ---------- 19. EDITOR-R3 — one-row block head (no move arrows) + responsive unsaved-changes bar ----------
   Markup: BlockRow / PageEditor (editor.jsx). The bar keeps its inline desktop layout (so the same JSX still works
   in the legacy shell); this section restyles it for the user app and re-lays it out below the compact breakpoint,
   which is why those declarations carry !important. */

/* 19.1 block head: [icon][title · id][chevron][eye][duplicate][delete] on ONE row at every width */
.user-app-shell .block-head{ flex-wrap:nowrap; row-gap:0 }
.user-app-shell .block-head .info{ flex:1 1 auto; min-width:0 }
.user-app-shell .block-head .info .title-line{ flex-wrap:nowrap; min-width:0 }
.user-app-shell .block-head .info h5,
.user-app-shell .block-head .info .id{ min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.user-app-shell .block-hidden-chip{ flex:none }
.user-app-shell .block-head .actions{ flex:0 0 auto; width:auto; gap:6px; justify-content:flex-end }

@media (max-width:560px){
  .user-app-shell .block-head{ flex-wrap:nowrap; row-gap:0; gap:10px }
  .user-app-shell .block-head .ic{ width:36px; height:36px; border-radius:10px }
  .user-app-shell .block-head .info{ flex:1 1 auto }
  .user-app-shell .block-head .actions{ flex:0 0 auto; gap:4px }
  .user-app-shell .block-row{ padding:12px 12px }
}
@media (max-width:400px){
  .user-app-shell .block-chev{ display:none }            /* the head itself stays the toggle (aria-expanded) */
  .user-app-shell .block-head{ gap:8px }
  .user-app-shell .block-head .info .id{ display:none }
}

/* 19.2 unsaved-changes bar */
html[data-ua-theme] .ua-savebar{
  background:var(--ua-glass-solid) !important; border-color:var(--ua-glass-border-strong) !important;
  border-radius:var(--ua-radius) !important; box-shadow:0 10px 26px -16px rgba(0,0,0,.55) !important;
  color:var(--ua-text);
}
html[data-ua-theme] .ua-savebar-msg{ color:var(--ua-text-2) !important; line-height:1.4 }
html[data-ua-theme] .ua-savebar-dot{ background:var(--ua-status-warn-text) !important }

@media (max-width:1023px){
  /* compact shell (drawer navigation): the bar spans the viewport inside the safe area instead of being
     offset by a sidebar that is not there; text and buttons wrap instead of overflowing */
  html[data-ua-theme] .ua-savebar{
    left:max(12px, env(safe-area-inset-left, 0px)) !important;
    right:max(12px, env(safe-area-inset-right, 0px)) !important;
    bottom:max(12px, env(safe-area-inset-bottom, 0px)) !important;
    max-width:none !important; flex-wrap:wrap; justify-content:space-between;
    gap:10px 12px !important; padding:12px 14px !important;
  }
  html[data-ua-theme] .ua-savebar-msg{ flex:1 1 160px; min-width:0 }
  html[data-ua-theme] .ua-savebar-actions{ flex:0 0 auto; margin-left:auto }
  html[data-ua-theme] .ua-savebar-actions .btn{ min-height:40px }
  .user-app-shell .ua-savebar-spacer{ height:104px !important }
}
@media (max-width:440px){
  html[data-ua-theme] .ua-savebar-actions{ flex:1 1 100%; margin-left:0 }
  html[data-ua-theme] .ua-savebar-actions .btn{ flex:1 1 0; justify-content:center; min-height:44px }
  .user-app-shell .ua-savebar-spacer{ height:152px !important }
}

/* 19.3 single-column editor (≤1100px): the phone preview comes AFTER the block list, so the in-column spacer cannot
   keep the bar off the last content. Reserve the room at the end of the screen instead. */
@supports selector(:has(*)){
  @media (max-width:1100px){
    .user-app-shell [data-screen-label="Page Editor"]:has(> .ua-savebar){ padding-bottom:104px }
    .user-app-shell [data-screen-label="Page Editor"]:has(> .ua-savebar) .ua-savebar-spacer{ height:0 !important }
  }
  @media (max-width:440px){
    .user-app-shell [data-screen-label="Page Editor"]:has(> .ua-savebar){ padding-bottom:148px }
  }
}

/* 20. GLASS-INT-1b F-B (Owner decision 2026-10-14) — block row actions on phones: the hit area of
   Hide / Duplicate / Delete is a real 44×44px box (WCAG 2.5.5), with a wider gap so a thumb does not land
   on the neighbour. Icon size, colours, radius and the one-row layout of 19.1 are unchanged; the title
   gives up the extra width (it already truncates). Wider screens keep their sizes. */
@media (max-width:560px){
  .user-app-shell .block-head .actions{ gap:6px }
  .user-app-shell .block-head .actions button.a-btn{ width:44px; height:44px }
}

/* 21. ANALYTICS-V2 — Landing Page › สถิติ (analytics-v2.jsx). Everything is scoped under .user-app-shell .av2*,
   uses the --ua-* tokens of both themes, and animates transform / opacity only. */
.user-app-shell .av2{ display:flex; flex-direction:column; gap:var(--av2-gap); --av2-gap:14px;   /* one spacing for every box (Owner 2026-10-15) */
  /* chart palette (Owner 2026-10-15): A = cyan → blue, B = violet (clearly apart from A), lines teal (A) / pink (B) */
  --av2-top:#22D3EE; --av2-bot:#3B82F6; --av2-line:#34E3BE; --av2-spark:#22D3EE;
  --av2-btop:#C4B5FD; --av2-bbot:#8B5CF6; --av2-bline:#F472B6 }
html[data-ua-theme="light"] .user-app-shell .av2{ --av2-top:#38BDF8; --av2-bot:#2563EB; --av2-line:#0D9488; --av2-spark:#2563EB;
  --av2-btop:#A78BFA; --av2-bbot:#7C3AED; --av2-bline:#DB2777 }
.user-app-shell .av2 .ua-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap }

/* toolbar */
.user-app-shell .av2-bar-tools{ position:relative; z-index:30; display:flex; flex-wrap:wrap; align-items:center; gap:10px }  /* calendar above KPI / chart */
.user-app-shell .av2-tools-end{ display:flex; gap:8px; margin-left:auto }
.user-app-shell .av2-pop-wrap{ position:relative }
.user-app-shell .av2-trigger{
  display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 12px; max-width:100%;
  border:1px solid var(--ua-border-2); border-radius:var(--ua-radius-sm); background:var(--ua-tint);
  color:var(--ua-text); font:600 13px/1.2 var(--ua-font); cursor:pointer;
  transition:background-color var(--ua-d-fast) ease, border-color var(--ua-d-fast) ease;
}
.user-app-shell .av2-trigger span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.user-app-shell .av2-trigger.sm{ min-height:36px }
.user-app-shell .av2-trigger:hover:not(:disabled){ background:var(--ua-tint-2); border-color:var(--ua-accent-line) }
.user-app-shell .av2-trigger[aria-expanded="true"]{ border-color:var(--ua-accent-line); background:var(--ua-accent-soft) }
.user-app-shell .av2-trigger:disabled{ opacity:.55; cursor:progress }
.user-app-shell :is(.av2-trigger, .av2-seg-b, .av2-chip, .av2-icon, .av2-day, .av2-hit, .av2-link, .av2-info):focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }

.user-app-shell .av2-seg{ display:inline-flex; gap:2px; padding:3px; border:1px solid var(--ua-border); border-radius:12px; background:var(--ua-tint) }
.user-app-shell .av2-seg-b{
  display:inline-flex; align-items:center; gap:5px; min-height:34px; padding:0 13px; border:0; border-radius:9px;
  background:transparent; color:var(--ua-text-muted); font:600 13px/1 var(--ua-font); cursor:pointer; white-space:nowrap;
  transition:background-color var(--ua-d) var(--ua-ease), color var(--ua-d-fast) ease, box-shadow var(--ua-d) var(--ua-ease);
}
.user-app-shell .av2-seg-b:hover:not(.is-on):not(.is-locked){ color:var(--ua-text); background:var(--ua-tint-2) }
.user-app-shell .av2-seg-b.is-on{ background:var(--ua-glass-solid); color:var(--ua-text); font-weight:700; box-shadow:var(--ua-glass-shadow) }
.user-app-shell .av2-seg-b.is-locked{ opacity:.6; cursor:not-allowed }
.user-app-shell .av2-chip{
  min-height:32px; padding:0 11px; border:1px solid var(--ua-border); border-radius:999px; background:transparent;
  color:var(--ua-text-2); font:600 12px/1 var(--ua-font); cursor:pointer;
}
.user-app-shell .av2-chip:hover:not(:disabled){ border-color:var(--ua-accent-line); color:var(--ua-text) }
.user-app-shell .av2-chip[aria-pressed="true"]{ background:var(--ua-accent-soft); border-color:var(--ua-accent-line); color:var(--ua-accent-text) }
.user-app-shell .av2-chip:disabled{ opacity:.4; cursor:not-allowed }
.user-app-shell .av2-cmp-btn.is-on{ border-color:var(--ua-accent-line); background:var(--ua-accent-soft); color:var(--ua-accent-text) }
.user-app-shell .av2-export.is-locked{ opacity:.7 }
/* OD-10: Export = the whole history — "ทั้งหมด" chip on the button + a tooltip on hover / keyboard focus */
.user-app-shell .av2-export-wrap{ position:relative; display:inline-flex }
.user-app-shell .av2-export-ic{ display:inline-grid; place-items:center; width:14px; height:14px; font-style:normal; flex:none }
.user-app-shell .av2-export-ic > *{ grid-area:1 / 1 }
.user-app-shell .av2-spin{ width:13px; height:13px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; opacity:0 }
@keyframes ua-av2-spin{ to{ transform:rotate(360deg) } }
@keyframes ua-av2-show{ to{ opacity:1 } }
@keyframes ua-av2-hide{ to{ opacity:0 } }
.user-app-shell .av2-export.is-busy{ cursor:progress }
.user-app-shell .av2-export.is-busy .av2-spin{ animation:ua-av2-spin 700ms linear infinite, ua-av2-show 1ms linear 200ms forwards }
.user-app-shell .av2-export.is-busy .av2-export-ic > svg{ animation:ua-av2-hide 1ms linear 200ms forwards }
.user-app-shell .av2-export-all{
  padding:1px 7px; border-radius:999px; background:var(--ua-accent-soft); color:var(--ua-accent-text);
  font:700 10.5px/1.5 var(--ua-font); font-style:normal; white-space:nowrap;
}
.user-app-shell .av2-export-tip{
  position:absolute; z-index:20; right:0; top:calc(100% + 8px); width:260px; padding:10px 12px; border-radius:10px;
  background:var(--ua-surface-3); border:1px solid var(--ua-border-2); box-shadow:var(--ua-shadow-pop);
  color:var(--ua-text); font:500 12px/1.5 var(--ua-font); text-align:left;
  opacity:0; transform:translateY(-4px); pointer-events:none; transition:opacity var(--ua-d-fast) ease, transform var(--ua-d-fast) ease;
}
.user-app-shell .av2-export-wrap:has(.av2-export:hover:not(:disabled), .av2-export:focus-visible) .av2-export-tip{ opacity:1; transform:none }
@media (hover:none){ .user-app-shell .av2-export-tip{ display:none } }
.user-app-shell .av2-cmp-btn, .user-app-shell .av2-export{ display:inline-flex; align-items:center; gap:6px; min-height:40px }

.user-app-shell .av2-cmp-tools{ display:flex; flex-wrap:wrap; align-items:center; gap:8px }
.user-app-shell .av2-vs{ color:var(--ua-text-muted); font-size:12px }
.user-app-shell .av2-cmp-short{ display:flex; gap:6px; flex-wrap:wrap }
.user-app-shell .av2-cmp-key{
  display:inline-grid; place-items:center; width:22px; height:22px; border-radius:6px; font:800 11px/1 var(--ua-font); flex:none;
}
.user-app-shell .av2-cmp-key.a{ background:linear-gradient(180deg, var(--av2-top), var(--av2-bot)); color:#fff }
.user-app-shell .av2-cmp-key.b{ background:linear-gradient(180deg, var(--av2-btop), var(--av2-bbot)); color:#fff }

.user-app-shell .av2-source{ display:flex; align-items:center; gap:6px; margin-top:-4px; color:var(--ua-text-muted); font-size:12px }
.user-app-shell .av2-icon{
  display:inline-grid; place-items:center; width:32px; height:32px; border:1px solid transparent; border-radius:9px;
  background:transparent; color:var(--ua-text-2); cursor:pointer;
}
.user-app-shell .av2-icon:hover:not(:disabled){ background:var(--ua-tint-2); color:var(--ua-text) }
.user-app-shell .av2-icon:disabled{ opacity:.35; cursor:not-allowed }

/* KPI */
.user-app-shell .av2-kpis{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:var(--av2-gap); transition:opacity var(--ua-d) ease }
.user-app-shell .av2-kpis{ transition:opacity var(--ua-d) ease }
/* loading dims only past 0.2 s (same threshold as Export) so a quick range switch never flashes (Owner 2026-10-18) */
.user-app-shell .av2-kpis.is-busy{ opacity:.6; transition-delay:.2s }
.user-app-shell .av2-kpi{ display:flex; flex-direction:column; gap:6px; padding:16px 16px 12px; min-width:0; border-radius:var(--ua-radius) }
.user-app-shell .av2-kpi-head{ display:flex; align-items:center; gap:6px; min-height:20px }
.user-app-shell .av2-kpi-label{ color:var(--ua-text-2); font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.user-app-shell .av2-tag{ padding:2px 7px; border-radius:999px; background:var(--ua-tint-2); color:var(--ua-text-muted); font-size:10.5px; font-weight:600; white-space:nowrap }
.user-app-shell .av2-info{
  position:relative; display:inline-grid; place-items:center; width:18px; height:18px; border-radius:50%;
  border:1px solid var(--ua-border-2); color:var(--ua-text-muted); font:700 11px/1 var(--ua-font); cursor:help; flex:none;
}
.user-app-shell .av2-info-tip{
  position:absolute; z-index:20; right:-8px; top:calc(100% + 8px); width:240px; padding:10px 12px; border-radius:10px;
  background:var(--ua-surface-3); border:1px solid var(--ua-border-2); box-shadow:var(--ua-shadow-pop);
  color:var(--ua-text); font:500 12px/1.5 var(--ua-font); text-align:left;
  opacity:0; transform:translateY(-4px); pointer-events:none; transition:opacity var(--ua-d-fast) ease, transform var(--ua-d-fast) ease;
}
.user-app-shell .av2-info:is(:hover, :focus-visible) .av2-info-tip{ opacity:1; transform:none }
.user-app-shell .av2-kpi-val{ font:800 28px/1.15 var(--ua-font); color:var(--ua-text); font-variant-numeric:tabular-nums; letter-spacing:-.01em }
.user-app-shell .av2-kpi-val.sm{ font-size:19px }
.user-app-shell .av2-kpi-cmp{ display:flex; flex-direction:column; gap:4px }
.user-app-shell .av2-kpi-row{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px }
/* compare: the chosen date in the colour of its bars (A blue · B violet) instead of the letter */
.user-app-shell .av2-cmp-date{
  display:inline-flex; align-items:center; justify-content:center; min-width:96px; padding:3px 9px; border-radius:7px;
  font:700 12px/1.3 var(--ua-font); color:#fff; white-space:nowrap; font-variant-numeric:tabular-nums; flex:none;
}
.user-app-shell .av2-cmp-date.a{ background:linear-gradient(180deg, var(--av2-top), var(--av2-bot)) }
.user-app-shell .av2-cmp-date.b{ background:linear-gradient(180deg, var(--av2-btop), var(--av2-bbot)) }
/* KPI motion on every range / date change: number counts up (JS), trend rises in, mini series draws left → right */
.user-app-shell .av2-kpi-fx{ display:flex; flex-direction:column; gap:6px }
@keyframes ua-av2-rise{ from{ opacity:0; transform:translateY(6px) } to{ opacity:1; transform:none } }
.user-app-shell .av2-kpi-fx .av2-trend{ animation:ua-av2-rise 420ms var(--ua-ease) calc(var(--i, 0) * 70ms + 160ms) backwards }
.user-app-shell .av2-kpi-fx .av2-spark{ animation:ua-av2-reveal 760ms cubic-bezier(.22,1,.36,1) calc(var(--i, 0) * 70ms + 120ms) backwards }
.user-app-shell .av2-trend{ display:flex; align-items:center; gap:5px; min-height:18px; font-size:12px; font-weight:600; flex-wrap:wrap }
.user-app-shell .av2-trend--up{ color:var(--ua-status-success-text) }
.user-app-shell .av2-trend--down{ color:var(--ua-danger) }
.user-app-shell .av2-trend--flat, .user-app-shell .av2-trend--na, .user-app-shell .av2-trend--none{ color:var(--ua-text-muted) }
.user-app-shell .av2-trend--none{ font-weight:500 }
.user-app-shell .av2-trend-note{ color:var(--ua-text-muted); font-weight:500 }
.user-app-shell .av2-spark{ width:100%; height:28px; margin-top:2px }
.user-app-shell .av2-spark polyline{ fill:none; stroke:var(--av2-spark); stroke-width:1.6; vector-effect:non-scaling-stroke; opacity:.85 }
.user-app-shell .av2-kpi.is-skel{ min-height:148px }   /* = a loaded KPI card, so nothing jumps when data arrives */
.user-app-shell .av2-kpi.is-skel span{ display:block; height:12px; border-radius:6px; background:var(--ua-tint-2) }
.user-app-shell .av2-kpi.is-skel span:nth-child(2){ height:26px; width:60% }
.user-app-shell .av2-kpi.is-skel span:nth-child(3){ width:40% }

/* chart card */
.user-app-shell .av2-chart-card{ padding:18px 18px 14px }
.user-app-shell .av2-chart-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px }
.user-app-shell .av2-chart-title{ display:flex; flex-direction:column; gap:2px; min-width:0 }
.user-app-shell .av2-chart-title b{ font-size:15px; color:var(--ua-text) }
.user-app-shell .av2-chart-title span{ font-size:12.5px; color:var(--ua-text-muted) }
.user-app-shell .av2-drill{ display:flex; align-items:center; gap:12px; flex-wrap:wrap }
.user-app-shell .av2-drill .btn{ display:inline-flex; align-items:center; gap:6px }
.user-app-shell .av2-daynav{ display:flex; gap:2px }
.user-app-shell .av2-legend{ display:flex; gap:14px; font-size:12px; color:var(--ua-text-2) }
.user-app-shell .av2-legend span{ display:inline-flex; align-items:center; gap:6px }
.user-app-shell :is(.av2-legend, .av2-tip) .sw{ display:inline-block; width:10px; height:10px; border-radius:3px; flex:none }
.user-app-shell :is(.av2-legend, .av2-tip) .sw.a{ background:linear-gradient(180deg, var(--av2-top), var(--av2-bot)) }
.user-app-shell :is(.av2-legend, .av2-tip) .sw.b{ background:linear-gradient(180deg, var(--av2-btop), var(--av2-bbot)) }
.user-app-shell :is(.av2-legend, .av2-tip) .sw.lb{ height:2px; border-radius:2px; background:repeating-linear-gradient(90deg, var(--av2-bline) 0 4px, transparent 4px 7px) }
.user-app-shell :is(.av2-legend, .av2-tip) .sw.l{ height:2px; border-radius:2px; background:var(--av2-line) }

.user-app-shell .av2-chart{ position:relative; transition:opacity var(--ua-d) ease }
.user-app-shell .av2-chart.is-busy{ opacity:.55; transition-delay:.2s }
.user-app-shell .av2-plot{ position:relative; height:240px; border-bottom:1px solid var(--ua-border-2);
  background-image:linear-gradient(to top, var(--ua-border) 1px, transparent 1px); background-size:100% 25%; }
.user-app-shell .av2-chart.is-skel .av2-plot{ background:var(--ua-tint); border-radius:10px; border:0 }
.user-app-shell .av2-cols{ position:absolute; inset:0; display:grid; align-items:stretch }
.user-app-shell .av2-col{ position:relative; min-width:0 }
.user-app-shell .av2-hit{
  position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:center; gap:2px; padding:0;
  border:0; border-radius:6px 6px 0 0; background:transparent; cursor:default;
}
.user-app-shell .av2-hit.can-pick{ cursor:pointer }
.user-app-shell .av2-col.is-active .av2-hit{ background:var(--ua-tint-2) }
.user-app-shell .av2-bar{
  display:block; height:100%; width:var(--av2-bw, 64%); max-width:var(--av2-bmax, 30px); border-radius:8px 8px 3px 3px;
  transform-origin:50% 100%; transform:scaleY(var(--h, 0));
  animation:ua-av2-grow 640ms cubic-bezier(.22,1,.36,1) var(--d, 0ms) both;
  background:linear-gradient(180deg, var(--av2-top), var(--av2-bot));
}
.user-app-shell .av2-bar.b{ background:linear-gradient(180deg, var(--av2-btop), var(--av2-bbot)) }
.user-app-shell .av2-bar.is-partial{ background:repeating-linear-gradient(135deg, var(--av2-top) 0 4px, color-mix(in srgb, var(--av2-top) 40%, transparent) 4px 8px) }
.user-app-shell .av2-col.is-future .av2-bar-ghost{ position:absolute; left:20%; right:20%; bottom:0; height:22%; border:1px dashed var(--ua-border-2); border-bottom:0; border-radius:5px 5px 0 0 }
.user-app-shell .av2-lines{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible;
  animation:ua-av2-reveal 760ms cubic-bezier(.45,0,.2,1) 180ms both }
.user-app-shell .av2-lines polyline{ fill:none; stroke:var(--av2-line); stroke-width:2; vector-effect:non-scaling-stroke; stroke-linejoin:round; stroke-linecap:round }
.user-app-shell .av2-lines polyline.l-b{ stroke:var(--av2-bline); stroke-dasharray:5 4 }
.user-app-shell .av2-empty{ position:absolute; inset:0; display:grid; place-items:center; color:var(--ua-text-muted); font-size:13px }
.user-app-shell .av2-axis{ display:grid; margin-top:6px; font-size:11px; color:var(--ua-text-muted); font-variant-numeric:tabular-nums }
.user-app-shell .av2-axis span{ text-align:center; white-space:nowrap; overflow:visible; min-width:0 }
.user-app-shell .av2-axis span.is-off{ visibility:hidden }
.user-app-shell .av2-tip{
  position:absolute; z-index:10; bottom:calc(100% - 12px); transform:translate(-50%, 0); min-width:150px; padding:10px 12px;
  border-radius:10px; background:var(--ua-surface-3); border:1px solid var(--ua-border-2); box-shadow:var(--ua-shadow-pop);
  font-size:12px; color:var(--ua-text); pointer-events:none; animation:ua-av2-fade 100ms ease both;
}
.user-app-shell .av2-tip-t{ font-weight:700; margin-bottom:6px; white-space:nowrap }
.user-app-shell .av2-tip-r{ display:flex; align-items:center; gap:7px; white-space:nowrap; line-height:1.7 }
.user-app-shell .av2-tip-r b{ margin-left:auto; padding-left:12px; font-variant-numeric:tabular-nums }
.user-app-shell .av2-tip-h{ margin-top:6px; padding-top:6px; border-top:1px solid var(--ua-border); color:var(--ua-accent-text); font-weight:600 }
.user-app-shell .av2-tip-h.is-muted{ color:var(--ua-text-muted) }
@keyframes ua-av2-fade{ from{ opacity:0 } to{ opacity:1 } }
@keyframes ua-av2-grow{ from{ transform:scaleY(0) } to{ transform:scaleY(var(--h, 0)) } }
@keyframes ua-av2-reveal{ from{ clip-path:inset(-10% 100% -10% 0) } to{ clip-path:inset(-10% 0 -10% 0) } }
@keyframes ua-av2-swap{ from{ opacity:0; transform:translateY(10px) } to{ opacity:1; transform:none } }
.user-app-shell .av2-swap{ animation:ua-av2-swap 320ms var(--ua-ease) backwards }  /* backwards: no layer left after the swap */
.user-app-shell .av2-chart-card.av2-swap{ animation-delay:50ms }
.user-app-shell .av2-table-card.av2-swap{ animation-delay:100ms }
/* breakdown table card (same family as the Bot & Geo card) */
.user-app-shell .av2-table-card{ margin-top:0 }
/* Bot & Geo (shared RealtimeFeed, not edited) sets an inline margin-top:28px — the column gap spaces it here */
.user-app-shell .av2 > .chart-card{ margin-top:0 !important }
.user-app-shell .av2-sub{ font-size:12px; color:var(--ua-text-muted); margin-top:4px }
.user-app-shell .av2-table-card .av2-table-scroll{ max-height:420px; overflow:auto; margin-top:6px }
.user-app-shell .av2-tbl{ width:100%; font-variant-numeric:tabular-nums }
.user-app-shell .av2-tbl :is(th, td){ white-space:nowrap; text-align:right }
.user-app-shell .av2-tbl :is(thead th:first-child, tbody th){ text-align:left }
.user-app-shell .av2-tbl tbody th{ padding:14px 12px; font-size:13px; font-weight:400; letter-spacing:inherit; text-transform:none; color:var(--ua-text) }  /* = time cell of Bot & Geo */
.user-app-shell .av2-tbl thead th{ position:sticky; top:0; z-index:1; background:var(--ua-glass-solid) }
.user-app-shell .av2-insights{ display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:14px; padding-top:12px; border-top:1px solid var(--ua-border); font-size:12.5px; color:var(--ua-text-2) }
.user-app-shell .av2-chart.is-skel{ padding-bottom:20px }   /* = the x-axis labels of the real chart */
.user-app-shell .av2-insights.is-skel{ box-sizing:border-box; height:29px }
.user-app-shell .av2-table-skel{ display:flex; flex-direction:column; gap:8px; min-height:455px }
.user-app-shell .av2-table-skel span{ display:block; height:12px; width:30%; border-radius:6px; background:var(--ua-tint-2) }
.user-app-shell .av2-table-skel span:nth-child(2){ width:45%; height:10px }
.user-app-shell .av2-table-skel .av2-plot{ flex:1; height:auto; margin-top:6px; background:var(--ua-tint); border:0; border-radius:10px }
.user-app-shell .av2-insights b{ color:var(--ua-text-muted); font-weight:600; margin-right:4px }
.user-app-shell .av2-table-wrap{ margin-top:10px }
.user-app-shell .av2-link{ border:0; background:none; padding:4px 0; color:var(--ua-link); font:600 12.5px/1.4 var(--ua-font); cursor:pointer }
.user-app-shell .av2-table-scroll{ max-height:320px; overflow:auto; margin-top:8px; border:1px solid var(--ua-border); border-radius:10px }
.user-app-shell .av2-table{ width:100%; border-collapse:collapse; font-size:12.5px; font-variant-numeric:tabular-nums }
.user-app-shell .av2-table :is(th, td){ padding:7px 12px; border-bottom:1px solid var(--ua-border); text-align:right; white-space:nowrap }
.user-app-shell .av2-table :is(thead th, tbody th){ text-align:left; color:var(--ua-text-2) }
.user-app-shell .av2-table thead th{ position:sticky; top:0; background:var(--ua-surface-2); font-weight:600 }
.user-app-shell .av2-state{ display:flex; flex-direction:column; align-items:center; gap:12px; padding:40px 0; color:var(--ua-text-muted) }
.user-app-shell .av2-inline-err{ display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:10px; background:var(--ua-danger-soft); border:1px solid var(--ua-danger-line); color:var(--ua-danger); font-size:13px }

/* date picker — one month card (Owner reference 2026-10-14) */
.user-app-shell .av2-scrim{ display:none }
.user-app-shell .av2-pop{
  position:absolute; z-index:40; top:calc(100% + 8px); left:0; width:360px; max-width:calc(100vw - 32px); box-sizing:border-box;
  padding:18px 18px 16px; border-radius:20px; background:var(--ua-surface-2); border:1px solid var(--ua-border-2);
  box-shadow:var(--ua-shadow-pop); color:var(--ua-text); transform-origin:top left; animation:ua-av2-pop-in 160ms var(--ua-ease) both;
}
@keyframes ua-av2-pop-in{ from{ opacity:0; transform:scale(.98) } to{ opacity:1; transform:none } }
html[data-ua-theme="light"] .user-app-shell .av2-pop{ background:var(--ua-surface) }
.user-app-shell .av2-pop-month{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px }
.user-app-shell .av2-pop-month b{ font-size:15px; font-weight:700 }
.user-app-shell .av2-pop-month .av2-icon{ color:var(--ua-text-muted) }
.user-app-shell .av2-pop-month .av2-icon:hover:not(:disabled){ color:var(--ua-text) }
.user-app-shell .av2-grid{ width:100%; border-collapse:separate; border-spacing:0 4px; table-layout:fixed }
.user-app-shell .av2-grid th{ padding:0 0 6px; font-size:12.5px; font-weight:500; color:var(--ua-text-muted); text-align:center }
.user-app-shell .av2-grid td{ padding:0; text-align:center }
.user-app-shell .av2-grid td[aria-selected="true"]:not(:has(.is-start)):not(:has(.is-end)){ background:var(--ua-accent-soft) }
.user-app-shell .av2-grid td:has(.is-start:not(.is-end)){ background:linear-gradient(90deg, transparent 50%, var(--ua-accent-soft) 50%) }
.user-app-shell .av2-grid td:has(.is-end:not(.is-start)){ background:linear-gradient(90deg, var(--ua-accent-soft) 50%, transparent 50%) }
.user-app-shell .av2-day{
  display:inline-grid; place-items:center; width:38px; height:38px; border:0; border-radius:10px; background:transparent; color:var(--ua-text);
  font:600 14px/1 var(--ua-font); font-variant-numeric:tabular-nums; cursor:pointer;
}
.user-app-shell button.av2-day:hover:not(.is-off){ background:var(--ua-tint-2) }
.user-app-shell .av2-day.is-out{ color:var(--ua-text-muted); opacity:.45; font-weight:500; cursor:default }
.user-app-shell .av2-day.is-in{ background:transparent }
.user-app-shell .av2-day:is(.is-start, .is-end){ background:var(--ua-blue); color:#fff; box-shadow:none }
.user-app-shell .av2-day:focus:not(:focus-visible){ outline:none }
.user-app-shell .av2-day.is-off{ opacity:.32; cursor:not-allowed }
.user-app-shell .av2-pop-short{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px }
.user-app-shell .av2-pop-sum{ display:flex; flex-direction:column; gap:2px; margin-top:12px; font-size:13px; font-weight:600; color:var(--ua-text) }
.user-app-shell .av2-pop-sum small{ font-size:11.5px; font-weight:500; color:var(--ua-text-muted) }
.user-app-shell .av2-pop-actions{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px }
.user-app-shell .av2-pop-actions .btn{ min-height:46px; justify-content:center; border-radius:10px; font-weight:700 }
.user-app-shell .av2-pop-actions .av2-pop-clear{ border:1px solid var(--ua-border-2); background:transparent; color:var(--ua-text) }
.user-app-shell .av2-pop-actions .av2-pop-clear:hover{ background:var(--ua-tint-2) }
.user-app-shell .av2-pop-actions .btn.primary{ background:var(--ua-blue); color:#fff; border-color:transparent }
.user-app-shell .av2-pop-actions .btn.primary:disabled{ opacity:.45 }

/* tablet / phone */
@media (max-width:1023px){
  .user-app-shell .av2-kpis{ grid-template-columns:repeat(2, minmax(0, 1fr)) }
}
@media (max-width:767px){
  .user-app-shell .av2-bar-tools{ gap:8px }
  .user-app-shell .av2-seg-wrap{ order:1; flex:1 1 100%; min-width:0 }
  .user-app-shell .av2-tools-end{ order:2; margin-left:auto }
  .user-app-shell .av2-seg{ width:100%; justify-content:space-between }
  .user-app-shell .av2-pop-wrap > .av2-trigger:not(.sm){ width:100%; min-height:44px }
  .user-app-shell .av2-seg{ flex:1 1 auto; min-width:0; overflow-x:auto; scrollbar-width:none }
  .user-app-shell .av2-seg::-webkit-scrollbar{ display:none }
  .user-app-shell .av2-seg-b{ min-height:40px; padding:0 10px; flex:1 0 auto; justify-content:center }
  .user-app-shell .av2-tools-end{ margin-left:0 }
  .user-app-shell :is(.av2-cmp-btn, .av2-export){ width:44px; min-height:44px; padding:0; justify-content:center }
  .user-app-shell :is(.av2-cmp-btn, .av2-export) span{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap }
  .user-app-shell .av2-export-all{ display:none }
  .user-app-shell .av2-icon{ width:44px; height:44px }
  .user-app-shell .av2-chip{ min-height:40px }
  .user-app-shell .av2-plot{ height:200px }
  .user-app-shell .av2-kpi{ padding:14px 12px 10px }
  .user-app-shell .av2-kpi-val{ font-size:22px }
  .user-app-shell .av2-kpi-val.sm{ font-size:17px }
  .user-app-shell .av2-kpi-row{ gap:4px 7px }
  .user-app-shell .av2-cmp-date{ min-width:0; padding:2px 7px; font-size:11px }
  .user-app-shell .av2-info-tip{ right:-6px; left:auto; width:min(220px, calc(100vw - 48px)) }
  .user-app-shell .av2-scrim{ display:block; position:fixed; inset:0; z-index:70; background:var(--ua-scrim); animation:ua-av2-fade 160ms ease both }
  .user-app-shell .av2-pop{
    position:fixed; z-index:71; left:0; right:0; top:auto; bottom:0; width:auto; max-width:none; max-height:88vh; overflow:auto;
    border-radius:20px 20px 0 0; padding:16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    transform-origin:bottom center; animation:ua-av2-sheet-in 220ms var(--ua-ease) both;
  }
  .user-app-shell .av2-day{ width:44px; height:44px }
}
@media (pointer:coarse){
  .user-app-shell :is(.av2-seg-b, .av2-trigger, .av2-chip){ min-height:44px }
  .user-app-shell :is(.av2-icon, .av2-cmp-btn, .av2-export){ min-height:44px; min-width:44px }
}
@keyframes ua-av2-sheet-in{ from{ transform:translateY(24px); opacity:0 } to{ transform:none; opacity:1 } }
@media (max-width:420px){
  .user-app-shell .av2-legend{ gap:10px }
}
@media (prefers-reduced-motion:reduce){
  .user-app-shell :is(.av2-bar, .av2-seg-b, .av2-kpis, .av2-chart, .av2-info-tip, .av2-trigger){ transition:none }
  .user-app-shell :is(.av2-bar, .av2-lines, .av2-swap, .av2-kpi-fx .av2-trend, .av2-kpi-fx .av2-spark){ animation:none }
  .user-app-shell .av2-export.is-busy .av2-spin{ animation:ua-av2-show 1ms linear 200ms forwards }
  .user-app-shell :is(.av2-pop, .av2-tip, .av2-scrim){ animation:none }
}
@media (forced-colors:active){
  .user-app-shell .av2-bar{ background:Highlight }
  .user-app-shell .av2-bar.b{ background:Canvas; box-shadow:inset 0 0 0 2px Highlight }
  .user-app-shell .av2-lines polyline{ stroke:LinkText }
  .user-app-shell .av2-day:is(.is-start, .is-end){ background:Highlight; color:HighlightText }
  .user-app-shell .av2-seg-b.is-on{ outline:2px solid Highlight }
}

/* 21.1 GP 2026-10-21 (Owner) — Dashboard = the Analytics screen for all pages (.av2-overview): "+ สร้างเพิ่ม" on the range
   row, Top Pages (5 tiles, a status dot top-right), the per-page report (fixed columns, sortable), and an opening motion. */
.user-app-shell .av2-create{ display:inline-flex; align-items:center; gap:6px }
.user-app-shell .av2-dot{ display:inline-block; flex:none; width:8px; height:8px; border-radius:50% }
.user-app-shell .av2-dot.is-on{ background:var(--ua-status-success-text); box-shadow:0 0 0 3px color-mix(in srgb, var(--ua-status-success-text) 18%, transparent) }
.user-app-shell .av2-dot.is-off{ background:var(--ua-danger); box-shadow:0 0 0 3px var(--ua-danger-soft) }
.user-app-shell .av2-top-grid{ display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:10px; margin-top:12px }
.user-app-shell .av2-top{
  position:relative; display:flex; flex-direction:column; gap:3px; min-width:0; padding:12px 14px; text-align:left; cursor:pointer;
  border:1px solid var(--ua-border); border-radius:var(--ua-radius); background:var(--ua-tint); color:var(--ua-text); font:inherit;
  transition:border-color var(--ua-d-fast) ease, background-color var(--ua-d-fast) ease, transform var(--ua-d-fast) ease;
}
.user-app-shell .av2-top:hover{ border-color:var(--ua-accent-line); background:var(--ua-tint-2); transform:translateY(-1px) }
.user-app-shell .av2-top:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
.user-app-shell .av2-top > .av2-dot{ position:absolute; top:12px; right:12px }
.user-app-shell .av2-top-name{ padding-right:16px; font-size:13.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.user-app-shell .av2-top-url{ font-size:11.5px; color:var(--ua-accent-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.user-app-shell .av2-top-num{ margin-top:6px; font-size:12.5px; color:var(--ua-text-2) }
.user-app-shell .av2-top-num strong{ font-size:15px; font-weight:700; color:var(--ua-text); font-variant-numeric:tabular-nums }
.user-app-shell .av2-top-sub{ font-size:12px; color:var(--ua-text-muted); font-variant-numeric:tabular-nums }
.user-app-shell .av2-pt-wrap{ margin-top:8px; overflow-x:auto }
.user-app-shell .av2-pt{ table-layout:fixed; min-width:760px }   /* fixed columns: the table never resizes itself */
.user-app-shell .av2-pt :is(th, td){ overflow:hidden; text-overflow:ellipsis }
.user-app-shell .av2-pt thead th{ position:static }
.user-app-shell .av2-sort{
  display:inline-flex; align-items:center; justify-content:flex-end; gap:4px; width:100%; padding:0; border:0; background:none; cursor:pointer;
  font:inherit; color:inherit; text-transform:inherit; letter-spacing:inherit;
}
.user-app-shell .av2-sort svg{ opacity:.35; transition:opacity var(--ua-d-fast) ease, transform var(--ua-d-fast) ease }
.user-app-shell .av2-sort:hover svg, .user-app-shell .av2-sort.is-on svg{ opacity:1 }
.user-app-shell .av2-sort.is-on{ color:var(--ua-text) }
.user-app-shell .av2-sort:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px; border-radius:4px }
.user-app-shell .av2-pg{ display:flex; align-items:center; gap:10px; min-width:0 }
.user-app-shell .av2-pg-open{
  display:grid; place-items:center; flex:none; width:30px; height:30px; border-radius:8px; color:var(--ua-text-2);
  border:1px solid var(--ua-border); background:var(--ua-tint); transition:color var(--ua-d-fast) ease, border-color var(--ua-d-fast) ease;
}
.user-app-shell .av2-pg-open:hover{ color:var(--ua-accent-text); border-color:var(--ua-accent-line) }
.user-app-shell .av2-pg-open:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
.user-app-shell .av2-pg-txt{ display:flex; flex-direction:column; gap:2px; min-width:0 }
.user-app-shell .av2-pg-name{
  max-width:100%; padding:0; border:0; background:none; cursor:pointer; text-align:left; font:inherit; font-size:13.5px; font-weight:600;
  color:var(--ua-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.user-app-shell .av2-pg-name:hover{ color:var(--ua-accent-text) }
.user-app-shell .av2-pg-url{ display:flex; align-items:center; gap:6px; min-width:0; font-size:11.5px; color:var(--ua-text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.user-app-shell .av2-pg-url .av2-dot{ width:6px; height:6px; box-shadow:none }
.user-app-shell .av2-share{ display:flex; align-items:center; justify-content:flex-end; gap:8px }
.user-app-shell .av2-share-tr{ flex:1; max-width:72px; height:6px; border-radius:3px; background:var(--ua-tint-2); overflow:hidden }
.user-app-shell .av2-share-tr i{ display:block; height:100%; border-radius:3px; background:linear-gradient(90deg, var(--av2-top), var(--av2-bot)) }
.user-app-shell .av2-share > span:last-child{ min-width:34px; text-align:right }
.user-app-shell .av2-pt tfoot :is(th, td){ padding:12px; text-align:right }
.user-app-shell .av2-pt tfoot th{ text-align:left }
/* SOURCES card (2026-11-08): fixed columns — platform 26 %, share 18 %, four EQUAL number columns 14 % (Owner); the share column drops below 700 px.
   min-width 420 px: on phones the frame scrolls sideways, so numbers and headers are never cut ("…"). Only the platform name may ellipsize. */
.user-app-shell .av2-src{ table-layout:fixed; min-width:420px }
.user-app-shell .av2-src col.c-num{ width:14% }
.user-app-shell .av2-src-card .av2-src thead th{ position:static }   /* review 11-09: only the Sources card — the daily table keeps its sticky header */
.user-app-shell .av2-src col.c-plat{ width:26% }
.user-app-shell .av2-src col.c-share{ width:18% }
.user-app-shell .av2-src tbody th{ padding:12px }
.user-app-shell .av2-src-plat{ display:flex; align-items:center; gap:10px; min-width:0; font-weight:600 }
.user-app-shell .av2-src-name{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.user-app-shell .av2-src-tile{ flex:none; display:grid; place-items:center; width:26px; height:26px; border-radius:8px; font-size:12px; font-weight:700; line-height:1; color:#fff }
.user-app-shell .av2-src-tile.is-ring{ box-shadow:inset 0 0 0 1px rgba(255,255,255,.2) }
/* Owner 11-09: every logo on its own white tile, the same 26px / 8px-radius box as Other's tile; X + TikTok (currentColor) stay black on it */
.user-app-shell .av2-src-logo{ flex:none; display:grid; place-items:center; width:26px; height:26px; border-radius:8px; background:#fff; box-shadow:inset 0 0 0 1px rgba(20,45,95,.12); color:#0A1428 }
.user-app-shell .av2-src-logo svg{ display:block; width:16px; height:16px }
.user-app-shell .av2-src td.av2-src-best{ color:var(--ua-status-success-text); font-weight:700 }
.user-app-shell .av2-src tfoot :is(th, td){ padding:12px; text-align:right; font-weight:700 }
.user-app-shell .av2-src tfoot th{ text-align:left }
.user-app-shell .av2-src-note{ margin-top:8px; font-size:12px; color:var(--ua-text-muted) }
.user-app-shell .av2-src-empty{ padding:24px 0; text-align:center; font-size:13px; color:var(--ua-text-muted) }
.user-app-shell .av2-src thead th{ white-space:normal }   /* a long header (เลื่อนถึงท้าย) wraps onto 2 lines in a narrow column instead of spilling or "…" */
@media (max-width:700px){
  .user-app-shell .av2-src .av2-src-hide{ display:none }
  .user-app-shell .av2-src :is(thead, tbody, tfoot) :is(th, td){ padding-left:8px; padding-right:8px }
}
/* ONE table theme (Owner 2026-11-02): My team, Landing Page report, daily table, Bot & Geo.
   Opt-in only: .ua-tt on the <table>, .ua-tt-frame on the box around it — no other table matches these selectors.
   Frame = border, header row = tint, footer row = tint, row hover = every cell of the row. */
.user-app-shell :is(.ua-tt-frame, .ua-tt){ --ua-tt-head:var(--ua-tint-2); --ua-tt-foot:var(--ua-tint-2); --ua-tt-hover:var(--ua-tint-2) }
.user-app-shell .ua-tt-frame{ overflow-x:auto; overscroll-behavior-x:contain; border:1px solid var(--ua-border); border-radius:10px }
/* tint over the solid card colour: the header stays opaque, so rows never show through it when it sticks */
.user-app-shell .ua-tt thead th{ background:linear-gradient(var(--ua-tt-head), var(--ua-tt-head)), var(--ua-glass-solid) }
.user-app-shell .ua-tt tfoot tr > :is(th, td){ border-top:1px solid var(--ua-border-2); border-bottom:0; background:linear-gradient(var(--ua-tt-foot), var(--ua-tt-foot)), var(--ua-glass-solid); font-weight:600; color:var(--ua-text-2) }
.user-app-shell .ua-tt tbody tr:last-child > :is(th, td){ border-bottom:0 }
@media (hover:hover){ .user-app-shell .ua-tt tbody tr:not(.ua-tt-static):hover > :is(th, td){ background-color:var(--ua-tt-hover) } }
/* opening motion: the sections rise in one after another, Top Pages tiles stagger */
@keyframes ua-dash-in{ from{ opacity:0; transform:translateY(14px) } to{ opacity:1; transform:none } }
.user-app-shell .av2-overview > .av2-bar-tools{ animation:ua-dash-in 480ms var(--ua-ease) backwards }
.user-app-shell .av2-overview > .av2-source{ animation:ua-dash-in 480ms var(--ua-ease) 40ms backwards }
.user-app-shell .av2-overview > .av2-kpis{ animation:ua-dash-in 520ms var(--ua-ease) 90ms backwards }
.user-app-shell .av2-overview > .av2-chart-card{ animation:ua-dash-in 520ms var(--ua-ease) 160ms backwards }
.user-app-shell .av2-overview > .av2-top-card{ animation:ua-dash-in 520ms var(--ua-ease) 230ms backwards }
.user-app-shell .av2-overview > .av2-pt-card, .user-app-shell .av2-overview > .av2-table-skel{ animation:ua-dash-in 520ms var(--ua-ease) 300ms backwards }
.user-app-shell .av2-overview .av2-top{ animation:ua-dash-in 420ms var(--ua-ease) calc(300ms + var(--i, 0) * 60ms) backwards }
@media (max-width:1100px){ .user-app-shell .av2-top-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)) } }
@media (max-width:640px){ .user-app-shell .av2-top-grid{ grid-template-columns:minmax(0, 1fr) } }
@media (prefers-reduced-motion:reduce){
  .user-app-shell .av2-overview > *, .user-app-shell .av2-overview .av2-top{ animation:none }
}

/* 22. GP-HEADER — the Homepage's day / night switch + language menu inside the user-app header.
   home.css styles them with --hm-* tokens that live on .hm-root; here the same tokens are mapped onto the
   user-app palette (both themes), and the language trigger uses the Homepage desktop look (round globe). */
.user-app-shell .ua-hm-ctl{
  display:flex; align-items:center; gap:4px;
  --hm-ease:var(--ua-ease); --hm-d-micro:150ms; --hm-d-comp:210ms; --hm-r:var(--ua-radius);
  --hm-text:var(--ua-text); --hm-text-2:var(--ua-text-2); --hm-line:var(--ua-border); --hm-line-2:var(--ua-border-2);
  --hm-tint:var(--ua-tint); --hm-tint-2:var(--ua-tint-2); --hm-blue:var(--ua-blue); --hm-cyan:var(--ua-cyan); --hm-jade:var(--ua-jade);
  --hm-pop:var(--ua-surface); --hm-pop-shadow:var(--ua-shadow-pop); --hm-lord-ink:#C9D6EE;
}
html[data-ua-theme="light"] .user-app-shell .ua-hm-ctl{ --hm-lord-ink:#1B2A4A }
.user-app-shell .ua-hm-sep{ display:block; flex-shrink:0; width:1px; height:22px; margin:0 6px 0 8px; background:var(--ua-border-2) }
.user-app-shell .ua-hm-ctl .hm-theme{ min-height:44px; min-width:44px }
.user-app-shell .ua-hm-ctl .hm-theme:focus-visible,
.user-app-shell .ua-hm-ctl .hm-lang-trigger:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
.user-app-shell .ua-hm-ctl .hm-lang-trigger{ width:44px; min-width:44px; min-height:44px; padding:0; gap:0; justify-content:center; border:0; border-radius:999px; background:none }
.user-app-shell .ua-hm-ctl .hm-lang-trigger:hover,
.user-app-shell .ua-hm-ctl .hm-lang.is-open .hm-lang-trigger{ background:none; border:0 }
.user-app-shell .ua-hm-ctl .hm-lang-trigger :is(.hm-lang-code, .hm-caret){ display:none }
.user-app-shell .ua-hm-ctl .hm-lang-trigger .hm-lord-slot{ width:30px; height:30px; margin:0; border-radius:50%; background:var(--ua-tint-2);
  box-shadow:inset 0 0 0 1px var(--ua-border-2); transition:box-shadow 150ms var(--ua-ease), background-color 150ms var(--ua-ease) }
.user-app-shell .ua-hm-ctl .hm-lang-trigger:hover .hm-lord-slot,
.user-app-shell .ua-hm-ctl .hm-lang.is-open .hm-lang-trigger .hm-lord-slot{ box-shadow:inset 0 0 0 1px var(--ua-accent-line); background:var(--ua-accent-soft) }
.user-app-shell .ua-hm-ctl .hm-lang-trigger .hm-lord-box{ inset:3px }
.user-app-shell .ua-hm-ctl .hm-lang-list{ z-index:60; border-color:var(--ua-border-2) }
.user-app-shell .ua-hm-ctl .hm-lang-opt:hover,
.user-app-shell .ua-hm-ctl .hm-lang-opt:focus{ background:var(--ua-accent-soft) }
.user-app-shell .ua-hm-ctl .hm-lang-opt:focus-visible{ box-shadow:inset 0 0 0 2px var(--ua-focus) }
html[data-ua-theme="light"] .user-app-shell .ua-hm-ctl .hm-lord-box{ filter:brightness(.74) saturate(1.3) }
.user-app-shell .ua-hm-ctl .hm-lord-box :is([fill="rgb(18,19,49)"],[fill="rgb(19,19,43)"],[fill="rgb(57,51,70)"]){ fill:var(--hm-lord-ink) }
.user-app-shell .ua-hm-ctl .hm-lord-box :is([stroke="rgb(18,19,49)"],[stroke="rgb(19,19,43)"],[stroke="rgb(57,51,70)"]){ stroke:var(--hm-lord-ink) }
@media (max-width:420px){
  .user-app-shell .ua-hm-sep{ margin:0 2px }
}
/* theme switch = one cross-fade, the switch itself slides live (same treatment as the Homepage) */
html[data-ua-theme]::view-transition-old(root), html[data-ua-theme]::view-transition-new(root){ animation-duration:360ms }
@media (min-width:1024px){
  #ua-theme-head{ view-transition-name:ua-theme-toggle }
  html[data-ua-theme]::view-transition-group(ua-theme-toggle){ animation:none }
  html[data-ua-theme]::view-transition-old(ua-theme-toggle){ display:none }
  html[data-ua-theme]::view-transition-new(ua-theme-toggle){ animation:none }
}

/* ===== 23 · Lordicon menu icons (Owner 2026-10-17) — fallback SVG until the animation is ready; the
   animation's strokes / fills follow currentColor (menu state + theme) ===== */
.user-app-shell .ua-lord{ position:relative; display:inline-grid; place-items:center }
.user-app-shell .ua-lord-fallback{ display:inline-flex }
.user-app-shell .ua-lord-box{ position:absolute; inset:-18%; opacity:0; pointer-events:none; transition:opacity 180ms ease }
/* loading: the line icon is hidden (its space kept) so a refresh does not flash the old icon */
.user-app-shell .ua-lord:is([data-state="loading"], [data-state="ready"]) .ua-lord-fallback{ visibility:hidden }
.user-app-shell .ua-lord[data-state="ready"] .ua-lord-box{ opacity:1 }
@media (prefers-reduced-motion:reduce){ .user-app-shell .ua-lord-box{ transition:none } }
.user-app-shell .ua-lord-box svg{ display:block; width:100% !important; height:100% !important }
.user-app-shell .ua-lord-box svg [stroke]:not([stroke="none"]){ stroke:currentColor }
.user-app-shell .ua-lord-box svg [fill]:not([fill="none"]){ fill:currentColor }

/* ===== 24 · Ads Tracking "Add New" wizard (Owner 2026-10-17) — ads-tracking.jsx AdsCreateWizard / AdsWizardIntro.
   The wizard lives in the modal (.ads-wiz.is-modal, PixelAccessibleModal → body portal), so every rule is scoped
   to html[data-ua-theme] .ads-wiz. Empty Campaigns box = .pv-empty prompt that opens it (Owner 2026-10-18). */
html[data-ua-theme] .ads-cmp-empty{ margin:0 20px 20px }
/* delete-campaign confirmation list (Owner 2026-10-18) */
.ads-del-list{ margin:6px 0 10px; padding-left:18px; font-size:13px; line-height:1.65; color:var(--text-mid) }
/* spacing = the Stats page's (Owner 2026-10-18): one 14 px gap between every box and between the KPI cards,
   phone included; range bar → time line 10 px (the Stats -4 px pull-up) */
.user-app-shell .ads-screen{ display:flex; flex-direction:column; gap:14px }
.user-app-shell .ads-screen > *{ margin-top:0; margin-bottom:0 }
.user-app-shell .ads-screen > .av2-source{ margin-top:-4px; min-height:32px }   /* Stats' line is 32 px (refresh button) → text sits 19 / 23 px from bar / KPI */
.user-app-shell .ads-screen .ads-kpi-grid{ gap:14px }
html[data-ua-theme] .ads-wiz{ color:var(--ua-text); font-family:var(--ua-font); min-width:0 }
html[data-ua-theme] .ads-wiz.is-modal{ padding:22px 0 22px }
html[data-ua-theme] .ads-wiz.is-modal, html[data-ua-theme] .ads-wiz-pane, html[data-ua-theme] .ads-wiz-pane > form{ display:flex; flex-direction:column }
/* step change (Owner 2026-10-18): the new step slides in from the side it comes from; stepper colours ease */
html[data-ua-theme] .ads-wiz-pane{ --wiz-x:14px; animation:ua-wiz-in .3s cubic-bezier(.22,.8,.24,1) both }
html[data-ua-theme] .ads-wiz-pane[data-dir="back"]{ --wiz-x:-14px }
@keyframes ua-wiz-in{ from{ opacity:0; transform:translateX(var(--wiz-x)) } to{ opacity:1; transform:none } }
html[data-ua-theme] .ads-wiz-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap }
/* stepper: dots joined by a line; done = check, current = accent ring */
html[data-ua-theme] .ads-wiz-steps{ display:flex; align-items:center; list-style:none; margin:0 56px 18px 0; padding:0 }
html[data-ua-theme] .ads-wiz-steps li{ display:flex; align-items:center; flex:1 1 0; min-width:0 }
html[data-ua-theme] .ads-wiz-steps li:first-child{ flex:0 0 auto }
html[data-ua-theme] .ads-wiz-steps li + li::before{ content:""; flex:1; height:2px; margin:0 8px; border-radius:2px; background:var(--ua-border-2); transition:background .3s }
html[data-ua-theme] .ads-wiz-steps li.is-done + li::before{ background:var(--ua-accent-line) }
html[data-ua-theme] .ads-wiz-dot{ display:grid; place-items:center; flex:none; width:28px; height:28px; border-radius:50%;
  font:700 12.5px/1 var(--ua-font); background:var(--ua-tint-2); color:var(--ua-text-muted); border:1px solid var(--ua-border);
  transition:background .3s, color .3s, border-color .3s, box-shadow .3s }
html[data-ua-theme] .ads-wiz-steps li.is-on .ads-wiz-dot{ background:var(--ua-grad); color:var(--ua-on-accent); border-color:transparent;
  box-shadow:0 0 0 4px var(--ua-accent-soft) }
html[data-ua-theme] .ads-wiz-steps li.is-done .ads-wiz-dot{ background:var(--ua-accent-soft); color:var(--ua-accent-text); border-color:var(--ua-accent-line) }
/* heading + text */
html[data-ua-theme] .ads-wiz .ads-wiz-h{ display:block; margin:0 56px 4px 0; font-size:19px; font-weight:700; letter-spacing:-.01em; color:var(--ua-text); outline:none }
html[data-ua-theme] .ads-wiz-sub{ margin:0 0 18px; font-size:13.5px; line-height:1.55; color:var(--ua-text-2) }
html[data-ua-theme] .ads-wiz-field{ display:flex; flex-direction:column; gap:6px; margin-bottom:16px; min-width:0 }
html[data-ua-theme] .ads-wiz-label{ font-size:12.5px; font-weight:600; color:var(--ua-text) }
html[data-ua-theme] .ads-wiz-page{ padding:10px 12px; border:1px solid var(--ua-border); border-radius:var(--ua-radius-sm);
  background:var(--ua-tint); font-size:13.5px; color:var(--ua-text); overflow-wrap:anywhere }
html[data-ua-theme] .ads-wiz-hint{ font-size:12px; line-height:1.5; color:var(--ua-text-muted) }
html[data-ua-theme] .ads-wiz-err{ font-size:12px; line-height:1.5; color:var(--ua-danger) }
html[data-ua-theme] .ads-wiz-note{ margin:0; font-size:12.5px; color:var(--ua-text-muted) }
html[data-ua-theme] .ads-wiz .ads-wiz-server-err{ margin:0 0 14px }
/* backup destination */
html[data-ua-theme] .ads-wiz-fb{ padding:14px; border:1px solid var(--ua-border); border-radius:var(--ua-radius); background:var(--ua-tint) }
html[data-ua-theme] .ads-wiz-fb-head{ display:flex; align-items:flex-start; gap:12px }
html[data-ua-theme] .ads-wiz-fb-t{ display:block; font-size:13.5px; font-weight:600; color:var(--ua-text); cursor:pointer }
html[data-ua-theme] .ads-wiz-fb ul{ margin:10px 0 0; padding-left:20px; font-size:12.5px; line-height:1.55; color:var(--ua-text-2) }
html[data-ua-theme] .ads-wiz-fb li + li{ margin-top:4px }
html[data-ua-theme] .ads-wiz-sw{ position:relative; flex:none; width:38px; height:22px; margin-top:1px; padding:0; border:0; border-radius:99px;
  background:var(--ua-border-2); cursor:pointer; transition:background var(--ua-d-fast) ease }
html[data-ua-theme] .ads-wiz-sw.on{ background:var(--ua-blue) }
html[data-ua-theme] .ads-wiz-knob{ position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.3); transition:transform var(--ua-d-fast) var(--ua-ease) }
html[data-ua-theme] .ads-wiz-sw.on .ads-wiz-knob{ transform:translateX(16px) }
html[data-ua-theme] .ads-wiz-sw:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
/* footer */
html[data-ua-theme] .ads-wiz-foot{ display:flex; justify-content:flex-end; gap:10px; margin-top:22px }
html[data-ua-theme] .ads-wiz-foot .ads-wiz-back{ margin-right:auto }
html[data-ua-theme] .ads-wiz-foot .btn{ display:inline-flex; align-items:center; gap:6px }
/* ④ done */
html[data-ua-theme] .ads-wiz-badge{ align-self:flex-start; display:inline-flex; align-items:center; gap:6px; margin-bottom:12px; padding:4px 10px;
  border-radius:99px; border:1px solid var(--ua-status-success-line); background:var(--ua-status-success-soft);
  color:var(--ua-status-success-text); font-size:12px; font-weight:700 }
html[data-ua-theme] .ads-wiz-links{ display:flex; flex-direction:column; gap:12px; margin-top:14px; min-width:0 }
html[data-ua-theme] .ads-wiz-links .ads-campaign-url{ padding:12px; border:1px solid var(--ua-border); border-radius:var(--ua-radius-sm); background:var(--ua-tint); min-width:0 }
html[data-ua-theme] .ads-wiz-links .ads-campaign-url-helper{ margin-top:8px; line-height:1.55 }
html[data-ua-theme] .ads-wiz-links .ads-campaign-url-head{ flex-direction:row; align-items:center }
html[data-ua-theme] .ads-wiz-links .ads-campaign-url-value{ background:var(--ua-surface); border-color:var(--ua-border); color:var(--ua-text-2) }
html[data-ua-theme] .ads-wiz-links .ads-campaign-url-helper strong{ color:var(--ua-text); font-weight:600 }
html[data-ua-theme] .ads-wiz-editor{ margin-top:10px; display:inline-flex; align-items:center; gap:6px }
html[data-ua-theme] .ads-wiz-warn{ margin:14px 0 0; font-size:12.5px; line-height:1.55; color:var(--ua-status-warn-text) }
@media (max-width:520px){
  html[data-ua-theme] .ads-cmp-empty{ margin:0 14px 14px }
  html[data-ua-theme] .ads-wiz-foot .btn{ flex:1 1 auto; justify-content:center }
}
@media (prefers-reduced-motion:reduce){
  html[data-ua-theme] .ads-wiz-sw, html[data-ua-theme] .ads-wiz-knob, html[data-ua-theme] .ads-wiz-dot,
  html[data-ua-theme] .ads-wiz-steps li + li::before{ transition:none }
  html[data-ua-theme] .ads-wiz-pane{ animation:none }
}

/* ===== 25 · Traffic Rules — one card (Owner 2026-10-18) — traffic-rules.jsx TrafficRulesEditor.
   The big card holds one inner box per heading: master switch · Device · Thailand only · Bot protection · When a
   visitor fails (Owner: a box for each heading). Switch OFF → the settings fold away (Owner 2026-11-04). */
.user-app-shell .tr-card{ display:flex; flex-direction:column; gap:12px; padding:20px }
.user-app-shell :is(.tr-master, .tr-sec){ padding:16px 18px; border:1px solid var(--ua-border); border-radius:12px; background:var(--ua-tint) }
.user-app-shell .tr-master{ display:flex; align-items:center; gap:14px }
.user-app-shell .tr-off-note{ display:flex; align-items:center; gap:8px; padding:10px 12px;
  border:1px solid var(--ua-border); border-radius:10px; font-size:12.5px; line-height:1.5; color:var(--ua-text-2) }
.user-app-shell .tr-fields{ display:flex; flex-direction:column; gap:12px; margin:0; padding:0; border:0; min-width:0; transition:opacity var(--ua-d) ease }
.user-app-shell .tr-sec{ display:flex; flex-direction:column; gap:12px }
.user-app-shell .tr-sec-row{ display:flex; align-items:center; gap:14px }
.user-app-shell .tr-sec-text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px }
.user-app-shell .tr-sec-title{ font-size:14px; font-weight:600; color:var(--ua-text) }
.user-app-shell .tr-sec-desc{ font-size:12.5px; line-height:1.6; color:var(--ua-text-muted) }
.user-app-shell .tr-sec .seg-group{ align-self:flex-start; max-width:100% }
.user-app-shell .tr-sec .seg-group .seg-btn{ flex:0 0 auto; min-width:96px; padding:9px 18px }   /* full labels, no ellipsis */
.user-app-shell .tr-note{ font-size:12.5px; line-height:1.6; color:var(--ua-status-warn-text); padding:12px 14px;
  border:1px solid var(--ua-border); border-radius:10px }
.user-app-shell .tr-err{ margin:0 }
/* Owner 2026-11-04 — master switch OFF folds the settings away (grid row 1fr→0fr), ON slides them down.
   The -3px/+3px pair keeps focus rings and borders from being clipped by the overflow. */
.user-app-shell .tr-collapse{ display:grid; grid-template-rows:0fr; opacity:0; margin-top:-12px;
  transition:grid-template-rows .36s cubic-bezier(.22,1,.36,1), opacity .24s ease, margin-top .36s cubic-bezier(.22,1,.36,1) }
.user-app-shell .tr-collapse.is-open{ grid-template-rows:1fr; opacity:1; margin-top:0 }
.user-app-shell .tr-collapse > .tr-fields{ min-height:0; overflow:hidden; margin:-3px; padding:3px }
.user-app-shell .tr-dd{ flex:0 0 160px }
.user-app-shell .tr-dd .dd{ flex:none }
/* Owner 2026-11-04 — one Save bar at the bottom of the screen while something is unsaved (rules + Safe Article) */
.user-app-shell .tr-savebar{ position:sticky; bottom:16px; z-index:5; display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  padding:10px 12px 10px 16px; border:1px solid var(--ua-border-2); border-radius:14px; background:var(--ua-surface-2);
  box-shadow:var(--ua-shadow-pop); animation:tr-savebar-in .26s cubic-bezier(.22,1,.36,1) both }
.user-app-shell .tr-savebar-msg{ flex:1 1 auto; display:flex; align-items:center; gap:8px; min-width:0; font-size:13px; color:var(--ua-text-2) }
.user-app-shell .tr-savebar-dot{ flex:none; width:8px; height:8px; border-radius:50%; background:var(--ua-status-warn-text) }
@keyframes tr-savebar-in{ from{ opacity:0; transform:translateY(12px) } to{ opacity:1; transform:none } }
@media (prefers-reduced-motion:reduce){ .user-app-shell .tr-collapse, .user-app-shell .tr-savebar{ transition:none; animation:none } }
@media (max-width:520px){
  .user-app-shell .tr-card{ padding:14px }
  .user-app-shell :is(.tr-master, .tr-sec){ padding:14px }
  .user-app-shell .tr-sec .seg-group{ align-self:stretch }
  .user-app-shell .tr-sec .seg-group .seg-btn{ flex:1; min-width:0; padding:9px 8px }
  .user-app-shell .tr-dd{ flex-basis:128px }
  .user-app-shell .tr-savebar-msg{ flex-basis:100% }
}
@media (prefers-reduced-motion:reduce){ .user-app-shell .tr-fields{ transition:none } }
/* per-page Safe Article (Owner 2026-10-18) — status inside "When a visitor fails" + the editor pop-up */
.user-app-shell .tr-sa{ display:flex; flex-direction:column; gap:10px }
.user-app-shell .tr-sa-ic{ display:grid; place-items:center; flex:none; width:32px; height:32px; border-radius:8px; background:var(--ua-tint-2); color:var(--ua-text-2); overflow:hidden }
.user-app-shell .tr-sa-ic img{ width:100%; height:100%; object-fit:contain }
.user-app-shell .tr-sa-title{ font-size:13.5px; font-weight:600; color:var(--ua-text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
html[data-ua-theme] .sa-form{ display:flex; flex-direction:column; gap:16px; min-width:0 }
html[data-ua-theme] .sa-count{ margin-top:6px; font-size:11.5px; line-height:1.6; color:var(--ua-text-muted) }
html[data-ua-theme] .sa-count.is-over{ color:var(--ua-danger) }
html[data-ua-theme] .sa-html{ min-height:260px; resize:vertical; font-family:var(--mono, ui-monospace, monospace); font-size:12.5px; line-height:1.6 }
html[data-ua-theme] .sa-how{ padding:14px 16px; border:1px solid var(--ua-border); border-radius:12px; background:var(--ua-tint) }
html[data-ua-theme] .sa-how-head{ display:flex; align-items:center; gap:8px; color:var(--ua-text) }
html[data-ua-theme] .sa-how-head b{ flex:1; font-size:13.5px }
html[data-ua-theme] .sa-how ol{ margin:10px 0; padding-left:20px; font-size:12.5px; line-height:1.65; color:var(--ua-text-2) }
html[data-ua-theme] .sa-prompt{ margin:0; padding:12px 14px; max-height:170px; overflow:auto; white-space:pre-wrap; word-break:break-word;
  border:1px solid var(--ua-border); border-radius:10px; background:var(--ua-surface); font-family:var(--mono, ui-monospace, monospace); font-size:12px; line-height:1.6; color:var(--ua-text-2) }
html[data-ua-theme] .sa-fav{ display:flex; align-items:center; gap:10px; flex-wrap:wrap }
html[data-ua-theme] .sa-fav-img{ display:grid; place-items:center; width:40px; height:40px; border-radius:10px; border:1px solid var(--ua-border); background:var(--ua-tint); color:var(--ua-text-muted); overflow:hidden }
html[data-ua-theme] .sa-fav-img img{ width:100%; height:100%; object-fit:contain }
html[data-ua-theme] .sa-chip{ display:inline-block; margin:2px 6px 0 0; padding:1px 6px; border:1px solid var(--ua-border); border-radius:6px; font-size:11px }
html[data-ua-theme] .sa-preview{ display:flex; flex-direction:column; gap:10px }
html[data-ua-theme] .sa-preview-frame{ width:100%; height:min(60vh, 560px); border:1px solid var(--ua-border); border-radius:12px; background:#fff }
/* Owner 2026-10-18 round 2: the Safe Article writer is inline (no pop-up) and slides down when picked. The grid-row
   0fr→1fr keyframe grows the real height so the content below glides instead of jumping; [hidden] → display:none
   restarts the animation each time the pane is shown again. */
.user-app-shell .tr-reveal{ display:grid; grid-template-rows:1fr; animation:tr-reveal .34s cubic-bezier(.2,.7,.2,1) both }
.user-app-shell .tr-reveal[hidden]{ display:none }
.user-app-shell .tr-reveal > *{ min-height:0; overflow:hidden; margin:-3px; padding:3px }
@keyframes tr-reveal{ from{ grid-template-rows:0fr; opacity:0; transform:translateY(-8px) } to{ grid-template-rows:1fr; opacity:1; transform:none } }
@media (prefers-reduced-motion:reduce){ .user-app-shell .tr-reveal{ animation:none } }
.user-app-shell .sa-panel{ display:flex; flex-direction:column; gap:14px; padding:16px; border:1px solid var(--ua-border); border-radius:12px; background:var(--ua-surface) }
.user-app-shell .sa-panel-head{ display:flex; align-items:center; gap:12px; min-width:0 }
.user-app-shell .sa-actions{ display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; padding-top:12px; border-top:1px solid var(--ua-border) }
/* Owner 10-18 round 3: Favicon box + AI box side by side; icon-only favicon buttons, red trash */
html[data-ua-theme] .sa-row2{ display:grid; grid-template-columns:minmax(190px, 250px) 1fr; gap:12px; align-items:stretch }
@media (max-width:720px){ html[data-ua-theme] .sa-row2{ grid-template-columns:1fr } }
html[data-ua-theme] .sa-box{ padding:14px 16px; border:1px solid var(--ua-border); border-radius:12px; background:var(--ua-tint); min-width:0 }
html[data-ua-theme] .sa-box-title{ margin-bottom:10px; font-size:13.5px; font-weight:600; color:var(--ua-text) }
html[data-ua-theme] .sa-ic-btn{ width:34px; height:34px; padding:0; justify-content:center }
html[data-ua-theme] .sa-ic-btn.sa-ic-del{ background:var(--ua-danger-soft); border-color:var(--ua-danger-line); color:var(--ua-danger) }
html[data-ua-theme] .sa-ic-btn.sa-ic-del:hover{ background:var(--ua-danger); border-color:var(--ua-danger); color:#fff }

/* ---------- GP 2026-10-21 (Owner) — payment pop-up: steps + result, Light / Dark ----------
   The Change Plan dialog stays excluded from the user-app theme (section 8); only the payment pop-up
   (.hl-pay-dialog = checkout + result) is themed here. The legacy tokens the checkout summary reads
   (--text, --muted, --line, --acc …) are re-pointed at --ua-* inside it, so nothing else changes. */
html[data-ua-theme] body > .scrim:has(.hl-pay-dialog){ background:var(--ua-scrim) }
html[data-ua-theme] body > .scrim .modal.hl-pay-dialog{
  --text:var(--ua-text); --text-mid:var(--ua-text-2); --muted:var(--ua-text-muted);
  --line:var(--ua-border); --line-2:var(--ua-border-2); --acc:var(--ua-accent-text); --acc-line:var(--ua-accent-line);
  background:var(--ua-surface); border-color:var(--ua-border-2); color:var(--ua-text);
  border-radius:var(--ua-radius-lg); box-shadow:var(--ua-shadow-pop); font-family:var(--ua-font-sans);
}
html[data-ua-theme] body > .scrim .modal.hl-pay-dialog :is(h3,h4,button){ font-family:var(--ua-font-sans) }
html[data-ua-theme] body > .scrim .modal.hl-pay-dialog > .close{ color:var(--ua-text-muted) }
html[data-ua-theme] body > .scrim .modal.hl-pay-dialog > .close:hover{ color:var(--ua-text) }
html[data-ua-theme] body > .scrim .modal.hl-pay-dialog > .close:focus-visible{ outline-color:var(--ua-focus) }
html[data-ua-theme] .hl-pay-dialog .plan-inline-checkout-shell{ background:var(--ua-tint); border-color:var(--ua-border); border-radius:var(--ua-radius) }
/* Paddle's frame document declares no color-scheme (= light). An iframe whose scheme differs from the page's
   (dark here) gets an opaque white backdrop from the browser; matching it keeps the frame transparent. */
.hl-paddle-inline iframe{ color-scheme:light }
html[data-ua-theme] .hl-pay-dialog .hl-checkout-back{ border-color:var(--ua-border-2); color:var(--ua-text-2) }
html[data-ua-theme] .hl-pay-dialog .hl-checkout-back:hover{ color:var(--ua-text); border-color:var(--ua-accent-line) }
/* same head height with or without the Back button, so the result step is as tall as steps 1-2 */
.hl-pay .hl-checkout-head{ min-height:31px }

/* Owner 10-21 — two columns like Paddle's own checkout: the order summary on the left never changes
   (result step included) · steps + Paddle frame / result on the right. One column on a phone. */
.plan-modal-dialog.is-checkout.hl-pay-dialog{ max-width:min(960px, calc(100vw - 48px)) }
/* 10-21 round 2: grid "head | steps" / "summary | pane" — Back + title sit above the summary, and the
   summary and the Paddle box share a row, so they are always the same height */
.hl-pay{
  display:grid; grid-template-columns:minmax(260px,2fr) minmax(0,3fr); grid-template-areas:"head steps" "sum pane";
  gap:14px 24px; align-items:stretch;
}
.hl-pay > .hl-pay-head{ grid-area:head; margin:0; align-self:end }
.hl-pay > .hl-pay-steps{ grid-area:steps; margin:0; padding-right:36px; align-self:end }   /* clear of the dialog's × */
.hl-pay > .hl-pay-sum{ grid-area:sum }
.hl-pay > .hl-pay-pane{ grid-area:pane; min-width:0 }
.hl-pay-sum{
  display:flex; flex-direction:column; gap:16px; min-width:0; padding:24px; box-sizing:border-box;
  border:1px solid var(--ua-border, var(--line)); border-radius:var(--ua-radius, 14px); background:var(--ua-tint-2, rgba(255,255,255,.05));
}
.hl-pay-sum-title{ margin:0; font-size:15px; font-weight:700; color:var(--ua-text-2, var(--text-mid)) }
.hl-pay-sum-big{ display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; color:var(--ua-text-2, var(--text-mid)) }
.hl-pay-sum-big b{ font-size:36px; font-weight:800; line-height:1.1; color:var(--ua-accent-text, var(--acc)) }
.hl-pay-sum-big span{ font-size:15px }
.hl-pay-sum-then{ margin-top:-10px; font-size:14px; color:var(--ua-text-muted, var(--muted)) }
.hl-pay-sum-item{ display:flex; align-items:center; gap:16px; padding:18px 0; border-top:1px solid var(--ua-border, var(--line)); border-bottom:1px solid var(--ua-border, var(--line)) }
.hl-pay-sum-logo{ display:grid; place-items:center; flex:none; width:68px; height:68px; border-radius:14px; background:var(--ua-surface, #0b1220); border:1px solid var(--ua-border, var(--line)) }
.hl-pay-sum-logo img{ width:44px; height:44px; object-fit:contain }
.hl-pay-sum-name{ display:flex; flex-direction:column; gap:4px; min-width:0 }
.hl-pay-sum-name b{ font-size:18px; color:var(--ua-text, var(--text)) }
.hl-pay-sum-name small{ font-size:14px; color:var(--ua-text-muted, var(--muted)) }
.hl-pay-sum-rows .plan-order-row{ padding:8px 0; font-size:14.5px }
.hl-pay-sum-rows .plan-order-row.plan-order-total{ font-size:16.5px }
.hl-pay-sum-rows .plan-order-note{ margin-top:8px; font-size:13px }
@media (max-width:760px){
  .hl-pay{ grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "sum" "steps" "pane"; gap:14px }
  .hl-pay > .hl-pay-head{ padding-right:36px }
  .hl-pay > .hl-pay-steps{ padding-right:0 }
  .hl-pay-sum{ padding:16px; gap:12px }
  .hl-pay-sum-big b{ font-size:30px }
  .hl-pay-sum-logo{ width:56px; height:56px }
  .hl-pay-sum-logo img{ width:36px; height:36px }
}
/* phone: Paddle's frame needs ≥ 312 px — the dialog takes the full width (minus 8 px a side) and the
   frame loses its card padding (measured at 375 px: frame 323 px, was 279 px before) */
@media (max-width:640px){
  .plan-modal-dialog.is-checkout.hl-pay-dialog{ width:calc(100vw - 16px); max-width:none }
  html[data-ua-theme] .hl-pay-dialog .plan-inline-checkout-shell{ padding:0; border:0; background:none }
  html[data-ua-theme] .hl-pay-dialog .plan-inline-checkout-shell .hl-paddle-inline{ margin-left:0; margin-right:0 }
}

/* steps: 1 details → 2 payment → 3 result — the 2FA pop-up's bar (.tfa-steps, section above),
   each segment's number + label centred (Owner 10-21); a failed result step turns red */
html[data-ua-theme] .tfa-steps.hl-pay-steps li{ justify-content:center }
html[data-ua-theme] .tfa-steps.hl-pay-steps li.is-fail{ border-color:var(--ua-danger); color:var(--ua-danger) }
html[data-ua-theme] .tfa-steps.hl-pay-steps li.is-fail .tfa-step-n{ background:var(--ua-danger); color:#fff; font-size:13px; line-height:1 }

/* result step: icon + title + text + actions (the customer closes it) */
.hl-pay-result{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px;
  padding:24px 20px; border:1px solid var(--ua-border, var(--line)); border-radius:var(--ua-radius, 14px);
  background:var(--ua-tint, rgba(255,255,255,.03)); justify-content:center; min-height:520px; box-sizing:border-box;
}
.hl-pay-result-title{ margin:10px 0 0; font-size:21px; font-weight:700; color:var(--ua-text, var(--text)) }
.hl-pay-result-text{ margin:0; max-width:420px; font-size:14.5px; line-height:1.6; color:var(--ua-text-2, var(--text-mid)) }
.hl-pay-result-actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:10px }
.hl-pay-btn{
  min-height:40px; padding:0 18px; border-radius:var(--ua-radius-sm, 10px); cursor:pointer;
  font-size:14px; font-weight:600; border:1px solid var(--ua-border-2, var(--line-2));
  background:var(--ua-surface-2, transparent); color:var(--ua-text, var(--text));
  transition:background .2s ease, border-color .2s ease;
}
.hl-pay-btn:hover{ border-color:var(--ua-accent-line, var(--acc-line)) }
.hl-pay-btn.primary{ border-color:transparent; background:var(--ua-grad, var(--acc)); color:#fff }
.hl-pay-btn.primary:hover{ filter:brightness(1.08) }
.hl-pay-btn:disabled{ opacity:.6; cursor:progress }
.hl-pay-btn:focus-visible{ outline:2px solid var(--ua-focus, var(--acc-line)); outline-offset:2px }

.hl-res-ic{ display:block; overflow:visible }
.hl-res-ring, .hl-res-arc, .hl-res-mark{ fill:none; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round }   /* 104 px icon (Owner 10-21: bigger, the box felt empty) */
.hl-res-ic.is-spin .hl-res-ring{ stroke:var(--ua-border-2, var(--line-2)) }
.hl-res-ic.is-spin .hl-res-arc{
  stroke:var(--ua-accent-text, var(--acc)); stroke-dasharray:40 145; transform-origin:26px 26px;
  animation:hl-res-spin .9s linear infinite;
}
.hl-res-ic.is-ok{ color:var(--ua-status-success-text) }
.hl-res-ic.is-fail{ color:var(--ua-danger) }
.hl-res-ic.is-pending{ color:var(--ua-status-warn-text) }
.hl-res-ic:is(.is-ok,.is-fail,.is-pending) .hl-res-ring{
  stroke:currentColor; fill:color-mix(in srgb, currentColor 10%, transparent);
  stroke-dasharray:145; stroke-dashoffset:145; transform:rotate(-90deg); transform-origin:26px 26px;
  animation:hl-res-draw .5s cubic-bezier(.65,0,.35,1) forwards;
}
.hl-res-ic:is(.is-ok,.is-fail,.is-pending) .hl-res-mark{
  stroke:currentColor; stroke-dasharray:48; stroke-dashoffset:48;
  animation:hl-res-draw .38s cubic-bezier(.65,0,.35,1) .42s forwards;
}
.hl-res-ic.is-ok{ animation:hl-res-pop .4s cubic-bezier(.34,1.56,.64,1) .72s both }
.hl-res-ic.is-fail{ animation:hl-res-shake .42s ease .8s both }
@keyframes hl-res-spin{ to{ transform:rotate(360deg) } }
@keyframes hl-res-draw{ to{ stroke-dashoffset:0 } }
@keyframes hl-res-pop{ 0%{ transform:scale(1) } 50%{ transform:scale(1.1) } 100%{ transform:scale(1) } }
@keyframes hl-res-shake{ 0%,100%{ transform:translateX(0) } 25%{ transform:translateX(-5px) } 50%{ transform:translateX(5px) } 75%{ transform:translateX(-3px) } }
/* step change motion (Owner 10-21): the 2FA pane's slide-in. Two identical keyframes let the checkout
   box replay it on 1 → 2 without remounting (the Paddle frame must stay mounted). */
.hl-pay-pane.is-s0{ animation:tfa-in-fwd 280ms cubic-bezier(.2,.8,.2,1) both }
.hl-pay-pane.is-s1{ animation:hl-pay-step-b 280ms cubic-bezier(.2,.8,.2,1) both }
.hl-pay-result.hl-pay-pane{ animation:tfa-in-fwd 280ms cubic-bezier(.2,.8,.2,1) both }
@keyframes hl-pay-step-b{ from{ opacity:0; transform:translateX(18px) } to{ opacity:1; transform:none } }
@media (prefers-reduced-motion:reduce){
  .hl-pay-pane, .hl-pay-result, .hl-res-ic, .hl-res-ic .hl-res-ring, .hl-res-ic .hl-res-mark{ animation:none !important; stroke-dashoffset:0 !important }
  .hl-res-ic.is-spin .hl-res-arc{ animation-duration:2.4s !important }
}

/* ---------- GP 2026-10-21 (Owner) — Short Link: Anuphan for TH + EN everywhere (the page and its pop-ups, short URLs
   included — no monospace), the status pill + create button on the search row, a card per link on a phone ---------- */
.user-app-shell .sl-screen, .user-app-shell .sl-screen *,
html[data-ua-theme] body > .scrim .modal:has(.sl-cn-row, #sl-edit-dest),
html[data-ua-theme] body > .scrim .modal:has(.sl-cn-row, #sl-edit-dest) *{ font-family:var(--ua-font-sans) !important }
/* GP 2026-10-21 (Owner) — "สร้าง Landing Page ใหม่": the subdomain box locks https:// and .hilynk.com like the
   Short Link Custom Name (same .sl-cn-row); the suffix segment is on the right, so its divider is on its left */
.lp-slug-row .lp-slug-suffix{ border-right:0; border-left:1px solid var(--line) }
.lp-slug-row .sl-cn-input{ min-width:0 }
.lp-slug-row.is-auto .sl-cn-input{ color:var(--muted-2); text-align:center; cursor:default }
.user-app-shell .sl-screen .sl-toolbar{ margin:0 0 14px; flex-wrap:wrap }
.user-app-shell .sl-screen .sl-toolbar--solo{ justify-content:flex-end }
.user-app-shell .sl-screen .sl-tools{ display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin-left:auto }
.user-app-shell .sl-screen .sl-m-lbl{ display:none }
@media (max-width:640px){
  .user-app-shell .sl-screen .sl-toolbar{ flex-direction:column; align-items:stretch; gap:10px }
  .user-app-shell .sl-screen .sl-search{ max-width:none }
  .user-app-shell .sl-screen .sl-tools{ justify-content:space-between; margin-left:0 }
  .user-app-shell .sl-screen .sl-toolbar--solo .sl-tools{ justify-content:flex-start }
  /* table → one card per link: URL + actions on top, status · clicks · date below */
  .user-app-shell .sl-screen .sl-table thead{ display:none }
  .user-app-shell .sl-screen :is(.sl-table, .sl-table tbody){ display:block; width:100% }
  .user-app-shell .sl-screen .sl-table tr.sl-row{
    display:grid; grid-template-columns:auto auto minmax(0,1fr) auto; grid-template-areas:"url url url act" "st ck dt dt";
    align-items:center; gap:10px 12px; padding:14px; border-bottom:1px solid var(--ua-border);
  }
  .user-app-shell .sl-screen .sl-table tr.sl-row:last-child{ border-bottom:0 }
  .user-app-shell .sl-screen .sl-table tr.sl-row > td{ padding:0; border:0; min-width:0 !important }
  .user-app-shell .sl-screen .sl-table tr.sl-row > td:nth-child(1){ grid-area:url }
  .user-app-shell .sl-screen .sl-table tr.sl-row > td:nth-child(2){ grid-area:st }
  .user-app-shell .sl-screen .sl-table tr.sl-row > td:nth-child(3){ grid-area:ck; white-space:nowrap }
  .user-app-shell .sl-screen .sl-table tr.sl-row > td:nth-child(4){ grid-area:dt; justify-self:end; white-space:nowrap; font-size:12px }
  .user-app-shell .sl-screen .sl-table tr.sl-row > td:nth-child(5){ grid-area:act; align-self:start }
  .user-app-shell .sl-screen .sl-m-lbl{ display:inline; color:var(--ua-text-muted) }
}

/* GP 2026-10-21 (Owner) — Ads Tracking chart: a drilled-down day that could not be loaded (same height as the plot) */
html[data-ua-theme] .ads-chart-wrap .ads-chart-fail{ display:grid; place-items:center; min-height:240px; font-size:13.5px; color:var(--ua-danger) }

/* ---------- GP 2026-10-21 (Owner) — Settings › Plan › Transaction history (below the plan list) ---------- */
.user-app-shell .ua-set .set-stack > .tx-card{ grid-column:1 / -1 }   /* full width, like the plan list above it */
.user-app-shell .ua-set .tx-box{ margin-top:16px; border:1px solid var(--ua-border); border-radius:var(--ua-radius); overflow:hidden; transition:opacity var(--ua-d-fast) ease }
.user-app-shell .ua-set .tx-box.is-busy{ opacity:.6 }
.user-app-shell .ua-set .tx-box > .tfa-skel{ margin:18px }
.user-app-shell .ua-set .tx-empty{ padding:22px 18px; font-size:13.5px; color:var(--ua-text-muted) }
.user-app-shell .ua-set .tx-table{ width:100%; border-collapse:collapse; font-size:14px; table-layout:fixed }
/* fixed columns: a status or action that changes never moves the others (Owner 10-21) */
.user-app-shell .ua-set .tx-table th:nth-child(1){ width:34% }
.user-app-shell .ua-set .tx-table th:nth-child(2){ width:22% }
.user-app-shell .ua-set .tx-table th:nth-child(3){ width:22% }
.user-app-shell .ua-set .tx-table th:nth-child(4){ width:22% }
.user-app-shell .ua-set .tx-table th{ padding:12px 18px; text-align:left; font-size:12.5px; font-weight:600; color:var(--ua-text-muted); background:var(--ua-tint); border-bottom:1px solid var(--ua-border) }
.user-app-shell .ua-set .tx-table td{ padding:14px 18px; border-bottom:1px solid var(--ua-border); color:var(--ua-text) }
.user-app-shell .ua-set .tx-table tbody tr:last-child td{ border-bottom:0 }
.user-app-shell .ua-set .tx-table tbody tr:hover td{ background:var(--ua-tint) }
.user-app-shell .ua-set .tx-date, .user-app-shell .ua-set .tx-amt{ font-weight:600; white-space:nowrap }
.user-app-shell .ua-set .tx-amt{ font-variant-numeric:tabular-nums }
.user-app-shell .ua-set .tx-act{ text-align:right; white-space:nowrap }
.user-app-shell .ua-set .tx-open{ font-size:13px; text-decoration:underline; text-underline-offset:3px }
.user-app-shell .ua-set .tx-open:disabled{ opacity:.55; cursor:progress }
/* Owner 10-21 — "ชำระอีกครั้ง": the button, then the payment pop-up's spinner in its place (tick / cross = the pop-up) */
.user-app-shell .ua-set .tx-retry{ position:relative; white-space:nowrap }
/* busy: only the spinner shows, in the button's own footprint (the column keeps its width) */
.user-app-shell .ua-set .tx-retry.is-busy,
.user-app-shell .ua-set .tx-retry.is-busy:disabled{ background:transparent; border-color:transparent; box-shadow:none; opacity:1; cursor:progress }
.user-app-shell .ua-set .tx-retry.is-busy .tx-retry-label{ visibility:hidden }
.user-app-shell .ua-set .tx-fx{ position:absolute; inset:0; display:grid; place-items:center }
.user-app-shell .ua-set .tx-st{ display:inline-block; padding:1px 7px; border-radius:6px; border:1px solid; font-size:12px; font-weight:600; white-space:nowrap }
.user-app-shell .ua-set .tx-st.is-ok{ color:var(--ua-status-success-text); border-color:var(--ua-status-success-line); background:var(--ua-status-success-soft) }
.user-app-shell .ua-set .tx-st.is-bad{ color:var(--ua-danger); border-color:var(--ua-danger-line); background:var(--ua-danger-soft) }
.user-app-shell .ua-set .tx-st.is-muted{ color:var(--ua-text-muted); border-color:var(--ua-border-2); background:var(--ua-tint) }
.user-app-shell .ua-set .tx-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 18px; border-top:1px solid var(--ua-border); font-size:13px; color:var(--ua-text-muted) }
.user-app-shell .ua-set .tx-pager{ display:flex; align-items:center; gap:4px; flex-wrap:wrap }
.user-app-shell .ua-set .tx-pg{
  min-width:32px; height:32px; padding:0 8px; display:inline-grid; place-items:center; border:0; border-radius:var(--ua-radius-sm);
  background:transparent; color:var(--ua-text-2); font:inherit; font-size:13px; font-weight:600; cursor:pointer;
  transition:background-color var(--ua-d-fast) ease, color var(--ua-d-fast) ease;
}
.user-app-shell .ua-set .tx-pg:hover:not(:disabled){ background:var(--ua-tint-2); color:var(--ua-text) }
.user-app-shell .ua-set .tx-pg.is-on{ background:var(--ua-tint-2); color:var(--ua-text); box-shadow:inset 0 0 0 1px var(--ua-border-2) }
.user-app-shell .ua-set .tx-pg:disabled:not(.is-on){ opacity:.35; cursor:default }
.user-app-shell .ua-set .tx-pg:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:1px }
.user-app-shell .ua-set .tx-pg-prev svg{ transform:rotate(180deg) }
/* phone: each payment is a 2-line row (date + amount / status + receipt), no header */
@media (max-width:640px){
  .user-app-shell .ua-set .tx-table thead{ display:none }
  .user-app-shell .ua-set .tx-table tr{ display:grid; grid-template-columns:1fr auto; gap:6px 12px; padding:12px 14px; border-bottom:1px solid var(--ua-border) }
  .user-app-shell .ua-set .tx-table tbody tr:last-child{ border-bottom:0 }
  .user-app-shell .ua-set .tx-table td{ padding:0; border:0 }
  .user-app-shell .ua-set .tx-table tbody tr:hover td{ background:none }
  .user-app-shell .ua-set .tx-table td:nth-child(2){ grid-row:2 }
  .user-app-shell .ua-set .tx-amt{ text-align:right }
  .user-app-shell .ua-set .tx-foot{ padding:10px 14px }
}

/* GP 2026-10-24 — Ads Tracking: option ก preview (campaigns stopped by the plan / payment failing) */
.user-app-shell .ads-stop{ display:flex; align-items:flex-start; gap:12px; margin:0 0 16px; padding:14px 16px; border-radius:var(--ua-radius); border:1px solid var(--ua-danger-line); background:var(--ua-danger-soft); color:var(--ua-text-2) }
.user-app-shell .ads-stop > svg{ flex:0 0 auto; margin-top:2px; color:var(--ua-danger) }
.user-app-shell .ads-stop-body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; font-size:13.5px; line-height:1.6 }
.user-app-shell .ads-stop-body b{ color:var(--ua-text); font-size:14.5px }
.user-app-shell .ads-stop-body .tier-badge{ vertical-align:1px }
.user-app-shell .ads-stop .btn{ flex:0 0 auto; align-self:center; white-space:nowrap }
.user-app-shell .ads-stop.is-grace{ border-color:color-mix(in srgb, var(--ua-status-warn-text) 40%, transparent); background:color-mix(in srgb, var(--ua-status-warn-text) 10%, transparent) }
.user-app-shell .ads-stop.is-grace > svg{ color:var(--ua-status-warn-text) }
@media (max-width: 640px){ .user-app-shell .ads-stop{ flex-wrap:wrap } .user-app-shell .ads-stop .btn{ width:100%; justify-content:center } }

/* GP 2026-10-25 — Ads Tracking: the campaign's Meta pixel (status dot + word per pixel; an unconnected pixel blocks) */
html[data-ua-theme] .ads-px-list{ display:flex; flex-direction:column; gap:6px; max-height:268px; overflow-y:auto }   /* scrolls only past ~5 rows; the mouse wheel must still reach the pop-up (no overscroll contain) */
html[data-ua-theme] .ads-px-row{ display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:10px 12px; border-radius:var(--ua-radius-sm); border:1px solid var(--ua-border); background:var(--ua-tint); color:var(--ua-text); font:inherit; font-size:13.5px; text-align:left; cursor:pointer; transition:border-color var(--ua-d-fast) var(--ua-ease), background var(--ua-d-fast) var(--ua-ease) }
html[data-ua-theme] .ads-px-row:hover:not(:disabled){ background:var(--ua-tint-2) }
html[data-ua-theme] .ads-px-row.is-on{ border-color:var(--ua-accent-line); background:var(--ua-accent-soft) }
html[data-ua-theme] .ads-px-row:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
html[data-ua-theme] .ads-px-row.is-none .ads-px-name{ font-weight:500; color:var(--ua-text-2) }
html[data-ua-theme] .ads-px-radio{ width:16px; height:16px; flex:0 0 16px; border-radius:50%; border:2px solid var(--ua-border-2); box-sizing:border-box }
html[data-ua-theme] .ads-px-row.is-on .ads-px-radio{ border-color:var(--ua-accent-text); box-shadow:inset 0 0 0 3px var(--ua-glass-solid, #fff); background:var(--ua-accent-text) }
html[data-ua-theme] .ads-px-row .ads-px-st{ margin-left:auto }
html[data-ua-theme] .ads-px-name{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600 }
html[data-ua-theme] .ads-px-id{ font-family:var(--ua-font-mono, ui-monospace, monospace); font-size:12px; color:var(--ua-text-muted) }
html[data-ua-theme] .ads-px-dot{ width:8px; height:8px; border-radius:50%; flex:0 0 8px; background:var(--ua-text-muted) }
html[data-ua-theme] .ads-px-dot.is-ok{ background:var(--ua-status-success-text) } html[data-ua-theme] .ads-px-dot.is-no{ background:var(--ua-danger) } html[data-ua-theme] .ads-px-dot.is-warn{ background:var(--ua-status-warn-text) }
html[data-ua-theme] .ads-px-st{ font-size:12px; white-space:nowrap } html[data-ua-theme] .ads-px-st.is-ok{ color:var(--ua-status-success-text) } html[data-ua-theme] .ads-px-st.is-no{ color:var(--ua-danger) } html[data-ua-theme] .ads-px-st.is-warn{ color:var(--ua-status-warn-text) } html[data-ua-theme] .ads-px-st.is-off{ color:var(--ua-text-muted) }
html[data-ua-theme] .ads-px-link{ display:inline; padding:0; border:0; background:none; font:inherit; color:var(--ua-accent-text); font-weight:600; text-decoration:underline; text-underline-offset:2px; cursor:pointer }
html[data-ua-theme] .ads-px-link:hover{ text-decoration-thickness:2px }
html[data-ua-theme] .ads-px-link:focus-visible{ outline:2px solid var(--ua-accent-text); outline-offset:2px; border-radius:3px }
/* GP 2026-10-26 — Conversions: provider under the campaign name */
html[data-ua-theme] .ads-conv-prov{ margin-top:3px; color:var(--ua-text-muted); font-size:12px }
html[data-ua-theme] .ads-px-go{ align-self:flex-start }
html[data-ua-theme] .ads-px .is-disabled{ opacity:.6; pointer-events:none }

/* GP 2026-10-26 (Owner) — Delete Pixel: which campaigns send their deposits to it, and what changes (plain words) */
html[data-ua-theme] .px-del-used{ margin-top:14px; padding:14px 16px; border:1px solid color-mix(in srgb, var(--ua-status-warn-text) 38%, transparent); border-radius:12px; background:color-mix(in srgb, var(--ua-status-warn-text) 8%, transparent); color:var(--ua-text-2); font-size:13.5px; line-height:1.55 }
html[data-ua-theme] .px-del-used-h{ display:block; color:var(--ua-status-warn-text); font-size:14px }
html[data-ua-theme] .px-del-cmps{ margin:6px 0 12px; padding-left:18px; color:var(--ua-text); font-weight:600 }
html[data-ua-theme] .px-del-cmps .px-del-more{ color:var(--ua-text-muted); font-weight:500; list-style:none; margin-left:-18px }
html[data-ua-theme] .px-del-if{ color:var(--ua-text); font-weight:700 }
html[data-ua-theme] .px-del-effects{ margin:6px 0 0; padding:0; list-style:none; display:grid; gap:8px }
html[data-ua-theme] .px-del-effects li{ position:relative; padding-left:20px }
html[data-ua-theme] .px-del-effects li::before{ content:""; position:absolute; left:3px; top:.55em; width:8px; height:8px; border-radius:50% }
html[data-ua-theme] .px-del-effects .is-ok::before{ background:var(--ua-status-success-text) }
html[data-ua-theme] .px-del-effects .is-lose{ color:var(--ua-text) }
html[data-ua-theme] .px-del-effects .is-lose::before{ background:var(--ua-danger) }
html[data-ua-theme] .px-del-tip{ margin:12px 0 0; color:var(--ua-text-muted); font-size:13px }
/* GP 2026-10-27 (audit) - the 14px copy icon on a page card gets a 26px tap area without moving the layout */
.user-app-shell .page-card .url .copy:not(.phone *){ position:relative }
.user-app-shell .page-card .url .copy:not(.phone *)::after{ content:""; position:absolute; inset:-6px }
/* GP 2026-10-27 (audit, 320px) - Page Editor column, Analytics feed table and the Meta DV code row no longer push past a 320px screen */
.user-app-shell .editor2-grid{ grid-template-columns:minmax(0, 1fr) 380px } .user-app-shell .editor2-grid > *{ min-width:0 }
@media (max-width:1100px){ .user-app-shell .editor2-grid{ grid-template-columns:minmax(0, 1fr) } }
.user-app-shell .ua-integ-sec--dv .url-display-row{ flex:1 1 auto; min-width:0 } .user-app-shell .ua-integ-sec--dv .url-display-row .url-slug{ overflow-wrap:anywhere }
/* GP 2026-10-27 (Owner) - Page Editor R5: block summary, setting groups, save status, list <-> preview, full-screen preview on phone / iPad */
.user-app-shell .block-head .info .sum{ margin-top:2px; min-width:0; font-size:12.5px; line-height:1.4; color:var(--ua-text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.user-app-shell .block-item{ scroll-margin-top:96px }
.user-app-shell .ed-grps{ display:flex; flex-direction:column }
.user-app-shell .ed-grp{ display:flex; flex-direction:column; gap:10px; padding:14px 0; min-width:0 } .user-app-shell .ed-grp:first-child{ padding-top:2px } .user-app-shell .ed-grp:last-child{ padding-bottom:2px }
.user-app-shell .ed-grp + .ed-grp{ border-top:1px solid var(--ua-border) }
.user-app-shell .ed-grp-title{ margin:0; font-size:13px; font-weight:650; line-height:1.3; letter-spacing:0; text-transform:none; color:var(--ua-text) }
.user-app-shell .ed-grp-body{ display:flex; flex-direction:column; gap:10px; min-width:0 }
.user-app-shell .ed-pair{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px }
@media (max-width:560px){ .user-app-shell .ed-pair{ grid-template-columns:minmax(0, 1fr) } }
.user-app-shell .ed-bar{ display:flex; align-items:center; justify-content:space-between; gap:10px 16px; flex-wrap:wrap; margin-bottom:12px; min-height:36px }
.user-app-shell .ed-status{ display:inline-flex; align-items:center; gap:8px; min-width:0; font-size:13px; line-height:1.4; color:var(--ua-text-2) }
.user-app-shell .ed-status-dot{ flex:none; width:8px; height:8px; border-radius:50%; background:var(--ua-status-online-text) } .user-app-shell .ed-status.is-dirty .ed-status-dot{ background:var(--ua-status-warn-text) }
.user-app-shell .ed-status-off{ color:var(--ua-status-warn-text) } .user-app-shell .ed-live{ flex:none; text-decoration:none }
.user-app-shell .phone-head{ flex-wrap:wrap; row-gap:4px } .user-app-shell .phone-hint{ margin-left:auto; font-size:12px; font-weight:500; color:var(--ua-text-muted) }
.user-app-shell .pv-block{ position:relative; border-radius:10px; cursor:pointer; outline:2px solid transparent; outline-offset:3px; transition:outline-color .15s ease }
@media (hover:hover){ .user-app-shell .pv-block:hover{ outline-color:color-mix(in srgb, var(--acc) 45%, transparent) } }
/* GP 2026-10-28 (Owner) — the chosen block is no longer ringed (the ring hid its own border); while its settings are open the
   other blocks fade instead (.pv-focus). Keyboard focus keeps a ring. */
.user-app-shell .pv-block:focus-visible{ outline-color:var(--ua-focus) }
.user-app-shell .pv-block{ transition:outline-color .15s ease, opacity .22s ease, filter .22s ease }
.user-app-shell .pv-focus > *:not(.is-focus){ opacity:.32; filter:saturate(.6) }
@media (hover:hover){ .user-app-shell .pv-focus > .pv-block:not(.is-focus):hover{ opacity:.6; outline-color:transparent } .user-app-shell .pv-focus .pv-block.is-focus:hover{ outline-color:transparent } }
.user-app-shell .ed-pv-fab{ display:none }
@media (max-width:1100px){
  .user-app-shell .ed-pv-inline{ display:none }
  .user-app-shell .ed-pv-fab{ position:fixed; z-index:61; right:max(16px, env(safe-area-inset-right, 0px)); bottom:max(16px, env(safe-area-inset-bottom, 0px)); display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:0 20px; border-radius:999px; border:1px solid var(--ua-accent-line); background:var(--ua-glass-solid); color:var(--ua-text); font:inherit; font-size:14px; font-weight:600; box-shadow:0 12px 28px -12px rgba(0,0,0,.6); transition:transform .2s cubic-bezier(.22,1,.36,1) }
  .user-app-shell .ed-pv-fab.is-raised{ transform:translateY(-76px) }   /* clear of the unsaved-changes bar */
}
@media (max-width:440px){ .user-app-shell .ed-pv-fab.is-raised{ transform:translateY(-124px) } }
.user-app-shell .ed-pv-fab:focus-visible, .user-app-shell .ed-pv-close:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
.user-app-shell .ed-pv-sheet{ position:fixed; inset:0; z-index:79; display:flex; flex-direction:column; align-items:center; overflow-y:auto; overscroll-behavior:contain; padding:max(16px, env(safe-area-inset-top, 0px)) 16px 24px; background:var(--ua-scrim); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px) }
.user-app-shell .ed-pv-sheet .phone-wrap{ position:static; width:100%; max-width:372px; margin:auto 0 }
.user-app-shell .ed-pv-sheet .phone-head{ padding-right:52px; color:var(--ua-text) }
.user-app-shell .ed-pv-sheet .phone{ height:min(737px, calc(100dvh - 96px)) }
.user-app-shell .ed-pv-close{ position:fixed; z-index:1; top:max(12px, env(safe-area-inset-top, 0px)); right:max(12px, env(safe-area-inset-right, 0px)); display:grid; place-items:center; width:44px; height:44px; border-radius:50%; border:1px solid var(--ua-border-2); background:var(--ua-glass-solid); color:var(--ua-text) }
@media (prefers-reduced-motion:no-preference){ .user-app-shell .ed-pv-sheet{ animation:ua-scrim-in var(--ua-d-fast) ease both } }
@media (prefers-reduced-motion:reduce){ .user-app-shell .ed-pv-fab, .user-app-shell .pv-block{ transition:none } }
@media (max-width:440px){ .user-app-shell .ed-img-grid{ grid-template-columns:minmax(0, 1fr) !important } }   /* 2 / 4 image uploaders: one per row so Delete + Upload fit */
html[data-ua-theme] .abm-tab{ flex:1 1 auto; min-width:max-content }   /* Add Block categories wrap to a 2nd row instead of overlapping (longer TH names) */
/* GP 2026-10-27 (Owner) - block settings in the card's navy family, each layer clearly apart: card > recessed settings box > raised panels.
   (the box used --bg-2, a neutral near-black, and the panels a 2% white wash, so both read gray next to the navy card) */
.user-app-shell .block-row .block-body{ background:var(--ua-ed-well); border-color:var(--ua-border) }
.user-app-shell .block-row .block-body .control-panel{ background:var(--ua-ed-raised); border-color:var(--ua-border-2) }
.user-app-shell .block-row .block-body .control-panel-head{ border-bottom-color:var(--ua-border) }
/* GP 2026-10-27 (Owner) - colour picker: Solid / Gradient / Image is a segmented toggle; the selected segment is a solid
   pill in both themes (it was mint text on a 12% mint wash - unreadable on the light panel); background-image position grid */
html[data-ua-theme] .cp-panel2 .cp-seg{ background:var(--ua-tint-2); border-color:var(--ua-border) }
html[data-ua-theme] .cp-panel2 .cp-seg button{ color:var(--ua-text-2); font-size:12px; padding:7px 0; transition:background-color .15s, color .15s, box-shadow .15s }
html[data-ua-theme] .cp-panel2 .cp-seg button:hover{ color:var(--ua-text) }
html[data-ua-theme="dark"] .cp-panel2 .cp-seg button.on{ background:var(--ua-surface-3); color:var(--ua-text); box-shadow:inset 0 0 0 1px var(--ua-border-2), 0 1px 2px rgba(0,0,0,.35) }
html[data-ua-theme="light"] .cp-panel2 .cp-seg button.on{ background:#FFFFFF; color:var(--ua-text); box-shadow:inset 0 0 0 1px var(--ua-border-2), 0 1px 2px rgba(20,45,95,.18) }
html[data-ua-theme] .cp-panel2 .cp-seg button:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:1px }
html[data-ua-theme] .cp-panel2 .cp-mode button{ font-size:13px; padding:8px 0 }
/* background image settings: label | HiLynk dropdown rows; the dropdown follows the picker theme (selected item was mint on mint) */
.cp-bgset{ display:flex; flex-direction:column; gap:8px; padding-top:2px }
.cp-bgset-row{ display:grid; grid-template-columns:92px minmax(0, 1fr); align-items:center; gap:10px }
.cp-bgset-row > span{ font-size:12.5px; font-weight:600; color:var(--ua-text-2, #C6D0E1) }
.cp-bgset-row .dd{ position:relative; min-width:0 } .cp-bgset-row .dd-trigger{ height:34px }
.cp-bgset-hint{ margin:2px 0 0; font-size:11.5px; line-height:1.5; color:var(--ua-text-muted, #9FACC3) }
html[data-ua-theme] .cp-panel2 .dd-menu{ background:var(--elev); border-color:var(--line-2); z-index:2 }
html[data-ua-theme] .cp-panel2 .dd-item{ color:var(--ua-text-2) } html[data-ua-theme] .cp-panel2 .dd-item:hover{ background:var(--ua-tint-2); color:var(--ua-text) }
html[data-ua-theme] .cp-panel2 .dd-item.on{ background:var(--ua-accent-soft); color:var(--ua-accent-text) }
html[data-ua-theme] .cp-panel2 .dd-trigger:focus-visible, html[data-ua-theme] .cp-panel2 .dd-item:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:1px }
@media (prefers-reduced-motion:reduce){ html[data-ua-theme] .cp-panel2 .cp-seg button{ transition:none } }
/* GP 2026-10-27 (Owner) - animated page backgrounds (DEMO). Effects move with transform / opacity only (blur is static);
   prefers-reduced-motion = still frame. Colours come from --c1 / --c2 set on .hl-abg. */
.hl-abg{ position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none; background:var(--bg, #070A14); contain:strict }
.hl-abg canvas{ position:absolute; inset:0; width:100%; height:100% }
.hl-abg i{ position:absolute; display:block }
.hl-abg-aurora i{ width:75%; height:55%; border-radius:50%; filter:blur(36px); opacity:.6; will-change:transform }
.hl-abg-aurora i:nth-child(1){ left:-20%; top:-12%; background:var(--c1); animation:hlAur1 16s ease-in-out infinite alternate }
.hl-abg-aurora i:nth-child(2){ right:-25%; top:22%; background:var(--c2); animation:hlAur2 19s ease-in-out infinite alternate }
.hl-abg-aurora i:nth-child(3){ left:5%; bottom:-22%; background:var(--c1); opacity:.38; animation:hlAur3 23s ease-in-out infinite alternate }
@keyframes hlAur1{ to{ transform:translate(35%, 30%) scale(1.2) } } @keyframes hlAur2{ to{ transform:translate(-40%, 18%) scale(.9) } } @keyframes hlAur3{ to{ transform:translate(25%, -35%) scale(1.15) } }
.hl-abg-flow i{ top:-25%; bottom:-25%; left:0; width:400%; opacity:.9; background:linear-gradient(110deg, var(--c1), var(--c2) 12.5%, var(--c1) 25%, var(--c2) 37.5%, var(--c1) 50%, var(--c2) 62.5%, var(--c1) 75%, var(--c2) 87.5%, var(--c1)); animation:hlFlow 22s linear infinite; will-change:transform }
.hl-abg-flow::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, color-mix(in srgb, var(--bg, #070A14) 15%, transparent), color-mix(in srgb, var(--bg, #070A14) 55%, transparent)) }
@keyframes hlFlow{ to{ transform:translateX(-50%) } }
.hl-abg-waves{ background:linear-gradient(180deg, var(--bg, #070A14) 40%, var(--c1a)) }
.hl-wave{ position:absolute; left:0; bottom:0; width:200%; will-change:transform } .hl-wave svg{ display:block; width:100%; height:100% }
.hl-wave-0{ height:34%; animation:hlWave 26s linear infinite } .hl-wave-0 path{ fill:var(--c2); opacity:.22 }
.hl-wave-1{ height:26%; animation:hlWave 18s linear infinite reverse } .hl-wave-1 path{ fill:var(--c1); opacity:.3 }
.hl-wave-2{ height:18%; animation:hlWave 12s linear infinite } .hl-wave-2 path{ fill:var(--c1); opacity:.5 }
@keyframes hlWave{ to{ transform:translateX(-50%) } }
.hl-grid-lines{ inset:0; background-image:linear-gradient(var(--c1a) 1px, transparent 1px), linear-gradient(90deg, var(--c1a) 1px, transparent 1px); background-size:26px 26px; -webkit-mask-image:radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%); mask-image:radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%) }
.hl-grid-glow{ width:70%; height:45%; left:-10%; top:-10%; border-radius:50%; background:radial-gradient(circle, var(--c2a), transparent 65%); animation:hlGlow 14s ease-in-out infinite alternate; will-change:transform }
@keyframes hlGlow{ to{ transform:translate(55%, 140%) } }
/* Ripple: rings grow out of the middle and fade (still frame = four rings at different sizes) */
.hl-abg-ripple{ background:radial-gradient(circle at 50% 45%, var(--c2a), var(--bg, #070A14) 70%) }
.hl-abg-ripple i{ left:50%; top:45%; width:70%; aspect-ratio:1 / 1; border-radius:50%; border:2px solid var(--c1); opacity:.5; transform:translate(-50%, -50%) scale(.3); animation:hlRip 9s cubic-bezier(.22,1,.36,1) infinite; will-change:transform, opacity }
.hl-abg-ripple i:nth-child(2){ border-color:var(--c2); transform:translate(-50%, -50%) scale(.7); animation-delay:-2.25s }
.hl-abg-ripple i:nth-child(3){ transform:translate(-50%, -50%) scale(1.1); animation-delay:-4.5s }
.hl-abg-ripple i:nth-child(4){ border-color:var(--c2); transform:translate(-50%, -50%) scale(1.5); animation-delay:-6.75s }
@keyframes hlRip{ 0%{ transform:translate(-50%, -50%) scale(.05); opacity:0 } 12%{ opacity:.85 } 100%{ transform:translate(-50%, -50%) scale(2); opacity:0 } }
/* Spotlight: three soft beams hanging from the top, sweeping slowly */
.hl-abg-beams{ background:linear-gradient(180deg, var(--bg, #070A14), color-mix(in srgb, var(--bg, #070A14) 90%, var(--c2))) }
.hl-abg-beams i{ top:-20%; left:50%; width:30%; height:140%; margin-left:-15%; border-radius:50%; transform-origin:50% 0; filter:blur(22px); opacity:.42; background:linear-gradient(180deg, var(--c1), transparent 78%); will-change:transform }
.hl-abg-beams i:nth-child(1){ transform:rotate(-24deg); animation:hlBeam1 13s ease-in-out infinite alternate }
.hl-abg-beams i:nth-child(2){ background:linear-gradient(180deg, var(--c2), transparent 78%); transform:rotate(6deg); animation:hlBeam2 17s ease-in-out infinite alternate }
.hl-abg-beams i:nth-child(3){ width:22%; margin-left:-11%; opacity:.3; transform:rotate(28deg); animation:hlBeam3 11s ease-in-out infinite alternate }
@keyframes hlBeam1{ to{ transform:rotate(14deg) } } @keyframes hlBeam2{ to{ transform:rotate(-20deg) } } @keyframes hlBeam3{ to{ transform:rotate(-6deg) } }
/* a light base (Owner 10-27: the base colour is selectable): stronger glows so they stay visible */
.hl-abg.is-light.hl-abg-aurora i{ opacity:.8 } .hl-abg.is-light.hl-abg-beams i{ opacity:.6 } .hl-abg.is-light.hl-abg-ripple i{ opacity:.75 }
@media (prefers-reduced-motion:reduce){ .hl-abg *, .hl-abg::after{ animation:none !important } }
/* picker: Animated tab */
.cp-anim{ display:flex; flex-direction:column; gap:12px }
.cp-anim-grid{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px }
.cp-anim-tile{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:4px 4px 6px; border-radius:10px; border:1px solid transparent; background:none; cursor:pointer; color:var(--ua-text-2, #C6D0E1); font:inherit }
.cp-anim-tile:hover{ background:var(--ua-tint, rgba(255,255,255,.04)) } .cp-anim-tile.on{ border-color:var(--ua-accent-line, #3B82F6); background:var(--ua-accent-soft, rgba(59,130,246,.14)); color:var(--ua-text, #F2F6FC) }
.cp-anim-tile:focus-visible{ outline:2px solid var(--ua-focus, #6EA8FF); outline-offset:1px }
.cp-anim-thumb{ position:relative; display:block; width:100%; aspect-ratio:1 / 1; border-radius:8px; overflow:hidden; box-shadow:inset 0 0 0 1px rgba(255,255,255,.08) }
.cp-anim-name{ font-size:11.5px; font-weight:600; line-height:1.2; text-align:center }
.cp-anim-colors{ display:flex; align-items:center; gap:6px; flex-wrap:wrap }
.cp-anim-l{ font-size:12.5px; font-weight:600; color:var(--ua-text-2, #C6D0E1); margin-right:4px }
.cp-anim-sep{ width:1px; height:20px; margin:0 4px; background:var(--ua-border-2, rgba(255,255,255,.2)) }
.cp-anim-pal{ width:22px; height:22px; padding:0; border-radius:50%; border:0; cursor:pointer; box-shadow:0 0 0 1px var(--ua-border-2, rgba(255,255,255,.2)) }
.cp-anim-pal.on{ box-shadow:0 0 0 2px var(--elev, #131D35), 0 0 0 4px var(--ua-accent-text, #8DBAFF) } .cp-anim-pal:focus-visible{ outline:2px solid var(--ua-focus, #6EA8FF); outline-offset:2px }
/* GP 2026-10-27 (Owner) - page background: a collapsible card like a block; settings inline; only a colour opens a pop-up */
.user-app-shell .ed-bg{ padding:0; margin-bottom:16px }
.user-app-shell .ed-bg-head{ display:flex; align-items:center; gap:12px; width:100%; padding:14px 16px; border:0; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; border-radius:inherit }
.user-app-shell .ed-bg-head:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:-2px }
.user-app-shell .ed-bg-sw{ position:relative; flex:none; width:36px; height:36px; border-radius:10px; overflow:hidden; box-shadow:inset 0 0 0 1px var(--ua-border-2) } .user-app-shell .ed-bg-sw > span{ position:absolute; inset:0 }
.user-app-shell .ed-bg-txt{ display:flex; flex-direction:column; gap:2px; flex:1; min-width:0 }
.user-app-shell .ed-bg-title{ font-size:14px; font-weight:650; color:var(--ua-text) } .user-app-shell .ed-bg-sum{ font-size:12.5px; color:var(--ua-text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.user-app-shell .ed-bg-chev{ flex:none; color:var(--ua-text-muted); transition:transform .2s cubic-bezier(.22,1,.36,1) } .user-app-shell .ed-bg.is-open .ed-bg-chev{ transform:rotate(180deg) }
/* opens / shuts with the block accordion (.block-collapse, 17.1); the content fades + settles like a block body */
.user-app-shell .ed-bg.is-open .block-collapse{ grid-template-rows:1fr; visibility:visible; transition:grid-template-rows 260ms var(--ua-ease), visibility 0s }
.user-app-shell .ed-bg-pad{ padding:0 16px 16px; opacity:0; transform:translateY(-6px); transition:opacity 200ms ease, transform 260ms var(--ua-ease) }
.user-app-shell .ed-bg.is-open .ed-bg-pad{ opacity:1; transform:none }
.user-app-shell .ed-bg-pad > .cp-inline{ padding:16px; border:1px solid var(--ua-border); border-radius:12px; background:var(--ua-ed-well) }
.cp-inline{ display:flex; flex-direction:column; gap:14px; min-width:0 }
html[data-ua-theme] .cp-inline .cp-seg{ background:var(--ua-tint-2); border-color:var(--ua-border) }
html[data-ua-theme] .cp-inline .cp-seg button{ color:var(--ua-text-2); font-size:12.5px; padding:8px 0; background:none; transition:background-color .15s, color .15s, box-shadow .15s }
html[data-ua-theme] .cp-inline .cp-seg button:hover{ color:var(--ua-text) } html[data-ua-theme] .cp-inline .cp-seg button:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:1px }
html[data-ua-theme="dark"] .cp-inline .cp-seg button.on{ background:var(--ua-ed-raised); color:var(--ua-text); box-shadow:inset 0 0 0 1px var(--ua-border-2), 0 1px 2px rgba(0,0,0,.35) }
html[data-ua-theme="light"] .cp-inline .cp-seg button.on{ background:#FFFFFF; color:var(--ua-text); box-shadow:inset 0 0 0 1px var(--ua-border-2), 0 1px 2px rgba(20,45,95,.18) }
html[data-ua-theme] .cp-inline .cp-mode button{ font-size:13px; padding:9px 0 }
html[data-ua-theme="light"] .cp-inline .cp-ctrl-row > div:nth-child(2){ background:rgba(20,45,95,.16) !important }
html[data-ua-theme="light"] .cp-inline :is(.cp-num, .cp-input-box){ background:rgba(20,45,95,.045) }
.cp-swpop{ display:inline-flex; align-items:center; gap:8px; height:38px; padding:0 12px 0 5px; border-radius:10px; border:1px solid var(--ua-border-2, rgba(255,255,255,.2)); background:var(--ua-tint, rgba(255,255,255,.04)); color:var(--ua-text, #F2F6FC); font:inherit; cursor:pointer; transition:border-color .15s, background-color .15s }
.cp-swpop:hover, .cp-swpop.is-open{ border-color:var(--ua-accent-line, #3B82F6) } .cp-swpop:focus-visible{ outline:2px solid var(--ua-focus, #6EA8FF); outline-offset:2px }
.cp-swpop-chip{ position:relative; width:28px; height:28px; border-radius:7px; overflow:hidden; box-shadow:inset 0 0 0 1px rgba(255,255,255,.2) } .cp-swpop-chip > span{ position:absolute; inset:0 }
.cp-swpop-hex{ font-family:var(--mono, ui-monospace, monospace); font-size:12.5px }
.cp-panel2.cp-swpop-panel{ width:300px }
.cp-pic{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:14px 20px; align-items:start }
.cp-pic-media{ display:flex; flex-direction:column; gap:10px; min-width:0 } .cp-pic-side{ display:flex; flex-direction:column; gap:12px; min-width:0 }   /* settings, then Change / Remove (Owner 10-27); with no image it still holds the upload button so the preview keeps its size */ .cp-pic-actions{ display:flex; gap:8px; flex-wrap:wrap } .cp-pic-actions .btn{ flex:1 1 auto; justify-content:center }
/* 12 tiles: rows of 3 / 4 / 6 by the space the card has, never a short last row */
.cp-inline .cp-anim{ container-type:inline-size } .cp-inline .cp-anim-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)) }
@container (min-width: 380px){ .cp-inline .cp-anim-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)) } }
@container (min-width: 600px){ .cp-inline .cp-anim-grid{ grid-template-columns:repeat(6, minmax(0, 1fr)) } }
.cp-anim-thumb .hl-abg-beams i{ filter:blur(5px); opacity:.6 }   /* the 22px page blur washes a small tile out */
@media (prefers-reduced-motion:reduce){ .user-app-shell .ed-bg-chev, .cp-swpop, html[data-ua-theme] .cp-inline .cp-seg button{ transition:none } }
/* inline gradient (Owner 2026-10-27): a short bar with a rounded-square handle per colour inside it, then one row like Animated:
   colour boxes (Solid swatch size, no hex) + add | the 2-colour sets */
.cp-gbar{ position:relative; height:28px; border-radius:9px }
.cp-gbar-ends{ position:absolute; inset:0; border-radius:inherit }
.cp-gbar-fill{ position:absolute; inset:0 14px }   /* = the handle travel, so each handle sits on its own colour */
.cp-gbar::after{ content:""; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 0 0 1px var(--ua-border-2, rgba(255,255,255,.2)); pointer-events:none }
.cp-gbar-hs{ position:absolute; inset:0 14px; z-index:1 }
.cp-gbar-h{ position:absolute; top:50%; width:20px; height:20px; padding:2px; border-radius:6px; background:#FFFFFF; box-shadow:0 0 0 1px rgba(10,20,40,.35), 0 2px 5px rgba(0,0,0,.35); transform:translate(-50%, -50%); cursor:grab; touch-action:none; transition:box-shadow .15s }
.cp-gbar-h > span{ display:block; width:100%; height:100%; border-radius:4px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.12) }
.cp-gbar-h::before{ content:""; position:absolute; inset:-6px }
.cp-gbar-h:active{ cursor:grabbing } .cp-gbar-h.on{ z-index:1; box-shadow:0 0 0 2px var(--ua-accent-text, #8DBAFF), 0 2px 6px rgba(0,0,0,.4) }
.cp-gbar-h:focus-visible{ outline:2px solid var(--ua-focus, #6EA8FF); outline-offset:3px }
@media (pointer: coarse){ .cp-gbar-h::before{ inset:-10px } }
.cp-gcolors{ gap:10px 8px }
.cp-gstop{ position:relative; display:flex }
.cp-swpop.is-compact{ width:38px; padding:0; justify-content:center } .cp-gstop.is-active .cp-swpop{ border-color:var(--ua-accent-line, #3B82F6) }
.cp-gstop-x{ position:absolute; top:-7px; right:-7px; display:grid; place-items:center; width:20px; height:20px; padding:0; border-radius:50%; border:1px solid var(--ua-border-2, rgba(255,255,255,.25)); background:var(--ua-surface-2, #131D35); color:var(--ua-text-2, #C6D0E1); cursor:pointer }
.cp-gstop-x:hover{ color:var(--ua-danger, #F87171); border-color:var(--ua-danger-line, rgba(248,113,113,.5)) } .cp-gstop-x:focus-visible{ outline:2px solid var(--ua-focus, #6EA8FF); outline-offset:1px }
.cp-gstop-add{ display:grid; place-items:center; width:38px; height:38px; padding:0; border-radius:10px; border:1px dashed var(--ua-border-2, rgba(255,255,255,.25)); background:transparent; color:var(--ua-text-2, #C6D0E1); cursor:pointer; transition:border-color .15s, color .15s, background-color .15s }
.cp-gstop-add:hover{ border-color:var(--ua-accent-line, #3B82F6); color:var(--ua-text, #F2F6FC); background:var(--ua-tint, rgba(255,255,255,.04)) } .cp-gstop-add:focus-visible{ outline:2px solid var(--ua-focus, #6EA8FF); outline-offset:2px }
.cp-gstop-x::before{ content:""; position:absolute; inset:-3px; border-radius:50% } @media (pointer: coarse){ .cp-gstop-x::before{ inset:-5px } .cp-gcolors{ gap:12px } }   /* bigger tap area, same look (no overlap on the next box) */
@media (prefers-reduced-motion:reduce){ .cp-gstop-add, .cp-gbar-h{ transition:none } }
/* Owner 10-27 - motion: segmented toggles slide their highlight to the chosen option; a new mode's settings fade in */
.cp-seg.cp-seg-slide{ position:relative; isolation:isolate }
.cp-seg.cp-seg-slide::before{ content:""; position:absolute; z-index:-1; top:4px; bottom:4px; left:4px; width:calc((100% - 8px - (var(--n) - 1) * 4px) / var(--n)); border-radius:7px; background:var(--acc-soft); transform:translateX(calc(var(--i) * (100% + 4px))); transition:transform 280ms var(--ua-ease, cubic-bezier(.22,1,.36,1)) }
html[data-ua-theme] .cp-seg.cp-seg-slide > button.on{ background:transparent; box-shadow:none }
.cp-seg.cp-seg-slide > button.on{ background:transparent }
html[data-ua-theme="dark"] .cp-inline .cp-seg-slide::before{ background:var(--ua-ed-raised); box-shadow:inset 0 0 0 1px var(--ua-border-2), 0 1px 2px rgba(0,0,0,.35) }
html[data-ua-theme="dark"] .cp-panel2 .cp-seg-slide::before{ background:var(--ua-surface-3); box-shadow:inset 0 0 0 1px var(--ua-border-2), 0 1px 2px rgba(0,0,0,.35) }
html[data-ua-theme="light"] .cp-seg-slide::before{ background:#FFFFFF; box-shadow:inset 0 0 0 1px var(--ua-border-2), 0 1px 2px rgba(20,45,95,.18) }
.cp-tabpane{ min-width:0; animation:cpPaneIn 240ms var(--ua-ease, cubic-bezier(.22,1,.36,1)) both }
@keyframes cpPaneIn{ from{ opacity:0; transform:translateY(6px) } }
@keyframes cpPaneFade{ from{ opacity:0 } }
.cp-anim-l2{ margin-left:8px }
@media (prefers-reduced-motion:reduce){
  .cp-seg.cp-seg-slide::before{ transition:none }
  .cp-tabpane{ animation-name:cpPaneFade; animation-duration:150ms }
  .user-app-shell .ed-bg.is-open .block-collapse, .user-app-shell .ed-bg-pad{ transition:none }
}
/* Owner 10-27 - Image / Animated locked for Free: visible, not usable (thumbnails keep moving; the lock says why on hover) */
.cp-pic-actions .btn.is-locked{ opacity:.55; cursor:not-allowed; transform:none }
.cp-swpop.is-locked, .cp-anim-pal.is-locked{ opacity:.55; cursor:not-allowed } .cp-swpop.is-locked:hover{ border-color:var(--ua-border-2, rgba(255,255,255,.2)) }
.cp-anim-tile{ position:relative } .cp-anim-tile.is-locked{ cursor:not-allowed } .cp-anim-tile.is-locked:hover{ background:none }
.cp-anim-lock{ position:absolute; top:8px; left:8px; z-index:1; display:grid; place-items:center; width:20px; height:20px; border-radius:6px; background:rgba(7,10,20,.72); color:#FFFFFF; box-shadow:inset 0 0 0 1px rgba(255,255,255,.22) }
/* Owner 10-27 - "Upgrade to unlock" at the bottom-right of the locked Image / Animated section, in the theme's gold (warn) text colour */
.cp-lock-note{ display:flex; align-items:center; justify-content:flex-end; gap:6px; margin:0; font-size:12.5px; font-weight:650; color:var(--ua-status-warn-text, #F5C866) }
.cp-pic > .cp-pic-side{ align-self:stretch } .cp-pic-side > .cp-lock-note{ margin-top:auto }   /* Image: in the button column, bottom-right (level with the preview bottom) */
/* Owner 10-27 - block setting sliders = the gradient Angle look (6px track, 14px white thumb) + a faint blue fill up to the thumb.
   The input stays a native range (keyboard / touch / screen reader); it is 20px tall so the hit area stays, the track draws inside it. */
:root{ --sl-track:rgba(148,172,220,.2); --sl-fill:rgba(110,168,255,.5); --sl-thumb-edge:rgba(6,11,24,.35) }
html[data-ua-theme="light"]{ --sl-track:rgba(20,45,95,.15); --sl-fill:rgba(37,99,235,.32); --sl-thumb-edge:rgba(20,45,95,.32) }
html .slider-modern input[type="range"]{ height:20px; margin:0; background:transparent; border-radius:0; box-shadow:none }
html .slider-modern input[type="range"]::-webkit-slider-runnable-track{ height:6px; border-radius:999px; background:linear-gradient(to right, var(--sl-fill) var(--p, 0%), var(--sl-track) var(--p, 0%)) }
html .slider-modern input[type="range"]::-moz-range-track{ height:6px; border-radius:999px; background:linear-gradient(to right, var(--sl-fill) var(--p, 0%), var(--sl-track) var(--p, 0%)) }
html .slider-modern input[type="range"]::-webkit-slider-thumb{ width:14px; height:14px; margin-top:-4px; border:0; background:#FFFFFF; box-shadow:0 0 0 1px var(--sl-thumb-edge), 0 1px 4px rgba(0,0,0,.45); transition:box-shadow .15s }
html .slider-modern input[type="range"]::-moz-range-thumb{ width:14px; height:14px; border:0; background:#FFFFFF; box-shadow:0 0 0 1px var(--sl-thumb-edge), 0 1px 4px rgba(0,0,0,.45); transition:box-shadow .15s }
html .slider-modern input[type="range"]:hover::-webkit-slider-thumb, html .slider-modern input[type="range"]:active::-webkit-slider-thumb{ box-shadow:0 0 0 1px var(--sl-thumb-edge), 0 0 0 5px var(--sl-fill), 0 1px 4px rgba(0,0,0,.45) }
html .slider-modern input[type="range"]:hover::-moz-range-thumb, html .slider-modern input[type="range"]:active::-moz-range-thumb{ box-shadow:0 0 0 1px var(--sl-thumb-edge), 0 0 0 5px var(--sl-fill), 0 1px 4px rgba(0,0,0,.45) }
html .slider-modern input[type="range"]:focus-visible{ box-shadow:none; outline:none }
html .slider-modern input[type="range"]:focus-visible::-webkit-slider-thumb{ box-shadow:0 0 0 2px var(--ua-bg, #060B18), 0 0 0 4px var(--ua-focus, #6EA8FF) }
html .slider-modern input[type="range"]:focus-visible::-moz-range-thumb{ box-shadow:0 0 0 2px var(--ua-bg, #060B18), 0 0 0 4px var(--ua-focus, #6EA8FF) }
@media (prefers-reduced-motion:reduce){ html .slider-modern input[type="range"]::-webkit-slider-thumb{ transition:none } html .slider-modern input[type="range"]::-moz-range-thumb{ transition:none } }   /* one rule per engine: a mixed list is dropped whole */
/* Owner 10-27 - a slider is one row like the gradient Angle row: label · slider · a number box you can type in.
   A narrow settings box (phone) stacks it: label + number on top, the slider full width below. */
.slider-modern.sl-row{ display:block; container-type:inline-size }
.sl-row-in{ display:grid; grid-template-columns:112px minmax(0, 1fr) 72px; grid-template-areas:"label range num"; align-items:center; gap:12px }
.sl-row-in > .sl-label{ grid-area:label; min-width:0; line-height:1.3 }
.sl-row-in > input[type="range"]{ grid-area:range; width:100% }
.sl-row-in > .sl-num{ grid-area:num; width:72px; height:30px; padding:0 8px; border-radius:8px; border-color:var(--ua-border-2, rgba(148,172,220,.26)); background:var(--ua-tint, rgba(148,172,220,.06)); cursor:text }
.sl-num input{ font-size:12.5px; font-weight:600; color:var(--ua-text, #F2F6FC); -moz-appearance:textfield; appearance:textfield }
.sl-num span{ font-size:11px; color:var(--ua-text-muted, #9FACC3) }
.sl-num:focus-within{ border-color:var(--ua-focus, #6EA8FF); box-shadow:0 0 0 2px color-mix(in srgb, var(--ua-focus, #6EA8FF) 28%, transparent) }
html[data-ua-theme="light"] .sl-row-in > .sl-num{ background:rgba(20,45,95,.045) }
@container (max-width: 300px){ .sl-row-in{ grid-template-columns:minmax(0, 1fr) 72px; grid-template-areas:"label num" "range range"; row-gap:6px } }
/* Owner 10-27 - Text Style: Align (3 centred text icons) and Color share one row; wraps when the box is narrow */
.ts-pair{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 28px }
html .align-btn{ display:grid; place-items:center; width:40px; height:36px; min-width:0; padding:0; transition:background-color .15s, color .15s }
html .align-btn svg{ display:block }
html .align-btn:focus-visible{ outline:2px solid var(--ua-focus, #6EA8FF); outline-offset:-2px }
/* Owner 10-27 - every block colour button = the size of the page background's Solid colour box (38px, 28px chip, 12.5px hex) */
html .cp-trigger-minimal{ height:38px; padding:0 12px 0 5px; gap:8px; border-radius:10px; border:1px solid var(--ua-border-2, rgba(148,172,220,.26)); background:var(--ua-tint, rgba(148,172,220,.06)); color:var(--ua-text, #F2F6FC); transition:border-color .15s, background-color .15s }
html .cp-trigger-minimal:hover{ background:var(--ua-tint, rgba(148,172,220,.06)); border-color:var(--ua-accent-line, #3B82F6) }
html .cp-trigger-minimal:focus-visible{ outline:2px solid var(--ua-focus, #6EA8FF); outline-offset:2px }
html .cp-trigger-minimal .preview{ width:28px; height:28px; border:0; border-radius:7px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.2) }
html .cp-trigger-minimal .preview > span{ border-radius:inherit !important }
html .cp-trigger-minimal .label{ font-family:var(--mono, ui-monospace, monospace); font-size:12.5px; color:var(--ua-text, #F2F6FC) }
/* Owner 10-27 - Border & Radius: the rows the switch adds slide open / shut (same grid 0fr → 1fr as the block accordion).
   The negative margin cancels the panel's 14px gap while shut; shut = visibility hidden, so the controls leave the tab order. */
.cp-reveal{ display:grid; grid-template-rows:0fr; margin:-14px -4px 0; visibility:hidden; transition:grid-template-rows 240ms var(--ua-ease, cubic-bezier(.22,1,.36,1)), visibility 0s linear 240ms }
.cp-reveal.is-open{ grid-template-rows:1fr; visibility:visible; transition:grid-template-rows 240ms var(--ua-ease, cubic-bezier(.22,1,.36,1)), visibility 0s }
.cp-reveal-in{ min-height:0; overflow:hidden; display:flex; flex-direction:column; gap:14px; padding:0 4px; opacity:0; transform:translateY(-4px); transition:opacity 200ms ease, transform 240ms var(--ua-ease, cubic-bezier(.22,1,.36,1)) }
.cp-reveal.is-open > .cp-reveal-in{ opacity:1; transform:none }
.cp-reveal-in::before{ content:"" }   /* an empty first item: the 14px gap after it = the space above the rows, and it can shrink to 0 (padding cannot) */
@media (prefers-reduced-motion:reduce){ .cp-reveal, .cp-reveal.is-open{ transition:visibility 0s } .cp-reveal-in{ transform:none; transition:opacity 150ms ease } html .align-btn, html .cp-trigger-minimal{ transition:none } }
/* GP 2026-10-28 (Owner) - Button block: thumbnail / Featured layout + 8 animations. A button with none of the new props keeps
   its old markup + .anim-bounce/-shake/-tada (styles.css, untouched). Animations: one play, then idle, in a 3.2s cycle. */
.btn-x{ position:relative; box-sizing:border-box; overflow-wrap:anywhere }
.btn-x.has-thumb{ padding-inline:64px !important }   /* 64px tall like every button (inline style); the thumbnail never shrinks it. Owner 10-28: the same room on both sides, so the text sits where it does without a thumbnail */
.btn-x-thumb{ position:absolute; left:10px; top:50%; translate:0 -50%; display:grid; place-items:center; width:44px; height:44px; overflow:hidden; background:color-mix(in srgb, currentColor 14%, transparent) }
.btn-x-thumb.is-circle{ border-radius:50% } .btn-x-thumb.is-square{ border-radius:4px } .btn-x-thumb.is-rounded{ border-radius:10px }
.btn-x-thumb img{ width:100%; height:100%; object-fit:cover; display:block }
.btn-x-thumb.is-right{ left:auto; right:10px }   /* Owner 10-28 round 5: left or right (the text stays centred either way) */
.btn-x.has-thumb .btn-x-label{ flex:1; min-width:0; text-align:inherit }
.btn-x.is-featured{ flex-direction:column; align-items:stretch !important; justify-content:flex-start !important; padding:8px !important; gap:0 }
.btn-x-img{ display:block; aspect-ratio:16 / 9; overflow:hidden; border-radius:max(0px, calc(var(--btnx-r, 10px) - 4px)) }
.btn-x-img img{ width:100%; height:100%; object-fit:cover; display:block }
.btn-x.is-featured .btn-x-label{ display:flex; align-items:center; justify-content:center; min-height:48px; padding:4px 8px 0 }
.btn-x-img.is-empty{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; border:2px dashed color-mix(in srgb, currentColor 40%, transparent); background:color-mix(in srgb, currentColor 8%, transparent); font-size:13px }   /* Featured with no image yet (editor only) */
/* GP 2026-10-28 (Owner) - Button block settings: illustrated cards (layout / style / animation), thumbnail row, icon picker */
.btnx-cq{ container-type:inline-size }   /* only the animation grid queries its width (a container on every group would trap dropdowns) */
.btnx-lays{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px }
.btnx-styles{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px }
.btnx-anims{ display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:8px }
@container (max-width: 420px){ .btnx-anims{ grid-template-columns:repeat(3, minmax(0, 1fr)) } }
.btnx-card{ position:relative; display:flex; flex-direction:column; align-items:center; gap:8px; min-width:0; padding:8px 8px 10px; border-radius:12px; border:1px solid var(--ua-border-2); background:var(--ua-ed-raised); color:var(--ua-text-2); font:inherit; font-size:12px; font-weight:600; cursor:pointer; transition:border-color .15s, background-color .15s, color .15s }
.btnx-card:hover{ border-color:var(--ua-accent-line); color:var(--ua-text) }
.btnx-card.on{ border-color:var(--ua-accent-text); box-shadow:0 0 0 1px var(--ua-accent-text); color:var(--ua-text) }
.btnx-card:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
.btnx-card.is-locked{ cursor:not-allowed } .btnx-card.is-locked:hover{ border-color:var(--ua-border-2); color:var(--ua-text-2) }
.btnx-card-l{ line-height:1.25; text-align:center }
.btnx-card .cp-anim-lock{ top:6px; left:6px }
.btnx-lay-art{ display:grid; place-items:center; width:100%; height:66px; border-radius:9px; background:var(--ua-tint-2) }
.btnx-art-pill{ display:flex; align-items:center; gap:7px; width:72%; max-width:120px; height:26px; padding:0 7px; border-radius:7px; background:var(--ua-surface-3) }
.btnx-art-pill i{ width:14px; height:14px; border-radius:4px; background:var(--ua-text-muted); opacity:.6 } .btnx-art-pill b{ flex:1; height:4px; border-radius:2px; background:var(--ua-text-muted); opacity:.6 }
.btnx-art-feat{ display:flex; flex-direction:column; align-items:center; gap:5px; width:64px; height:52px; padding:5px; border-radius:7px; background:var(--ua-surface-3) }
.btnx-art-feat i{ width:100%; flex:1; border-radius:4px; background:linear-gradient(155deg, var(--ua-text-muted) 58%, transparent 58%); opacity:.6 } .btnx-art-feat b{ width:60%; height:4px; border-radius:2px; background:var(--ua-text-muted); opacity:.6 }
.btnx-sty-b{ display:block; width:100%; height:24px; background:var(--ua-accent-text) }
.btnx-sty-b.is-fill-sharp{ border-radius:3px } .btnx-sty-b.is-fill-round{ border-radius:8px } .btnx-sty-b.is-fill-pill{ border-radius:999px }
.btnx-sty-b.is-line-sharp, .btnx-sty-b.is-line-round, .btnx-sty-b.is-line-pill{ background:transparent; box-shadow:inset 0 0 0 2px var(--ua-accent-text) }
.btnx-sty-b.is-line-sharp{ border-radius:3px } .btnx-sty-b.is-line-round{ border-radius:8px } .btnx-sty-b.is-line-pill{ border-radius:999px }
.btnx-sty-b.is-soft{ border-radius:8px; box-shadow:0 8px 16px -6px color-mix(in srgb, var(--ua-accent-text) 80%, transparent) }
.btnx-sty-b.is-hard{ border-radius:6px; box-shadow:3px 3px 0 var(--ua-text) }
.btnx-sty-b.is-glass{ border-radius:8px; background:color-mix(in srgb, var(--ua-accent-text) 28%, transparent); box-shadow:inset 0 0 0 1px rgba(255,255,255,.55) }
.btnx-anim-art{ display:grid; place-items:center; height:46px }
.btnx-sq{ position:relative; display:grid; place-items:center; width:32px; height:32px; border-radius:8px; background:var(--ua-text-muted); color:var(--ua-ed-raised); font:700 11px/1 var(--mono, ui-monospace, monospace); --btnx-r:8px }
.btnx-none{ position:relative; width:30px; height:30px; border-radius:50%; border:3px solid var(--ua-text-muted) }
.btnx-none::after{ content:""; position:absolute; left:50%; top:-2px; bottom:-2px; width:3px; background:var(--ua-text-muted); transform:translateX(-50%) rotate(45deg) }
.btnx-kinds button{ display:inline-flex; align-items:center; justify-content:center; gap:5px }
.btnx-kinds button[aria-disabled="true"]{ cursor:not-allowed }
.btnx-thumb-row, .btnx-shapes{ display:flex; align-items:center; gap:10px; flex-wrap:wrap }
.btnx-icobox{ position:relative; display:grid; place-items:center; width:44px; height:44px; padding:0; border-radius:12px; border:1px solid var(--ua-border-2); background:var(--ua-ed-raised); color:var(--ua-text); cursor:pointer }
.btnx-icobox:hover{ border-color:var(--ua-accent-line) } .btnx-icobox:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
.btnx-icobox-ed{ position:absolute; right:-6px; bottom:-6px; display:grid; place-items:center; width:20px; height:20px; border-radius:50%; background:var(--ua-text); color:var(--ua-ed-raised) }
.btnx-thumbbox{ position:relative; flex:none; display:grid; place-items:center; width:52px; height:52px; padding:0; border:1px solid var(--ua-border-2); background:var(--ua-ed-raised); color:var(--ua-text-muted); cursor:pointer }
.btnx-thumbbox.is-circle{ border-radius:50% } .btnx-thumbbox.is-square{ border-radius:6px } .btnx-thumbbox.is-rounded{ border-radius:14px }
.btnx-thumbbox > img, .btnx-thumbbox-ic{ width:100%; height:100%; border-radius:inherit; object-fit:cover; display:grid; place-items:center; overflow:hidden }
.btnx-thumbbox:hover{ border-color:var(--ua-accent-line) } .btnx-thumbbox:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
.btnx-thumbbox-add{ position:absolute; right:-4px; bottom:-4px; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--ua-text); color:var(--ua-ed-raised); box-shadow:0 0 0 2px var(--ua-ed-raised) }
.btnx-shape{ display:grid; place-items:center; width:36px; height:36px; padding:0; border-radius:9px; border:1px solid var(--ua-border-2); background:var(--ua-ed-raised); cursor:pointer }
.btnx-shape i{ width:18px; height:18px; background:var(--ua-text-2) } .btnx-shape.is-circle i{ border-radius:50% } .btnx-shape.is-square i{ border-radius:2px } .btnx-shape.is-rounded i{ border-radius:6px }
.btnx-shape.on{ border-color:var(--ua-accent-text); box-shadow:0 0 0 1px var(--ua-accent-text) } .btnx-shape:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
.btnx-pop-root{ position:fixed; inset:0; z-index:90; pointer-events:none }
.btnx-pop{ position:fixed; pointer-events:auto; display:flex; flex-direction:column; gap:12px; max-height:min(560px, calc(100dvh - 24px)); padding:16px; overflow:hidden; border-radius:18px; border:1px solid var(--ua-border-2); background:var(--ua-surface-2); color:var(--ua-text); box-shadow:var(--ua-shadow-pop) }
.btnx-pop-head{ display:flex; align-items:center; justify-content:space-between } .btnx-pop-head h3{ margin:0; font-size:15px }
.btnx-pop-none{ display:flex; align-items:center; gap:12px; padding:4px 0 } .btnx-pop-none p{ margin:0; font-size:13px; color:var(--ua-text-2) }
.btnx-pop-none-ic{ flex:none; display:grid; place-items:center; width:52px; height:52px; border-radius:14px; background:var(--ua-tint-2); color:var(--ua-text-muted) }
.btnx-pop-img{ display:grid; grid-template-columns:150px minmax(0, 1fr); gap:14px; align-items:center }   /* Owner 10-28: a 1:1 box + what can be uploaded */
.btnx-pop-img-hint{ display:grid; gap:6px; font-size:12.5px; line-height:1.45; color:var(--ua-text-2) }
.btnx-pop-img-hint p{ margin:0; font-weight:600; color:var(--ua-text) }
.btnx-pop-img-hint ul{ margin:0; padding-left:18px; list-style:disc; display:grid; gap:3px }
.upload-btn.is-icon{ display:grid; place-items:center; width:32px; height:32px; padding:0 }
.btnx-pop-lock{ position:relative; display:flex; align-items:center; gap:12px; padding:14px 14px 14px 36px; border-radius:12px; border:1px dashed var(--ua-border-2); color:var(--ua-text-2); font-size:12.5px; line-height:1.5 } .btnx-pop-lock .cp-anim-lock{ top:10px; left:8px }
.btnx-pick-x{ display:grid; place-items:center; width:34px; height:34px; padding:0; border-radius:50%; border:1px solid var(--ua-border-2); background:var(--ua-tint); color:var(--ua-text-2); cursor:pointer }
.btnx-pick-cats{ display:flex; gap:6px; flex-wrap:wrap }
.btnx-pick-cats button{ padding:5px 11px; border-radius:999px; border:1px solid var(--ua-border); background:var(--ua-tint); color:var(--ua-text-2); font:inherit; font-size:12px; cursor:pointer }
.btnx-pick-cats button.on{ background:var(--ua-accent-soft); border-color:var(--ua-accent-line); color:var(--ua-accent-text) }
.btnx-pick-grid{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; overflow-y:auto; overscroll-behavior:contain; min-height:0; padding:2px }   /* Owner 10-28: 4 a row, icons big enough to read */
.btnx-pick-grid button{ display:grid; place-items:center; height:56px; padding:0; border-radius:12px; border:1px solid transparent; background:var(--ua-tint-2); color:var(--ua-text); cursor:pointer }
.btnx-pick-ic{ display:grid; place-items:center; width:38px; height:38px; border-radius:10px }
.btnx-pick-grid button:hover{ border-color:var(--ua-accent-line) } .btnx-pick-grid button.on{ box-shadow:0 0 0 2px var(--ua-accent-text) }
.btnx-pick-grid button:focus-visible, .btnx-pick-cats button:focus-visible, .btnx-pick-x:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
.btnx-pick-none{ grid-column:1 / -1; margin:12px 0; text-align:center; color:var(--ua-text-muted); font-size:13px }
.btnx-pick-credit{ margin:0; font-size:11px; color:var(--ua-text-muted); text-align:center } .btnx-pick-credit a{ color:var(--ua-text-2) }
@media (prefers-reduced-motion:reduce){ .btnx-card{ transition:none } }
/* Button block thumbnail toggle = the page background toggles (base .cp-seg is a dark track, wrong in light) */
html[data-ua-theme] .ed-grp .cp-seg{ background:var(--ua-tint-2); border-color:var(--ua-border) }
html[data-ua-theme] .ed-grp .cp-seg button{ color:var(--ua-text-2); font-size:12.5px; padding:8px 0; background:none }
html[data-ua-theme] .ed-grp .cp-seg button.on{ color:var(--ua-text) }
html[data-ua-theme="dark"] .ed-grp .cp-seg-slide::before{ background:var(--ua-surface-3); box-shadow:inset 0 0 0 1px var(--ua-border-2), 0 1px 2px rgba(0,0,0,.35) }
/* Owner 10-28: the orbit line needs an animatable angle */
/* Owner 10-28 round 5 — thumbnail row: "None" + shapes | left / right | the box */
.btnx-shape .btnx-none{ width:18px; height:18px; border-width:2px } .btnx-shape .btnx-none::after{ width:2px }
.btnx-side i{ position:relative; width:22px; height:14px; border-radius:4px; background:none; border:1.5px solid var(--ua-text-2) }
.btnx-side i::after{ content:""; position:absolute; top:50%; left:2px; width:6px; height:6px; border-radius:50%; background:var(--ua-text-2); transform:translateY(-50%) }
.btnx-side.is-right i::after{ left:auto; right:2px }
/* Owner 10-28 round 6 — icon style None = no tile behind the icon (the icon stays); the box shows it dashed */
.btn-x-thumb.is-none{ background:none; border-radius:0 }
.btnx-thumbbox.is-none{ border-radius:14px; border-style:dashed }
.btnx-icolor{ display:flex; align-items:center; gap:8px } .btnx-icolor .control-label{ min-width:0 } .btnx-thumbbox-ic{ color:var(--ua-text) }   /* Owner 10-28 round 8: "สีไอคอน" before the swatch */
/* Owner 10-28 round 6 — button animations: faster, a shorter rest between plays. --btnx-c = the button colour
   (set on the button; the picker card uses the accent). Reduced motion = a still button. */
.btnx-sq{ --btnx-c:var(--ua-accent-text, #60A5FA) }
.btn-x > .btn-x-label, .btn-x > .btn-x-img{ position:relative }   /* above the shimmer / aurora layer */
@media (prefers-reduced-motion: no-preference){
  .btn-anim-wiggle{ animation:btnxWiggle 1.6s ease-in-out infinite }
  @keyframes btnxWiggle{ 0%, 40%, 100%{ transform:rotate(0) } 8%{ transform:rotate(-6deg) } 16%{ transform:rotate(5deg) } 24%{ transform:rotate(-3deg) } 32%{ transform:rotate(1.5deg) } }
  .btn-anim-bounce{ animation:btnxBounce 1.2s ease-in-out infinite }
  @keyframes btnxBounce{ 0%, 52%, 100%{ transform:translateY(0) } 16%{ transform:translateY(-8px) } 30%{ transform:translateY(0) } 40%{ transform:translateY(-3px) } }
  .btn-anim-pop{ animation:btnxPop 1.4s cubic-bezier(.22,1,.36,1) infinite }
  @keyframes btnxPop{ 0%, 36%, 100%{ transform:scale(1) } 12%{ transform:scale(1.08) } 24%{ transform:scale(.98) } }
  .btn-anim-jelly{ animation:btnxJelly 1.4s ease-in-out infinite }
  @keyframes btnxJelly{ 0%, 42%, 100%{ transform:scale(1, 1) } 8%{ transform:scale(1.08, .92) } 16%{ transform:scale(.95, 1.05) } 24%{ transform:scale(1.03, .97) } 32%{ transform:scale(.99, 1.01) } }
  .btn-anim-shimmer{ overflow:hidden }
  .btn-anim-shimmer::before, .btn-anim-aurora::before, .btn-anim-aurora::after, .btn-anim-pulse-glow::after, .btn-anim-ripple::after, .btn-anim-electricity::after, .btn-anim-aurora-glow::after{ content:""; position:absolute; pointer-events:none }
  .btn-anim-shimmer::before{ top:0; bottom:0; left:0; width:45%; background:linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform:translateX(-120%); animation:btnxShimmer 1.6s ease-in-out infinite }
  @keyframes btnxShimmer{ 0%{ transform:translateX(-120%) } 45%, 100%{ transform:translateX(260%) } }
  .btn-anim-pulse-glow::after{ inset:0; border-radius:inherit; box-shadow:0 0 18px 4px color-mix(in srgb, var(--btnx-c, #60A5FA) 85%, transparent); opacity:0; animation:btnxGlow 1.4s ease-in-out infinite }
  @keyframes btnxGlow{ 0%, 100%{ opacity:0; transform:scale(1) } 50%{ opacity:1; transform:scale(1.03) } }
  .btn-anim-ripple::after{ inset:0; border-radius:inherit; animation:btnxRipple 1.2s cubic-bezier(.22,1,.36,1) infinite }
  @keyframes btnxRipple{ 0%{ box-shadow:0 0 0 0 color-mix(in srgb, var(--btnx-c, #60A5FA) 70%, transparent) } 80%, 100%{ box-shadow:0 0 0 12px color-mix(in srgb, var(--btnx-c, #60A5FA) 0%, transparent) } }
  .btn-anim-electricity::after{ inset:-2px; border-radius:inherit; animation:btnxZap 1.6s linear infinite }
  @keyframes btnxZap{ 0%, 44%, 100%{ opacity:0; box-shadow:0 0 0 2px #22D3EE, 0 0 14px 2px rgba(34,211,238,.75) } 5%, 17%, 29%{ opacity:1 } 11%, 23%, 35%{ opacity:.25 } }
  /* Owner 10-28 round 7: Aurora = the Owner's Breathing Gradient sample, in the button's own colour (--btnx-c), one 2.8 s
     breath that loops seamlessly: a light spot (lighter tone → the colour → a darker tone) slides left ↔ right inside the
     button, while a glow (4 → 18 px) and a faint outer ring (6 → 10 px out, 15 → 50 %) breathe with it */
  .btn-anim-aurora::before{ inset:0; border-radius:inherit; background:radial-gradient(32% 150% at 50% 50%, color-mix(in srgb, var(--btnx-c, #60A5FA) 50%, #fff) 0%, var(--btnx-c, #60A5FA) 55%, color-mix(in srgb, var(--btnx-c, #60A5FA) 70%, #000) 100%) 50% 50% / 200% 100% no-repeat; animation:btnxAuroraSweep 2.8s ease-in-out -2.1s infinite }
  @keyframes btnxAuroraSweep{ 0%, 100%{ background-position:21% 50% } 50%{ background-position:79% 50% } }
  .btn-anim-aurora::after{ inset:0; border-radius:inherit; outline:1.2px solid transparent; animation:btnxAuroraGlow 2.8s ease-in-out infinite }
  @keyframes btnxAuroraGlow{
    0%, 100%{ box-shadow:0 0 4px 0 color-mix(in srgb, var(--btnx-c, #60A5FA) 55%, transparent); outline-offset:6px; outline-color:color-mix(in srgb, var(--btnx-c, #60A5FA) 15%, transparent) }
    50%{ box-shadow:0 0 18px 2px color-mix(in srgb, var(--btnx-c, #60A5FA) 75%, transparent); outline-offset:10px; outline-color:color-mix(in srgb, var(--btnx-c, #60A5FA) 50%, transparent) } }
}
/* GP 2026-10-28 (Owner) — what an upload box takes (types · size limit) under its title */
.upload-thumb .upload-hint{ margin-top:-2px; font-size:11.5px; color:var(--ua-text-muted, #9ca3af) }
/* Owner 10-28 — a Free user's GIF block: a lock chip, hidden, delete only */
.user-app-shell .block-lock-chip{ gap:4px }
.user-app-shell .block-row.is-plan-locked .block-head{ cursor:default }
/* Owner 10-28 round 9 — Border Chase (key 'orbit'): the SVG outline from BtnChase. Tail 26 % of the border, middle 15.6 %,
   head 7.8 % with a glow; all three heads meet at the front and lap the border once a second. Reduced motion = not shown. */
.btn-x-chase{ display:none }
@media (prefers-reduced-motion: no-preference){
  .btn-x-chase{ display:block; position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none }
  .btn-x-chase rect{ fill:none; stroke:color-mix(in srgb, var(--btnx-c, #60A5FA) 45%, #fff); stroke-linecap:round; animation:btnxChase 1s linear infinite }
  .btn-x-chase .is-t{ stroke-dasharray:26 74; opacity:.25 }
  .btn-x-chase .is-m{ stroke-dasharray:15.6 84.4; opacity:.55; animation-delay:-.104s }   /* 10.4 % ahead of the tail start = the heads meet */
  .btn-x-chase .is-h{ stroke-dasharray:7.8 92.2; animation-delay:-.182s; filter:drop-shadow(0 0 4px color-mix(in srgb, var(--btnx-c, #60A5FA) 45%, #fff)) }
  @keyframes btnxChase{ from{ stroke-dashoffset:0 } to{ stroke-dashoffset:-100 } }   /* no var() here: it would make the offset jump, not glide */
}
/* Owner 10-28 round 10 — Aurora Glow (the Owner's sample, replaces Border Draw): two soft lights in the button's own colour
   (a lighter and a darker tone) swing on an arc round the button, glowing outside it only (an outer shadow is never drawn
   under the box); 1.5 s each way, eased like the sample. Reduced motion = no glow. */
@property --btnx-ag{ syntax:"<angle>"; inherits:false; initial-value:0deg }
@media (prefers-reduced-motion: no-preference){
  /* Owner 10-29: less haze (blur 22 → 12 px, spread 4 → 1 px) and two colours — the button colour (a touch lighter) and its
     neighbour on the colour wheel (hue + 60°). The first box-shadow is the fallback for a browser without relative colours. */
  .btn-anim-aurora-glow::after{ inset:0; border-radius:inherit; opacity:.9; animation:btnxAuroraGlowSwing 1.5s ease-in-out infinite alternate;
    box-shadow:calc(sin(var(--btnx-ag)) * 14px) calc(cos(var(--btnx-ag)) * -9px) 12px 1px color-mix(in srgb, var(--btnx-c, #60A5FA) 60%, #fff),
      calc(sin(var(--btnx-ag)) * -14px) calc(cos(var(--btnx-ag)) * 9px) 12px 1px color-mix(in srgb, var(--btnx-c, #60A5FA) 80%, #000);
    box-shadow:calc(sin(var(--btnx-ag)) * 14px) calc(cos(var(--btnx-ag)) * -9px) 12px 1px oklch(from var(--btnx-c, #60A5FA) calc(l + .06) c h),
      calc(sin(var(--btnx-ag)) * -14px) calc(cos(var(--btnx-ag)) * 9px) 12px 1px oklch(from var(--btnx-c, #60A5FA) l c calc(h + 60)) }
  @keyframes btnxAuroraGlowSwing{ from{ --btnx-ag:-74.5deg } to{ --btnx-ag:74.5deg } }   /* ±1.3 rad, as in the sample */
}
/* GP 2026-10-29 (Owner) — Marquee block (ป้ายวิ่ง): two identical runs slide by one run (-50 %), so the loop has no seam.
   Duration / direction come from the block (mqPlan). Pause on hover / tap is a setting; reduced motion = a still sign. */
.mq{ position:relative; overflow:hidden; white-space:nowrap; line-height:1.3; box-sizing:border-box }
.mq.is-empty{ text-align:center; opacity:.7; font-size:14px !important; font-weight:600 !important }
.mq-track{ display:flex; width:max-content; animation:mqScroll linear infinite }
.mq-run{ display:flex; flex:none }
.mq-item, .mq-sep{ padding:0 .55em }
.mq-sep{ opacity:.85 }
@keyframes mqScroll{ from{ transform:translateX(0) } to{ transform:translateX(-50%) } }
.mq.is-pause:hover .mq-track, .mq.is-pause:active .mq-track{ animation-play-state:paused }
@media (prefers-reduced-motion: reduce){ .mq-track{ animation:none } }
/* Owner 10-29 — Marquee settings: the None separator is the circle-slash icon; Motion rows inside its panel */
.border-type-btn .btnx-none{ display:inline-block; vertical-align:middle; width:14px; height:14px; border-width:2px } .border-type-btn .btnx-none::after{ width:2px }
.mq-row{ display:flex; align-items:center; gap:12px } .mq-row > .border-type-group{ flex:1; min-width:0 } .mq-row > .switch-mini{ margin-left:auto }
/* Owner 2026-11-11 — Price block (ราคา + ส่วนลด, editor.jsx PriceX), round 3 (spec §14 over §13, mockup price-block-v2.html):
   3 looks, plain (one row: price · regular price · pill) · sticker (the regular price over the price, a circle rotated −10°
   right beside them, the plain row's gap apart) · coupon (badge stub left, dashed divider, notches; the box is as wide as its
   content). align (.pb-al-*) on every look: plain and sticker place their content inside a full-width box, the coupon places
   its box. Sizes s / m / l = 0.8× / 1× / 1.2× of the price. Optional background (--pb-bg, a colour or a gradient) and Border &
   Radius (inline from borderCSS): with either one the block is .pb-boxed and gets the box padding (the coupon keeps its own).
   No wrap: nothing in .pb breaks to a new line. .pb-cq (full width) is the size container, and every length in the row is a
   multiple of --pb-u, one "scaled pixel" = min(1px, (100cqi − --pb-fx) / --pb-n): PriceX writes --pb-n (the row's width at
   full size) and --pb-fx (box padding + border), so a row that does not fit shrinks as a whole. Without container query units
   --pb-u stays 1px.
   Colours: a colour the user picked is an inline var (--pb-c / --pb-badge / --pb-on / --pb-was) and wins. An Auto colour is not
   written and falls back to --pb-a*, which follows the surface the text sits on: the block's own bg (.pb-ondark / .pb-onlight,
   set in JS) or else the page (.lp-darkbg, also on the editor's phone preview).
   The same rules are in public-blocks.css and userapp.css: keep the two in step. */
.pb-cq{ container-type:inline-size; width:100%; min-width:0 }
.pb{ --pb-ac:#1D4ED8; --pb-awas:#6B7280; --pb-atext:#374151; --pb-abadge:#1D4ED8; --pb-aon:#FFFFFF; --pb-k:1; --pb-f:36; --pb-u:1px;
  --pb-xc:var(--pb-c, var(--pb-ac)); --pb-xwas:var(--pb-was, var(--pb-awas));
  --pb-xbadge:var(--pb-badge, var(--pb-abadge)); --pb-xon:var(--pb-on, var(--pb-aon));
  box-sizing:border-box; min-width:0; max-width:100%; background:var(--pb-bg, none); font-family:Anuphan, system-ui, sans-serif;
  font-variant-numeric:tabular-nums; line-height:1.4; white-space:nowrap }
@supports (width:1cqi){ .pb{ --pb-u:min(1px, calc((100cqi - var(--pb-fx, 0px)) / var(--pb-n, 300))) } }
.lp-darkbg .pb, .pb.pb-ondark{ --pb-ac:#FFFFFF; --pb-awas:rgba(255,255,255,.75); --pb-atext:#E5E7EB; --pb-abadge:#FFFFFF; --pb-aon:#1D4ED8 }
.pb.pb-onlight, .lp-darkbg .pb.pb-onlight{ --pb-ac:#1D4ED8; --pb-awas:#6B7280; --pb-atext:#374151; --pb-abadge:#1D4ED8; --pb-aon:#FFFFFF }
.pb *, .pb *::before, .pb *::after{ box-sizing:border-box }
.pb.pb-s{ --pb-k:.8 } .pb.pb-l{ --pb-k:1.2 }
.pb.pb-boxed:not(.pb-coupon){ padding:12px 14px }
.pb-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
.pb-num{ font-size:calc(var(--pb-f) * var(--pb-k) * var(--pb-u)); font-weight:700; line-height:1; letter-spacing:-.02em; color:var(--pb-xc) }
.pb-u{ font-size:calc(15 * var(--pb-u)); font-weight:600; letter-spacing:0 }
.pb-u-pre{ font-size:.55em; font-weight:700; vertical-align:.2em; margin-right:calc(2 * var(--pb-u)) }
.pb-was{ color:var(--pb-xwas); font-size:calc(14 * var(--pb-u)); text-decoration:line-through; text-decoration-thickness:1.5px }
.pb-off{ font-weight:700; line-height:1.4; background:var(--pb-xbadge); color:var(--pb-xon) }
.pb-off-k, .pb-off-u{ display:block; font-size:calc(12 * var(--pb-u)); font-weight:600; line-height:1 }
.pb-off strong{ display:block; font-weight:700; line-height:1.1 }
/* plain: price, struck price and pill in one row */
.pb-plain{ display:flex; flex-direction:column }
.pb-row{ display:flex; align-items:baseline; gap:calc(8 * var(--pb-u)); max-width:100% }
.pb-row > *{ flex:none }
.pb-plain.pb-al-center{ align-items:center; text-align:center } .pb-al-center > .pb-row{ justify-content:center }
.pb-plain.pb-al-left{ align-items:flex-start; text-align:left } .pb-al-left > .pb-row{ justify-content:flex-start }
.pb-plain.pb-al-right{ align-items:flex-end; text-align:right } .pb-al-right > .pb-row{ justify-content:flex-end }
.pb-plain .pb-off{ align-self:center; font-size:calc(13 * var(--pb-u)); border-radius:999px; padding:calc(2 * var(--pb-u)) calc(9 * var(--pb-u)) }
/* sticker: the circle sits right beside the prices (the plain row's gap); prices + circle follow align. No discount = the
   prices alone. */
.pb-sticker, .pb-coupon{ text-align:left }
.pb-sticker{ display:flex; align-items:center; justify-content:center; gap:calc(8 * var(--pb-u)) }
.pb-sticker.pb-al-left{ justify-content:flex-start } .pb-sticker.pb-al-right{ justify-content:flex-end }
.pb-main{ flex:none; display:flex; flex-direction:column; gap:calc(4 * var(--pb-u)) }
.pb-stk{ flex:none; width:calc(76 * var(--pb-u)); height:calc(76 * var(--pb-u));
  margin:calc(6 * var(--pb-u)) calc(6 * var(--pb-u)) calc(6 * var(--pb-u)) 0;   /* the margin holds the corners of the turned box: no overflow */
  border-radius:50%; display:grid; place-content:center; justify-items:center; text-align:center; transform:rotate(-10deg) }
.pb-stk strong{ font-size:calc(23 * var(--pb-u)) }
.pb-stk.is-long strong{ font-size:calc(15 * var(--pb-u)) }
/* coupon: the stub is as wide as its text plus a padding each side (--pb-sw from PriceX, 16 px at full size); the prices keep
   the same padding on their right; the box is as wide as that (fit-content, never over 100 %) and follows align. The notches
   sit on the stub edge: the grid starts inside the border, the mask at the border edge, so a border shifts them by its width
   (--pb-bw, set inline with a border). */
.pb-coupon{ --pb-f:30; --pb-sx:calc(var(--pb-sw, 0) * var(--pb-u)); display:grid; grid-template-columns:var(--pb-sx) auto; width:fit-content; overflow:hidden;
  -webkit-mask:radial-gradient(circle 8px at calc(var(--pb-sx) + var(--pb-bw, 0px)) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 8px at calc(var(--pb-sx) + var(--pb-bw, 0px)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask:radial-gradient(circle 8px at calc(var(--pb-sx) + var(--pb-bw, 0px)) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 8px at calc(var(--pb-sx) + var(--pb-bw, 0px)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat }
.pb-coupon.pb-al-center{ margin-inline:auto } .pb-coupon.pb-al-right{ margin-left:auto }
.pb-coupon:not(.pb-boxed){ box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--pb-atext) 22%, transparent) }   /* no bg, no border: a hairline keeps the ticket shape */
.pb-stub{ display:grid; place-content:center; justify-items:center; text-align:center; padding:calc(10 * var(--pb-u)) calc(16 * var(--pb-u)) }
/* the stub sits beside the block's bg, on the page: its Auto colours follow the page (.lp-darkbg), not .pb-ondark / .pb-onlight.
   A colour the user picked (inline --pb-badge / --pb-on) still wins. */
.pb-coupon .pb-stub{ --pb-abadge:#1D4ED8; --pb-aon:#FFFFFF; --pb-xbadge:var(--pb-badge, var(--pb-abadge)); --pb-xon:var(--pb-on, var(--pb-aon)) }
.lp-darkbg .pb-coupon .pb-stub{ --pb-abadge:#FFFFFF; --pb-aon:#1D4ED8 }
.pb-stub strong{ font-size:calc(26 * var(--pb-u)); line-height:1.05 }
.pb-stub.is-long strong{ font-size:calc(17 * var(--pb-u)) }
.pb-rt{ display:flex; flex-direction:column; gap:calc(2 * var(--pb-u)); padding:calc(10 * var(--pb-u)) calc(16 * var(--pb-u));
  border-left:2px dashed color-mix(in srgb, var(--pb-xbadge) 35%, transparent) }
.pb-coupon.pb-nooff{ grid-template-columns:auto; -webkit-mask:none; mask:none }
.pb-coupon.pb-nooff .pb-rt{ border-left:0 }
/* editor only: no valid sale price yet */
.pb-empty{ border:1.5px dashed rgba(148,163,184,.7); border-radius:12px; padding:18px 14px; text-align:center; color:#6B7280; font-size:13px; font-weight:500; white-space:normal }
.lp-darkbg .pb-empty{ color:#9CA3AF }
/* Owner 2026-11-12 — Social icons block (editor.jsx SocialX, social-icons.jsx SocialIcon), spec 2026-11-12-social-icons-block-design
   §5 / §12 / §13 / §14: one row of icons that never wraps (it shrinks as a whole to fit, .sc-cq below), placed by align (.sc-al-*, centre by default). Looks: mono (one
   colour), brand (brand colours), circle (a brand-colour circle, icon × 1.7, light glyph). One icon size, 26 px (round 2: no s / l)
   (--sc-i). The row is a list (role="list"); each icon sits in a .sc-li listitem the size of the drawn icon.
   Spacing (Task 2 ruling 1, round 2): one gap, 18 px at full size, the VISIBLE distance between drawn icons (and between rows),
   so the icons sit 44 px centre to centre. Every link still has a hit area of at least 44 × 44 px: --sc-p of padding
   around the drawn icon (--sc-w0, its full size) with a matching negative margin, so a hit area may overlap the empty space next to it. The box
   gets the same --sc-p of padding, so no hit area reaches outside it.
   Colours: a mono colour the user picked is the inline --sc-c and wins. Auto (--sc-aink) follows the surface the icons sit on: the
   block's own bg (.sc-ondark / .sc-onlight, set in JS) or else the page (.lp-darkbg, also on the editor's phone preview). The
   brand look of a near-black brand (TikTok, X, Threads, GitHub, Play Store) draws in --sc-aink too, so it reads on a dark page;
   in the circle look those circles get a 1 px ring in --sc-aink at 20 % (.sc-cir-ink, ruling 6).
   Optional bg (--sc-bg, a colour or a gradient) and Border & Radius (inline from borderCSS): either one = .sc-boxed (box padding).
   The same rules are in public-blocks.css and userapp.css: keep the two in step. */
/* No wrap (round 2, Owner): .sc-cq (full width) is the size container; the icon (26) and the gap (18) are multiples of --sc-u =
   min(1px, (100cqi − --sc-fx) / --sc-n), with --sc-n / --sc-fx written by SocialX, so a row that does not fit shrinks as a whole.
   --sc-p (the hit-area padding, also the box padding) is fixed at full size (--sc-w0): it is in --sc-fx. Without container query
   units --sc-u stays 1px. */
.sc-cq{ container-type:inline-size; width:100%; min-width:0 }
.sc{ --sc-aink:#111827; --sc-ring:rgba(17,24,39,.2); --sc-u:1px; --sc-i:calc(26 * var(--sc-u)); --sc-g:calc(18 * var(--sc-u)); --sc-w0:26px; --sc-p:max(0px, calc((44px - var(--sc-w0)) / 2));
  box-sizing:border-box; display:flex; flex-wrap:nowrap; align-items:center; justify-content:center;
  gap:var(--sc-g); min-width:0; max-width:100%; padding:var(--sc-p); background:var(--sc-bg, none) }
.lp-darkbg .sc, .sc.sc-ondark{ --sc-aink:#FFFFFF; --sc-ring:rgba(255,255,255,.2) }
.sc.sc-onlight, .lp-darkbg .sc.sc-onlight{ --sc-aink:#111827; --sc-ring:rgba(17,24,39,.2) }
.sc.sc-boxed{ padding:calc(12px + var(--sc-p)) calc(14px + var(--sc-p)) }
.sc.sc-circle{ --sc-w0:44.2px }
@supports (width:1cqi){ .sc{ --sc-u:min(1px, calc((100cqi - var(--sc-fx, 0px)) / var(--sc-n, 300))) } }
.sc.sc-al-left{ justify-content:flex-start } .sc.sc-al-right{ justify-content:flex-end }
.sc-li{ flex:none; display:flex; min-width:0 }
.sc-it{ flex:none; display:inline-flex; align-items:center; justify-content:center; padding:var(--sc-p); margin:calc(var(--sc-p) * -1); border-radius:12px;
  color:var(--sc-aink); text-decoration:none; -webkit-tap-highlight-color:transparent; transition:opacity .15s }
.sc-mono .sc-it{ color:var(--sc-c, var(--sc-aink)) }
/* round 2 (Owner): a link grows a little under the mouse; touch screens (no hover) and reduced motion do not zoom */
.sc-it > .sc-ic, .sc-it > .sc-cir{ transition:transform .18s cubic-bezier(.22,1,.36,1) }
@media (hover:hover){ a.sc-it:hover > .sc-ic, a.sc-it:hover > .sc-cir{ transform:scale(1.15) } }
a.sc-it:focus-visible{ position:relative; z-index:1; outline:2px solid var(--sc-aink); outline-offset:2px }
.sc-ic{ display:block; flex:none; width:var(--sc-i, 24px); height:var(--sc-i, 24px); overflow:visible }
.sc-cir{ display:inline-flex; align-items:center; justify-content:center; flex:none; width:calc(var(--sc-i, 24px) * 1.7); height:calc(var(--sc-i, 24px) * 1.7); border-radius:50% }
.sc-cir.sc-cir-ink{ box-shadow:0 0 0 1px var(--sc-ring, rgba(17,24,39,.2)) }
.sc-cir .sc-ic{ width:calc(var(--sc-i, 24px) * .9); height:calc(var(--sc-i, 24px) * .9) }
@media (prefers-reduced-motion:reduce){ .sc-it, .sc-it > .sc-ic, .sc-it > .sc-cir{ transition:none } a.sc-it:hover > .sc-ic, a.sc-it:hover > .sc-cir{ transform:none } a.sc-it:hover{ opacity:.75 } }
/* editor only: no icons yet */
.sc-empty{ border:1.5px dashed rgba(148,163,184,.7); border-radius:12px; padding:18px 14px; text-align:center; color:#6B7280; font-size:13px; font-weight:500 }
.lp-darkbg .sc-empty{ color:#9CA3AF }
/* Owner 2026-11-11 — Price block settings (editor.jsx PriceControls), round 2 (spec §13.4, mockup price-block-v2): 3 look tiles
   (.btnx-card, lock badge as the slideshow effects), each a small static grey drawing on a white "page" in the user's currency
   (it never follows the user's colours); money inputs with the unit inside; the calculated line (green) or a warning; colour
   rows at the bottom of their group, a pair split by a visible "|", each colour a swatch + name + Auto toggle.
   Round 3 (spec §14): หน่วยเงิน = the label left, 3 toggle buttons right, on one row; หน้าตา = ขนาด ▾ | จัดวาง ▾, a label +
   Dropdown each, on one row (no container there: a container would trap the open menu under the next group). */
.pbx-looks{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; container-type:inline-size }
.pbx-art{ display:grid; place-items:center; width:100%; height:58px; padding:0 6px; border-radius:9px; background:#F8FAFC; box-shadow:inset 0 0 0 1px rgba(15,23,42,.08); overflow:hidden }
.pbx-art-in{ display:flex; align-items:center; gap:5px; max-width:100%; font-family:Anuphan, system-ui, sans-serif; font-size:12px; line-height:1; color:#475569; font-variant-numeric:tabular-nums }
.pbx-art-in b{ font-weight:700; white-space:nowrap }
.pbx-art-in i{ flex:none; width:22px; height:10px; border-radius:99px; background:#94A3B8 }
.pbx-art-sticker .pbx-art-in i{ width:22px; height:22px; border-radius:50%; background:#64748B; transform:rotate(-10deg) }
.pbx-art-coupon .pbx-art-in{ gap:7px; padding-right:8px; border-radius:5px; background:#F1F5F9; box-shadow:inset 0 0 0 1px #CBD5E1; overflow:hidden }
.pbx-art-coupon .pbx-art-in i{ order:-1; width:16px; height:28px; border-radius:0; background:#64748B; border-right:2px dashed #F1F5F9 }
.btnx-card.is-locked .pbx-art{ opacity:.6 }
@container (max-width: 380px){   /* phone-width panel: the badge stays inside the tile */
  .pbx-art{ padding:0 3px } .pbx-art-in{ gap:3px; font-size:11px } .pbx-art-coupon .pbx-art-in{ padding-right:5px }
  .pbx-art-in i{ width:14px } .pbx-art-sticker .pbx-art-in i{ width:18px; height:18px } }
.pbx-in{ position:relative } .pbx-in > .input{ padding-right:44px; font-variant-numeric:tabular-nums }
.pbx-lrow{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0 }
.pbx-lrow > .hint, .pbx-dd > .hint{ margin:0 }
.pbx-unit{ flex:none; grid-template-columns:repeat(3, minmax(46px, auto)) }
.pbx-unit .border-type-btn{ padding:7px 12px; font-size:13px; line-height:1.2 }
.pbx-drow{ display:flex; align-items:center; gap:8px; min-width:0 }
.pbx-dd{ flex:1 1 0; min-width:0; display:flex; align-items:center; gap:8px }
.pbx-dl{ flex:none }
.pbx-dd > .dd{ min-width:0 } .pbx-dd .dd-trigger{ padding:0 10px; gap:6px }
.pbx-u{ position:absolute; top:50%; right:12px; transform:translateY(-50%); font-size:13px; color:var(--ua-text-muted, #9FACC3); pointer-events:none }
.pbx-calc, .pbx-warn{ display:flex; align-items:flex-start; gap:8px; margin:0; padding:8px 11px; border-radius:10px; font-size:12.5px; line-height:1.5 }
.pbx-calc svg, .pbx-warn svg{ flex:none; margin-top:2px }
.pbx-calc{ color:var(--ua-status-success-text, #34D399); background:var(--ua-status-success-soft, rgba(0,244,203,.1)); border:1px solid var(--ua-status-success-line, rgba(0,244,203,.3)) }
.pbx-warn{ color:var(--ua-status-warn-text, #F5C866); background:var(--ua-status-warn-bg, rgba(245,158,11,.12)); border:1px solid var(--ua-status-warn-border, rgba(245,158,11,.35)) }
.pbx-crow{ display:flex; align-items:stretch; gap:8px; min-width:0; container-type:inline-size }
.pbx-crow > .pbx-color{ flex:1 1 0; min-width:0 }
.pbx-sep{ flex:none; align-self:center; color:var(--ua-text-muted, #9FACC3); font-size:16px; line-height:1 }
.pbx-color{ display:flex; align-items:center; gap:8px; min-height:42px; padding:4px 6px 4px 4px; border:1px solid var(--ua-border-2, rgba(255,255,255,.2)); border-radius:var(--ua-radius-sm, 10px); background:var(--ua-tint, rgba(255,255,255,.04)) }
.pbx-color > .cp-swpop.is-compact{ flex:none; width:32px; height:32px; border:0; background:none }
.pbx-color > .cp-swpop .cp-swpop-chip{ width:24px; height:24px; border-radius:6px }
.pbx-cl{ flex:1; min-width:0; font-size:12.5px; line-height:1.3; color:var(--ua-text, #F2F6FC) }
.pbx-auto{ flex:none; padding:3px 7px; border:1px solid transparent; border-radius:6px; background:none; color:var(--ua-text-muted, #9FACC3); font:inherit; font-size:11px; font-weight:600; line-height:1.4; cursor:pointer; transition:color .15s, background-color .15s, border-color .15s }
.pbx-auto:not(.on):hover{ color:var(--ua-text, #F2F6FC) } .pbx-auto:focus-visible{ outline:2px solid var(--ua-focus, #6EA8FF); outline-offset:1px }
.pbx-auto.on{ cursor:default; color:var(--ua-accent-text, #93C5FD); background:var(--ua-accent-soft, rgba(59,130,246,.16)); border-color:var(--ua-accent-line, rgba(59,130,246,.45)) }
@media (prefers-reduced-motion:reduce){ .pbx-auto{ transition:none } }
@container (max-width: 380px){   /* phone-width panel: the name sits over the Auto toggle, the swatch on their left */
  .pbx-color{ display:grid; grid-template-columns:auto minmax(0, 1fr); grid-template-areas:"sw lb" "sw au"; align-items:center; gap:2px 6px; padding:4px 5px 4px 4px }
  .pbx-color > .cp-swpop{ grid-area:sw } .pbx-cl{ grid-area:lb; align-self:end; font-size:12px }
  .pbx-auto{ grid-area:au; justify-self:start; align-self:start; padding:1px 6px; font-size:10.5px } }
/* Owner 2026-11-12 — Social icons settings (editor.jsx SocialControls, spec 2026-11-12-social-icons-block-design §6, mockup
   social-and-icon.png). A row per icon: platform Dropdown · link box · remove (round 2: no move up / down), and a warning under it. Each row
   is a container: on a wide panel it is one line, on a narrow one (≤ 380 px) the dropdown + buttons, then the link box at full
   width. A container traps an open menu under the next row, so a row with an open menu is lifted (:has(.dd-menu)). "+ เพิ่มไอคอน"
   (dashed) opens a searchable list of the platforms, 3 columns (2 on a narrow panel). หน้าตา reuses the Price block's .pbx-drow /
   .pbx-dd / .pbx-color: รูปแบบ | จัดวาง on one row (round 2), each label over its dropdown when the row is under 460 px. */
.scx-list{ display:flex; flex-direction:column; gap:10px; margin:0; padding:0; list-style:none }
.scx-li{ container-type:inline-size; min-width:0 }
.scx-li:has(.dd-menu), .scx-dcq:has(.dd-menu){ position:relative; z-index:5 }
.scx-row{ display:grid; grid-template-columns:minmax(0, 136px) minmax(0, 1fr) auto; grid-template-areas:"net url acts"; align-items:center; gap:6px; min-width:0 }
.scx-net{ grid-area:net; display:flex; min-width:0 }
.scx-net .dd-trigger{ padding:0 10px }
.scx-o{ display:flex; align-items:center; gap:8px; min-width:0 }
.scx-o > span{ min-width:0; overflow:hidden; text-overflow:ellipsis }
.scx-o .sc-ic, .scx-opt .sc-ic{ flex:none }
.user-app-shell .scx-url{ grid-area:url; min-width:0; height:38px; padding:0 11px; box-sizing:border-box }
.scx-acts{ grid-area:acts; display:flex; gap:4px }
@container (max-width: 380px){ .scx-row{ grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"net acts" "url url" } }
.scx-btn{ display:grid; place-items:center; width:32px; height:32px; padding:0; border:1px solid var(--ua-border-2, rgba(255,255,255,.2)); border-radius:8px;
  background:var(--ua-tint, rgba(255,255,255,.04)); color:var(--ua-text-muted, #9FACC3); cursor:pointer; transition:color .15s, background-color .15s, border-color .15s }
.scx-btn:not(:disabled):hover{ color:var(--ua-text, #F2F6FC); background:var(--ua-tint-2, rgba(255,255,255,.08)) }
.scx-del:not(:disabled):hover{ color:var(--ua-danger, #F87171); border-color:var(--ua-danger-line, rgba(248,113,113,.32)) }
.scx-btn:disabled{ opacity:.35; cursor:default }
.scx-warn{ display:flex; align-items:flex-start; gap:6px; margin:6px 2px 0; font-size:12px; line-height:1.45; color:var(--ua-status-warn-text, #F5C866) }
.scx-warn svg{ flex:none; margin-top:2px }
.scx-empty, .scx-full{ margin:0 }
.scx-add{ display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-height:40px; padding:8px 12px; border:1.5px dashed var(--ua-border-2, rgba(255,255,255,.25));
  border-radius:10px; background:none; color:var(--ua-accent-text, #8DBAFF); font:inherit; font-size:13px; font-weight:600; cursor:pointer; transition:border-color .15s, background-color .15s }
.scx-add:not(:disabled):hover{ border-color:var(--ua-accent-line, rgba(59,130,246,.45)); background:var(--ua-accent-soft, rgba(59,130,246,.1)) }
.scx-add:disabled{ color:var(--ua-text-muted, #9FACC3); opacity:.6; cursor:not-allowed }
.scx-pick{ container-type:inline-size; display:flex; flex-direction:column; gap:8px; padding:10px; border:1px solid var(--ua-border-2, rgba(255,255,255,.2)); border-radius:12px; background:var(--ua-tint, rgba(255,255,255,.04)) }
.user-app-shell .scx-search{ height:38px; padding:0 11px; box-sizing:border-box }
.scx-grid{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:2px 6px }
@container (max-width: 330px){ .scx-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)) } }
.scx-opt{ display:flex; align-items:center; gap:8px; min-width:0; min-height:36px; padding:6px 8px; border:0; border-radius:8px; background:none;
  color:var(--ua-text, #F2F6FC); font:inherit; font-size:13px; line-height:1.2; text-align:left; cursor:pointer }
.scx-opt > span{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.scx-opt:hover{ background:var(--ua-tint-2, rgba(255,255,255,.08)) }
.scx-btn:focus-visible, .scx-add:focus-visible, .scx-opt:focus-visible{ outline:2px solid var(--ua-focus, #6EA8FF); outline-offset:1px }
.scx-none{ margin:2px; font-size:12.5px; color:var(--ua-text-muted, #9FACC3) }
.scx-dcq{ container-type:inline-size; min-width:0 }
@container (max-width: 459px){   /* each label over its dropdown; the | lines up with the dropdowns; a tighter trigger so "Medium" fits at 340 px */
  .scx-drow{ align-items:flex-end; gap:5px } .scx-drow > .pbx-sep{ align-self:auto; line-height:38px }
  .scx-drow .pbx-dd{ flex-direction:column; align-items:stretch; gap:4px } .scx-drow .dd-trigger{ padding:0 8px; gap:4px } }
.scx-looks{ grid-template-columns:repeat(3, minmax(0, 1fr)) }
.scx-looks .border-type-btn{ padding:8px 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
@media (prefers-reduced-motion:reduce){ .scx-btn, .scx-add{ transition:none } }
/* Owner 10-29 — a settings panel that opens a group sits right under the divider (its own 14 px top margin doubled the gap:
   the space below a divider now equals the space above it, 14 px) */
.user-app-shell .ed-grp-body > .control-panel:first-child{ margin-top:0 }
/* GP 2026-10-29 (Owner) — Slideshow settings: tiles take the chosen shape; a dashed + tile adds a slide; a small x removes one */
.user-app-shell .slide-grid .slide-item .upload-thumb{ width:100%; min-height:0; max-height:none }   /* the tile keeps the chosen shape (no 120 px floor) */
.slide-x{ position:absolute; top:6px; right:6px; z-index:3; display:grid; place-items:center; width:22px; height:22px; padding:0; border:0; border-radius:50%; background:var(--ua-text, #fff); color:var(--ua-ed-raised, #0a0c12); box-shadow:0 0 0 2px var(--ua-ed-raised, #0a0c12), 0 2px 6px rgba(0,0,0,.35); cursor:pointer }   /* Owner 10-29: inverted like the + badge, seen on a dark tile and on a photo */
.slide-x:focus-visible, .slide-add:focus-visible{ outline:2px solid var(--ua-focus, #60A5FA); outline-offset:2px }
.slide-add{ display:grid; place-items:center; width:100%; padding:0; border:1.5px dashed var(--ua-border-2, rgba(255,255,255,.3)); border-radius:12px; background:none; color:var(--ua-text-muted, #9ca3af); cursor:pointer }
.slide-add:hover{ border-color:var(--ua-accent-line, #60A5FA); color:var(--ua-text, #fff) }
.user-app-shell .slide-grid .upload-thumb .upload-l{ display:none }   /* small slideshow tiles: the image icon alone (the word sat under the upload button) */
/* GP 2026-10-29 (Owner) — Slideshow "Continuous": a draggable strip (touch-action keeps the page scrolling up / down) */
.ss-strip{ position:relative; overflow:hidden; touch-action:pan-y; cursor:grab; user-select:none; -webkit-user-select:none }
.ss-strip:active{ cursor:grabbing }
.ss-track{ display:flex; will-change:transform }
.ss-img{ display:block; min-width:0; width:100%; height:auto; object-fit:cover; box-sizing:border-box; pointer-events:none }
/* GP 2026-10-29 (Owner) — Slideshow "Cards": the stack; each card is 80 % wide so the two behind can peek out on the right */
.cs-stack{ position:relative; width:100%; touch-action:pan-y; cursor:grab; user-select:none; -webkit-user-select:none; outline:none }
.cs-stack:active{ cursor:grabbing } .cs-stack:focus-visible{ outline:2px solid var(--ua-focus, #60A5FA); outline-offset:4px; border-radius:12px }
.cs-card{ position:absolute; top:0; left:3%; width:80%; height:100%; object-fit:cover; box-sizing:border-box; transform-origin:50% 90%; pointer-events:none; box-shadow:0 6px 18px rgba(0,0,0,.28) }
/* GP 2026-10-29 (Owner) — Slideshow "Carousel": a row of big cards (78 % wide so the next one peeks in), snaps to a card */
.cc-row{ display:flex; gap:10px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:none; cursor:grab; user-select:none; -webkit-user-select:none }
.cc-row::-webkit-scrollbar{ display:none }
.cc-row.is-drag{ scroll-snap-type:none; cursor:grabbing }   /* the mouse drags freely, then it settles on a card */
.cc-card{ flex:0 0 78%; min-width:0; display:block; object-fit:cover; scroll-snap-align:start; box-sizing:border-box; pointer-events:none }
/* Owner 10-29 — an upload error sits under its box (red text + icon), never over the buttons */
.upload-box{ display:flex; flex-direction:column; gap:6px; min-width:0 }
.upload-err{ display:flex; align-items:flex-start; gap:6px; margin:0; font-size:12px; font-weight:600; line-height:1.4; color:var(--ua-danger, #f87171) }
.upload-err svg{ flex:none; margin-top:2px }
.user-app-shell .slide-grid .slide-item{ aspect-ratio:auto }   /* the tile = its box (+ an error under it) */
/* GP 2026-10-29 (Owner) — Slideshow "สามมิติ / Coverflow": a 3D row; the middle picture 78 % wide (= a Carousel card), one each side turned 50° */
.cf-wrap{ position:relative; width:100%; perspective:900px; touch-action:pan-y; cursor:grab; user-select:none; -webkit-user-select:none; outline:none; overflow:hidden }
.cf-wrap:active{ cursor:grabbing } .cf-wrap:focus-visible{ outline:2px solid var(--ua-focus, #60A5FA); outline-offset:4px; border-radius:12px }
.cf-card{ position:absolute; top:0; left:11%; width:78%; height:100%; overflow:hidden; box-sizing:border-box; transform-style:preserve-3d; pointer-events:none; box-shadow:0 10px 24px rgba(0,0,0,.3) }
.cf-card img{ display:block; width:100%; height:100%; object-fit:cover }
.cf-shade{ position:absolute; inset:0; pointer-events:none; transition:opacity .4s ease }
.cf-dots{ position:absolute; left:0; right:0; bottom:6px; display:flex; justify-content:center; gap:4px; z-index:20; pointer-events:none }
.cf-dots span{ width:5px; height:5px; border-radius:5px; background:rgba(255,255,255,.5) } .cf-dots span.on{ background:#fff }
/* GP 2026-10-29 (Owner) — the slideshow style cards (6 a row, like the Animation cards): a tiny moving picture each */
.sfx-row{ display:flex; flex-direction:column; gap:8px }
.sfx{ position:relative; display:block; width:44px; height:30px; overflow:hidden; border-radius:6px; perspective:80px }
.sfx b{ position:absolute; inset:0; display:block }
.sfx i{ position:absolute; top:0; left:0; width:100%; height:100%; border-radius:5px; background:#60A5FA }
.sfx i:nth-child(3n+2){ background:#A78BFA } .sfx i:nth-child(3n+3){ background:#34D399 }
.sfx-slide i:nth-child(n+4), .sfx-fade i:nth-child(n+4), .sfx-coverflow i:nth-child(n+4), .sfx-cards i:nth-child(n+4), .sfx-carousel i:nth-child(n+5){ display:none }
@media (prefers-reduced-motion: no-preference){
  /* slide: one picture after another moves in from the right */
  .sfx-slide b{ display:flex; width:400%; animation:sfxSlide 4.5s cubic-bezier(.22,1,.36,1) infinite }
  .sfx-slide i{ position:relative; flex:0 0 25%; width:25% } .sfx-slide i:nth-child(4){ display:block; background:#60A5FA }
  @keyframes sfxSlide{ 0%, 22%{ transform:translateX(0) } 33%, 55%{ transform:translateX(-25%) } 66%, 88%{ transform:translateX(-50%) } 99.9%{ transform:translateX(-75%) } 100%{ transform:translateX(0) } }
  /* fade: one picture fades into the next */
  .sfx-fade i{ opacity:0; animation:sfxFade 4.5s ease-in-out infinite } .sfx-fade i:nth-child(2){ animation-delay:1.5s } .sfx-fade i:nth-child(3){ animation-delay:3s }
  @keyframes sfxFade{ 0%, 100%{ opacity:0 } 8%, 33%{ opacity:1 } 41%{ opacity:0 } }
  /* carousel: a row of cards, the next one peeking, steps on */
  .sfx-carousel b{ display:flex; gap:3px; width:max-content; height:100%; animation:sfxCarousel 4.5s cubic-bezier(.22,1,.36,1) infinite }
  .sfx-carousel i{ position:relative; flex:0 0 32px; width:32px } .sfx-carousel i:nth-child(4){ background:#60A5FA }
  @keyframes sfxCarousel{ 0%, 22%{ transform:translateX(0) } 33%, 55%{ transform:translateX(-35px) } 66%, 88%{ transform:translateX(-70px) } 99.9%{ transform:translateX(-105px) } 100%{ transform:translateX(0) } }
  /* continuous: small pictures flow by for ever */
  .sfx-scroll b{ display:flex; gap:3px; width:max-content; height:100%; animation:sfxScroll 3s linear infinite }
  .sfx-scroll i{ position:relative; flex:0 0 18px; width:18px }
  @keyframes sfxScroll{ from{ transform:translateX(0) } to{ transform:translateX(-63px) } }
  /* coverflow: the middle picture faces you, the ones beside it turned; they take turns */
  .sfx-coverflow{ perspective:60px }
  .sfx-coverflow i{ left:14%; width:72%; animation:sfxFlow 4.5s cubic-bezier(.22,1,.36,1) infinite } .sfx-coverflow i:nth-child(2){ animation-delay:-1.5s } .sfx-coverflow i:nth-child(3){ animation-delay:-3s }
  /* every stop names its opacity — a stop without one is tweened towards the 60 % fade, so the middle picture went see-through */
  @keyframes sfxFlow{ 0%, 22%{ transform:none; z-index:3; filter:none; opacity:1 } 33%, 55%{ transform:translateX(-55%) translateZ(-20px) rotateY(50deg); z-index:2; filter:brightness(.6); opacity:1 } 60%{ transform:translateX(-55%) translateZ(-20px) rotateY(50deg); z-index:1; filter:brightness(.6); opacity:0 } 62%{ transform:translateX(55%) translateZ(-20px) rotateY(-50deg); z-index:1; filter:brightness(.6); opacity:0 } 66%, 88%{ transform:translateX(55%) translateZ(-20px) rotateY(-50deg); z-index:1; filter:brightness(.6); opacity:1 } 100%{ transform:none; z-index:3; filter:none; opacity:1 } }
  /* cards: a stack; the top card flicks out and goes to the back */
  .sfx-cards i{ left:8%; width:62%; transform-origin:50% 100%; animation:sfxCards 4.5s cubic-bezier(.22,1,.36,1) infinite } .sfx-cards i:nth-child(2){ animation-delay:-1.5s } .sfx-cards i:nth-child(3){ animation-delay:-3s }
  @keyframes sfxCards{ 0%, 22%{ transform:none; z-index:3; opacity:1 } 30%{ transform:translateX(70%) rotate(18deg); z-index:3; opacity:0 } 31%{ transform:translateX(24%) rotate(8deg) scale(.9); z-index:1; opacity:0 } 40%, 55%{ transform:translateX(24%) rotate(8deg) scale(.9); z-index:1; opacity:1 } 66%, 88%{ transform:translateX(12%) rotate(4deg) scale(.95); z-index:2; opacity:1 } 100%{ transform:none; z-index:3; opacity:1 } }
}
@media (prefers-reduced-motion: reduce){ .sfx-carousel b, .sfx-scroll b, .sfx-slide b{ display:flex; gap:3px } .sfx-carousel i, .sfx-scroll i, .sfx-slide i{ position:relative; flex:0 0 32px } }
/* GP 2026-10-30 (Owner) — skeleton screens (UaSkeleton): grey bars in the shape of what is loading */
.user-app-shell .ua-sk{ display:block; flex:none; max-width:100%; height:12px; border-radius:6px; background:var(--ua-tint-2) }
.user-app-shell .ua-sk-bar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap }
.user-app-shell .ua-sk-gap{ margin-bottom:14px }
.user-app-shell .ua-sk-lines{ display:flex; flex-direction:column; gap:8px; flex:1; min-width:0 }
.user-app-shell .ua-sk-row{ display:flex; align-items:center; gap:12px; margin-bottom:14px }
.user-app-shell .ua-sk-page{ display:flex; flex-direction:column; gap:14px }
.user-app-shell .ua-sk-card{ display:flex; flex-direction:column; gap:12px; padding:20px }
.user-app-shell .ua-sk-table{ padding:4px 18px }
.user-app-shell .ua-sk-trow{ display:flex; align-items:center; gap:20px; padding:15px 0; border-bottom:1px solid var(--ua-border) }
.user-app-shell .ua-sk-trow:last-child{ border-bottom:0 }
.user-app-shell .ua-sk-nav{ display:flex; align-items:center; gap:10px; padding:10px 12px }
.user-app-shell .ua-sk-screen{ display:flex; flex-direction:column; align-items:center; gap:12px; padding:34px 18px; background:var(--ua-tint) !important }
@media (max-width:640px){ .user-app-shell .ua-sk-trow > :nth-child(n+3){ display:none } .user-app-shell .ua-sk-bar > .ua-sk{ flex:1 1 120px } }
/* the sweep, on every skeleton bit of the user app (the older still ones too); reduced motion = still */
@keyframes ua-sk-sweep{ from{ background-position:150% 0 } to{ background-position:-50% 0 } }
@media (prefers-reduced-motion: no-preference){
  .user-app-shell :is(.ua-sk, .ua-skel, .tfa-skel, .quota-fill.is-skel, .av2-kpi.is-skel span, .av2-chart.is-skel .av2-plot, .av2-table-skel span, .av2-table-skel .av2-plot){
    background-image:linear-gradient(100deg, transparent 35%, color-mix(in srgb, var(--ua-text) 7%, transparent) 50%, transparent 65%);
    background-size:200% 100%; background-repeat:no-repeat; animation:ua-sk-sweep 1.6s linear infinite }
}
/* Owner 2026-10-31 — Stats opens without the swap motion; Ads Tracking loads in the real card frames */
.user-app-shell .av2-no-swap .av2-swap{ animation:none }
.user-app-shell .ads-sk-rows{ box-sizing:border-box; min-height:272px; padding:4px 20px 8px }
/* Owner 2026-10-31 — both screens open with the Dashboard motion (ua-dash-in). .av2-in / .ads-in stay mounted when loading ends, so it plays once */
.user-app-shell :is(.av2-in, .ads-in){ min-width:0 }
.user-app-shell :is(.av2-in, .ads-in):empty{ display:none }
.user-app-shell .ads-in{ display:flex; flex-direction:column; gap:14px }
.user-app-shell .ads-in > *{ margin-top:0; margin-bottom:0 }
.user-app-shell .av2-no-swap > .av2-bar-tools, .user-app-shell .ads-screen > .ads-range-bar{ animation:ua-dash-in 480ms var(--ua-ease) backwards }
.user-app-shell .av2-no-swap > .av2-source, .user-app-shell .ads-screen > .av2-source{ animation:ua-dash-in 480ms var(--ua-ease) 40ms backwards }
.user-app-shell .av2-no-swap > .av2-kpis, .user-app-shell .ads-screen > .ads-kpi-grid{ animation:ua-dash-in 520ms var(--ua-ease) 90ms backwards }
.user-app-shell .av2-no-swap > .av2-chart-card, .user-app-shell .ads-screen > .ads-in-chart{ animation:ua-dash-in 520ms var(--ua-ease) 160ms backwards }
.user-app-shell .av2-no-swap > .av2-in, .user-app-shell .ads-screen > .ads-campaigns{ animation:ua-dash-in 520ms var(--ua-ease) 230ms backwards }
.user-app-shell .av2-no-swap > .chart-card:not(.av2-chart-card), .user-app-shell .ads-screen > .ads-in-conv{ animation:ua-dash-in 520ms var(--ua-ease) 300ms backwards }
/* Owner 2026-10-31 — the same motion on the other user-app screens. Short Link swaps its children when loading ends, so the whole screen rises once */
.user-app-shell :is(.ua-setup-hero, .editor2-grid > :nth-child(1), .ua-integ-stack > :nth-child(1), .ua-set > .topbar, .tr-screen > :nth-child(1), .sl-screen, [data-screen-label="Dashboard Empty"] > *, [data-screen-label="Traffic Rules — Plan Locked"] > :not(.ua-sr), [data-screen-label="Traffic Rules — Platform Unavailable"] > :not(.ua-sr)){ animation:ua-dash-in 480ms var(--ua-ease) backwards }
.user-app-shell :is([data-screen-label="Page Settings"] > .ua-an, .editor2-grid > :nth-child(2), .ua-integ-stack > :nth-child(2), .ua-set-rail, .tr-screen > :nth-child(2)){ animation:ua-dash-in 520ms var(--ua-ease) 90ms backwards }
.user-app-shell :is(.ua-setup-grid, .ua-integ-stack > :nth-child(3), .set-panel, .tr-screen > :nth-child(3)){ animation:ua-dash-in 520ms var(--ua-ease) 160ms backwards }
.user-app-shell :is(.ua-integ-stack > :nth-child(4), .tr-screen > :nth-child(4)){ animation:ua-dash-in 520ms var(--ua-ease) 230ms backwards }
.user-app-shell :is(.ua-integ-stack > :nth-child(n+5), .tr-screen > :nth-child(n+5)){ animation:ua-dash-in 520ms var(--ua-ease) 300ms backwards }
@media (prefers-reduced-motion:reduce){
  .user-app-shell :is(.av2-no-swap, .ads-screen) > *,
  .user-app-shell :is(.ua-setup-hero, .editor2-grid > *, .ua-integ-stack > *, .ua-set > .topbar, .tr-screen > *, .sl-screen, [data-screen-label="Dashboard Empty"] > *, [data-screen-label="Traffic Rules — Plan Locked"] > *, [data-screen-label="Traffic Rules — Platform Unavailable"] > *, [data-screen-label="Page Settings"] > .ua-an, .ua-set-rail, .ua-setup-grid, .set-panel){ animation:none }
}
/* GP 2026-10-29 (Owner) — plan-expiry notice (PlanExpiryNotice): expired = danger tone, ending soon = warn tone */
.user-app-shell .ua-exp{ display:flex; align-items:flex-start; gap:12px; margin:0 0 16px; padding:14px 16px; border-radius:var(--ua-radius); border:1px solid var(--ua-danger-line); background:var(--ua-danger-soft); color:var(--ua-text-2) }
.user-app-shell .ua-exp > svg{ flex:0 0 auto; margin-top:2px; color:var(--ua-danger) }
.user-app-shell .ua-exp-body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; font-size:13.5px; line-height:1.6 }
.user-app-shell .ua-exp-body > b{ color:var(--ua-text); font-size:14.5px; text-wrap:pretty }
.user-app-shell .ua-exp-body > .ua-ev-row1 > b{ color:var(--ua-text); font-size:14.5px }
.user-app-shell .ua-exp-body .tier-badge{ vertical-align:1px }
.user-app-shell .ua-exp-ways{ margin:0; padding-left:18px; display:flex; flex-direction:column; gap:4px }
.user-app-shell .ua-exp-ways b{ color:var(--ua-text) }
.user-app-shell .ua-exp > .btn{ flex:0 0 auto; align-self:center; white-space:nowrap }
.user-app-shell .ua-exp.is-soon{ align-items:center; border-color:color-mix(in srgb, var(--ua-status-warn-text) 40%, transparent); background:color-mix(in srgb, var(--ua-status-warn-text) 10%, transparent) }
.user-app-shell .ua-exp.is-soon > svg{ margin-top:0; color:var(--ua-status-warn-text) }
.user-app-shell .ua-exp-x{ flex:0 0 auto; display:grid; place-items:center; width:32px; height:32px; border:0; border-radius:8px; background:transparent; color:var(--ua-text-2); cursor:pointer }
.user-app-shell .ua-exp-x:hover{ background:var(--ua-tint-2) }
.user-app-shell .ua-exp-x:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
/* Owner 2026-11-05 — expired notice: "Show details" toggle + what was closed (collapsed by default) */
.user-app-shell .ua-exp-more{ align-self:flex-start; display:inline-flex; align-items:center; gap:4px; min-height:24px; margin:2px 0 0; padding:0; border:0; background:none; color:var(--ua-text); font:inherit; font-weight:600; cursor:pointer; text-decoration:underline; text-underline-offset:3px }
.user-app-shell .ua-exp-more svg{ flex:none; transition:transform .16s ease }
.user-app-shell .ua-exp-more[aria-expanded="true"] svg{ transform:rotate(180deg) }
.user-app-shell .ua-exp-more:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px; border-radius:4px }
.user-app-shell .ua-exp-detail:not([hidden]){ display:flex; flex-direction:column; gap:4px }   /* Owner 11-05: one even gap between every detail line */
.user-app-shell .ua-exp-list{ margin:0; padding-left:18px; display:flex; flex-direction:column; gap:4px; color:var(--ua-text) }
@media (prefers-reduced-motion:reduce){ .user-app-shell .ua-exp-more svg{ transition:none } }
@media (max-width: 640px){ .user-app-shell .ua-exp{ flex-wrap:wrap } .user-app-shell .ua-exp > .btn{ width:100%; justify-content:center; order:3 } .user-app-shell .ua-exp-body{ flex-basis:calc(100% - 64px) } }
/* Owner 11-05: locked / empty screens: one sentence per line (<br />), even heading wrap, no lone last word */
.user-app-shell .empty h3{ text-wrap:balance }
.user-app-shell .empty p{ max-width:560px; line-height:1.6; text-wrap:pretty }   /* 560px: each lock sentence fits one line on desktop */


/* GP 2026-11-02 — Team page share. Level chip, the notice on a shared page,
   the owner's "My team" table and Add Member dialog, the Page Editor's read-only state and the stale-save dialog. */
.user-app-shell .ua-level{ flex:none; display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; border:1px solid var(--ua-border-2); background:var(--ua-tint); color:var(--ua-text-2); font-size:12.5px; font-weight:500; white-space:nowrap }
.user-app-shell .ua-level--edit{ border-color:var(--ua-accent-line); background:var(--ua-accent-soft); color:var(--ua-status-info-text) }

.user-app-shell .ua-share-note{ display:flex; align-items:flex-start; gap:10px; margin:0 0 14px; padding:10px 14px; border-radius:var(--ua-radius-sm); border:1px solid var(--ua-border-2); background:var(--ua-tint); color:var(--ua-text-2); font-size:13px; line-height:1.6 }
.user-app-shell .ua-share-note > svg{ flex:none; margin-top:3px; color:var(--ua-text-muted) }
.user-app-shell .ua-share-note p{ margin:0; min-width:0; text-wrap:pretty }
.user-app-shell .ua-share-note b{ color:var(--ua-text); font-weight:600; margin-right:4px }
.user-app-shell .ua-share-note.is-edit{ border-color:var(--ua-accent-line); background:var(--ua-accent-soft) }
.user-app-shell .ua-share-note.is-edit > svg{ color:var(--ua-status-info-text) }

html[data-ua-theme] body > .scrim .ua-share-modal .sub strong{ color:var(--ua-text); font-weight:600; overflow-wrap:anywhere }
html[data-ua-theme] body > .scrim .ua-share-form{ display:flex; flex-direction:column; gap:16px }
html[data-ua-theme] body > .scrim .ua-share-form .field > label,
html[data-ua-theme] body > .scrim .ua-share-lbl{ display:block; font-size:12.5px; font-weight:500; line-height:1.4; letter-spacing:0; text-transform:none; color:var(--ua-text-2) }
html[data-ua-theme] body > .scrim .ua-share-at{ position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--ua-text-muted); font-size:14px; pointer-events:none }
html[data-ua-theme] body > .scrim .ua-share-form .input{ padding-left:28px }
html[data-ua-theme] body > .scrim .ua-share-form .actions{ margin-top:4px }
html[data-ua-theme] body > .scrim .ua-share-form .btn.primary:disabled{ opacity:.5; cursor:not-allowed }
html[data-ua-theme] body > .scrim .ua-share-err{ margin:0; font-size:13px; color:var(--ua-danger) }
html[data-ua-theme] body > .scrim .ua-share-hint{ margin:0; font-size:12.5px; line-height:1.6; color:var(--ua-text-muted); text-wrap:pretty }
html[data-ua-theme] body > .scrim .ua-share-form .dd-trigger{ text-align:left }
html[data-ua-theme] body > .scrim .ua-share-form .input[readonly]{ background:var(--ua-tint); color:var(--ua-text-2); cursor:default }

.user-app-shell .ua-team{ margin-top:16px; padding:24px }
.user-app-shell .ua-team-head{ display:flex; align-items:center; gap:10px; margin-bottom:12px }
.user-app-shell .ua-team-ic{ flex:none; display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:10px; background:var(--ua-accent-soft); color:var(--ua-accent-text) }
.user-app-shell .ua-team-title{ flex:1; min-width:0; font-size:12px; color:var(--ua-text-muted) }
.user-app-shell .ua-team-title h4{ margin:0; font-size:15px; font-weight:650; color:var(--ua-text) }
.user-app-shell .ua-team-add{ flex:none; white-space:nowrap }
/* these columns are text, so they read left to right */
.user-app-shell .ua-team-tbl :is(th, td){ text-align:left }
/* frame, header tint, last-row border and row hover come from the shared theme (.ua-tt / .ua-tt-frame) */
.user-app-shell .ua-team-tbl thead th{ letter-spacing:0; text-transform:none }
.user-app-shell .ua-team-tbl tbody th.ua-team-user{ font-weight:600; white-space:normal; overflow-wrap:anywhere }
.user-app-shell .ua-team-tbl td.ua-team-page{ white-space:normal }
.user-app-shell .ua-team-page b{ display:block; font-weight:500; color:var(--ua-text); overflow-wrap:anywhere }
.user-app-shell .ua-team-page a{ display:block; margin-top:2px; font-size:12px; color:var(--ua-link); overflow-wrap:anywhere; text-decoration:none }
.user-app-shell .ua-team-page a:hover{ text-decoration:underline }
.user-app-shell .ua-team-tbl td.ua-team-act{ width:1%; white-space:nowrap }
.user-app-shell .ua-team-act .icon-action-btn + .icon-action-btn{ margin-left:6px }
.user-app-shell .ua-team-tbl .ua-team-state td{ padding:20px 12px; white-space:normal; color:var(--ua-text-muted) }
.user-app-shell .ua-team-state .btn{ margin-left:8px }
@media (max-width: 720px){
  .user-app-shell .ua-team{ padding:18px }
  .user-app-shell .ua-team-head{ flex-wrap:wrap }
  .user-app-shell .ua-team-title{ flex-basis:calc(100% - 46px) }
  .user-app-shell .ua-team-add{ width:100%; justify-content:center; min-height:40px }
  .user-app-shell .ua-team-wrap{ max-height:none; overflow:visible }
  .user-app-shell .ua-team-tbl, .user-app-shell .ua-team-tbl tbody{ display:block; width:100% }
  .user-app-shell .ua-team-tbl thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
  .user-app-shell .ua-team-tbl tr.ua-team-row{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 12px; align-items:center; padding:12px; border-bottom:1px solid var(--ua-border) }
  .user-app-shell .ua-team-tbl tr.ua-team-row:last-child{ border-bottom:0 }
  .user-app-shell .ua-team-tbl tr.ua-team-state, .user-app-shell .ua-team-tbl tr.ua-team-state td{ display:block }
  .user-app-shell .ua-team-tbl tr.ua-team-row :is(th, td){ display:block; width:auto; padding:0; border:0 }
  /* a card, not a row of cells: the hover tint goes on the card so the gaps between its parts are tinted too */
  .user-app-shell .ua-team-tbl tbody tr.ua-team-row:hover > :is(th, td){ background-color:transparent }
  @media (hover:hover){ .user-app-shell .ua-team-tbl tr.ua-team-row:hover{ background-color:var(--ua-tt-hover) } }
  .user-app-shell .ua-team-user{ grid-area:1 / 1 }
  .user-app-shell .ua-team-act{ grid-area:1 / 2 }
  .user-app-shell .ua-team-page{ grid-column:1 / -1 }
  .user-app-shell .ua-team-act .icon-action-btn{ width:40px; height:40px }
  .user-app-shell .ua-team-tbl td[data-label]::before{ content:attr(data-label); display:block; margin-bottom:4px; font-size:12px; color:var(--ua-text-muted) }
  .user-app-shell .ua-team-tbl td.ua-team-date{ text-align:right }
}

@media (pointer:coarse){ .user-app-shell .ua-team-act .icon-action-btn{ width:40px; height:40px } }
/* an off row is dimmed cell by cell, so the hover tint would look patchy: the row comes up to full strength under the pointer */
@media (hover:hover){ .user-app-shell .ua-tt tbody tr:is(.pv-off, .ads-cmp-off):hover > td{ opacity:1 } }

.user-app-shell .ed-status.is-ro{ color:var(--ua-text); font-weight:500 }
.user-app-shell .ed-status.is-ro > svg{ flex:none; color:var(--ua-text-muted) }
.user-app-shell .ed-ro .block-item{ grid-template-columns:minmax(0,1fr) }
fieldset.ed-ro-set{ min-width:0; margin:0; padding:0; border:0; pointer-events:none; opacity:.82 }
.user-app-shell .ed-ro-set :is(.upload-btn, .upload-l, .upload-hint, .favicon-btns){ display:none }
fieldset.ed-ro-set :is(input, textarea, select):disabled{ opacity:1; color:var(--ua-text-2); -webkit-text-fill-color:var(--ua-text-2) }

html[data-ua-theme] body > .scrim .ed-stale-opts{ display:flex; flex-direction:column; gap:10px; margin:0; padding:12px 14px; border-radius:var(--ua-radius-sm); background:var(--ua-tint); font-size:13px; line-height:1.6 }
html[data-ua-theme] body > .scrim .ed-stale-opts dt{ font-weight:600; color:var(--ua-text) }
html[data-ua-theme] body > .scrim .ed-stale-opts dd{ margin:0; color:var(--ua-text-2) }

/* GP 2026-11-02 — Pixel Manager, Campaigns and Conversions join the table theme (.ua-tt). Their panels have no padding of
   their own, so the frame takes the side margins; Pixel Manager's -4px bleed would push the border out of its card. */
.user-app-shell .pv-table-wrap.ua-tt-frame{ margin:0 }
.user-app-shell .ads-panel .ads-table-scroll.ua-tt-frame{ width:auto; margin:16px 20px }
.user-app-shell .ads-panel .ads-cmp-table.ua-tt{ min-width:1050px }   /* gives back what the frame took; only the auto Campaign column narrows */
@media (max-width:520px){ .user-app-shell .ads-panel .ads-table-scroll.ua-tt-frame{ margin:12px } }

/* GP 2026-11-02 — Page Groups + the "..." menus (Team plan). Rows, floating menu with submenu, Group table, Group page. */
/* a section: the header folds it; label left, count right, same look as LANDING PAGES */
.user-app-shell .lp-sec{ display:flex; flex-direction:column; min-width:0 }
.user-app-shell .lp-sec-btn{ flex:1; min-width:0; display:flex; align-items:center; gap:6px; min-height:22px; text-align:left; font:inherit; letter-spacing:inherit; text-transform:inherit; color:inherit; border-radius:6px; transition:color var(--ua-d-fast) ease }
.user-app-shell .lp-sec-btn:hover{ color:var(--ua-text) }
.user-app-shell .lp-sec-btn:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
.user-app-shell .lp-sec-chev{ flex:none; display:inline-flex; transform:rotate(90deg); transition:transform var(--ua-d) var(--ua-ease) }
.user-app-shell .lp-sec-btn[aria-expanded="false"] .lp-sec-chev{ transform:none }
.user-app-shell .lp-sec-btn .lp-count{ margin-left:auto }
@media (max-width:1023px), (hover:none){ .user-app-shell .lp-sec-btn{ min-height:44px } }

/* a row: the button keeps its full width; "..." sits over it beside the chevron and the name makes room, so nothing jumps */
.user-app-shell .lp-row{ position:relative; display:flex; min-width:0 }
.user-app-shell .lp-more{
  flex:none; display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:6px; color:var(--ua-text-muted);
  transition:background-color var(--ua-d-fast) ease, color var(--ua-d-fast) ease, opacity var(--ua-d-fast) ease;
}
.user-app-shell .lp-more:hover,
.user-app-shell .lp-more.is-open{ background:var(--ua-tint-2); color:var(--ua-text) }
.user-app-shell .lp-more:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:-1px }
.user-app-shell .lp-row > .lp-more{ position:absolute; right:28px; top:50%; margin-top:-12px; opacity:0 }
.user-app-shell .lp-row:hover > .lp-more,
.user-app-shell .lp-row:has(:focus-visible) > .lp-more,
.user-app-shell .lp-row > .lp-more.is-open{ opacity:1 }
.user-app-shell .lp-row:has(> .lp-more):hover .lp-page-name,
.user-app-shell .lp-row:has(> .lp-more):has(:focus-visible) .lp-page-name,
.user-app-shell .lp-row:has(> .lp-more.is-open) .lp-page-name{ margin-right:16px }
.user-app-shell .lp-row:hover > .lp-page:not(.active),
.user-app-shell .lp-row:has(.lp-more.is-open) > .lp-page:not(.active){ background:var(--ua-tint); color:var(--ua-text) }
@media (hover:none){   /* touch: no hover to reveal it */
  .user-app-shell .lp-row > .lp-more{ width:36px; height:40px; margin-top:-20px; opacity:1 }
  .user-app-shell .lp-row:has(> .lp-more) .lp-page-name{ margin-right:30px }
}

/* a long name slides to its last character on hover or keyboard focus (uaSlideOn sets the distance and the time) */
.user-app-shell .lp-row .lp-page-name{ text-overflow:clip }
.user-app-shell .lp-slide-in{ display:inline-block; max-width:100%; vertical-align:top; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; transition:transform .25s var(--ua-ease) }
.user-app-shell .lp-slide-in.is-free{ max-width:none; overflow:visible }
.user-app-shell .lp-slide-in.is-go{ transform:translateX(var(--lp-slide-x)); transition:transform var(--lp-slide-t) linear .4s }

/* a Group: name row unfolds it; the body starts with its Dashboard */
.user-app-shell .lp-grp-wrap{ display:flex; flex-direction:column; min-width:0 }
.user-app-shell .lp-grp-row{ font-weight:600 }
.user-app-shell .nav-sub.lp-grp-body{ margin-left:15px; padding-left:4px; border-left:1px solid var(--ua-border) }
.user-app-shell .lp-grp-body .lp-page{ gap:8px; padding-left:8px }
.user-app-shell .lp-grp-dash{ font-size:13px }

/* the floating menu: portalled to the shell, position:fixed, so the sidebar cannot clip it (above the drawer at 72) */
.user-app-shell .ua-fmenu{ position:fixed; right:auto; z-index:75; width:240px; max-width:calc(100vw - 16px); max-height:calc(100vh - 16px); overflow-y:auto; overscroll-behavior:contain; padding:6px }
.user-app-shell .ua-fmenu-bridge{ position:fixed; z-index:75 }
.user-app-shell .ua-fmenu-ic{ flex:none; display:inline-flex; width:16px; color:var(--ua-text-muted) }
.user-app-shell .ua-menu-item--danger .ua-fmenu-ic{ color:inherit }
.user-app-shell .ua-fmenu-txt{ flex:1; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis }
.user-app-shell .ua-fmenu-item .ua-menu-item-end{ flex:none; color:var(--ua-text-muted) }
.user-app-shell .ua-fmenu-item.is-open{ background:var(--ua-tint-2); color:var(--ua-text) }
@media (min-width:1024px) and (hover:hover){ .user-app-shell .ua-fmenu-item{ min-height:36px; padding:6px 10px } }

/* Dashboard: the Group table (same theme as the report below it) */
.user-app-shell .ua-grp-tblhead{ flex-wrap:wrap; gap:12px; align-items:flex-start }
.user-app-shell .ua-grp-tblhead > div{ flex:1 1 240px; min-width:0 }
.user-app-shell .av2-pt.ua-grp-tbl{ min-width:640px }
.user-app-shell .ua-grp-row{ cursor:pointer }
.user-app-shell .ua-grp-empty td{ padding:18px 12px; text-align:left; white-space:normal; color:var(--ua-text-2) }
.user-app-shell .ua-grp-card{ margin-top:14px }

/* a Group's colour (keys in UA_GROUP_COLORS). White is the primary text colour, so it stays visible on the light theme. */
html[data-ua-theme]{ --ua-gc-red:#F87171; --ua-gc-orange:#FB923C; --ua-gc-yellow:#FACC15; --ua-gc-green:#4ADE80; --ua-gc-blue:#60A5FA; --ua-gc-purple:#C084FC; --ua-gc-pink:#F472B6 }
html[data-ua-theme="light"]{ --ua-gc-red:#DC2626; --ua-gc-orange:#C2410C; --ua-gc-yellow:#A16207; --ua-gc-green:#15803D; --ua-gc-blue:#2563EB; --ua-gc-purple:#7C3AED; --ua-gc-pink:#DB2777 }
html[data-ua-theme] .ua-gc-white{ color:var(--ua-text) }
html[data-ua-theme] .ua-gc-red{ color:var(--ua-gc-red) }
html[data-ua-theme] .ua-gc-orange{ color:var(--ua-gc-orange) }
html[data-ua-theme] .ua-gc-yellow{ color:var(--ua-gc-yellow) }
html[data-ua-theme] .ua-gc-green{ color:var(--ua-gc-green) }
html[data-ua-theme] .ua-gc-blue{ color:var(--ua-gc-blue) }
html[data-ua-theme] .ua-gc-purple{ color:var(--ua-gc-purple) }
html[data-ua-theme] .ua-gc-pink{ color:var(--ua-gc-pink) }
.user-app-shell .lp-grp-row{ gap:8px }
.user-app-shell .ua-grp-cell{ display:flex; align-items:center; gap:8px; min-width:0 }

/* the icon button in front of the name field, and its panel (portalled to <body>, above the pop-up) */
html[data-ua-theme] body > .scrim .ua-name-row{ display:flex; align-items:stretch; gap:8px }
html[data-ua-theme] body > .scrim .ua-name-row .input{ flex:1; min-width:0 }
html[data-ua-theme] body > .scrim .ua-gpick-btn{ flex:none; display:inline-flex; align-items:center; justify-content:center; width:44px; min-height:44px; border-radius:var(--ua-radius-sm); border:1px solid var(--ua-border-2); background:var(--ua-tint); cursor:pointer; transition:background-color var(--ua-d-fast) ease }
html[data-ua-theme] body > .scrim .ua-gpick-btn:hover,
html[data-ua-theme] body > .scrim .ua-gpick-btn[aria-expanded="true"]{ background:var(--ua-tint-2) }
html[data-ua-theme] body > .scrim .ua-gpick-btn:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
html[data-ua-theme] body > .ua-gpick{ position:fixed; z-index:220; width:min(344px, calc(100vw - 16px)); max-height:calc(100dvh - 16px); overflow-y:auto; overscroll-behavior:contain; padding:12px; display:flex; flex-direction:column; gap:10px; background:var(--ua-surface); color:var(--ua-text); border:1px solid var(--ua-border-2); border-radius:var(--ua-radius); box-shadow:var(--ua-shadow-pop); font-family:var(--ua-font); animation:ua-menu-in var(--ua-d-fast) var(--ua-ease) both }
html[data-ua-theme] body > .ua-gpick button{ cursor:pointer; background:none; border:0; padding:0; font:inherit }
html[data-ua-theme] body > .ua-gpick button:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:1px }
html[data-ua-theme] body > .ua-gpick .ua-gpick-colors,
html[data-ua-theme] body > .ua-gpick .ua-gpick-grid{ display:grid; grid-template-columns:repeat(8, minmax(0, 1fr)); gap:4px }
html[data-ua-theme] body > .ua-gpick .ua-gpick-sw,
html[data-ua-theme] body > .ua-gpick .ua-gpick-ic{ aspect-ratio:1; min-width:0; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; transition:background-color var(--ua-d-fast) ease }
html[data-ua-theme] body > .ua-gpick .ua-gpick-sw:hover,
html[data-ua-theme] body > .ua-gpick .ua-gpick-ic:hover{ background:var(--ua-tint-2) }
html[data-ua-theme] body > .ua-gpick .ua-gpick-sw > span{ width:18px; height:18px; border-radius:50%; background:currentColor }
html[data-ua-theme] body > .ua-gpick .ua-gpick-sw.is-on > span{ box-shadow:0 0 0 2px var(--ua-surface), 0 0 0 4px currentColor }
html[data-ua-theme] body > .ua-gpick .ua-gpick-ic.is-on{ background:var(--ua-tint-2); box-shadow:inset 0 0 0 2px var(--ua-focus) }
@media (prefers-reduced-motion:reduce){
  html[data-ua-theme] body > .ua-gpick{ animation:none }
  html[data-ua-theme] body > .scrim .ua-gpick-btn,
  html[data-ua-theme] body > .ua-gpick .ua-gpick-sw,
  html[data-ua-theme] body > .ua-gpick .ua-gpick-ic{ transition:none }
}

/* /groups/<id> — the screen sits one level below .main, so it needs the surface animation itself: its fill is what keeps the toolbar under the header menu */
.user-app-shell .ua-grp-page{ animation:ua-surface-in var(--ua-d) ease both }
.user-app-shell .ua-grp-head{ display:flex; align-items:center; gap:10px; min-width:0; margin:0 0 16px }
.user-app-shell .ua-grp-head h2{ margin:0; min-width:0; font-size:20px; font-weight:650; line-height:1.3; color:var(--ua-text); overflow:hidden; white-space:nowrap; text-overflow:ellipsis }
.user-app-shell .ua-grp-count{ flex:none; font-size:13px; color:var(--ua-text-muted) }
.user-app-shell .lp-more.ua-grp-more{ width:32px; height:32px; margin-left:2px }
@media (max-width:1023px), (hover:none){ .user-app-shell .lp-more.ua-grp-more{ width:44px; height:44px } }
.user-app-shell .ua-grp-none{ padding:40px 24px; text-align:center }
.user-app-shell .ua-grp-none p{ margin:0 auto; max-width:60ch; font-size:14px; line-height:1.7; color:var(--ua-text-2); text-wrap:pretty }

/* duplicate: the line in the pop-up, the notice on the new copy */
html[data-ua-theme] body > .scrim .ua-dup-line{ margin:0; line-height:1.6 }
.user-app-shell .ua-dup-note{ flex-wrap:wrap; align-items:center }
.user-app-shell .ua-dup-note p{ flex:1 1 280px }
.user-app-shell .ua-dup-acts{ flex:none; display:flex; align-items:center; gap:6px; margin-left:auto }

@media (prefers-reduced-motion:reduce){
  .user-app-shell .lp-more,
  .user-app-shell .lp-sec-btn,
  .user-app-shell .lp-sec-chev,
  .user-app-shell .lp-slide-in{ transition:none }
}

/* ---------- SL-V2 Team (Owner 2026-11-04) — "สร้าง Short Link": provider = dropdown, domain = the two buttons below.
   Trigger matches the pop-up's inputs; the menu floats over the rows below (the modal does not clip) ---------- */
html[data-ua-theme] body > .scrim .modal .sl-prov-dd .dd-trigger{
  gap:10px; padding:0 14px; background:var(--ua-tint); border-color:var(--ua-border-2); border-radius:var(--ua-radius-sm); color:var(--ua-text);
  transition:border-color var(--ua-d-fast) ease, background-color var(--ua-d-fast) ease, box-shadow var(--ua-d-fast) ease;
}
html[data-ua-theme] body > .scrim .modal .sl-prov-dd .dd-trigger:hover:not(:disabled){ background:var(--ua-tint-2); border-color:var(--ua-accent-line) }
html[data-ua-theme] body > .scrim .modal .sl-prov-dd .dd-trigger:focus-visible{ outline:2px solid var(--ua-focus); outline-offset:2px }
html[data-ua-theme] body > .scrim .modal .sl-prov-dd .dd-trigger[aria-expanded="true"]{ border-color:var(--ua-focus); box-shadow:0 0 0 3px var(--ua-accent-soft) }
html[data-ua-theme] body > .scrim .modal .sl-prov-dd .dd-trigger > svg:first-child{ color:var(--ua-text-muted) }
html[data-ua-theme] body > .scrim .modal .sl-prov-menu{
  background:var(--ua-surface-3); border-color:var(--ua-border-2); border-radius:var(--ua-radius-sm); box-shadow:var(--ua-shadow-pop); z-index:3;
}
html[data-ua-theme="light"] body > .scrim .modal .sl-prov-menu{ background:var(--ua-surface) }
html[data-ua-theme] body > .scrim .modal .sl-prov-opt{ min-height:48px; color:var(--ua-text-2); cursor:pointer }
html[data-ua-theme] body > .scrim .modal .sl-prov-opt.hi:not(.on){ background:var(--ua-tint-2); color:var(--ua-text) }
html[data-ua-theme] body > .scrim .modal .sl-prov-opt.is-disabled{ cursor:not-allowed }
html[data-ua-theme] body > .scrim .modal .sl-prov-sub{ color:var(--ua-text-muted) }
html[data-ua-theme] body > .scrim .modal .sl-prov-sub.warn{ color:var(--ua-status-warn-text) }
@media (prefers-reduced-motion:reduce){
  html[data-ua-theme] body > .scrim .modal .sl-prov-dd .dd-trigger{ transition:none }
  html[data-ua-theme] body > .scrim .modal .sl-prov-menu{ animation:none }
  .sl-prov-dd .dd-chev{ transition:none }
}

/* Owner 2026-11-09 — "HiLynk footer" card (Page Editor: under the last Block, above Add Block, as wide as
   the Page background card; its toggle is the Pixel Manager one) + the pill in the phone preview (same colours as .lp-made). */
.user-app-shell .ed-footer{ display:flex; align-items:center; gap:12px; padding:14px 16px; margin:12px 0 16px }
.user-app-shell .ed-footer-ic{ flex:none; width:36px; height:36px; border-radius:10px; overflow:hidden; display:grid; place-items:center;
  background:var(--ua-surface-2); box-shadow:inset 0 0 0 1px var(--ua-border-2) }
.user-app-shell .ed-footer-ic img{ width:30px; height:30px; object-fit:contain }
.user-app-shell .ed-footer-txt{ flex:1; min-width:0; font-size:14px; font-weight:650; color:var(--ua-text) }
.user-app-shell .ed-footer-lock{ display:inline-flex; color:var(--ua-text-muted) }
.pv-made-wrap{ display:flex; justify-content:center; padding:18px 0 8px }
.pv-made{ display:inline-flex; padding:8px 14px; border-radius:999px; background:linear-gradient(120deg,#2563EB 0%,#0E7490 100%);
  color:#fff; font-size:11px; font-weight:600; line-height:1.2 }
