/* ============================================================
   eArrow Support Portal — PORTAL THEME (orange · light + dark)
   Loaded last. All rules are scoped to body.pt so they outrank the
   legacy styles in both modes; dark-mode-only rules use body.pt.dark-mode.
   Light  : warm off-white canvas, white cards, ember hero card.
   Dark   : warm charcoal canvas, glass cards.
   Both   : orange accent, top pill navigation, white list panel
            with a dark detail card, oversized light-weight titles.
   Delete this file and portal-ui.js (and body class "pt") to revert.
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
body.pt {
  --bg: #f6f2ef;
  --card: #ffffff;
  --text: #17110d;
  --muted: #6f6560;
  --line: rgba(60, 30, 10, 0.09);
  --line-2: rgba(60, 30, 10, 0.17);
  --tint: rgba(60, 30, 10, 0.04);
  --tint-2: rgba(60, 30, 10, 0.08);
  --glass: #ffffff;
  --glass-edge: inset 0 0 0 transparent;
  --card-shadow: 0 1px 2px rgba(60, 30, 10, 0.05), 0 10px 28px -16px rgba(60, 30, 10, 0.22);
  --nav-bg: #ffffff;
  --pop-bg: #ffffff;
  --pn-bg: #ffffff;
  --pn-item: #faf6f3;
  --pn-line: #eee5df;
  --pn-text: #17110d;
  --pn-muted: #7b6f68;
  --glass-bar: rgba(246, 242, 239, 0.8);

  /* Brand colour: the ONLY value that has to change. portal-ui.js sets --brand, --brand-b/-c,
     --acc-rgb and --acc-ink on <body> from the Branding setting; everything below derives from it. */
  --brand: #e4500a;
  --brand-b: #f5a524;
  --brand-c: #e5484d;
  --acc: var(--brand);
  --acc-2: color-mix(in srgb, var(--brand) 82%, #fff);
  --acc-ink: #ffffff;
  --acc-rgb: 228 80 10;
  --hot: linear-gradient(166deg, color-mix(in srgb, var(--brand) 30%, #000) 0%, color-mix(in srgb, var(--brand) 62%, #000) 26%, var(--brand) 60%, color-mix(in srgb, var(--brand) 72%, #fff) 100%);
  --aurora-o: 0.26;
  --detail-bg: #17110e;
  --seg-bg: #17110e;

  /* legacy variables re-mapped */
  --blue-900: color-mix(in srgb, var(--brand) 26%, #000); --blue-800: color-mix(in srgb, var(--brand) 40%, #000);
  --blue-700: color-mix(in srgb, var(--brand) 58%, #000); --blue-600: color-mix(in srgb, var(--brand) 82%, #000);
  --blue-500: var(--brand); --blue-400: color-mix(in srgb, var(--brand) 82%, #fff);
  --blue-300: color-mix(in srgb, var(--brand) 60%, #fff); --blue-200: color-mix(in srgb, var(--brand) 38%, #fff);
  --blue-100: color-mix(in srgb, var(--brand) 18%, #fff); --blue-50: color-mix(in srgb, var(--brand) 8%, #fff);
  --acid: var(--brand); --acid-dim: color-mix(in srgb, var(--brand) 82%, #000);
  --border-blue: color-mix(in srgb, var(--brand) 30%, transparent);
  --grad-brand: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 68%, #fff));
  --grad-brand-hover: linear-gradient(135deg, color-mix(in srgb, var(--brand) 88%, #fff), color-mix(in srgb, var(--brand) 60%, #fff));
  --glow-brand: 0 10px 28px -10px color-mix(in srgb, var(--brand) 60%, transparent);
  --em-grad: var(--hot);

  --surface-1: var(--bg);
  --surface-2: var(--card);
  --surface-3: #f9f5f2;
  --surface-4: #efe8e2;
  --white: var(--card);
  --text-primary: var(--text);
  --text-secondary: #3a302a;
  --text-muted: var(--muted);
  --border: var(--line);
  --border-bright: var(--line-2);

  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 84px;
  --sidebar-w: 0px;
  --header-bg: transparent;
  --shadow-sm: 0 1px 2px rgba(60, 30, 10, 0.06);
  --shadow-md: 0 14px 30px -14px rgba(60, 30, 10, 0.3);
  --shadow-lg: 0 34px 70px -26px rgba(60, 30, 10, 0.4);
  --glass-bg: var(--glass-bar);
}

body.pt.dark-mode {
  --bg: #130d0a;
  --card: #1c1410;
  --text: #f7f1ec;
  --muted: #a89d96;
  --line: rgba(255, 235, 220, 0.09);
  --line-2: rgba(255, 235, 220, 0.17);
  --tint: rgba(255, 235, 220, 0.05);
  --tint-2: rgba(255, 235, 220, 0.1);
  --glass: linear-gradient(180deg, rgba(255, 235, 220, 0.07), rgba(255, 235, 220, 0.025));
  --glass-edge: inset 0 1px 0 rgba(255, 235, 220, 0.05);
  --card-shadow: none;
  --nav-bg: #f3eee9;
  --pop-bg: #211812;
  --pn-bg: #f3ede8;
  --pn-item: #ffffff;
  --pn-line: #ebe2db;
  --glass-bar: rgba(19, 13, 10, 0.75);

  --acc: color-mix(in srgb, var(--brand) 86%, #fff);
  --acc-2: color-mix(in srgb, var(--brand) 66%, #fff);
  --aurora-o: 0.32;
  --detail-bg: #100a07;

  --blue-50: color-mix(in srgb, var(--brand) 12%, transparent); --blue-100: color-mix(in srgb, var(--brand) 22%, transparent);
  --blue-500: var(--acc); --blue-400: var(--acc-2); --blue-600: color-mix(in srgb, var(--brand) 88%, #000);
  --acid: var(--acc); --border-blue: color-mix(in srgb, var(--brand) 34%, transparent);
  --surface-2: var(--card); --surface-3: #241a15; --surface-4: #33261e;
  --black: var(--text);
  --gray-900: #f7f1ec; --gray-800: #ebe3dd; --gray-700: #d3c9c2; --gray-600: #b3a8a0; --gray-500: #a89d96;
  --gray-400: #7d726b; --gray-300: #43352c; --gray-200: #2b201a; --gray-100: #21180f; --gray-50: #171009;
  --text-secondary: #e3d9d2;
  --text-inverse: #130d0a;
  --header-bg: transparent;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 34px 70px -26px rgba(0, 0, 0, 0.8);
}

/* ── Canvas ──────────────────────────────────────────────── */
body.pt { background: var(--bg); color: var(--text); }
body.pt.dark-mode { background: var(--bg); }
body.pt .main-content,
body.pt .app-layout,
body.pt #app { background: transparent; }

/* Animated brand gradient: three soft colour fields drifting at different speeds.
   Colours come from the Branding colour (+ two analogous hues). Transform-only animation. */
body.pt .bg-aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
body.pt .bg-aurora i {
  position: absolute; display: block; border-radius: 50%; opacity: var(--aurora-o, 0.34); will-change: transform;
  background: radial-gradient(closest-side, var(--c) 0%, transparent 100%);
}
body.pt .bg-aurora .a1 { --c: var(--brand);   width: 62vw; height: 62vw; left: -14vw; top: -22vw; animation: auroraA 56s ease-in-out infinite alternate; }
body.pt .bg-aurora .a2 { --c: var(--brand-b); width: 52vw; height: 52vw; right: -12vw; top: 4vh;   animation: auroraB 72s ease-in-out infinite alternate; }
body.pt .bg-aurora .a3 { --c: var(--brand-c); width: 56vw; height: 56vw; left: 18vw; bottom: -30vw; animation: auroraC 88s ease-in-out infinite alternate; }
@keyframes auroraA { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(22vw, 10vh, 0) scale(1.18); } 100% { transform: translate3d(8vw, 30vh, 0) scale(0.92); } }
@keyframes auroraB { 0% { transform: translate3d(0, 0, 0) scale(1.05); } 50% { transform: translate3d(-24vw, 22vh, 0) scale(0.9); } 100% { transform: translate3d(-8vw, 40vh, 0) scale(1.2); } }
@keyframes auroraC { 0% { transform: translate3d(0, 0, 0) scale(0.95); } 50% { transform: translate3d(-18vw, -14vh, 0) scale(1.15); } 100% { transform: translate3d(14vw, -26vh, 0) scale(1); } }
@media (prefers-reduced-motion: reduce) { body.pt .bg-aurora i { animation: none; } }

/* ── No sidebar; navigation lives in the top bar ─────────── */
body.pt .sidebar { display: none !important; }
body.pt .main-content { margin-left: 0 !important; }
body.pt .sidebar-collapse-btn,
body.pt .mobile-toggle,
body.pt .topbar-title,
body.pt .topbar-search { display: none !important; }
body.pt .page-content { padding: 6px 0 72px; background: transparent; }
body.pt .page-content > .page { max-width: 1392px; margin: 0 auto; padding: 0 32px; }

/* ── Top bar ─────────────────────────────────────────────── */
body.pt .topbar {
  min-height: var(--header-h); height: auto;
  padding: 18px max(32px, calc((100% - 1328px) / 2));
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 0; border-bottom: 0; box-shadow: none; gap: 14px; flex-wrap: wrap;
}
body.pt .topbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
body.pt .tb-left,
body.pt .tb-right { flex: 1 1 0; display: flex; align-items: center; min-width: 0; }
body.pt .tb-right { justify-content: flex-end; gap: 10px; }
body.pt .tb-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; border: 0; background: none; padding: 0; color: var(--text); }
body.pt .tb-logo img { height: 26px; width: auto; display: block; filter: brightness(0); }   /* white artwork: render dark on the light canvas */
body.pt.dark-mode .tb-logo img { filter: none; }

body.pt .tb-nav {
  display: flex; align-items: center; gap: 2px; padding: 6px; max-width: 100%;
  background: var(--nav-bg); border-radius: 999px; box-shadow: var(--card-shadow);
}
body.pt.dark-mode .tb-nav { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.6); }
body.pt .tb-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
  border: 0; border-radius: 999px; background: transparent; color: #1c1511;
  font: inherit; font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
body.pt .tb-pill:hover { background: rgba(60, 30, 10, 0.07); }
body.pt .tb-pill.on,
body.pt .tb-pill.on:hover { background: var(--acc); color: var(--acc-ink); font-weight: 600; }
body.pt .tb-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #1c1511; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center;
}
body.pt .tb-pill.on .tb-count { background: #fff; color: var(--acc); }
body.pt .tb-pill .fa-chevron-down { font-size: 10px; transition: transform 0.2s; }
body.pt .tb-pill[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }

body.pt .tb-wrap { position: relative; }
body.pt .tb-pop {
  position: absolute; top: calc(100% + 12px); z-index: 200; min-width: 300px; max-height: 70vh; overflow-y: auto;
  padding: 14px; background: var(--pop-bg); border: 1px solid var(--line-2); border-radius: 26px;
  box-shadow: var(--shadow-lg); display: none;
}
body.pt .tb-pop.open { display: block; animation: popIn 0.2s ease; }
body.pt .tb-pop.right { right: 0; }
body.pt .tb-pop.center { left: 50%; transform: translateX(-50%); }
body.pt .tb-pop.center.open { animation: none; }
body.pt .tb-pop-label { padding: 10px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
body.pt .tb-pop-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 16px;
  background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer;
}
body.pt .tb-pop-item i { width: 18px; color: var(--muted); }
body.pt .tb-pop-item:hover { background: var(--tint-2); }
body.pt .tb-pop-item.on { background: var(--acc); color: var(--acc-ink); }
body.pt .tb-pop-item.on i { color: inherit; }
body.pt .tb-pop-item .tb-count { margin-left: auto; background: var(--acc); color: #fff; }
body.pt .tb-pop-item.on .tb-count { background: #fff; color: var(--acc); }
body.pt .tb-pop-user { padding: 10px 12px 12px; }
body.pt .tb-pop-user b { display: block; font-size: 15px; }
body.pt .tb-pop-user span { font-size: 12.5px; color: var(--muted); }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

body.pt .notif-btn,
body.pt .theme-toggle-btn,
body.pt .tb-iconbtn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--card); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--card-shadow); transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
body.pt .notif-btn:hover,
body.pt .theme-toggle-btn:hover,
body.pt .tb-iconbtn:hover { border-color: var(--acc); color: var(--acc); transform: translateY(-2px); }
body.pt .theme-toggle-btn i::before { content: none !important; }
body.pt .notif-dot { background: var(--acc); box-shadow: 0 0 0 2px var(--bg); }
body.pt .tb-avatar {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--acc);
  background: var(--hot); color: #fff; font: inherit; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; letter-spacing: 0.02em;
}
body.pt .notif-dropdown { top: calc(var(--header-h) + 2px); right: max(32px, calc((100% - 1328px) / 2)); border-radius: 26px; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); background: var(--pop-bg); }

/* ── Typography ──────────────────────────────────────────── */
body.pt .section-title { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); border-bottom: 0; }
body.pt .section-subtitle { color: var(--muted); font-size: 14px; }
body.pt .section-header { margin-bottom: 20px; }
body.pt .page > .section-header:first-child .section-title { font-size: 32px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
body.pt .text-muted { color: var(--muted); }

/* ── Surfaces ────────────────────────────────────────────── */
body.pt .table-card,
body.pt .report-card,
body.pt .detail-panel,
body.pt .ticket-detail-header,
body.pt .stat-card,
body.pt .alerts-container {
  background: var(--glass); border: 1px solid var(--line); border-radius: 30px;
  box-shadow: var(--card-shadow), var(--glass-edge);
}
body.pt .detail-panel-header,
body.pt .modal-header,
body.pt .modal-footer { background: transparent; border-color: var(--line); }
body.pt .detail-panel-title { color: var(--text); }
body.pt .table-toolbar { padding: 18px 22px; }
body.pt thead,
body.pt thead th { background: transparent; color: var(--muted); border-bottom: 1px solid var(--line); }
body.pt tbody td { color: var(--text); border-color: var(--line); }
body.pt tbody tr { border-bottom: 1px solid var(--line); }
body.pt tbody tr:hover { background: rgb(var(--acc-rgb) / 0.06); box-shadow: inset 3px 0 0 var(--acc); transform: none; }
body.pt tbody tr:hover td { background: transparent; }
body.pt .ticket-num { color: var(--acc); font-weight: 700; }
body.pt .table-footer { background: transparent; border-top: 1px solid var(--line); }
body.pt .modal { background: var(--pop-bg); border: 1px solid var(--line-2); border-radius: 30px; }
body.pt .toast { background: var(--pop-bg); border: 1px solid var(--line-2); color: var(--text); }
body.pt .alerts-container { padding: 18px 22px; }
body.pt .timeline-item,
body.pt .chat-bubble.theirs { background: var(--tint); border-color: var(--line); }
body.pt .chat-bubble.mine { background: var(--acc); color: var(--acc-ink); }
body.pt .ticket-chat-messages { background: var(--tint); }
body.pt .attachment-pill { background: rgb(var(--acc-rgb) / 0.12); color: var(--acc); border-color: rgb(var(--acc-rgb) / 0.3); }
body.pt .notif-panel,
body.pt .search-results-panel,
body.pt .tag-autocomplete { background: var(--pop-bg); border-color: var(--line-2); }

/* ── Buttons ─────────────────────────────────────────────── */
body.pt .btn { border-radius: 999px; font-weight: 600; letter-spacing: 0; }
body.pt .btn-primary,
body.pt .btn-primary:focus-visible { background: var(--acc); color: var(--acc-ink); border: 0; box-shadow: none; }
body.pt .btn-primary:hover { background: var(--acc-2); color: var(--acc-ink); box-shadow: var(--glow-brand); transform: translateY(-1px); }
body.pt .btn-secondary,
body.pt .btn-outline { background: var(--card); color: var(--text); border: 1px solid var(--line-2); }
body.pt .btn-secondary:hover,
body.pt .btn-outline:hover { background: var(--tint); border-color: var(--acc); color: var(--acc); }
body.pt .ripple { background: rgba(255, 255, 255, 0.4); }
body.pt .btn-secondary .ripple,
body.pt .btn-outline .ripple,
body.pt .view-chip .ripple { background: rgb(var(--acc-rgb) / 0.25); }

/* quick-view chips + density = segmented control */
body.pt .view-bar { padding: 16px 22px 0; }
body.pt .view-chips { background: var(--seg-bg); padding: 5px; border-radius: 999px; gap: 2px; border: 0; }
body.pt .view-chip { border: 0; color: #b8ada5; padding: 8px 16px; font-weight: 500; background: transparent; }
body.pt .view-chip:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
body.pt .view-chip.active { background: var(--acc); color: var(--acc-ink); font-weight: 600; box-shadow: none; }
body.pt .density-toggle { border-color: var(--line-2); }
body.pt .density-btn { color: var(--muted); }
body.pt .density-btn.active { background: rgb(var(--acc-rgb) / 0.12); color: var(--acc); }

/* ── Inputs ──────────────────────────────────────────────── */
body.pt .form-control,
body.pt .filter-select,
body.pt .ticket-chat-input,
body.pt input[type="text"],
body.pt input[type="email"],
body.pt input[type="password"],
body.pt input[type="number"],
body.pt input[type="date"],
body.pt input[type="search"],
body.pt textarea,
body.pt select {
  background: var(--tint); border: 1px solid var(--line-2); border-radius: 16px; color: var(--text);
}
body.pt .form-control:focus,
body.pt .filter-select:focus,
body.pt input:focus,
body.pt textarea:focus,
body.pt select:focus {
  border-color: var(--acc); box-shadow: 0 0 0 4px rgb(var(--acc-rgb) / 0.15); background: var(--card); color: var(--text);
}
body.pt select.form-control option,
body.pt .filter-select option,
body.pt select option { background: var(--card); color: var(--text); }
body.pt .form-control::placeholder,
body.pt input::placeholder,
body.pt textarea::placeholder { color: var(--muted); opacity: 0.8; }

/* ══ DASHBOARD ════════════════════════════════════════════ */
body.pt .legacy-dash[hidden] { display: none !important; }
body.pt .nx-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 22px 0 22px; }
body.pt .nx-title { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; letter-spacing: -0.035em; line-height: 1; color: var(--text); }
body.pt .nx-title small { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
body.pt .nx-actions { display: flex; gap: 10px; align-items: center; }
body.pt .nx-roundbtn {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--card); color: var(--text); cursor: pointer; box-shadow: var(--card-shadow);
  display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
body.pt .nx-roundbtn:hover { border-color: var(--acc); color: var(--acc); transform: translateY(-2px); }
body.pt .nx-ghostbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px;
  border: 0; background: var(--acc); color: var(--acc-ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
body.pt .nx-ghostbtn:hover { background: var(--acc-2); transform: translateY(-2px); box-shadow: var(--glow-brand); }

body.pt .nx-glass {
  position: relative; overflow: hidden; border-radius: 38px; padding: 28px 32px;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--card-shadow), var(--glass-edge);
}
body.pt .nx-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }

body.pt .nx-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; min-height: 100%; }
body.pt .nx-m { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 0; }
body.pt .nx-m-label { font-size: 13px; color: var(--muted); }
body.pt .nx-m-val { margin-top: 6px; font-size: 30px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
body.pt .nx-m-val .u { font-size: 13px; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
body.pt .nx-track { margin-top: auto; }
body.pt .nx-track-lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
body.pt .nx-bar { height: 7px; border-radius: 4px; background: var(--tint-2); overflow: hidden; }
body.pt .nx-bar i { display: block; height: 100%; border-radius: 4px; background: var(--acc); transform-origin: left; animation: barGrow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
body.pt.dark-mode .nx-bar i { box-shadow: 0 0 14px rgb(var(--acc-rgb) / 0.55); }
@keyframes barGrow { from { transform: scaleX(0); } }
body.pt .nx-stack { display: flex; margin-top: 16px; min-height: 36px; }
body.pt .nx-av {
  width: 36px; height: 36px; border-radius: 50%; margin-left: -9px; border: 2px solid var(--card);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #17110d; background: hsl(var(--h, 20) 75% 74%);
}
body.pt .nx-av:first-child { margin-left: 0; }

/* SLA hero card: ember gradient in both modes */
body.pt .nx-glass.nx-sla {
  min-height: 330px; padding-bottom: 0; display: flex; flex-direction: column; color: #fff;
  background: var(--hot); border: 0; box-shadow: 0 30px 60px -30px rgb(var(--acc-rgb) / 0.55);
}
body.pt .nx-sla::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 260px at 82% 0%, rgba(255, 255, 255, 0.22), transparent 70%); }
body.pt .nx-sla > * { position: relative; }
body.pt .nx-sla-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
body.pt .nx-sla .nx-m-label { color: rgba(255, 255, 255, 0.82); }
body.pt .nx-sla .nx-m-val { font-size: 38px; }
body.pt .nx-sla .nx-m-val .u { color: rgba(255, 255, 255, 0.75); }
body.pt .nx-chip { display: inline-flex; align-items: center; margin-top: 14px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 13px; color: #fff; }
body.pt .nx-sla .nx-roundbtn { background: rgba(255, 255, 255, 0.18); border-color: transparent; color: #fff; box-shadow: none; }
body.pt .nx-sla .nx-roundbtn:hover { background: #fff; color: color-mix(in srgb, var(--brand) 55%, #000); }
body.pt .nx-ptabs { margin-top: auto; display: flex; align-items: flex-end; gap: 8px; padding-top: 24px; margin-left: -4px; margin-right: -4px; }
body.pt .nx-ptab {
  flex: 1; height: 58px; padding: 12px 16px; border: 0; border-radius: 24px 24px 0 0; text-align: left;
  background: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.82); font: inherit; font-size: 13px; cursor: pointer;
  transition: height 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.2s, color 0.2s;
}
body.pt .nx-ptab b { display: block; margin-top: 3px; font-size: 15px; font-weight: 500; color: #fff; letter-spacing: -0.01em; }
body.pt .nx-ptab:hover { background: rgba(255, 255, 255, 0.26); }
body.pt .nx-ptab.on { height: 84px; background: #fff; color: color-mix(in srgb, var(--brand) 55%, #000); }
body.pt .nx-ptab.on b { color: #17110d; font-weight: 600; }
body.pt .nx-go {
  align-self: flex-end; margin-bottom: 14px; height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  background: #17110e; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
body.pt .nx-go:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.7); }

/* white list panel + dark detail card */
body.pt .nx-panel {
  margin-top: 18px; padding: 26px 28px 28px; border-radius: 44px; background: var(--pn-bg); color: var(--pn-text);
  border: 1px solid var(--line); box-shadow: var(--card-shadow);
}
body.pt .nx-panel-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
body.pt .nx-panel-head h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--pn-text); }
body.pt .nx-panel-tools { display: flex; justify-content: flex-end; gap: 8px; }
body.pt .nx-lightbtn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--pn-line); background: #fff; color: #17110d;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s, border-color 0.2s;
}
body.pt .nx-lightbtn:hover { transform: translateY(-2px); border-color: var(--acc); color: var(--acc); }
body.pt .nx-seg { display: inline-flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--seg-bg); }
body.pt .nx-seg button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border: 0; border-radius: 999px;
  background: transparent; color: #b8ada5; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s;
}
body.pt .nx-seg button:hover { color: #fff; }
body.pt .nx-seg button.on { background: var(--acc); color: var(--acc-ink); font-weight: 600; }
body.pt .nx-seg .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); font-size: 11.5px; line-height: 20px; text-align: center; }
body.pt .nx-seg button.on .n { background: rgba(0, 0, 0, 0.28); color: #fff; }
body.pt .nx-body { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr); gap: 20px; margin-top: 24px; align-items: start; }
body.pt .nx-list { max-height: 470px; overflow-y: auto; padding: 2px 4px 2px 0; scrollbar-width: thin; }
body.pt .nx-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; width: 100%;
  margin-bottom: 10px; padding: 12px 16px; border: 1px solid var(--pn-line); border-radius: 24px; background: var(--pn-item); color: var(--pn-text);
  text-align: left; font: inherit; cursor: pointer; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s, background 0.25s, color 0.25s;
}
body.pt .nx-item:hover { transform: translateX(3px); box-shadow: 0 12px 24px -16px rgba(23, 17, 13, 0.5); }
body.pt .nx-item.sel { background: var(--detail-bg); color: #fff; border-color: var(--detail-bg); }
body.pt .nx-item .ava { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #17110d; background: hsl(var(--h, 20) 75% 76%); }
body.pt .nx-item .t { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pt .nx-item .s { margin-top: 2px; font-size: 12.5px; color: var(--pn-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pt .nx-item.sel .s { color: #b3a8a0; }
body.pt .nx-item .r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
body.pt .nx-item .amt { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
body.pt .nx-st {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; color: #5a4d45;
  background: repeating-linear-gradient(135deg, #ece3dd 0 4px, #f7f2ee 4px 8px);
}
body.pt .nx-item.sel .nx-st { background: #fff; color: #17110d; }
body.pt .nx-st.warn { color: #b42318; background: repeating-linear-gradient(135deg, #fde2e0 0 4px, #fff1f0 4px 8px); }
body.pt .nx-empty { padding: 36px; text-align: center; color: var(--pn-muted); }

body.pt .nx-detail {
  padding: 28px 30px; border-radius: 36px; color: #f7f1ec;
  background: radial-gradient(560px 260px at 100% 0%, rgb(var(--acc-rgb) / 0.12), transparent 70%), var(--detail-bg);
  animation: detailIn 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes detailIn { from { opacity: 0; transform: translateY(8px); } }
body.pt .nx-d-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
body.pt .nx-d-lbl { font-size: 13.5px; color: #a89d96; margin-bottom: 8px; }
body.pt .nx-d-num { font-size: 28px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; word-break: break-word; }
body.pt .nx-d-num i { font-style: normal; color: #a89d96; margin-right: 4px; font-size: 18px; }
body.pt .nx-d-status { display: inline-block; margin-top: 12px; padding: 7px 16px; border: 1px solid rgba(255, 235, 220, 0.2); border-radius: 999px; font-size: 12.5px; }
body.pt .nx-d-org { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
body.pt .nx-d-sub { margin-top: 4px; font-size: 13px; color: #a89d96; }
body.pt .nx-d-user { display: flex; align-items: center; gap: 12px; }
body.pt .nx-d-user .nx-av { margin: 0; width: 44px; height: 44px; border-color: transparent; }
body.pt .nx-d-user b { display: block; font-size: 14px; font-weight: 600; }
body.pt .nx-d-user span { font-size: 12.5px; color: #a89d96; }
body.pt .nx-d-subject { margin: 20px 0 0; font-size: 14px; line-height: 1.5; color: #e3d9d2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.pt .nx-d-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
body.pt .nx-d-tile {
  position: relative; min-height: 96px; padding: 14px 16px; border-radius: 22px; border: 1px solid rgba(255, 235, 220, 0.09);
  background: rgba(255, 235, 220, 0.05); display: flex; flex-direction: column; justify-content: space-between; color: inherit;
}
body.pt .nx-d-tile .v { font-size: 20px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
body.pt .nx-d-tile .l { font-size: 12.5px; color: #a89d96; }
body.pt .nx-d-tile .ar { position: absolute; top: 14px; right: 16px; font-size: 12px; color: #a89d96; }
body.pt .nx-d-tile.plus {
  align-items: center; justify-content: center; cursor: pointer; color: #a89d96; font-size: 22px; font-family: inherit;
  background: repeating-linear-gradient(135deg, rgba(255, 235, 220, 0.04) 0 5px, rgba(255, 235, 220, 0.015) 5px 10px); border-style: dashed;
  transition: color 0.2s, border-color 0.2s;
}
body.pt .nx-d-tile.plus:hover { color: var(--acc-2); border-color: var(--acc-2); }
body.pt .nx-d-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 18px;
  margin-top: 16px; padding: 18px 22px; border-radius: 28px; background: rgba(255, 235, 220, 0.06); border: 1px solid rgba(255, 235, 220, 0.09);
}
body.pt .nx-d-bar .l { font-size: 12.5px; color: #a89d96; }
body.pt .nx-d-bar .v { margin-top: 3px; font-size: 15px; font-weight: 400; letter-spacing: -0.01em; }
body.pt .nx-d-bar .v.bad { color: #ff8a70; }
body.pt .nx-d-btns { display: flex; align-items: center; gap: 8px; }
body.pt .nx-limebtn {
  height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--acc); color: var(--acc-ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
body.pt .nx-limebtn:hover { background: var(--acc-2); transform: translateY(-2px); box-shadow: var(--glow-brand); }
body.pt .nx-darkicon {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 235, 220, 0.18); background: rgba(255, 235, 220, 0.05);
  color: #f7f1ec; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.2s, color 0.2s;
}
body.pt .nx-darkicon:hover { border-color: var(--acc-2); color: var(--acc-2); }

/* command palette follows the tokens */
body.pt .cmdk { background: var(--pop-bg); border-color: var(--line-2); }
body.pt .cmdk-item.sel .cmdk-ico { background: var(--acc); color: var(--acc-ink); }
body.pt .cmdk-foot { background: var(--tint); }

/* ── Login screen ────────────────────────────────────────── */
body.pt #auth-screen { background: transparent !important; padding: 24px; }
body.pt #auth-screen::before,
body.pt #auth-screen::after { display: none !important; }
body.pt .lg-card {
  --lg-frame: color-mix(in srgb, var(--brand) 10%, #efe7df);
  --lg-panel: color-mix(in srgb, var(--brand) 5%, #fdf8f2);
  --lg-field: color-mix(in srgb, var(--brand) 4%, #fff);
  display: grid; grid-template-columns: minmax(380px, 45%) 1fr; width: min(1080px, 100%); min-height: min(640px, calc(100vh - 48px));
  padding: 12px; border-radius: 40px; background: var(--lg-frame); position: relative;
  box-shadow: 0 40px 90px -30px rgb(var(--acc-rgb) / 0.45), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  animation: lgIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
body.pt.dark-mode .lg-card {
  --lg-frame: color-mix(in srgb, var(--brand) 8%, #241913);
  --lg-panel: color-mix(in srgb, var(--brand) 5%, #1b1310);
  --lg-field: color-mix(in srgb, var(--brand) 5%, #231a15);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
}
@keyframes lgIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
body.pt .lg-card.shake { animation: lgShake 0.7s ease-in-out; }
@keyframes lgShake { 15%, 85% { transform: translateX(-1px); } 30%, 70% { transform: translateX(3px); } 45%, 55% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }

body.pt .lg-form {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center;
  padding: 36px clamp(28px, 4vw, 52px); border-radius: 30px; background: var(--lg-panel);
}
body.pt .lg-logo { height: 26px; width: auto; align-self: center; margin-bottom: 26px; filter: brightness(0); }
body.pt.dark-mode .lg-logo { filter: none; }
body.pt .lg-title { margin: 0; text-align: center; font-size: 34px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.12; color: var(--text); }
body.pt .lg-accent { color: var(--brand); position: relative; }
body.pt.dark-mode .lg-accent { color: var(--acc); }
body.pt .lg-sub { margin: 10px auto 26px; max-width: 320px; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
body.pt .lg-field { margin-bottom: 16px; }
body.pt .lg-field label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 600; color: var(--text); }
body.pt .lg-input { position: relative; }
body.pt .lg-input input {
  width: 100%; height: 48px; padding: 0 46px 0 16px; border-radius: 14px; font: inherit; font-size: 14px;
  background: var(--lg-field); border: 1px solid var(--line-2); color: var(--text); outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}
body.pt .lg-input input::placeholder { color: var(--muted); opacity: 0.75; }
body.pt .lg-input input:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line-2)); }
body.pt .lg-input input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgb(var(--acc-rgb) / 0.15); background: var(--card); transform: translateY(-1px); }
body.pt .lg-input > i,
body.pt .lg-eye {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--muted); transition: color 0.2s;
}
body.pt .lg-input:focus-within > i { color: var(--brand); }
body.pt .lg-eye { right: 6px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
body.pt .lg-eye:hover { color: var(--brand); background: rgb(var(--acc-rgb) / 0.1); }
body.pt .lg-caps { display: none; align-items: center; gap: 6px; margin-top: 7px; font-size: 12px; font-weight: 500; color: #b45309; }
body.pt .lg-caps.on { display: flex; animation: lgFade 0.2s ease; }
@keyframes lgFade { from { opacity: 0; transform: translateY(-3px); } }

body.pt .lg-submit {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 50px; margin-top: 8px; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--acc-ink);
  background: linear-gradient(100deg, color-mix(in srgb, var(--brand) 78%, #b00020) 0%, var(--brand) 45%, color-mix(in srgb, var(--brand) 62%, #ffc13b) 100%);
  background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 16px 30px -14px rgb(var(--acc-rgb) / 0.75);
  transition: background-position 0.5s ease, transform 0.2s, box-shadow 0.2s;
}
body.pt .lg-submit::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); }
body.pt .lg-submit:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 22px 36px -14px rgb(var(--acc-rgb) / 0.85); }
body.pt .lg-submit:hover::after { left: 120%; transition: left 0.7s ease; }
body.pt .lg-submit:hover > i { transform: translateX(4px); }
body.pt .lg-submit > i { transition: transform 0.25s; }
body.pt .lg-submit:active { transform: translateY(0) scale(0.99); }
body.pt .lg-submit:disabled { opacity: 0.85; cursor: progress; transform: none; }
body.pt .lg-error { display: none; margin-top: 14px; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.4; color: #b42318; background: #fdecea; border: 1px solid #f7c6c0; }
body.pt .lg-error.visible { display: block; animation: lgFade 0.25s ease; }
body.pt.dark-mode .lg-error { color: #ffb4a8; background: rgba(220, 38, 38, 0.14); border-color: rgba(248, 113, 113, 0.35); }
body.pt .lg-foot { margin: 18px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* artwork */
body.pt .lg-art {
  --px: 0; --py: 0;
  position: relative; overflow: hidden; margin-left: -44px; border-radius: 30px;
  background: color-mix(in srgb, var(--brand) 70%, #fff);
}
body.pt .lg-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
body.pt .lg-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 42%, color-mix(in srgb, var(--brand) 62%, transparent) 78%, color-mix(in srgb, var(--brand) 78%, #2a0a00) 100%); opacity: 0.72; }
body.pt .lg-quote {
  position: absolute; z-index: 3; left: 52px; right: 28px; bottom: 28px; color: #fff; display: flex; align-items: flex-end; gap: 16px;
  transform: translate(calc(var(--px) * -5px), calc(var(--py) * -3px)); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.pt .lg-slides { position: relative; flex: 1; min-height: 150px; }
body.pt .lg-slide { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.5s ease, transform 0.5s ease; }
body.pt .lg-slide.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.9s ease 0.5s, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s; }
body.pt .lg-qmark { font-family: Georgia, 'Times New Roman', serif; font-size: 54px; line-height: 0.6; height: 26px; opacity: 0.9; }
body.pt .lg-slide p { margin: 4px 0 16px; max-width: 360px; font-size: 16.5px; font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; text-shadow: 0 1px 12px rgba(60, 14, 0, 0.35); }
body.pt .lg-who { display: flex; align-items: center; gap: 12px; }
body.pt .lg-ico { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.22); font-size: 15px; }
body.pt .lg-who b { display: block; font-size: 13px; font-weight: 600; }
body.pt .lg-who span:not(.lg-ico) { font-size: 12px; opacity: 0.8; }
body.pt .lg-dots { display: flex; flex-direction: column; gap: 8px; align-items: center; padding-bottom: 6px; }
body.pt .lg-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, 0.45); cursor: pointer; transition: height 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.2s; }
body.pt .lg-dot:hover { background: rgba(255, 255, 255, 0.8); }
body.pt .lg-dot.on { height: 28px; background: #fff; }

/* live fluid avatar ("Flow") */
body.pt .lg-avatar {
  --heart: #ff6f91;
  position: absolute; z-index: 2; left: 50%; top: 44px; width: min(300px, 54%); transform: translateX(-50%); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  filter: drop-shadow(0 16px 22px rgba(70, 16, 0, 0.16));
}
body.pt .fl-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; }
body.pt .fl-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
body.pt .fl-goo { filter: url(#lgGoo); }
body.pt .fl-shadow { position: absolute; left: 50%; bottom: 5%; width: 56%; height: 9%; border-radius: 50%; pointer-events: none; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(60, 14, 0, 0.38), rgba(60, 14, 0, 0)); }
body.pt .lb-off { opacity: 0; }
body.pt .fl-svg { position: absolute; width: 0; height: 0; overflow: hidden; }
body.pt .lg-bubble {
  position: absolute; z-index: 3; top: 26px; left: calc(100% - 44px); width: max-content; max-width: 172px; padding: 10px 14px;
  border-radius: 18px 18px 18px 5px; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: #3a1a0c;
  background: rgba(255, 255, 255, 0.94); box-shadow: 0 12px 28px -12px rgba(60, 14, 0, 0.45);
  opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); pointer-events: none;
}
body.pt .lg-bubble.hide { opacity: 0; transform: translateY(8px) scale(0.96); }

/* floating effects */
body.pt .lg-fx { position: absolute; z-index: 4; pointer-events: none; font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 2px 10px rgba(60, 14, 0, 0.35); animation: lgFx 1.7s ease-out forwards; }
@keyframes lgFx { 0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(0.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, -110px)) rotate(var(--rot, 20deg)) scale(1.15); } }

@media (max-width: 900px) {
  body.pt #auth-screen { padding: 14px; align-items: flex-start; overflow-y: auto; }
  body.pt .lg-card { grid-template-columns: 1fr; min-height: 0; border-radius: 32px; }
  body.pt .lg-art { display: none; }
  body.pt .lg-form { padding: 30px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  body.pt .lg-card,
body.pt .lg-card.shake { animation: none; }
}

/* ── Post-login intro ───────────────────────────────────── */
body.pt #cinematic-intro {
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 34%, #0b0504) 0%, color-mix(in srgb, var(--brand) 66%, #1a0802) 55%, var(--brand) 100%);
  clip-path: circle(150% at 50% 50%);
  opacity: 1; filter: none; transform: none; visibility: visible;
  transition: clip-path 1s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s ease 0.75s, visibility 0s linear 1.05s;
}
body.pt #cinematic-intro.hidden { clip-path: circle(0% at 50% 50%); opacity: 0; filter: none; transform: none; visibility: hidden; pointer-events: none; }
body.pt #cinematic-intro::before,
body.pt #cinematic-intro::after { display: none; }

body.pt .ci-bg { position: absolute; inset: 0; overflow: hidden; }
body.pt .ci-bg i { position: absolute; display: block; border-radius: 50%; will-change: transform; background: radial-gradient(closest-side, var(--c) 0%, transparent 100%); opacity: 0.55; }
body.pt .ci-bg .o1 { --c: color-mix(in srgb, var(--brand) 45%, #ffd2a8); width: 70vw; height: 70vw; left: -18vw; top: -26vw; animation: ciOrb1 14s ease-in-out infinite alternate; }
body.pt .ci-bg .o2 { --c: var(--brand-c); width: 60vw; height: 60vw; right: -16vw; bottom: -24vw; animation: ciOrb2 17s ease-in-out infinite alternate; }
body.pt .ci-bg .o3 { --c: color-mix(in srgb, var(--brand) 40%, #fff); width: 44vw; height: 44vw; left: 30vw; top: 20vh; opacity: 0.3; animation: ciOrb3 20s ease-in-out infinite alternate; }
@keyframes ciOrb1 { to { transform: translate3d(16vw, 14vh, 0) scale(1.15); } }
@keyframes ciOrb2 { to { transform: translate3d(-14vw, -12vh, 0) scale(1.1); } }
@keyframes ciOrb3 { to { transform: translate3d(-10vw, 10vh, 0) scale(1.25); } }

body.pt .ci-sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
body.pt .ci-sparks i { position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: 0; }
body.pt .active .ci-sparks i { animation: ciSpark 5.5s ease-in var(--d) infinite; }
@keyframes ciSpark { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.7; } 100% { transform: translateY(-78vh); opacity: 0; } }

body.pt .ci-center { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
body.pt .ci-pulse { position: absolute; top: 50%; left: 50%; width: 420px; height: 420px; margin: -250px 0 0 -210px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); opacity: 0; }
body.pt .active .ci-pulse { animation: ciPulse 2.6s cubic-bezier(0.2, 0.6, 0.2, 1) 0.9s infinite; }
@keyframes ciPulse { 0% { transform: scale(0.35); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }

body.pt .ci-logo-wrap { position: relative; width: min(380px, 66vw); }
body.pt .ci-logo { display: block; width: 100%; height: auto; opacity: 0; clip-path: inset(0 100% 0 0); filter: blur(8px); transform: scale(0.94); }
body.pt .active .ci-logo { animation: ciLogo 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s forwards; }
@keyframes ciLogo { 0% { opacity: 0; clip-path: inset(0 100% 0 0); filter: blur(8px); transform: scale(0.94); } 30% { opacity: 1; } 100% { opacity: 1; clip-path: inset(0 0 0 0); filter: blur(0); transform: scale(1); } }
body.pt .ci-shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-mask: url("../img/earrow-logo-white.png") center / contain no-repeat; mask: url("../img/earrow-logo-white.png") center / contain no-repeat;
  background: linear-gradient(100deg, transparent 38%, #fff 50%, transparent 62%); background-size: 260% 100%; background-position: 160% 0;
}
body.pt .active .ci-shine { animation: ciShine 1.5s ease 1.5s forwards; }
@keyframes ciShine { 0% { opacity: 1; background-position: 160% 0; } 100% { opacity: 1; background-position: -60% 0; } }

body.pt .ci-hello { margin-top: 26px; font-size: 20px; font-weight: 400; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.92); opacity: 0; transform: translateY(12px); }
body.pt .ci-hello b { font-weight: 700; color: #fff; }
body.pt .active .ci-hello { animation: ciUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 1.15s forwards; }
@keyframes ciUp { to { opacity: 1; transform: none; } }

body.pt .ci-status { position: relative; height: 20px; margin-top: 10px; width: 260px; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
body.pt .ci-status span { position: absolute; left: 0; right: 0; opacity: 0; }
body.pt .active .ci-status span:nth-child(1) { animation: ciStat 1s ease 1.4s both; }
body.pt .active .ci-status span:nth-child(2) { animation: ciStat 1s ease 2.3s both; }
body.pt .active .ci-status span:nth-child(3) { animation: ciStatEnd 0.6s ease 3.2s both; }
@keyframes ciStat { 0% { opacity: 0; transform: translateY(6px); } 18%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes ciStatEnd { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }

body.pt .ci-bar { width: min(260px, 54vw); height: 4px; margin-top: 18px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.2); opacity: 0; }
body.pt .ci-bar i { display: block; height: 100%; border-radius: 2px; background: #fff; box-shadow: 0 0 16px rgba(255, 255, 255, 0.85); transform: scaleX(0); transform-origin: left; }
body.pt .active .ci-bar { animation: ciUp 0.5s ease 1s forwards; }
body.pt .active .ci-bar i { animation: ciBar 3s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards; }
@keyframes ciBar { to { transform: scaleX(1); } }

body.pt .ci-skip {
  position: absolute; z-index: 4; right: 24px; bottom: 24px; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; opacity: 0;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background 0.2s;
}
body.pt .ci-skip:hover { background: rgba(255, 255, 255, 0.26); }
body.pt .active .ci-skip { animation: ciUp 0.6s ease 1.4s forwards; }

@media (prefers-reduced-motion: reduce) {
  body.pt #cinematic-intro,
body.pt #cinematic-intro.hidden { transition: opacity 0.3s ease; clip-path: none; }
  body.pt .ci-bg i,
body.pt .ci-sparks i,
body.pt .ci-pulse { animation: none !important; }
  body.pt .active .ci-logo,
body.pt .active .ci-hello,
body.pt .active .ci-bar,
body.pt .active .ci-skip { animation: none; opacity: 1; clip-path: none; filter: none; transform: none; }
  body.pt .active .ci-bar i { animation: none; transform: scaleX(1); }
  body.pt .active .ci-shine { animation: none; }
  body.pt .active .ci-status span:nth-child(3) { animation: none; opacity: 1; }
}

/* ── Reports: KPI + chart cards ─────────────────────────── */
body.pt .report-kpi-card {
  position: relative; overflow: hidden; background: var(--glass); border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 24px;
  padding: 18px 20px; box-shadow: var(--card-shadow), var(--glass-edge); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s;
}
body.pt .report-kpi-card::before { content: ''; position: absolute; left: 20px; top: 20px; width: 4px; height: 14px; border-radius: 2px; background: var(--kpi, var(--acc)); }
body.pt .report-kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
body.pt .report-kpi-card.kpi-card-ok { --kpi: #2fa77a; border-left-color: var(--line); }
body.pt .report-kpi-card.kpi-card-warn { --kpi: #f5a524; border-left-color: var(--line); }
body.pt .kpi-label { margin: 0 0 12px 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
body.pt .kpi-value { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
body.pt .kpi-sub { margin-top: 6px; font-size: 12px; color: var(--muted); }
body.pt .report-card { padding: 22px 24px; }
body.pt .report-card .section-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
body.pt .report-card .section-title i { color: var(--acc); font-size: 15px; }
body.pt .report-card canvas { border-radius: 12px; }

/* Bolt inside the post-login animation */
body.pt .ci-center .lg-avatar { position: relative; left: auto; top: auto; transform: none; width: min(230px, 40vw); margin: 0 auto 2px; filter: drop-shadow(0 18px 24px rgba(40, 8, 0, 0.3)); }
body.pt .ci-center .lg-bubble { top: 6px; left: calc(100% - 26px); max-width: 190px; }
@media (max-height: 720px) { body.pt .ci-center .lg-avatar { width: min(170px, 34vw); } body.pt .ci-center .lg-logo-wrap,
body.pt .ci-logo-wrap { width: min(320px, 60vw); } }

/* ── Assistant dock (companion.js) ─────────────────────── */
body.pt .cp-dock { position: fixed; z-index: 900; right: 14px; bottom: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: min(360px, calc(100vw - 20px)); pointer-events: none; }
body.pt .cp-dock > * { pointer-events: auto; }
body.pt .cp-slot { position: relative; width: 146px; height: 146px; margin: -10px -10px -14px 0; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
body.pt .cp-slot:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
body.pt .cp-slot .lg-avatar { position: relative; left: auto; top: auto; transform: none; width: 100%; cursor: pointer; filter: drop-shadow(0 10px 14px rgba(40, 10, 0, 0.28)); }
body.pt .cp-slot .lg-bubble { left: auto; right: 62%; top: -6px; max-width: 200px; }
body.pt .cp-dock.open .cp-tips { display: none; }
body.pt .cp-dock.focus .cp-slot { opacity: 0.72; }
body.pt .cp-badge { position: absolute; z-index: 5; right: 8px; top: 8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--glass); }
body.pt .cp-badge[hidden],
body.pt .cp-panel[hidden] { display: none; }
body.pt .lg-avatar.lg-muted { filter: grayscale(0.5) drop-shadow(0 10px 14px rgba(40, 10, 0, 0.2)); }

body.pt .cp-tips { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; width: 100%; }
body.pt .cp-tip { position: relative; width: 100%; padding: 12px 34px 12px 14px; border-radius: 18px; background: var(--glass); color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--acc); box-shadow: var(--card-shadow), 0 14px 30px -14px rgba(0, 0, 0, 0.35); font-size: 13px; line-height: 1.45; opacity: 0; transform: translateY(14px) scale(0.97); transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
body.pt .cp-tip.in { opacity: 1; transform: none; }
body.pt .cp-tip.out { opacity: 0; transform: translateX(20px); }
body.pt .cp-tip.cp-crit { border-left-color: #e5484d; }
body.pt .cp-tip.cp-warn { border-left-color: #f5a524; }
body.pt .cp-tip.cp-good { border-left-color: #2fa77a; }
body.pt .cp-tip-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
body.pt .cp-tip-acts:empty { display: none; }
body.pt .cp-tip-acts button,
body.pt .cp-btn,
body.pt .cp-chips button { font: inherit; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--tint); color: var(--text); cursor: pointer; transition: background 0.2s, transform 0.2s; }
body.pt .cp-tip-acts button:hover,
body.pt .cp-btn:hover,
body.pt .cp-chips button:hover { background: var(--tint-2); transform: translateY(-1px); }
body.pt .cp-tip-acts button:first-child:not(.cp-mute),
body.pt .cp-btn.cp-pri { background: var(--acc); border-color: transparent; color: var(--acc-ink, #fff); }
body.pt .cp-tip-acts .cp-mute { border-color: transparent; background: none; color: var(--muted); font-weight: 500; }
body.pt .cp-x { position: absolute; right: 8px; top: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
body.pt .cp-x:hover { background: var(--tint); color: var(--text); }

body.pt .cp-panel { width: min(340px, calc(100vw - 20px)); max-height: min(520px, calc(100vh - 190px)); display: flex; flex-direction: column; border-radius: 22px; background: var(--glass); color: var(--text); border: 1px solid var(--line); box-shadow: var(--card-shadow), 0 24px 50px -18px rgba(0, 0, 0, 0.45); overflow: hidden; animation: cpPop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); transform-origin: bottom right; }
@keyframes cpPop { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
body.pt .cp-head { position: relative; display: flex; align-items: center; padding: 14px 16px 8px; }
body.pt .cp-head b { display: block; font-size: 15px; letter-spacing: -0.01em; }
body.pt .cp-head span { font-size: 12px; color: var(--muted); }
body.pt .cp-head .cp-x { top: 12px; right: 12px; }
body.pt .cp-tabs { display: flex; gap: 4px; padding: 0 12px 8px; border-bottom: 1px solid var(--line); }
body.pt .cp-tabs button { flex: 1; font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 4px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
body.pt .cp-tabs button.on { background: rgba(var(--acc-rgb), 0.14); color: var(--acc); }
body.pt .cp-body { padding: 14px 16px 16px; overflow: auto; font-size: 13px; }
body.pt .cp-sum { margin: 0 0 12px; line-height: 1.5; }
body.pt .cp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
body.pt .cp-stat { font: inherit; display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--tint); color: var(--text); text-align: left; cursor: pointer; transition: transform 0.2s, background 0.2s; }
body.pt .cp-stat:hover { transform: translateY(-2px); background: var(--tint-2); }
body.pt .cp-stat b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
body.pt .cp-stat span { font-size: 11px; color: var(--muted); }
body.pt .cp-stat.crit b { color: #e5484d; } body.pt .cp-stat.warn b { color: #d98a0b; } body.pt .cp-stat.good b { color: #2fa77a; }
body.pt .cp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.pt .cp-ask { display: flex; gap: 6px; }
body.pt .cp-ask input,
body.pt .cp-f input[type=text],
body.pt .cp-f select { flex: 1; width: 100%; font: inherit; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--tint); color: var(--text); }
body.pt .cp-ask input:focus,
body.pt .cp-f input:focus,
body.pt .cp-f select:focus { outline: 2px solid rgba(var(--acc-rgb), 0.5); outline-offset: 0; }
body.pt .cp-ask button { width: 38px; border: 0; border-radius: 12px; background: var(--acc); color: var(--acc-ink, #fff); cursor: pointer; }
body.pt .cp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
body.pt .cp-a { padding: 10px 12px; border-radius: 14px; background: var(--tint); line-height: 1.5; }
body.pt .cp-a ul { margin: 6px 0 0; padding-left: 18px; } body.pt .cp-a a { color: var(--acc); font-weight: 600; }
body.pt .cp-f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 600; font-size: 12.5px; }
body.pt .cp-chk { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
body.pt .cp-vars { display: flex; gap: 10px; }
body.pt .cp-vars button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px var(--line-2); }
body.pt .cp-vars button.on { border-color: var(--glass); box-shadow: 0 0 0 2px var(--acc); }
body.pt .cp-team { display: flex; flex-direction: column; gap: 10px; }
body.pt .cp-mem { display: flex; align-items: center; gap: 12px; }
body.pt .cp-mem b { display: block; } body.pt .cp-mem span { font-size: 12px; color: var(--muted); } body.pt .cp-mem em { color: #e5484d; font-style: normal; font-weight: 600; }

body.pt .cp-tour { position: fixed; inset: 0; z-index: 1200; }
body.pt .cp-spot { position: absolute; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(10, 6, 4, 0.62), 0 0 0 3px var(--acc); transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
body.pt .cp-card { position: absolute; width: 280px; padding: 14px 16px; border-radius: 18px; background: var(--glass); color: var(--text); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.55); transition: left 0.4s, top 0.4s, bottom 0.4s; }
body.pt .cp-card p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; }
body.pt .cp-step { margin-right: auto; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) { body.pt .cp-slot { width: 96px; height: 96px; } body.pt .cp-dock { right: 6px; } }
@media (prefers-reduced-motion: reduce) { body.pt .cp-tip,
body.pt .cp-panel,
body.pt .cp-spot { transition: none; animation: none; } }

/* ── Dark-mode-only specifics (legacy rules are more specific) ── */
body.pt.dark-mode table,
body.pt.dark-mode table tbody td { color: var(--text); border-color: var(--line); }
body.pt.dark-mode table thead,
body.pt.dark-mode table thead th { background: transparent; color: var(--muted); border-bottom: 1px solid var(--line); }
body.pt.dark-mode tbody tr:hover,
body.pt.dark-mode .ticket-row:hover { background: rgb(var(--acc-rgb) / 0.07); box-shadow: inset 3px 0 0 var(--acc); transform: none; }
body.pt.dark-mode tbody tr:hover td,
body.pt.dark-mode .ticket-row:hover td { background: transparent; }
body.pt.dark-mode .btn-primary { border: 0; box-shadow: none; }
body.pt.dark-mode .btn-primary:hover { background: var(--acc-2); box-shadow: var(--glow-brand); }
body.pt.dark-mode .btn-outline,
body.pt.dark-mode .btn-secondary { background: var(--tint); border-color: var(--line-2); color: var(--text); }
body.pt.dark-mode .btn-outline:hover,
body.pt.dark-mode .btn-secondary:hover { background: var(--tint-2); border-color: var(--acc); color: var(--acc-2); }
body.pt.dark-mode .topbar { background: transparent; border-bottom: 0; box-shadow: none; backdrop-filter: none; }
body.pt.dark-mode .topbar.scrolled { background: var(--glass-bar); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
body.pt.dark-mode .timeline-item,
body.pt.dark-mode .chat-bubble { background: var(--tint); border-color: var(--line); }
body.pt.dark-mode .chat-bubble.mine { background: var(--acc); color: var(--acc-ink); }
body.pt.dark-mode .notif-panel,
body.pt.dark-mode .search-results-panel,
body.pt.dark-mode .tag-autocomplete,
body.pt.dark-mode .notif-dropdown { background: var(--pop-bg); border-color: var(--line-2); }
body.pt.dark-mode .attachment-pill { background: rgb(var(--acc-rgb) / 0.14); color: var(--acc-2); border-color: rgb(var(--acc-rgb) / 0.3); }
body.pt.dark-mode .section-title { color: var(--text); border-bottom-color: transparent; }
body.pt.dark-mode .text-muted { color: var(--muted); }
body.pt.dark-mode .modal-header,
body.pt.dark-mode .detail-panel-header { background: transparent; border-bottom-color: var(--line); }
body.pt.dark-mode .theme-toggle-btn { background: var(--card); border-color: var(--line-2); }
body.pt.dark-mode .page-content,
body.pt.dark-mode .table-card,
body.pt.dark-mode .detail-panel,
body.pt.dark-mode .modal,
body.pt.dark-mode .dropdown-menu,
body.pt.dark-mode .auth-card { border-color: var(--line); }
body.pt.dark-mode .page-content { background: transparent; }
body.pt.dark-mode .table-card,
body.pt.dark-mode .detail-panel { background: var(--glass); }
body.pt.dark-mode .modal { background: var(--pop-bg); }
body.pt.dark-mode .form-control,
body.pt.dark-mode input[type="text"],
body.pt.dark-mode input[type="email"],
body.pt.dark-mode input[type="password"],
body.pt.dark-mode input[type="number"],
body.pt.dark-mode input[type="date"],
body.pt.dark-mode input[type="search"],
body.pt.dark-mode textarea,
body.pt.dark-mode select {
  background: var(--tint); border-color: var(--line-2); color: var(--text);
}
body.pt.dark-mode .form-control:focus,
body.pt.dark-mode input:focus,
body.pt.dark-mode textarea:focus,
body.pt.dark-mode select:focus { background: var(--tint-2); border-color: var(--acc); color: var(--text); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1180px) {
  body.pt .nx-top,
body.pt .nx-body { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body.pt .topbar { padding: 14px 16px; }
  body.pt .tb-left { flex: 0 0 auto; }
  body.pt .tb-logo span { display: none; }
  body.pt .tb-center { order: 3; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; }
  body.pt .tb-center::-webkit-scrollbar { display: none; }
  body.pt .tb-nav { width: max-content; }
  body.pt .tb-pop.center { left: auto; right: 0; transform: none; }
  body.pt .page-content > .page { padding: 0 16px; }
  body.pt .nx-glass { padding: 22px 20px; border-radius: 30px; }
  body.pt .nx-metrics { grid-template-columns: 1fr; gap: 22px; }
  body.pt .nx-m-val { font-size: 26px; }
  body.pt .nx-ptabs { flex-wrap: wrap; }
  body.pt .nx-panel { padding: 20px 16px; border-radius: 32px; }
  body.pt .nx-panel-head { grid-template-columns: 1fr; justify-items: start; }
  body.pt .nx-panel-tools { display: none; }
  body.pt .nx-seg { max-width: 100%; overflow-x: auto; }
  body.pt .nx-d-top { grid-template-columns: 1fr; }
  body.pt .nx-d-tiles { grid-template-columns: 1fr 1fr; }
  body.pt .nx-d-bar { grid-template-columns: 1fr 1fr; }
  body.pt .nx-detail { padding: 22px 18px; border-radius: 28px; }
}
