/* Keyboard ASMR v2.58 — A3 blue titanium case / B3 circular controls / C4 matrix.
   The inner black plate, keys, and all geometry are untouched. */

/* Dark, cool blue titanium: all layers sit behind the black well. */
.app .screen-panel .scene-macro {
  position:relative;
  isolation:isolate;
  background-color:#293b4a !important;
  background-image:
    linear-gradient(135deg,rgba(208,228,247,.11) 0%,transparent 34%,rgba(8,17,26,.13) 72%,rgba(200,223,244,.04) 100%),
    repeating-linear-gradient(0deg,rgba(182,208,233,.025) 0px,rgba(182,208,233,.025) 1px,transparent 1px,transparent 3px),
    linear-gradient(180deg,#425465 0%,#34495a 36%,#253746 76%,#1f2f3d 100%) !important;
  border-radius:12px !important;
  box-shadow:
    inset 0 0 0 1px #131e2a,
    inset 0 0 0 2px #a4b3bf,
    inset 0 0 0 4px #526779,
    inset 0 0 0 6px #17263380,
    inset 0 2px 7px #bdd3e631,
    inset 0 -5px 7px #101b25a6 !important;
}
/* Two little flush screw heads mounted at the corners OUTSIDE the keys. */
.app .screen-panel .scene-macro::before,
.app .screen-panel .scene-macro::after {
  content:"";
  position:absolute;
  top:6px;
  width:9px;height:9px;
  border-radius:50%;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(45deg,transparent 41%,rgba(48,62,75,.65) 44%,rgba(48,62,75,.65) 55%,transparent 58%),
    linear-gradient(135deg,#ecf0f2,#71808d);
  border:1px solid rgba(71,83,96,.7);
  box-shadow:inset 0 1px 1px #f8fbfc,0 1px 1px #54627065;
}
.app .screen-panel .scene-macro::before {left:6px;}
.app .screen-panel .scene-macro::after {right:6px;}

/* The lower utility area is cast into the same metal faceplate. */
.app .scene-macro .macro-actions {
  position:relative;
  z-index:1;
  border:0 !important;
  background:transparent !important;
  border-radius:0 0 10px 10px;
  box-shadow:none;
}
/* B3: a machined circular metal ring. Inner faces retain the active theme's
   material, so Wood/Glass/Stone/Gel keep their independent identity. */
.app .scene-macro[data-theme="basic"]{
  --action-surface:linear-gradient(160deg,#e0e6ea,#a3afb8 60%,#77838e);
  --action-hover:linear-gradient(160deg,#f4f8fa,#bec9d0 60%,#8b98a3);
  --action-pressed:linear-gradient(160deg,#77838e,#b1bdc5 65%,#dae1e6);
}
.app .scene-macro .macro-action {
  position:relative;
  flex:0 0 40px;
  width:40px;
  height:40px;
  padding:0;
  border:0;
  border-radius:50%;
  color:var(--action-icon,#151515);
  background:linear-gradient(145deg,#c4cdd4 0%,#8d9ba6 33%,#26323e 70%,#111b25 100%);
  box-shadow:inset 0 1px 0 #e2eaf0ac,0 1px 2px #10181fbb,0 0 0 1px #171f27;
}
.app .scene-macro .macro-action::before{
  content:"";
  position:absolute;inset:4px;border-radius:50%;
  background:var(--action-surface,linear-gradient(155deg,#dce2e6,#77838e));
  box-shadow:0 0 0 1px #1d2731,inset 0 1px 1px #f0f5f78c,inset 0 -1px 2px #1d293876;
  pointer-events:none;
}
.app .scene-macro .macro-action .ui-icon{position:relative;z-index:1;width:19px;height:19px}
.app .scene-macro .macro-action:hover{background:linear-gradient(145deg,#e1e9ee,#a2b1bc 33%,#384755 70%,#17222b)}
.app .scene-macro .macro-action:hover::before{background:var(--action-hover,linear-gradient(155deg,#e4edf2,#8a97a1))}
.app .scene-macro .macro-action:active{border:0;transform:translateY(1px);box-shadow:inset 0 2px 4px #101b25aa}
.app .scene-macro .macro-action:active::before{background:var(--action-pressed,linear-gradient(155deg,#77838e,#dce2e6));box-shadow:inset 0 2px 3px #101b2577}

/* C4: a miniature 5x5 stack-state display, directly set into the faceplate. */
.app .scene-macro .macro-active-indicator {
  display:grid;
  grid-template-columns:repeat(5,5px);
  grid-template-rows:repeat(5,5px);
  gap:2px;
  width:33px;height:33px;
  flex:none;
  padding:0;border:0;border-radius:0;
  background:none;box-shadow:none;
  pointer-events:none;
}
.app .scene-macro .macro-active-indicator span {
  width:5px;height:5px;border-radius:1px;
  transform:none;
  background:#19252f;
  box-shadow:inset 0 1px 1px #080f15aa,0 1px 0 #7890a333;
}
.app .scene-macro .macro-active-indicator span[data-active="true"]{
  background:linear-gradient(155deg,#ffe0a2,#dca05a);
  box-shadow:inset 0 1px 0 #fff0bd88,0 0 3px #f4b45b77;
}
