﻿/* â”€â”€ App Preview â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.app-preview-section {
  margin-bottom: var(--gap-xl);
  content-visibility: auto;
  contain-intrinsic-size: 1120px 900px;
}
.app-preview-stage {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; position: relative;
}
.app-preview-stage::before {
  content: ''; position: absolute; inset: 40px 5%;
  background: radial-gradient(ellipse at 50% 55%, rgba(231,76,60,.18) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

/* â”€â”€ Window shell â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pw {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 700px; max-width: 100%;
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px #000, 0 40px 100px rgba(0,0,0,.8), 0 0 60px rgba(231,76,60,.08);
}

/* Titlebar */
.pw-tb {
  display: flex; align-items: center; gap: 10px;
  height: 45px; padding: 0 14px;
  background: linear-gradient(180deg, #1f1f1f 0%, #181818 100%);
  border-bottom: 1px solid #2a2a2a;
  -webkit-app-region: drag;
}
.pw-tb-icon {
  width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  display: flex; align-items: center; justify-content: center;
}
.pw-tb-icon svg { width: 12px; height: 12px; }
.pw-tb-name { font-size: 12.5px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.pw-tb-ver {
  font-size: 9.5px; font-weight: 600; padding: 1px 6px; border-radius: 3px;
  background: rgba(231,76,60,.2); color: #e74c3c; border: 1px solid rgba(231,76,60,.3);
}
.pw-tb-spacer { flex: 1; }
.pw-tb-ctrl { display: flex; gap: 4px; }
.pw-tb-btn {
  width: 28px; height: 28px; border-radius: 5px; border: none;
  background: transparent; color: #808080;
  display: flex; align-items: center; justify-content: center; cursor: default;
}
.pw-tb-btn svg { width: 13px; height: 13px; }
.pw-tb-btn-close { color: #e74c3c; }

/* Layout */
.pw-layout { display: flex; height: 360px; }

/* â”€â”€ Sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pw-nav {
  width: 175px; flex-shrink: 0;
  background: #141414;
  border-right: 1px solid #2a2a2a;
  display: flex; flex-direction: column;
  padding: 8px 0;
}
.pw-nav-section {
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #555;
  padding: 10px 14px 4px;
}
.pw-nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 14px; font-size: 12px; color: #888;
  cursor: default; white-space: nowrap; position: relative;
}
.pw-nav-item svg { flex-shrink: 0; width: 14px; height: 14px; }
.pw-nav-active {
  background: rgba(231,76,60,.12); color: #fff;
  border-left: 2px solid #e74c3c; padding-left: 12px;
}
.pw-nav-active svg { color: #e74c3c; }
.pw-nav-badge {
  margin-left: auto; font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
  background: rgba(231,76,60,.25); color: #e74c3c;
  letter-spacing: .04em;
}
.pw-nav-free {
  background: rgba(52,152,219,.2); color: #3498db;
}
.pw-nav-divider { height: 1px; background: #2a2a2a; margin: 6px 0; }
.pw-nav-buy {
  margin: 6px 10px 3px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 0; border-radius: 6px; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff;
  border: none; cursor: default; font-family: inherit;
}

/* â”€â”€ Main content â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pw-content {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
  background: #1a1a1a; position: relative;
}
/* Grid background pattern */
.pw-content::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
}
/* Red glow */
.pw-content::after {
  content: ''; position: absolute; top: -60px; left: 30%;
  width: 300px; height: 200px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(231,76,60,.12) 0%, transparent 70%);
}

/* Section header */
.pw-sec-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px; position: relative; z-index: 1;
}
.pw-sec-title { font-size: 13px; font-weight: 700; color: #fff; }
.pw-sec-badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(46,204,113,.15); color: #2ecc71;
  border: 1px solid rgba(46,204,113,.25);
}

/* Recording toolbar */
.pw-rec-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px 10px; position: relative; z-index: 1;
}
.pw-rtb {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 6px; cursor: default;
  font-size: 11.5px; font-weight: 600; font-family: inherit;
  border: 1px solid #3a3a3a; background: #242424; color: #b0b0b0;
}
.pw-rtb-rec  { background: rgba(231,76,60,.15); border-color: rgba(231,76,60,.4); color: #e74c3c; }
.pw-rtb-play { background: rgba(46,204,113,.1);  border-color: rgba(46,204,113,.3); color: #2ecc71; }
.rec-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: #e74c3c; animation: rec-pulse 1.5s ease-in-out infinite;
}
@keyframes rec-pulse {
  0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(231,76,60,.6); }
  50%      { opacity:.5; box-shadow: 0 0 0 5px rgba(231,76,60,0); }
}

/* Stat cards */
.pw-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 8px;
  padding: 0 16px 10px; position: relative; z-index: 1;
}
.pw-stat {
  background: #242424; border: 1px solid #333; border-radius: 7px;
  padding: 8px 10px;
}
.pw-stat-label { font-size: 9.5px; color: #666; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.pw-stat-val   { font-size: 13px; font-weight: 700; color: #fff; font-family: monospace; }
.pw-stat-unit  { font-size: 9px; color: #555; margin-left: 2px; }

/* Two-panel body */
.pw-panels { flex: 1; display: flex; overflow: hidden; position: relative; z-index: 1; margin: 0 16px 12px; gap: 8px; }

/* Live activity */
.pw-activity { flex: 1; background: #242424; border: 1px solid #333; border-radius: 7px; overflow: hidden; display: flex; flex-direction: column; }
.pw-panel-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: #666; padding: 7px 10px 5px; border-bottom: 1px solid #2e2e2e;
}
.pw-log { flex: 1; overflow: hidden; padding: 4px 0; }
.pw-log-row {
  display: flex; align-items: center; gap: 8px;
  padding: 3.5px 10px; font-size: 10.5px; font-family: monospace;
}
.pw-log-row:hover { background: rgba(255,255,255,.03); }
.pw-log-time { color: #555; flex-shrink: 0; width: 44px; }
.pw-log-icon { flex-shrink: 0; width: 16px; height: 16px; border-radius: 3px; display: flex; align-items: center; justify-content: center; }
.pw-log-icon svg { width: 9px; height: 9px; }
.pw-log-click { background: rgba(59,130,246,.2); color: #60a5fa; }
.pw-log-key   { background: rgba(168,85,247,.2); color: #c084fc; }
.pw-log-scroll{ background: rgba(234,179,8,.15);  color: #facc15; }
.pw-log-text  { flex: 1; color: #b0b0b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Options panel */
.pw-options { width: 140px; flex-shrink: 0; background: #242424; border: 1px solid #333; border-radius: 7px; overflow: hidden; }
.pw-opt-section { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #555; padding: 8px 10px 4px; }
.pw-opt-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 10px; font-size: 10.5px; color: #888;
}
.pw-toggle {
  width: 26px; height: 14px; border-radius: 7px; flex-shrink: 0;
  background: #333; position: relative;
}
.pw-toggle.on { background: rgba(231,76,60,.5); }
.pw-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 10px; height: 10px; border-radius: 50%; background: #666; transition: left .15s;
}
.pw-toggle.on::after { left: 14px; background: #e74c3c; }

/* â”€â”€ Callouts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pw-callouts { display: flex; flex-direction: column; gap: 40px; flex-shrink: 0; z-index: 1; }
.pw-callouts-l { align-items: flex-end; }
.pw-callouts-r { align-items: flex-start; }
.pw-callout { display: flex; align-items: center; gap: 10px; max-width: 165px; }
.pw-callout-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: #e74c3c; box-shadow: 0 0 8px rgba(231,76,60,.7);
}
.pw-callout-body strong { display: block; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 2px; }
.pw-callout-body p { font-size: 11px; color: rgba(255,255,255,.35); line-height: 1.4; margin: 0; }
.pw-callouts-l .pw-callout-body { text-align: right; }
.pw-line { flex-shrink: 0; width: 28px; height: 1px; background: linear-gradient(to right, transparent, rgba(231,76,60,.5)); }
.pw-line-l { background: linear-gradient(to right, rgba(231,76,60,.5), transparent); }

@media (max-width: 980px) { .pw-callouts { display: none; } .pw { width: 100%; } }
@media (max-width: 600px) { .pw-nav { display: none; } .pw-stats { grid-template-columns: repeat(2,1fr); } .pw-options { display: none; } }

/* â”€â”€ Hero spectacular â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-has-split { text-align: left; position: relative; }

/* Ambient glow blobs */
.hero-has-split::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 65% 90% at 92% 50%, rgba(231,76,60,.13) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 5%  60%, rgba(180,40,20,.07)  0%, transparent 60%),
    radial-gradient(ellipse 80% 45% at 50% 110%, rgba(231,76,60,.07) 0%, transparent 50%);
}
/* Dot grid overlay */
.hero-has-split::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.033) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 95% 95% at 50% 50%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 95% 95% at 50% 50%, black 20%, transparent 75%);
}

.hero-split { display: flex; align-items: center; gap: 36px; position: relative; z-index: 1; }
.hero-split-text { flex: 0 0 auto; max-width: 470px; }
.hero-split-text .kicker { margin-bottom: var(--gap-md); }
.hero-split-text .hero-title { margin: 0 0 var(--gap-md); max-width: none; font-size: clamp(2rem, 3.8vw, 3.4rem); }
.hero-split-text .hero-lead  { margin: 0 0 var(--gap-lg); max-width: none; }
.hero-split-text .hero-actions   { justify-content: flex-start; }
.hero-split-text .hero-platforms { justify-content: flex-start; }
.hero-split-text .hero-platforms > span:first-child { width: 100%; }
.hero-split-preview { flex: 1; display: flex; justify-content: flex-end; align-items: center; min-width: 0; }

/* Outer shell: float + drop glow */
.pw-hero-outer {
  position: relative; border-radius: 12px;
  animation: hero-float 7s ease-in-out infinite;
  filter:
    drop-shadow(0 0 32px rgba(231,76,60,.30))
    drop-shadow(0 0 70px rgba(231,76,60,.10))
    drop-shadow(0 38px 55px rgba(0,0,0,.70));
}
/* Animated gradient ring */
.pw-hero-outer::before {
  content: ''; position: absolute; inset: -1.5px; border-radius: 12px; z-index: -1;
  background: linear-gradient(
    130deg,
    rgba(231,76,60,.95)  0%,
    rgba(255,115,70,.50) 30%,
    rgba(120,22,12,.20)  58%,
    rgba(231,76,60,.80)  100%
  );
  background-size: 250% 250%;
  animation: hero-ring-shimmer 6s ease-in-out infinite alternate;
}
@keyframes hero-ring-shimmer {
  0%   { background-position: 0%   50%; opacity: .75; }
  100% { background-position: 100% 50%; opacity: 1;   }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-14px); }
}

/* Clipping container */
.pw-hero-wrap {
  width: 595px; height: 345px; flex-shrink: 0;
  position: relative; border-radius: 10px; overflow: hidden;
}
/* Subtle glass highlight on top edge */
.pw-hero-wrap::after {
  content: ''; position: absolute; inset: 0; border-radius: 10px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.055) 0%, transparent 35%);
}
.pw-hero-wrap .pw {
  transform: scale(0.85); transform-origin: top left;
  width: 700px; max-width: unset;
  box-shadow: none; border-radius: 0; border: none;
}

/* Floating badges */
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  white-space: nowrap; pointer-events: none;
}
.hero-badge-rec {
  top: -22px; left: -18px;
  background: rgba(231,76,60,.18); border: 1px solid rgba(231,76,60,.42); color: #f08878;
  box-shadow: 0 6px 22px rgba(231,76,60,.22), inset 0 1px 0 rgba(255,255,255,.09);
  animation: badge-bob-1 5s ease-in-out infinite;
}
.hero-badge-saved {
  bottom: -22px; right: -14px;
  background: rgba(46,204,113,.14); border: 1px solid rgba(46,204,113,.36); color: #4edba1;
  box-shadow: 0 6px 22px rgba(46,204,113,.16), inset 0 1px 0 rgba(255,255,255,.07);
  animation: badge-bob-2 5.8s ease-in-out infinite;
}
@keyframes badge-bob-1 {
  0%,100% { transform: translateY(0)   rotate(-1.5deg); }
  50%      { transform: translateY(-7px) rotate(.5deg);  }
}
@keyframes badge-bob-2 {
  0%,100% { transform: translateY(0)  rotate(1deg);   }
  50%      { transform: translateY(7px) rotate(-.5deg); }
}

@media (max-width: 1200px) {
  .hero-split { gap: 24px; }
  .pw-hero-wrap { width: 480px; height: 278px; }
  .pw-hero-wrap .pw { transform: scale(0.686); }
}
@media (max-width: 860px) {
  .hero-has-split { text-align: center; }
  .hero-split { flex-direction: column; gap: 48px; }
  .hero-split-text { max-width: 560px; }
  .hero-split-text .hero-actions,
  .hero-split-text .hero-platforms { justify-content: center; }
  .hero-split-preview { display: none; }
}

/* â”€â”€ Screen switcher â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pw-screens { flex: 1; position: relative; overflow: hidden; }
.pw-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity .45s ease;
}
.pw-screen.pw-active { opacity: 1; pointer-events: auto; }

/* Dot indicator */
.pw-tab-bar {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 26px; flex-shrink: 0;
  border-top: 1px solid #1e1e1e; background: #141414;
}
.pw-tab-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #333; transition: background .3s, transform .3s;
}
.pw-tab-dot.pw-active { background: #e74c3c; transform: scale(1.4); }

/* â”€â”€ Macro list â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Macro list */
.pw-macro-list { flex: 1; overflow: hidden; padding: 0 16px 8px; }
.pw-macro-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 6px;
  border: 1px solid #2e2e2e; background: #1e1e1e; margin-bottom: 5px;
}
.pw-macro-ico { flex-shrink: 0; color: #555; }
.pw-macro-ico svg { width: 13px; height: 13px; }
.pw-macro-name { flex: 1; font-size: 11.5px; color: #ccc; font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-macro-dur  { font-size: 10.5px; color: #666; font-family: monospace; flex-shrink: 0; }
.pw-macro-cnt  { font-size: 10px; color: #555; flex-shrink: 0; min-width: 48px; text-align: right; }
.pw-macro-btns { display: flex; gap: 4px; flex-shrink: 0; }
.pw-macro-btn  {
  width: 22px; height: 22px; border-radius: 4px;
  border: 1px solid #333; background: #242424; color: #777;
  display: flex; align-items: center; justify-content: center;
}
.pw-macro-btn svg { width: 10px; height: 10px; }
.pw-macro-btn-play { border-color: rgba(46,204,113,.3); color: #2ecc71; }

/* Robot / OCR screen */
.pw-robot-body  { padding: 8px 10px; position: relative; z-index: 1; }
.pw-robot-title { font-size: 12px; font-weight: 700; color: #ddd; margin-bottom: 4px; }
.pw-robot-meta  { font-size: 10.5px; color: #666; margin-bottom: 2px; font-family: monospace; }
.pw-ocr-box {
  margin: 6px 10px;
  background: #1a1a1a; border: 1px solid #2e2e2e; border-radius: 5px;
  padding: 7px 10px; font-family: monospace; font-size: 11px; color: #2ecc71;
}
.pw-ocr-label { font-size: 9px; color: #555; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.pw-robot-item { display: flex; align-items: center; justify-content: space-between; padding: 5px 10px; font-size: 11px; color: #888; }
.pw-robot-on  { color: #2ecc71; font-size: 9px; }
.pw-robot-off { color: #444;    font-size: 9px; }

/* Scheduler screen */
.pw-task-list { flex: 1; overflow: hidden; padding: 0 16px 8px; }
.pw-task-row {
  padding: 8px 10px; border-radius: 6px;
  border: 1px solid #2e2e2e; background: #1e1e1e; margin-bottom: 5px;
}
.pw-task-head  { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.pw-task-sched { font-size: 11.5px; font-weight: 600; color: #ccc; flex: 1; }
.pw-task-macro { font-size: 10.5px; font-family: monospace; color: #888; margin-bottom: 2px; }
.pw-task-next  { font-size: 10px; color: #555; }
.pw-dot-on  { width: 6px; height: 6px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 5px rgba(46,204,113,.6); flex-shrink: 0; }
.pw-dot-off { width: 6px; height: 6px; border-radius: 50%; background: #333; flex-shrink: 0; }

/* â”€â”€ Search mock â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pw-search-mock {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 5px;
  background: #1a1a1a; border: 1px solid #2e2e2e;
  font-size: 10.5px; color: #444; font-family: inherit;
}
.pw-search-mock svg { width: 10px; height: 10px; flex-shrink: 0; color: #444; }

/* â”€â”€ Breadcrumb â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pw-breadcrumb {
  display: flex; align-items: center; gap: 5px;
  padding: 0 16px 8px; font-size: 10px; color: #555;
  position: relative; z-index: 1;
}
.pw-breadcrumb svg { width: 10px; height: 10px; color: #555; }
.pw-bc-sep { color: #3a3a3a; }
.pw-bc-item { color: #888; }
.pw-bc-item:last-child { color: #aaa; }

/* â”€â”€ Macro row extras â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pw-macro-chk {
  width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid #3a3a3a; background: transparent;
}
.pw-macro-new {
  font-size: 8px; font-weight: 800; letter-spacing: .05em;
  padding: 1px 4px; border-radius: 3px;
  background: rgba(231,76,60,.2); color: #e74c3c;
  border: 1px solid rgba(231,76,60,.35); flex-shrink: 0;
}
.pw-macro-size { font-size: 10px; color: #555; flex-shrink: 0; min-width: 44px; text-align: right; }
.pw-macro-date { font-size: 10px; color: #444; flex-shrink: 0; min-width: 34px; text-align: right; }
.pw-macro-btn-del { border-color: rgba(231,76,60,.25); color: rgba(231,76,60,.6); }
.pw-macro-btn-exp { border-color: #2e2e2e; color: #555; }

/* â”€â”€ Robot cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pw-robot-list { flex: 1; overflow: hidden; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 5px; }
.pw-robot-card {
  background: #1e1e1e; border: 1px solid #2e2e2e; border-radius: 7px;
  padding: 8px 10px; display: flex; flex-direction: column; gap: 4px;
}
.pw-robot-card-head { display: flex; align-items: center; gap: 7px; }
.pw-robot-card-ico { flex-shrink: 0; color: #555; }
.pw-robot-card-ico svg { width: 13px; height: 13px; }
.pw-robot-card-name { flex: 1; font-size: 11.5px; font-weight: 700; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-robot-card-date { font-size: 9.5px; color: #444; flex-shrink: 0; }
.pw-robot-card-cond { font-size: 10.5px; color: #666; font-family: monospace; padding-left: 20px; }
.pw-robot-card-macro { font-size: 10.5px; color: #777; font-family: monospace; padding-left: 20px; }
.pw-robot-card-footer { display: flex; align-items: center; justify-content: space-between; padding-left: 20px; margin-top: 2px; }
.pw-robot-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.pw-robot-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .04em;
  padding: 1.5px 5px; border-radius: 3px;
}
.pw-robot-tag-txt  { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.25); }
.pw-robot-tag-ivl  { background: rgba(234,179,8,.12);  color: #facc15; border: 1px solid rgba(234,179,8,.22); }
.pw-robot-tag-on   { background: rgba(46,204,113,.12); color: #2ecc71; border: 1px solid rgba(46,204,113,.25); }
.pw-robot-tag-off  { background: rgba(255,255,255,.05); color: #555;   border: 1px solid #2e2e2e; }
.pw-robot-card-btns { display: flex; gap: 3px; flex-shrink: 0; }
.pw-robot-card-btn {
  width: 22px; height: 20px; border-radius: 4px;
  border: 1px solid #333; background: #242424; color: #777;
  display: flex; align-items: center; justify-content: center; cursor: default;
}
.pw-robot-card-btn svg { width: 9px; height: 9px; }
.pw-robot-card-btn-load { border-color: rgba(46,204,113,.3); color: #2ecc71; }
.pw-robot-card-btn-del  { border-color: rgba(231,76,60,.2); color: rgba(231,76,60,.55); }

/* OCR engine side panel (inside .pw-panels for robots screen) */
.pw-ocr-engine { width: 120px; flex-shrink: 0; background: #1e1e1e; border: 1px solid #2e2e2e; border-radius: 7px; overflow: hidden; display: flex; flex-direction: column; }
.pw-ocr-status {
  margin: 6px 10px 2px; font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px; align-self: flex-start;
  background: rgba(46,204,113,.12); color: #2ecc71; border: 1px solid rgba(46,204,113,.25);
}

/* â”€â”€ Filter tabs (scheduler) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pw-filter-bar {
  display: flex; align-items: center; gap: 2px;
  padding: 0 16px 8px; position: relative; z-index: 1;
}
.pw-filter-tab {
  font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 5px;
  color: #666; background: transparent; border: 1px solid transparent; cursor: default;
}
.pw-filter-tab.pw-active { background: #242424; border-color: #333; color: #ccc; }

/* â”€â”€ Task row extras â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pw-task-type {
  font-size: 8.5px; font-weight: 800; letter-spacing: .05em;
  padding: 1px 5px; border-radius: 3px; flex-shrink: 0;
}
.pw-task-type-macro { background: rgba(231,76,60,.15); color: #e78070; border: 1px solid rgba(231,76,60,.25); }
.pw-task-type-robot { background: rgba(168,85,247,.12); color: #c084fc; border: 1px solid rgba(168,85,247,.25); }
.pw-task-execs { font-size: 9.5px; color: #555; margin-left: auto; flex-shrink: 0; }
.pw-task-btns { display: flex; gap: 3px; flex-shrink: 0; margin-top: 4px; justify-content: flex-end; }
.pw-task-btn {
  height: 19px; padding: 0 7px; border-radius: 4px;
  border: 1px solid #2e2e2e; background: #242424; color: #666;
  display: flex; align-items: center; justify-content: center; cursor: default;
  font-size: 9.5px; font-weight: 600; font-family: inherit; gap: 3px;
}
.pw-task-btn svg { width: 8px; height: 8px; }
.pw-task-btn-pause { border-color: rgba(234,179,8,.25); color: #facc15; }
.pw-task-btn-play  { border-color: rgba(46,204,113,.25); color: #2ecc71; }
.pw-task-btn-del   { border-color: rgba(231,76,60,.2);   color: rgba(231,76,60,.55); }

/* â”€â”€ Robots screen â€” split layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pw-ocr-split { flex: 1; display: flex; overflow: hidden; position: relative; z-index: 1; }
.pw-ocr-rlist {
  width: 278px; flex-shrink: 0; border-right: 1px solid #1e1e1e;
  display: flex; flex-direction: column; overflow: hidden; padding: 6px 7px; gap: 5px;
}
.pw-ocr-ritem {
  background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 7px;
  padding: 7px 9px; display: flex; align-items: flex-start; gap: 7px; cursor: default;
}
.pw-ocr-ritem.pw-ocr-active { border-color: rgba(231,76,60,.4); background: rgba(231,76,60,.04); }
.pw-ocr-ritem-chk { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; border: 1px solid #3a3a3a; }
.pw-ocr-ritem-chk.on { background: rgba(231,76,60,.3); border-color: rgba(231,76,60,.55); }
.pw-ocr-ritem-ico { flex-shrink: 0; color: #555; margin-top: 1px; }
.pw-ocr-ritem-ico svg { width: 12px; height: 12px; }
.pw-ocr-ritem-body { flex: 1; min-width: 0; }
.pw-ocr-ritem-name { font-size: 11px; font-weight: 700; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-ocr-ritem-detail { font-size: 10px; color: #666; font-family: monospace; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-ocr-ritem-tags { display: flex; gap: 3px; margin-top: 4px; flex-wrap: wrap; }
.pw-ocr-rtag { font-size: 8.5px; font-weight: 700; padding: 1.5px 6px; border-radius: 999px; border: 1px solid; }
.pw-ocr-rtag-txt { background: rgba(59,130,246,.12); color: #60a5fa; border-color: rgba(59,130,246,.22); }
.pw-ocr-rtag-ivl { background: rgba(234,179,8,.1);   color: #facc15; border-color: rgba(234,179,8,.22);  }
.pw-ocr-rtag-on  { background: rgba(46,204,113,.12);  color: #2ecc71; border-color: rgba(46,204,113,.25); }
.pw-ocr-rtag-off { background: rgba(255,255,255,.04);  color: #555;    border-color: #2a2a2a; }
.pw-ocr-ritem-btns { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.pw-ocr-ritem-btn { width: 19px; height: 17px; border-radius: 3px; border: 1px solid #2a2a2a; background: #1a1a1a; color: #666; display: flex; align-items: center; justify-content: center; cursor: default; }
.pw-ocr-ritem-btn svg { width: 8px; height: 8px; }
.pw-ocr-ritem-btn-load { border-color: rgba(46,204,113,.25); color: rgba(46,204,113,.8); }
.pw-ocr-ritem-btn-del  { border-color: rgba(231,76,60,.2);   color: rgba(231,76,60,.5);  }

/* OCR visualization panel */
.pw-ocr-rpanel { flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 7px 8px; gap: 6px; background: #111; }
.pw-ocr-scan-area { position: relative; background: #090909; border: 1px solid #1e1e1e; border-radius: 6px; flex: 1; overflow: hidden; min-height: 0; }
.pw-ocr-scan-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(59,130,246,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,.07) 1px, transparent 1px);
  background-size: 13px 13px;
}
.pw-ocr-scan-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(59,130,246,.07) 0%, transparent 70%); animation: ocr-glow 2.5s ease-in-out infinite; }
.pw-ocr-scan-region { position: absolute; top: 14%; left: 8%; right: 8%; bottom: 14%; border: 1px dashed rgba(59,130,246,.2); border-radius: 2px; }
.pw-ocr-scan-line { position: absolute; left: 6px; right: 6px; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(59,130,246,.85) 35%, rgba(147,197,253,1) 50%, rgba(59,130,246,.85) 65%, transparent); box-shadow: 0 0 5px rgba(59,130,246,.5), 0 0 10px rgba(59,130,246,.22); animation: ocr-sweep 2.5s ease-in-out infinite; }
@keyframes ocr-sweep { 0% { top: 8%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 88%; opacity: 0; } }
@keyframes ocr-glow  { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.pw-ocr-corner { position: absolute; width: 9px; height: 9px; border-style: solid; border-color: rgba(59,130,246,.55); animation: ocr-cpulse 2.5s ease-in-out infinite; }
.pw-ocr-corner-tl { top: 4px; left: 4px;     border-width: 1.5px 0 0 1.5px; }
.pw-ocr-corner-tr { top: 4px; right: 4px;    border-width: 1.5px 1.5px 0 0; }
.pw-ocr-corner-bl { bottom: 4px; left: 4px;  border-width: 0 0 1.5px 1.5px; }
.pw-ocr-corner-br { bottom: 4px; right: 4px; border-width: 0 1.5px 1.5px 0; }
@keyframes ocr-cpulse { 0%,100% { opacity: .35; } 50% { opacity: 1; border-color: rgba(59,130,246,.85); } }
.pw-ocr-scan-label { position: absolute; bottom: 4px; right: 6px; font-size: 7px; font-weight: 800; letter-spacing: .14em; color: rgba(59,130,246,.5); font-family: monospace; animation: ocr-blink 1.5s ease-in-out infinite; }
@keyframes ocr-blink { 0%,100% { opacity: .2; } 50% { opacity: .9; } }

/* OCR result box */
.pw-ocr-detected { background: #0e0e0e; border: 1px solid #1a1a1a; border-radius: 5px; padding: 5px 8px; flex-shrink: 0; }
.pw-ocr-det-lbl { font-size: 8px; font-weight: 700; color: #444; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 3px; }
.pw-ocr-det-item { font-size: 9.5px; font-family: monospace; color: #2ecc71; padding: 2px 5px; background: rgba(46,204,113,.06); border-radius: 3px; display: flex; align-items: center; gap: 3px; margin-bottom: 2px; }
.pw-ocr-det-item::before { content: 'Â»'; color: rgba(46,204,113,.35); font-size: 8px; }

/* OCR engine pills row */
.pw-ocr-eng-row { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.pw-ocr-eng-lbl { font-size: 8px; font-weight: 700; color: #444; letter-spacing: .07em; text-transform: uppercase; }
.pw-ocr-epills { display: flex; gap: 3px; }
.pw-ocr-epill { font-size: 8px; font-weight: 700; padding: 2px 6px; border-radius: 3px; border: 1px solid #1e1e1e; color: #444; }
.pw-ocr-epill.on  { background: rgba(46,204,113,.1); color: #2ecc71; border-color: rgba(46,204,113,.22); }
.pw-ocr-epill.off { background: transparent; }

/* â”€â”€ Scheduler split layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pw-sched-split { flex: 1; display: flex; overflow: hidden; position: relative; z-index: 1; }
.pw-sched-left { width: 190px; flex-shrink: 0; border-right: 1px solid #1e1e1e; display: flex; flex-direction: column; overflow: hidden; }
.pw-sched-ftabs { display: flex; gap: 2px; padding: 5px 6px; flex-shrink: 0; border-bottom: 1px solid #1e1e1e; }
.pw-sched-ftab { font-size: 9.5px; font-weight: 600; padding: 3px 7px; border-radius: 4px; border: 1px solid transparent; color: #555; cursor: default; }
.pw-sched-ftab.pw-active { background: rgba(231,76,60,.14); border-color: rgba(231,76,60,.28); color: #e78070; }
.pw-sched-items { flex: 1; overflow: hidden; padding: 5px 6px; display: flex; flex-direction: column; gap: 4px; }
.pw-sched-item { background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 6px; padding: 7px 9px; cursor: default; }
.pw-sched-item.pw-active { border-color: rgba(231,76,60,.4); background: rgba(231,76,60,.04); }
.pw-sched-item-hd { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.pw-sched-dot-on  { width: 6px; height: 6px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 4px rgba(46,204,113,.5); flex-shrink: 0; }
.pw-sched-dot-off { width: 6px; height: 6px; border-radius: 50%; background: #333; flex-shrink: 0; }
.pw-sched-ibadge { font-size: 7.5px; font-weight: 800; padding: 1px 4px; border-radius: 3px; flex-shrink: 0; background: rgba(231,76,60,.15); color: #e78070; border: 1px solid rgba(231,76,60,.25); }
.pw-sched-iname { flex: 1; font-size: 10.5px; font-weight: 700; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-sched-iejec { font-size: 9px; color: #444; flex-shrink: 0; }
.pw-sched-isched { font-size: 9.5px; color: #666; display: flex; align-items: center; gap: 3px; }
.pw-sched-isched svg { width: 9px; height: 9px; flex-shrink: 0; }
.pw-sched-ipaused { font-size: 9.5px; color: #444; font-style: italic; }

/* Right form panel */
.pw-sched-form { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #131313; }
.pw-sched-form-hd { display: flex; align-items: center; gap: 7px; padding: 8px 11px; border-bottom: 1px solid #1e1e1e; flex-shrink: 0; background: #1a1a1a; }
.pw-sched-form-title { font-size: 11.5px; font-weight: 700; color: #ddd; flex: 1; }
.pw-sched-form-active { font-size: 8.5px; font-weight: 700; padding: 1.5px 5px; border-radius: 3px; background: rgba(46,204,113,.12); color: #2ecc71; border: 1px solid rgba(46,204,113,.22); }
.pw-sched-form-body { flex: 1; overflow: hidden; padding: 8px 11px; display: flex; flex-direction: column; gap: 6px; }
.pw-sched-sect { font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #555; }
.pw-sched-tabs { display: flex; gap: 3px; }
.pw-sched-tab { font-size: 9px; font-weight: 600; padding: 3px 7px; border-radius: 4px; border: 1px solid #252525; background: #1a1a1a; color: #666; cursor: default; }
.pw-sched-tab.pw-active { background: #e74c3c; border-color: #e74c3c; color: #fff; }
.pw-sched-wdays { display: flex; gap: 2px; }
.pw-sched-wd { flex: 1; height: 21px; border-radius: 4px; border: 1px solid #222; background: #181818; font-size: 8px; font-weight: 700; color: #555; display: flex; align-items: center; justify-content: center; cursor: default; }
.pw-sched-wd.on { background: #e74c3c; border-color: #c0392b; color: #fff; }
.pw-sched-field { display: flex; align-items: center; gap: 6px; }
.pw-sched-field-lbl { font-size: 9px; color: #666; flex-shrink: 0; min-width: 38px; }
.pw-sched-field-val { flex: 1; height: 22px; background: #1a1a1a; border: 1px solid #222; border-radius: 4px; font-size: 10px; font-family: monospace; color: #aaa; display: flex; align-items: center; padding: 0 7px; }
.pw-sched-form-foot { display: flex; gap: 4px; padding: 6px 11px; border-top: 1px solid #1e1e1e; flex-shrink: 0; }
.pw-sched-btn { height: 23px; padding: 0 9px; border-radius: 5px; font-size: 9.5px; font-weight: 700; font-family: inherit; cursor: default; display: flex; align-items: center; gap: 3px; }
.pw-sched-btn svg { width: 8px; height: 8px; }
.pw-sched-btn-save   { background: #e74c3c; border: 1px solid #c0392b; color: #fff; }
.pw-sched-btn-cancel { background: #1e1e1e; border: 1px solid #2e2e2e; color: #777; }
.pw-sched-btn-del    { background: transparent; border: 1px solid rgba(231,76,60,.28); color: rgba(231,76,60,.55); margin-left: auto; }
