/* APEX: carbon surfaces / electric yellow / dimensional motion. No external assets. */
body.apex {
  --bg:#090909; --bg-2:#0e0e0e; --surface:#131313; --surface-2:#1b1b1b; --surface-3:#262626;
  --border:#2b2b28; --border-2:#42423b; --text:#f4f4ed; --text-2:#b4b4aa; --text-3:#96968c;
  --accent:#f2e600; --accent-2:#fff34a; --accent-dim:#f2e60012; --accent-glow:#f2e60022;
  --info:#e4dc7a; --info-dim:#e4dc7a15; --sh-accent:0 8px 26px #f2e60015;
  --ok:#a9d89d; --err:#ff8191; --warn:#f2e600; --r:6px; --r-md:10px;
  background:#090909; color:var(--text); font-family:'Segoe UI',Arial,sans-serif;
}
body.apex .app-shell { grid-template-columns:238px minmax(0,1fr); }
.apex .content-shell { padding:26px 32px 40px; gap:24px; max-width:1900px; width:100%; margin:auto; }
.apex .sidebar { background:#0d0d0d; border-right:1px solid #262621; }
.apex .sidebar-top { padding:24px 16px; gap:20px; }
.apex .brand { padding:0; gap:12px; }
.apex .brand:hover { background:none; }
.apex-mark { width:42px; height:48px; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:var(--accent); border:1px solid #6b671b; background:linear-gradient(145deg,#33311b,#14140e); font-size:23px; font-weight:900; font-style:italic; clip-path:polygon(15% 0,100% 0,100% 78%,85% 100%,0 100%,0 22%); }
.apex-mark span { font-size:25px; color:#8e882d; margin-left:-3px; }
.apex .brand-name { font-size:18px; letter-spacing:-.6px; color:#f4f4ed; background:none; -webkit-text-fill-color:initial; }
.apex .brand-sub { font-size:8px; letter-spacing:1.8px; margin-top:4px; color:#b4b4aa; }
.apex .sidebar-divider { display:none; }
.apex-nav { display:flex; flex-direction:column; gap:7px; }
.nav-caption { font:10px ui-monospace,monospace; letter-spacing:2px; color:#9b9b8c; margin:8px 12px; }
.apex-nav a { display:flex; align-items:center; gap:12px; padding:13px 12px; border:1px solid transparent; min-height:48px; font-size:13px; color:#b4b4aa; border-radius:6px; transition:background .2s,color .2s; }
.apex-nav a>span { font:10px ui-monospace,monospace; opacity:.7; }
.apex-nav a>b { margin-left:auto; font-size:18px; font-weight:400; }
.apex-nav a[aria-current=page] { background:var(--accent); color:#141400; font-weight:700; box-shadow:0 6px 22px #f2e6000c; }
.apex-nav a:hover:not([aria-current=page]) { background:#22221b; color:#fff; }
.apex .user-card { padding:11px; background:#161614; border-radius:7px; }
.apex .user-avatar { background:#eee300; color:#131300; border-radius:6px; }
.apex .user-role { color:#e3d955; border-color:#49451e; }
.apex .sidebar-section { padding:0; }
.apex .sidebar-label { margin-bottom:12px; font-size:9px; letter-spacing:1.5px; }
.apex .kpi-card { padding:10px 6px; border-top:1px solid #4e4b2e; background:#171715; }
.apex .kpi-value { color:#ececcf; font-family:ui-monospace,monospace; }
.apex .tag-btn { min-height:32px; font-size:10px; background:#181816; }
.apex .topbar { background:transparent; border:0; border-radius:0; padding:0 0 20px; min-height:68px; border-bottom:1px solid #292925; gap:18px; }
.apex .page-title { font-size:22px; font-weight:600; letter-spacing:-.5px; }
.apex .page-sub { font:9px ui-monospace,monospace; letter-spacing:1.5px; margin:5px 0; color:#aaa99b; }
.apex .topbar-left { flex-direction:column-reverse; }
.apex .top-status { border-radius:4px; font:10px ui-monospace,monospace; padding:10px; }
.apex .btn-line,.apex .btn-ghost,.apex .btn-danger,.apex .btn-neo { border-radius:5px; min-height:42px; transition:background .18s,border-color .18s,box-shadow .18s; }
.apex .btn-line { display:inline-flex; align-items:center; justify-content:center; background:#1b1b18; border:1px solid #393932; color:#e8e8df; padding:10px 15px; }
.apex .btn-line:hover,.apex .btn-ghost:hover { background:#2d2d24; border-color:#77743b; color:#fff; transform:none; }
.apex .btn-neo,.apex-primary { background:var(--accent); color:#121200; border:1px solid var(--accent); box-shadow:0 4px 0 #827b00; font-weight:750; }
.apex .btn-neo:hover,.apex-primary:hover { background:#fff52f; color:#121200; box-shadow:0 5px 20px #e4d90024; }
.apex-primary,.apex-secondary { display:inline-flex; align-items:center; justify-content:center; gap:24px; padding:13px 19px; min-height:48px; border-radius:4px; font-size:12px; transition:background .2s,box-shadow .2s; }
.apex-secondary { color:#e6e6d8; border:1px solid #515144; background:#181813; }
.apex-secondary:hover { border-color:var(--accent); }
.apex-primary span,.apex-secondary span { font-size:19px; }
.apex-hero { position:relative; overflow:hidden; display:grid; grid-template-columns:1.1fr 1fr; min-height:350px; background:radial-gradient(ellipse at 82% 40%,#36331050,transparent 60%),linear-gradient(115deg,#191915,#10100e); border:1px solid #3b3a27; border-radius:12px; isolation:isolate; }
.apex-hero:before { content:''; position:absolute; top:0; left:0; width:140px; height:3px; background:var(--accent); }
.hero-copy { padding:36px 38px 24px; z-index:2; }
.eyebrow { display:flex; align-items:center; gap:8px; font:9px ui-monospace,monospace; letter-spacing:2px; color:#c0b94f; line-height:1.7; }
.eyebrow>span { width:5px; height:5px; background:var(--accent); }
.hero-copy h1 { margin:17px 0; font-size:clamp(34px,3.2vw,54px); font-weight:700; letter-spacing:-2px; line-height:1.08; }
.apex em { color:var(--accent); font-style:normal; }
.hero-description { font-size:13px; line-height:1.7; color:#b5b5a9; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin:24px 0 30px; }
.hero-footer { display:flex; gap:15px; align-items:center; font:8px ui-monospace,monospace; color:#aaa995; letter-spacing:1.5px; }
.hero-rule { width:50px; height:1px; background:#494933; }
.aero-scene { position:relative; min-width:0; perspective:850px; overflow:hidden; }
.aero-grid { position:absolute; inset:0 -20% -40%; background-image:linear-gradient(#d8d0000d 1px,transparent 1px),linear-gradient(90deg,#d8d0000d 1px,transparent 1px); background-size:32px 32px; transform:rotateX(60deg) rotateZ(-28deg); mask-image:radial-gradient(ellipse,#000,transparent 70%); }
.aero-halo { position:absolute; left:15%; right:10%; top:20%; height:60%; border:1px solid #76702940; border-radius:50%; transform:rotateX(60deg) rotateZ(-25deg); box-shadow:0 0 0 35px #b6ae0008,0 0 0 70px #b6ae0005; }
.aero-object { position:absolute; width:280px; height:185px; left:50%; top:50%; margin:-92px 0 0 -140px; transform-style:preserve-3d; animation:aero-float 7s ease-in-out infinite; filter:drop-shadow(0 40px 18px #0009); }
.aero-front,.aero-back,.aero-fold,.aero-line { position:absolute; inset:0; }
.aero-back { background:#6d6600; clip-path:polygon(0 0,100% 0,100% 100%,0 100%); transform:translateZ(-16px) translateY(12px); }
.aero-front { background:linear-gradient(125deg,#fff667,#d9cf00 55%,#a69a00); clip-path:polygon(0 0,100% 0,100% 100%,0 100%); border:1px solid #fff4a1; }
.aero-fold { background:linear-gradient(160deg,#fffbc2,#f2e600 60%,#b2a500); clip-path:polygon(0 0,100% 0,50% 58%); transform:translateZ(18px); filter:drop-shadow(0 7px 1px #0006); }
.aero-line { background:linear-gradient(90deg,transparent 49.5%,#7c7100 50%,transparent 50.5%); clip-path:polygon(0 100%,50% 45%,100% 100%); transform:translateZ(3px); }
.scene-coordinate { position:absolute; right:28px; top:24px; color:#8e8b58; font:10px ui-monospace,monospace; letter-spacing:3px; }
.scene-caption { position:absolute; bottom:32px; right:30px; color:#aaa882; font:8px ui-monospace,monospace; letter-spacing:2px; }
@keyframes aero-float { 0%,100% { transform:rotateX(calc(16deg + var(--tilt-x,0deg))) rotateY(calc(-26deg + var(--tilt-y,0deg))) rotateZ(-14deg) translateY(0); } 50% { transform:rotateX(calc(23deg + var(--tilt-x,0deg))) rotateY(calc(-18deg + var(--tilt-y,0deg))) rotateZ(-10deg) translateY(-14px); } }
.apex .workspace-nav { margin:0; gap:8px; }
.apex .workspace-nav a { padding:10px 17px; border-color:#35352d; font-size:11px; font-weight:500; border-radius:4px; color:#c4c4b6; background:#151512; }
.apex .workspace-nav a:last-child { margin-left:auto; color:#eee33c; border-color:#5a5421; }
.apex .workspace-grid { gap:20px; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); }
.apex .panelX { border-radius:9px; background:linear-gradient(145deg,#171715,#121211); border-color:#32322b; box-shadow:0 10px 30px #0002; }
.apex .panelX:before { background:linear-gradient(90deg,#9a942c,transparent 70%); }
.apex .panel-header { padding:22px; border-bottom-color:#2b2b25; }
.apex .panel-header h2 { font-size:17px; font-weight:600; }
.apex .panel-header h2:before { display:none; }
.apex .panel-body { padding:22px; }
.section-no { font:12px ui-monospace,monospace; color:#c4b938; margin-right:9px; }
.apex .panel-desc { font-size:11px; color:#aaa99a; margin-top:5px; }
.apex .section-label { color:#c2c1b2; font-size:10px; letter-spacing:1.5px; }
.apex .glow-field,.apex .textarea { background:#0d0d0c; color:#ededdf; border:1px solid #3c3c32; border-radius:5px; box-shadow:inset 0 2px 5px #0004; }
.apex .glow-field::placeholder,.apex .textarea::placeholder { color:#999988; }
.apex .glow-field:focus,.apex .textarea:focus { border-color:#d6cc21; box-shadow:0 0 0 3px #f2e60010; background:#11110e; }
.apex code { color:#e8df62; background:#2a291b; border-color:#4c4827; }
.apex .builder-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.apex .smtp-bucket-card,.apex .progress-stats>div,.apex .metric-box { background:#161612; border-color:#34342a; }
.apex .data-table th { background:#1e1e18; color:#c5c4ac; font:10px ui-monospace,monospace; letter-spacing:1px; padding:14px 17px; }
.apex .data-table td { border-color:#2c2c25; color:#d3d3c5; padding:14px 17px; font-size:12px; }
.apex .data-table tbody tr:hover td { background:#f2e60006; }
.apex .table-wrap { border-color:#303027; border-radius:5px; background:#12120f; }
.apex .logs { background:#0d0d0b; border-color:#38382e; }
.apex .logs .sys { border-color:#bfb52f; background:#c9bf0910; color:#e3dfb4; }
.apex .logs .ok { color:#d5ebcf; }.apex .logs .err {color:#ffd1d7;}
.apex .log-ts {color:#acaa92;}
.apex .progress-bar>div { background:linear-gradient(90deg,#a59d00,#f5e900); }
.apex .btn-danger { color:#ff98a3; background:#d6384b12; border-color:#84333e; }
.apex .btn-danger:hover { background:#d6384b25; }
.apex .login-card { background:linear-gradient(145deg,#222219,#10100f); box-shadow:0 30px 90px #0008; border-color:#59552c; }
.apex.login-body { background:radial-gradient(ellipse at 50% 20%,#34310d,#090909 60%); }
.apex .login-logo { gap:16px; }.apex .login-logo-text span {color:#b9b47f;}
.apex .login-card h1 {letter-spacing:-1.5px;}
.apex .login-field input {min-height:48px;}
.tracking-intro { display:flex; justify-content:space-between; align-items:center; min-height:200px; gap:20px; padding:10px 8px; }
.tracking-intro h1 { font-size:clamp(34px,4vw,55px); letter-spacing:-2px; font-weight:600; margin:12px 0; line-height:1.1; }
.tracking-intro p:not(.eyebrow) { color:#b5b5a9; font-size:13px; }
.signal-orbit { position:relative; width:160px; height:160px; flex-shrink:0; margin-right:45px; perspective:500px; }
.signal-orbit i { position:absolute; inset:15px; border:1px solid #e8df2c; border-radius:50%; transform:rotateX(55deg) rotateY(25deg); animation:orbit 14s linear infinite; }
.signal-orbit i:nth-child(2) { inset:0; border-color:#615e26; animation-direction:reverse; }
.signal-orbit i:nth-child(3) { inset:30px; border-color:#a8a035; animation-delay:-5s; }
.signal-orbit span { position:absolute; inset:0; display:grid; place-items:center; color:#eee300; font-size:62px; font-weight:200; }
@keyframes orbit { to {transform:rotateX(55deg) rotateY(385deg) rotateZ(90deg);} }
.tracking-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:16px; border-block:1px solid #303026; padding:16px 0; }
.tracking-toolbar label { display:flex; align-items:center; gap:12px; font-size:11px; color:#c4c4b5; }
.tracking-toolbar select { min-height:44px; padding:10px 40px 10px 14px; background:#191914; color:#e5e5d8; border:1px solid #444438; border-radius:5px; max-width:240px; }
.tracking-toolbar .apex-primary { min-height:44px; box-shadow:none; padding:10px 18px; }
#tracking-status { margin-left:auto; font:10px ui-monospace,monospace; color:#b3b39c; }
.tracking-error { padding:16px; color:#ffd1d7; border:1px solid #9e4955; background:#481e26; border-radius:6px; }
.telemetry-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.telemetry-card { position:relative; padding:23px 20px; background:linear-gradient(140deg,#222219,#131311); border:1px solid #38382b; border-radius:8px; overflow:hidden; transition:transform .2s,border-color .2s; }
.telemetry-card:hover { transform:perspective(800px) rotateX(3deg) translateY(-3px); border-color:#8a832b; }
.telemetry-label { display:flex; justify-content:space-between; gap:8px; font:9px ui-monospace,monospace; color:#c7c5a4; letter-spacing:.8px; }
.telemetry-label span { color:#d6ca35; font-size:18px; line-height:10px; }
.telemetry-card strong { display:block; font-size:46px; font-weight:500; letter-spacing:-2px; margin:15px 0 4px; font-variant-numeric:tabular-nums; }
.telemetry-card:first-child strong {color:#f2e600;}
.telemetry-card p {color:#b1b09a;font-size:10px;}
.telemetry-line { height:2px; background:linear-gradient(90deg,#d6ca35,transparent); margin-top:22px; width:65%; }
.campaign-bar { display:grid; grid-template-columns:minmax(100px,1fr) minmax(80px,3fr) minmax(120px,1fr); gap:24px; align-items:center; padding:14px 0; border-bottom:1px solid #2a2a21; }
.campaign-bar:last-child {border:0;}
.campaign-bar strong {font-size:12px;font-weight:500;overflow-wrap:anywhere;}
.campaign-bar>span {font:10px ui-monospace,monospace;color:#c8c6a4;text-align:right;}
.bar-tracks {display:flex;flex-direction:column;gap:5px;}.bar-rail{height:6px;background:#292920;border-radius:2px;overflow:hidden;}.bar-rail span{display:block;height:100%;border-radius:2px;transition:width .35s;}.bar-rail .opens{background:#eddf21;}.bar-rail .clicks{background:#a2aa83;}
.feed-tabs {display:flex;gap:5px;flex-wrap:wrap;}
.feed-tabs button {padding:9px 16px;border:1px solid #3c3c31;background:#1a1a15;color:#b9b9a6;border-radius:5px;min-height:40px;font-size:11px;}
.feed-tabs button[aria-pressed=true] {background:#ebe021;color:#191900;border-color:#ebe021;}
.feed-footer {display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:16px 22px;font:9px ui-monospace,monospace;color:#b0ae93;}
.destination-cell {max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.empty-state {padding:32px 16px !important;text-align:center;color:#bbb9a3 !important;font-size:13px;line-height:1.8;}
.sidebar-note {font-size:12px;color:#aaa992;line-height:1.8;padding:20px 8px;border-top:1px solid #343426;margin-top:12px;}.sidebar-note p{margin:12px 0;}.sidebar-note a{color:#ded35d;font-size:11px;}
.apex-footer {display:flex;justify-content:space-between;gap:16px;font:9px ui-monospace,monospace;letter-spacing:1px;color:#a5a38a;padding:14px 0;}
.apex button:disabled {opacity:.55;cursor:wait;}
.apex .motion-off,.apex.motion-off *,.apex.motion-off *:before,.apex.motion-off *:after {animation:none !important;transition:none !important;}
.apex.motion-off .aero-object {transform:rotateX(16deg) rotateY(-26deg) rotateZ(-14deg);}
@media(min-width:1600px) {.apex .builder-grid {grid-template-columns:repeat(6,minmax(0,1fr));}.aero-object{width:330px;height:210px;margin:-105px 0 0 -165px;}}
@media(max-width:1200px) {.apex .content-shell{padding:24px;}.apex .app-shell{grid-template-columns:210px minmax(0,1fr);}.hero-copy{padding:30px 26px;}.aero-object{width:220px;height:150px;margin:-75px 0 0 -110px;}.telemetry-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.apex .workspace-grid{grid-template-columns:minmax(0,1fr);}.apex .workspace-nav a:last-child{margin-left:0;}}
@media(max-width:900px) {.apex .app-shell{grid-template-columns:180px minmax(0,1fr);}.apex .sidebar-top{padding:22px 12px;}.apex .brand-name{font-size:16px;}.apex .brand-sub{font-size:7px;letter-spacing:1px;}.apex-hero{grid-template-columns:1fr;}.aero-scene{position:absolute;right:-60px;top:20px;width:280px;height:280px;opacity:.22;z-index:-1;}.hero-copy{padding:30px;}.hero-description{max-width:310px;}.signal-orbit{margin-right:0;width:110px;height:110px;}.activity-header{flex-wrap:wrap;}.campaign-bar{gap:12px;grid-template-columns:1fr 2fr;}.campaign-bar>span{grid-column:2;}.apex .topbar{flex-wrap:wrap;}}
@media(max-width:760px) {.apex .app-shell{display:block;}.apex .sidebar{position:static;height:auto;padding:0;}.apex .sidebar-top{padding:18px 20px;gap:18px;}.apex .sidebar-top>.user-card,.apex .sidebar-note,.apex .sidebar-bottom{display:none;}.apex .sidebar-section{display:none;}.apex-nav{flex-direction:row;gap:8px;}.apex-nav .nav-caption{display:none;}.apex-nav a{flex:1;padding:10px;min-height:44px;font-size:12px;}.apex-nav a>span{display:none;}.apex .content-shell{padding:20px 16px;gap:20px;}.apex .topbar{padding-bottom:18px;}.apex .page-title{font-size:21px;}.apex .top-actions{gap:8px;}.hero-copy{padding:28px 23px;}.hero-copy h1{font-size:40px;}.hero-actions{gap:10px;}.apex-primary,.apex-secondary{padding:12px 15px;gap:15px;}.apex .workspace-nav a{flex:1 1 40%;padding:10px;}.apex .panel-header,.apex .panel-body{padding:18px;}.apex .builder-grid{grid-template-columns:minmax(0,1fr);}.tracking-intro{min-height:170px;padding:5px 0;}.tracking-intro h1{font-size:38px;}.signal-orbit{width:75px;height:90px;}.signal-orbit span{font-size:38px;}.tracking-intro p:not(.eyebrow){font-size:12px;}.telemetry-card{padding:18px 14px;}.telemetry-label{font-size:8px;letter-spacing:0;}.telemetry-card strong{font-size:38px;}.telemetry-card p{line-height:1.7;}.tracking-toolbar label{width:100%;justify-content:space-between;}.tracking-toolbar select{max-width:70%;}.tracking-toolbar #tracking-status{margin-left:0;line-height:1.8;}.campaign-bar{grid-template-columns:1fr;gap:10px;}.campaign-bar>span{grid-column:auto;text-align:left;}.apex-footer{font-size:8px;flex-wrap:wrap;}.apex .data-table{min-width:580px;}.apex .smtp-health .data-table{min-width:580px;}}
@media(prefers-reduced-motion:reduce) {.apex *,.apex *:before,.apex *:after{animation:none !important;transition:none !important;scroll-behavior:auto !important;}.aero-object{transform:rotateX(16deg) rotateY(-26deg) rotateZ(-14deg);}}
@media(max-width:760px) {.apex .sidebar-bottom{display:block;padding:0 20px 16px;border:0;}.apex .sidebar-bottom .logout-btn{min-height:36px;padding:6px 12px;width:auto;margin-left:auto;font-size:11px;}}
