:root{
  --pt-bg:#f3f5f9;--pt-surface:#fff;--pt-surface-2:#f8fafc;--pt-nav:#fff;
  --pt-text:#172033;--pt-muted:#64748b;--pt-border:#dde3ec;--pt-accent:#4f46e5;
  --pt-accent-soft:rgba(79,70,229,.10);--pt-shadow:rgba(30,41,59,.09)
}
html[data-ptolo-theme]{color-scheme:light;background:var(--pt-bg)}
html[data-ptolo-theme="dark"]{color-scheme:dark}
html[data-ptolo-theme] body{background:var(--pt-bg)!important;color:var(--pt-text)!important;transition:background-color .2s,color .2s}
html[data-ptolo-theme] body:before{opacity:.3}
html[data-ptolo-theme="dark"] body:before{opacity:.72}

/* Khung giao diện */
html[data-ptolo-theme] nav,html[data-ptolo-theme] header:not(.pt-ignore-theme){background:color-mix(in srgb,var(--pt-nav) 96%,transparent)!important;border-color:var(--pt-border)!important;color:var(--pt-text)!important;box-shadow:0 1px 0 var(--pt-border),0 5px 20px var(--pt-shadow)!important}
html[data-ptolo-theme] .card,html[data-ptolo-theme] .form-card,html[data-ptolo-theme] .tracker,html[data-ptolo-theme] .feature,html[data-ptolo-theme] .cta,html[data-ptolo-theme] .phone,html[data-ptolo-theme] .phone-in,html[data-ptolo-theme] .phone-card,
html[data-ptolo-theme] #detail-dialog,html[data-ptolo-theme] #welcome-card,html[data-ptolo-theme] .welcome-feature,
html[data-ptolo-theme] [style*="background:#13132a"],html[data-ptolo-theme] [style*="background: #13132a"],
html[data-ptolo-theme] [style*="background:#0f0f1e"],html[data-ptolo-theme] [style*="background: #0f0f1e"],
html[data-ptolo-theme] [style*="background:#0d0d1a"],html[data-ptolo-theme] [style*="background: #0d0d1a"],
html[data-ptolo-theme] [style*="background:#10101d"],html[data-ptolo-theme] [style*="background: #10101d"],
html[data-ptolo-theme] [style*="background:#15152a"],html[data-ptolo-theme] [style*="background: #15152a"],
html[data-ptolo-theme] [style*="background:#101022"],html[data-ptolo-theme] [style*="background: #101022"]{
  background:var(--pt-surface)!important;border-color:var(--pt-border)!important;color:var(--pt-text)!important;box-shadow:0 10px 32px var(--pt-shadow)
}
html[data-ptolo-theme] [style*="background:#1e1e30"],html[data-ptolo-theme] [style*="background: #1e1e30"],
html[data-ptolo-theme] [style*="background:#1a1a2e"],html[data-ptolo-theme] [style*="background: #1a1a2e"],
html[data-ptolo-theme] [style*="background:#27273d"],html[data-ptolo-theme] [style*="background: #27273d"],
html[data-ptolo-theme] [style*="background:#27272a"],html[data-ptolo-theme] [style*="background: #27272a"],
html[data-ptolo-theme] [style*="background:#0f172a"],html[data-ptolo-theme] [style*="background: #0f172a"],
html[data-ptolo-theme] [style*="background:#111827"],html[data-ptolo-theme] [style*="background: #111827"]{
  background:var(--pt-surface-2)!important;border-color:var(--pt-border)!important;color:var(--pt-text)!important
}

/* Bảng dữ liệu */
html[data-ptolo-theme] .tbl-wrap,html[data-ptolo-theme] table{background:var(--pt-surface)!important;color:var(--pt-text)!important}
html[data-ptolo-theme] th{background:var(--pt-surface-2)!important;color:var(--pt-muted)!important;border-color:var(--pt-border)!important}
html[data-ptolo-theme] tbody tr{background:var(--pt-surface)!important}
html[data-ptolo-theme] td,html[data-ptolo-theme] tr{border-color:var(--pt-border)!important}
html[data-ptolo-theme] tr.order-row:hover td,html[data-ptolo-theme] body.detail-open .order-row.selected td{background:var(--pt-accent-soft)!important}

/* Ô nhập và lựa chọn */
html[data-ptolo-theme] input:not([type="color"]):not([type="range"]),html[data-ptolo-theme] select,html[data-ptolo-theme] textarea{
  background:var(--pt-surface-2)!important;border-color:var(--pt-border)!important;color:var(--pt-text)!important;box-shadow:none!important
}
html[data-ptolo-theme] input::placeholder,html[data-ptolo-theme] textarea::placeholder{color:var(--pt-muted)!important;opacity:.72}
html[data-ptolo-theme] input:focus,html[data-ptolo-theme] select:focus,html[data-ptolo-theme] textarea:focus{border-color:var(--pt-accent)!important;box-shadow:0 0 0 3px var(--pt-accent-soft)!important}

/* Chữ trung tính */
html[data-ptolo-theme] .text-white{color:var(--pt-text)!important}
html[data-ptolo-theme] .text-gray-200,html[data-ptolo-theme] .text-gray-300{color:color-mix(in srgb,var(--pt-text) 88%,var(--pt-muted))!important}
html[data-ptolo-theme] .text-gray-400,html[data-ptolo-theme] .text-gray-500,html[data-ptolo-theme] .text-gray-600,html[data-ptolo-theme] .text-gray-700{color:var(--pt-muted)!important}
html[data-ptolo-theme] [style*="color:#4b5563"],html[data-ptolo-theme] [style*="color: #4b5563"],html[data-ptolo-theme] [style*="color:#374151"],html[data-ptolo-theme] [style*="color: #374151"],html[data-ptolo-theme] [style*="color:#6b7280"],html[data-ptolo-theme] [style*="color: #6b7280"]{color:var(--pt-muted)!important}
html[data-ptolo-theme] .border-gray-700,html[data-ptolo-theme] .border-gray-800,html[data-ptolo-theme] .border-gray-900{border-color:var(--pt-border)!important}

/* Nút và bộ lọc */
html[data-ptolo-theme] .btn-indigo{background:linear-gradient(135deg,var(--pt-accent),color-mix(in srgb,var(--pt-accent) 72%,#2563eb))!important;color:#fff!important}
html[data-ptolo-theme] .btn-gray{background:var(--pt-surface-2)!important;color:var(--pt-text)!important;border:1px solid var(--pt-border)!important}
html[data-ptolo-theme] .pill-idle{background:var(--pt-surface-2)!important;border-color:var(--pt-border)!important;color:var(--pt-muted)!important}
html[data-ptolo-theme] .pill-idle:hover,html[data-ptolo-theme] .pill-active{background:var(--pt-accent-soft)!important;border-color:var(--pt-accent)!important;color:var(--pt-accent)!important}
html[data-ptolo-theme] .btn-green,html[data-ptolo-theme] .btn-blue,html[data-ptolo-theme] .btn-red,html[data-ptolo-theme] .btn-indigo,
html[data-ptolo-theme] .badge,html[data-ptolo-theme] .carrier-tag,html[data-ptolo-theme] [class*="bg-"][class*="text-white"]{color:#fff!important}

/* Màu nội dung trên nền sáng phải đủ đậm */
html[data-ptolo-theme="light"] [style*="color:#60a5fa"]:not([style*="background"]),html[data-ptolo-theme="light"] [style*="color:#93c5fd"]:not([style*="background"]){color:#1d4ed8!important}
html[data-ptolo-theme="light"] [style*="color:#4ade80"]:not([style*="background"]),html[data-ptolo-theme="light"] [style*="color:#22c55e"]:not([style*="background"]){color:#15803d!important}
html[data-ptolo-theme="light"] [style*="color:#fbbf24"]:not([style*="background"]),html[data-ptolo-theme="light"] [style*="color:#f59e0b"]:not([style*="background"]){color:#a16207!important}
html[data-ptolo-theme="light"] [style*="color:#818cf8"]:not([style*="background"]),html[data-ptolo-theme="light"] [style*="color:#a5b4fc"]:not([style*="background"]){color:#4338ca!important}
html[data-ptolo-theme="light"] [style*="color:#f87171"]:not([style*="background"]){color:#b91c1c!important}
html[data-ptolo-theme="light"] .text-indigo-300:not(.btn):not(.badge),html[data-ptolo-theme="light"] .text-indigo-400:not(.btn):not(.badge){color:#4338ca!important}
html[data-ptolo-theme="light"] .text-blue-300:not(.btn):not(.badge),html[data-ptolo-theme="light"] .text-blue-400:not(.btn):not(.badge){color:#1d4ed8!important}
html[data-ptolo-theme="light"] .text-green-300:not(.btn):not(.badge),html[data-ptolo-theme="light"] .text-green-400:not(.btn):not(.badge){color:#15803d!important}
html[data-ptolo-theme="light"] .text-yellow-300:not(.btn):not(.badge),html[data-ptolo-theme="light"] .text-yellow-400:not(.btn):not(.badge){color:#a16207!important}
html[data-ptolo-theme="light"] .text-red-300:not(.btn):not(.badge),html[data-ptolo-theme="light"] .text-red-400:not(.btn):not(.badge){color:#b91c1c!important}

/* Hoàn thiện tương phản cho modal và nội dung sinh động */
html[data-ptolo-theme="light"] [style*="color:#e2e8f0"],html[data-ptolo-theme="light"] [style*="color: #e2e8f0"],
html[data-ptolo-theme="light"] [style*="color:#e2e2f0"],html[data-ptolo-theme="light"] [style*="color: #e2e2f0"],
html[data-ptolo-theme="light"] [style*="color:#cbd5e1"],html[data-ptolo-theme="light"] [style*="color: #cbd5e1"]{color:#1e293b!important}
html[data-ptolo-theme="light"] [style*="color:#94a3b8"],html[data-ptolo-theme="light"] [style*="color: #94a3b8"],
html[data-ptolo-theme="light"] [style*="color:#64748b"],html[data-ptolo-theme="light"] [style*="color: #64748b"]{color:#64748b!important}
html[data-ptolo-theme="light"] [style*="color:#c7d2fe"]:not([style*="background"]),html[data-ptolo-theme="light"] [style*="color:#a5b4fc"]:not([style*="background"]){color:#4338ca!important}
html[data-ptolo-theme="light"] [style*="color:#67e8f9"]:not([style*="background"]){color:#0e7490!important}
html[data-ptolo-theme="light"] [style*="color:#a7f3d0"]:not([style*="background"]){color:#047857!important}
html[data-ptolo-theme="light"] [style*="color:#fca5a5"]:not([style*="background"]),html[data-ptolo-theme="light"] [style*="color:#fecaca"]:not([style*="background"]){color:#b91c1c!important}

/* Badge ngữ nghĩa chuyển sang pastel khi ở nền sáng */
html[data-ptolo-theme="light"] [style*="background:#312e81"]{background:#eef2ff!important;border-color:#c7d2fe!important;color:#3730a3!important}
html[data-ptolo-theme="light"] [style*="background:#7f1d1d"],html[data-ptolo-theme="light"] [style*="background:#450a0a"],html[data-ptolo-theme="light"] [style*="background:#2a0a0a"]{background:#fef2f2!important;border-color:#fecaca!important;color:#b91c1c!important}
html[data-ptolo-theme="light"] [style*="background:#064e3b"],html[data-ptolo-theme="light"] [style*="background:#052e16"]{background:#ecfdf5!important;border-color:#a7f3d0!important;color:#047857!important}
html[data-ptolo-theme="light"] [style*="background:#422006"]{background:#fffbeb!important;border-color:#fde68a!important;color:#a16207!important}
html[data-ptolo-theme="light"] [style*="background:#7c2d12"]{background:#fff7ed!important;border-color:#fed7aa!important;color:#c2410c!important}
html[data-ptolo-theme="light"] [style*="background:#1a2e1a"]{background:#ecfdf5!important;color:#047857!important}
html[data-ptolo-theme="light"] [style*="background:#1a1e2e"]{background:#eff6ff!important;color:#1d4ed8!important}
html[data-ptolo-theme="light"] #detail-dialog{border:1px solid #dbe3ee!important;outline:none!important;box-shadow:0 28px 90px rgba(15,23,42,.20),0 4px 16px rgba(15,23,42,.08)!important}
html[data-ptolo-theme="light"] #detail-header{background:linear-gradient(180deg,#fff,#fbfcff)!important}
html[data-ptolo-theme="light"] #detail-content>div.rounded-xl{box-shadow:inset 0 0 0 1px rgba(226,232,240,.72)}
html[data-ptolo-theme="light"] .detail-info-label{color:#64748b!important;font-weight:600}
html[data-ptolo-theme="light"] .timeline-dot-new,html[data-ptolo-theme="light"] .timeline-dot-old{border-color:#fff!important}

/* Phân tầng giao diện sáng */
html[data-ptolo-theme="light"] body{background:linear-gradient(180deg,#f7f9fc 0,#f2f5f9 100%)!important}
html[data-ptolo-theme="light"] nav{background:rgba(255,255,255,.92)!important;backdrop-filter:blur(16px) saturate(1.25)}
html[data-ptolo-theme="light"] tbody tr:nth-child(even){background:#fbfcfe!important}
html[data-ptolo-theme="light"] tbody tr:nth-child(even) td{background:#fbfcfe}
html[data-ptolo-theme="light"] tr.order-row:hover td{background:#eef2ff!important}
html[data-ptolo-theme="light"] .tbl-wrap{border-top:1px solid var(--pt-border);border-bottom:1px solid var(--pt-border);box-shadow:0 10px 30px rgba(15,23,42,.035)}
html[data-ptolo-theme="light"] th{background:#f1f5f9!important;color:#475569!important}
html[data-ptolo-theme="light"] .card,html[data-ptolo-theme="light"] .form-card{box-shadow:0 10px 32px rgba(30,41,59,.065);border:1px solid #e3e8f0!important}

/* Chi tiết trang chủ và thanh cuộn */
html[data-ptolo-theme="light"] .shine{background:linear-gradient(110deg,#172033,#4f46e5,#172033);background-size:200% auto;background-clip:text;-webkit-background-clip:text;color:transparent}
html[data-ptolo-theme="light"] .orb{opacity:.08}html[data-ptolo-theme="light"] .tracker-glow{opacity:.1}
html[data-ptolo-theme="light"] ::-webkit-scrollbar-track{background:#e8edf4}html[data-ptolo-theme="light"] ::-webkit-scrollbar-thumb{background:#b7c2d1}
html[data-ptolo-theme="dark"] ::-webkit-scrollbar-track{background:#0d1423}html[data-ptolo-theme="dark"] ::-webkit-scrollbar-thumb{background:#334155}

/* Một nút duy nhất: Sáng / Tối */
.pt-mode-toggle{position:fixed;right:16px;bottom:16px;z-index:9997;min-width:82px;height:44px;padding:0 13px;border-radius:14px;border:1px solid var(--pt-border);background:color-mix(in srgb,var(--pt-surface) 94%,transparent);color:var(--pt-text);box-shadow:0 10px 32px var(--pt-shadow);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;transition:.18s;font-family:"Segoe UI",system-ui,sans-serif}
.pt-mode-toggle:hover{transform:translateY(-2px);border-color:var(--pt-accent)}.pt-mode-toggle span{font-size:17px}.pt-mode-toggle b{font-size:12px}

/* Hiệu ứng động dùng chung */
@keyframes ptPageIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes ptNavIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@keyframes ptRowIn{from{opacity:0;transform:translateX(-5px)}to{opacity:1;transform:none}}
@keyframes ptSoftPulse{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.24)}50%{box-shadow:0 0 0 7px rgba(34,197,94,0)}}
html[data-ptolo-theme] body>nav{animation:ptNavIn .38s cubic-bezier(.22,1,.36,1) both}
html[data-ptolo-theme] body>main,html[data-ptolo-theme] body>.max-w-2xl,html[data-ptolo-theme] body>.max-w-3xl,html[data-ptolo-theme] body>.max-w-4xl,html[data-ptolo-theme] body>.max-w-5xl{animation:ptPageIn .42s ease both}
html[data-ptolo-theme] tbody tr{animation:ptRowIn .28s ease both}
html[data-ptolo-theme] tbody tr:nth-child(2){animation-delay:.025s}html[data-ptolo-theme] tbody tr:nth-child(3){animation-delay:.05s}html[data-ptolo-theme] tbody tr:nth-child(4){animation-delay:.075s}html[data-ptolo-theme] tbody tr:nth-child(5){animation-delay:.10s}html[data-ptolo-theme] tbody tr:nth-child(6){animation-delay:.125s}html[data-ptolo-theme] tbody tr:nth-child(7){animation-delay:.15s}
html[data-ptolo-theme] .card,html[data-ptolo-theme] .feature,html[data-ptolo-theme] .btn,html[data-ptolo-theme] .filter-pill{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease,color .18s ease}
html[data-ptolo-theme] .card:hover,html[data-ptolo-theme] .feature:hover{transform:translateY(-2px);box-shadow:0 14px 38px var(--pt-shadow)}
html[data-ptolo-theme] .btn:hover{transform:translateY(-1px);filter:saturate(1.06)}
html[data-ptolo-theme] .timeline-dot-new{animation:ptSoftPulse 2.2s ease-in-out infinite}
::view-transition-old(root),::view-transition-new(root){animation-duration:.28s;animation-timing-function:ease}

/* Khóa tuyệt đối màu bảng theo từng chế độ, không cho cascade chéo */
html[data-ptolo-theme="light"] .tbl-wrap,html[data-ptolo-theme="light"] table{background:#fff!important;color:#172033!important}
html[data-ptolo-theme="light"] tbody tr:nth-child(odd),html[data-ptolo-theme="light"] tbody tr:nth-child(odd)>td{background:#fff!important;color:#172033!important}
html[data-ptolo-theme="light"] tbody tr:nth-child(even),html[data-ptolo-theme="light"] tbody tr:nth-child(even)>td{background:#f8fafc!important;color:#172033!important}
html[data-ptolo-theme="light"] tr.order-row:hover>td{background:#eef2ff!important;color:#172033!important}
html[data-ptolo-theme="dark"] body{background:radial-gradient(circle at 15% -10%,rgba(79,70,229,.10),transparent 28%),#090d18!important;color:#e5edf8!important}
html[data-ptolo-theme="dark"] nav{background:rgba(13,20,35,.94)!important;backdrop-filter:blur(16px) saturate(1.2)}
html[data-ptolo-theme="dark"] .tbl-wrap,html[data-ptolo-theme="dark"] table{background:#0d1422!important;color:#dbe7f5!important}
html[data-ptolo-theme="dark"] th{background:#17243a!important;color:#a9bdd5!important;border-color:#2a3a52!important}
html[data-ptolo-theme="dark"] tbody tr:nth-child(odd),html[data-ptolo-theme="dark"] tbody tr:nth-child(odd)>td{background:#101827!important;color:#dbe7f5!important}
html[data-ptolo-theme="dark"] tbody tr:nth-child(even),html[data-ptolo-theme="dark"] tbody tr:nth-child(even)>td{background:#0c1524!important;color:#dbe7f5!important}
html[data-ptolo-theme="dark"] tr.order-row:hover>td{background:#1b2942!important;color:#f8fbff!important}
html[data-ptolo-theme="dark"] #detail-dialog{background:#101827!important;border:1px solid #30425e!important;outline:none!important;box-shadow:0 28px 90px rgba(0,0,0,.55)!important}
html[data-ptolo-theme="dark"] #detail-header{background:linear-gradient(180deg,#131d30,#101827)!important}
html[data-ptolo-theme="dark"] #detail-content>div.rounded-xl{background:#162135!important;border:1px solid #263852!important;box-shadow:none}
html[data-ptolo-theme="dark"] .card,html[data-ptolo-theme="dark"] .form-card{background:#111827!important;border-color:#26344a!important;box-shadow:0 14px 38px rgba(0,0,0,.20)}
@media(max-width:600px){.pt-mode-toggle{right:10px;bottom:10px;min-width:44px;width:44px;padding:0}.pt-mode-toggle b{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation-duration:.01ms!important}}

/* Khu vực quản trị: đồng bộ hoàn toàn hai chế độ sáng / tối */
html[data-ptolo-theme] .admin-shell #sidebar{
  background:color-mix(in srgb,var(--pt-surface) 96%,var(--pt-accent) 4%)!important;
  border-color:var(--pt-border)!important;
  box-shadow:10px 0 34px color-mix(in srgb,var(--pt-shadow) 72%,transparent)
}
html[data-ptolo-theme] .admin-shell #sidebar nav{background:transparent!important;backdrop-filter:none!important}
html[data-ptolo-theme] .admin-shell #sidebar>div{border-color:var(--pt-border)!important}
html[data-ptolo-theme] .admin-shell #main-wrap{min-height:100vh;background:transparent;color:var(--pt-text)}
html[data-ptolo-theme] .admin-shell #main-wrap>.sticky{
  background:color-mix(in srgb,var(--pt-surface) 92%,transparent)!important;
  border-color:var(--pt-border)!important;
  box-shadow:0 8px 24px color-mix(in srgb,var(--pt-shadow) 52%,transparent);
  backdrop-filter:blur(18px) saturate(1.25)
}
html[data-ptolo-theme] .admin-shell .nav-item{position:relative;color:var(--pt-muted)!important;border:1px solid transparent}
html[data-ptolo-theme] .admin-shell .nav-item:hover{background:var(--pt-accent-soft)!important;color:var(--pt-accent)!important;border-color:color-mix(in srgb,var(--pt-accent) 22%,transparent)}
html[data-ptolo-theme] .admin-shell .nav-item.active{
  background:linear-gradient(135deg,var(--pt-accent-soft),color-mix(in srgb,var(--pt-accent-soft) 45%,transparent))!important;
  color:var(--pt-accent)!important;border-color:color-mix(in srgb,var(--pt-accent) 28%,transparent);
  box-shadow:0 7px 18px color-mix(in srgb,var(--pt-accent) 9%,transparent)
}
html[data-ptolo-theme] .admin-shell .nav-item.active:before{content:"";position:absolute;left:4px;top:25%;bottom:25%;width:3px;border-radius:4px;background:var(--pt-accent)}
html[data-ptolo-theme] .admin-shell .stat-card{
  background:linear-gradient(145deg,var(--pt-surface),color-mix(in srgb,var(--pt-surface-2) 82%,var(--pt-surface)))!important;
  border-color:var(--pt-border)!important;color:var(--pt-text)!important;
  box-shadow:0 12px 32px color-mix(in srgb,var(--pt-shadow) 72%,transparent)
}
html[data-ptolo-theme] .admin-shell .stat-card:hover{border-color:color-mix(in srgb,var(--pt-accent) 38%,var(--pt-border))!important;transform:translateY(-3px);box-shadow:0 18px 42px var(--pt-shadow)}
html[data-ptolo-theme] .admin-shell .fade-in{animation:ptAdminIn .38s cubic-bezier(.22,1,.36,1) both}
html[data-ptolo-theme] .admin-shell .badge-pill{border:1px solid color-mix(in srgb,currentColor 20%,transparent)}
html[data-ptolo-theme] .admin-shell table{border-collapse:separate;border-spacing:0;border:1px solid var(--pt-border);border-radius:14px;overflow:hidden;box-shadow:0 10px 28px color-mix(in srgb,var(--pt-shadow) 60%,transparent)}
html[data-ptolo-theme] .admin-shell th:first-child{border-top-left-radius:13px}html[data-ptolo-theme] .admin-shell th:last-child{border-top-right-radius:13px}

/* Các trang công cụ admin: tài khoản, cron và Telegram */
html[data-ptolo-theme] .admin-tool-page>nav{
  background:color-mix(in srgb,var(--pt-surface) 92%,transparent)!important;
  border-color:var(--pt-border)!important;box-shadow:0 8px 28px color-mix(in srgb,var(--pt-shadow) 58%,transparent);
  backdrop-filter:blur(18px) saturate(1.25);flex-wrap:wrap
}
html[data-ptolo-theme] .admin-tool-page .card,
html[data-ptolo-theme] .admin-tool-page .rounded-2xl[style*="background:#13132a"]{
  background:linear-gradient(145deg,var(--pt-surface),color-mix(in srgb,var(--pt-surface-2) 78%,var(--pt-surface)))!important;
  border-color:var(--pt-border)!important;color:var(--pt-text)!important;
  box-shadow:0 14px 38px color-mix(in srgb,var(--pt-shadow) 72%,transparent)
}
html[data-ptolo-theme] .admin-tool-page .card:hover,
html[data-ptolo-theme] .admin-tool-page .rounded-2xl[style*="background:#13132a"]:hover{border-color:color-mix(in srgb,var(--pt-accent) 32%,var(--pt-border))!important}
html[data-ptolo-theme] .admin-tool-page code,
html[data-ptolo-theme] .admin-shell code{background:var(--pt-accent-soft)!important;color:var(--pt-accent)!important;border:1px solid color-mix(in srgb,var(--pt-accent) 18%,transparent)}
html[data-ptolo-theme] .admin-tool-page pre,
html[data-ptolo-theme] .admin-shell pre{background:color-mix(in srgb,var(--pt-surface-2) 86%,#000 14%)!important;color:var(--pt-text)!important;border:1px solid var(--pt-border)!important;border-radius:12px}
html[data-ptolo-theme] .admin-tool-page [style*="background:#0f1a1f"],
html[data-ptolo-theme] .admin-tool-page [style*="background: #0f1a1f"]{background:color-mix(in srgb,#10b981 7%,var(--pt-surface))!important;border-color:color-mix(in srgb,#10b981 25%,var(--pt-border))!important}
html[data-ptolo-theme="light"] .admin-shell [style*="background:#13132a"],
html[data-ptolo-theme="light"] .admin-tool-page [style*="background:#13132a"]{background:#fff!important;border-color:#e1e7f0!important;color:#172033!important}
html[data-ptolo-theme="light"] .admin-shell [style*="background:#1e1e30"],
html[data-ptolo-theme="light"] .admin-tool-page [style*="background:#1e1e30"]{background:#f8fafc!important;border-color:#dce3ed!important;color:#172033!important}
html[data-ptolo-theme="dark"] .admin-shell #sidebar{background:#0d1423!important;border-color:#26344a!important;box-shadow:12px 0 36px rgba(0,0,0,.22)}
html[data-ptolo-theme="dark"] .admin-shell #main-wrap>.sticky{background:rgba(13,20,35,.94)!important}
html[data-ptolo-theme="dark"] .admin-shell .stat-card,
html[data-ptolo-theme="dark"] .admin-tool-page .card{background:linear-gradient(145deg,#111827,#131e31)!important;border-color:#26344a!important}
html[data-ptolo-theme="dark"] .admin-tool-page [style*="background:#0f1a1f"]{background:#10211f!important;border-color:#23443f!important}
@keyframes ptAdminIn{from{opacity:0;transform:translateY(10px) scale(.995)}to{opacity:1;transform:none}}
@media(max-width:768px){
  html[data-ptolo-theme] .admin-shell #sidebar{box-shadow:6px 0 24px var(--pt-shadow)}
  html[data-ptolo-theme] .admin-tool-page>nav{gap:8px;padding:10px 12px}
  html[data-ptolo-theme] .admin-tool-page .card{padding:17px}
  html[data-ptolo-theme] .admin-tool-page table{min-width:720px}
}
