:root{
  --bg:#0b1118;
  --panel: rgba(14,22,32,0.7);
  --panel2: rgba(14,22,32,0.55);
  --border: rgba(58,111,122,0.35);
  --text:#e6edf3;
  --muted:#9aa6b2;

  --green:#39ff9a;
  --orange:#ffb020;
  --red:#ff3b3b;
  --gray:#9aa6b2;

  --radius:18px;
  --shadow: 0 18px 60px rgba(11,17,24,0.6);

  --scrollbar-track: rgba(11,17,24,0.4);
  --scrollbar-thumb: rgba(58,111,122,0.6);
  --scrollbar-thumb-hover: rgba(58,111,122,0.85);
  --scrollbar-size: 9px;
}

*{
  box-sizing:border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
*::-webkit-scrollbar{
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}
*::-webkit-scrollbar-track{
  background: var(--scrollbar-track);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb{
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid rgba(11,17,24,0.3);
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover{
  background: var(--scrollbar-thumb-hover);
}
*::-webkit-scrollbar-button{
  width: 0;
  height: 0;
  display: none;
}
html,body{ min-height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color:var(--text);
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(58,121,255,0.12), transparent 60%),
    radial-gradient(1000px 600px at 70% 10%, rgba(57,255,154,0.10), transparent 55%),
    radial-gradient(1000px 650px at 40% 90%, rgba(255,176,32,0.08), transparent 55%),
    var(--bg);
}
body::before,
body::after{
  content:"";
  position: fixed;
  inset: -20%;
  pointer-events:none;
  z-index: -1;
}
body::before{
  background:
    radial-gradient(900px 600px at 20% 20%, rgba(58,121,255,0.14), transparent 60%),
    radial-gradient(800px 520px at 80% 30%, rgba(57,255,154,0.1), transparent 62%),
    radial-gradient(900px 600px at 50% 80%, rgba(255,176,32,0.08), transparent 65%);
  animation: parallaxGlow 22s ease-in-out infinite;
}
body::after{
  background:
    radial-gradient(1100px 700px at 35% 30%, rgba(58,121,255,0.16), transparent 65%),
    radial-gradient(1000px 650px at 70% 70%, rgba(57,255,154,0.12), transparent 70%);
  animation: parallaxGlow 28s ease-in-out infinite reverse;
  opacity: 0.7;
}
body > *{
  position: relative;
}

a{ color:inherit; text-decoration:none; }
h1,h2,h3{ margin:0 0 10px; }
p{ margin:0 0 10px; }
ul{ margin: 8px 0 0; padding-left: 18px; color: var(--muted); }

.muted{ color: var(--muted); }

.container{
  width:min(1100px, calc(100% - 32px));
  margin: 18px auto 80px;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(11,17,24,0.75);
  border-bottom: 1px solid rgba(58,111,122,0.25);
}
.topbar-inner{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
  padding: 12px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.brand{ font-weight:800; letter-spacing:0.4px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(14,22,32,0.6);
  color: var(--text);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(14,22,32,0.75);
}
.btn.primary{
  background: rgba(57,255,154,0.12);
  border-color: rgba(57,255,154,0.4);
}
.btn.danger{
  background: rgba(255,59,59,0.12);
  border-color: rgba(255,59,59,0.4);
  color: var(--text);
}
.btn.logout{
  background: rgba(255,59,59,0.08);
  border-color: rgba(255,59,59,0.3);
  color: var(--text);
}
.btn.logout:hover{
  background: rgba(255,59,59,0.14);
  border-color: rgba(255,59,59,0.45);
}
.btn.small{
  padding:7px 10px;
  border-radius:10px;
  font-size:12px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(11,17,24,0.6);
  font-size: 12px;
  position: relative;
}
.badge.dot::before{
  content:"";
  width:9px; height:9px;
  border-radius:999px;
  background: var(--gray);
  box-shadow: 0 0 14px rgba(154,166,178,0.35);
  position: relative;
  z-index: 1;
}
.badge.dot.green::before{
  background: var(--green);
  box-shadow: 0 0 12px rgba(57,255,154,0.35);
}
.badge.dot.green::after{
  content:"";
  position:absolute;
  width:9px;
  height:9px;
  border-radius:999px;
  box-shadow: 0 0 0 rgba(57,255,154,0);
  animation: pulse-green-badge 2.2s ease-in-out infinite;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events:none;
}
.badge.dot.orange::before{ background: var(--orange); box-shadow: 0 0 18px rgba(255,176,32,0.32); }
.badge.dot.red::before{ background: var(--red); box-shadow: 0 0 18px rgba(255,59,59,0.32); }
.badge.dot.gray::before{ background: var(--gray); box-shadow: 0 0 14px rgba(154,166,178,0.3); }

.glass-panel{
  background: linear-gradient(180deg, rgba(14,22,32,0.85), rgba(11,17,24,0.9));
  border: 1px solid rgba(58,111,122,0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 16px;
}

.hero{ margin-top: 16px; }
.glass-vitrine{
  background: linear-gradient(180deg, rgba(14,22,32,0.9), rgba(11,17,24,0.95));
  border: 1px solid rgba(58,111,122,0.35);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow:hidden;
}
.hero-header{
  padding: 18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
}
.hero-header h1{ font-size: 26px; font-weight: 850; }
.hero-status{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap: 10px;
}
.hero-title{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.last-check-overlay{
  position:absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  pointer-events: none;
}
.last-check-bar{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(58,111,122,0.35);
  background: linear-gradient(90deg, rgba(14,22,32,0.9), rgba(11,17,24,0.65));
  font-size: 12px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-shadow: 0 10px 30px rgba(11,17,24,0.35);
}
.last-check-bar::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, transparent, rgba(57,255,154,0.16), transparent);
  transform: translateX(-70%);
  opacity: 0;
  pointer-events:none;
}
.last-check-bar.pulse::after{
  animation: lastCheckSweep 1.8s ease-in-out;
  opacity: 0.9;
}
.last-check-bar.empty{
  opacity: 0.7;
}
.last-check-label{
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.last-check-time{
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(230,237,243,0.7);
}
.hero-canvas{
  height: 380px;
  border-top: 1px solid rgba(58,111,122,0.25);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 540px at 50% 40%, rgba(14,22,32,0.5), transparent 62%),
    radial-gradient(900px 520px at 75% 62%, rgba(11,17,24,0.45), transparent 66%),
    radial-gradient(1000px 520px at 20% 70%, rgba(14,22,32,0.4), transparent 66%),
    linear-gradient(180deg, #0e1620, #0b1118);
}
.hero-canvas::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(230,237,243,0.04), transparent 62%);
  pointer-events:none;
  z-index:1;
}
.hero-canvas::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(90% 90% at 50% 50%, transparent 32%, rgba(11,17,24,0.6) 100%);
  pointer-events:none;
  z-index:2;
}
#threeCanvas{ width:100%; height:100%; display:block; position:relative; z-index:3; }
.node-panel{
  position:absolute;
  top: 18px;
  left: 18px;
  width: 280px;
  max-width: calc(100% - 36px);
  border-radius: 12px;
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(11,17,24,0.28);
  backdrop-filter: blur(3px);
  box-shadow: var(--shadow);
  display:none;
  z-index: 4;
}
.node-panel.open{ display:block; }
.node-panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(58,111,122,0.25);
}
.node-panel-title{
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 16px;
}
.node-panel-close{
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(14,22,32,0.6);
  color: var(--text);
  border-radius: 10px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}
.node-panel-body{
  padding: 10px 12px 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.node-panel-url{
  color: var(--text);
  opacity: 0.8;
  word-break: break-all;
}
.node-panel-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.node-panel-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(14,22,32,0.6);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}
.node-panel-tag.ok{ border-color: rgba(57,255,154,0.4); background: rgba(57,255,154,0.12); color: #bfffe0; }
.node-panel-tag.warn{ border-color: rgba(255,176,32,0.4); background: rgba(255,176,32,0.12); color: #ffe9bf; }
.node-panel-tag.down{ border-color: rgba(255,59,59,0.4); background: rgba(255,59,59,0.12); color: #ffd0d0; }
.node-panel-tag.neutral{ opacity: 0.8; }

.section{ margin-top: 26px; }
.section-fieldset{
  border: 1px solid rgba(58,111,122,0.2);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0;
  min-inline-size: 0;
  animation: fieldsetPulse 4.5s ease-in-out infinite;
}
.section-fieldset legend{
  padding: 0 10px;
  margin-left: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.section-fieldset legend a{
  color: inherit;
  text-decoration: none;
}
.section-fieldset legend a:hover{
  text-decoration: underline;
}
#globalStatus{
  animation: fieldsetPulse 4.5s ease-in-out infinite;
}
@keyframes fieldsetPulse{
  0%,100%{ border-color: rgba(58,111,122,0.18); box-shadow: 0 0 0 rgba(58,111,122,0); }
  45%{ border-color: rgba(58,111,122,0.65); box-shadow: 0 0 18px rgba(58,111,122,0.18); }
  70%{ border-color: rgba(58,111,122,0.28); box-shadow: 0 0 0 rgba(58,111,122,0); }
}
.section-divider{
  height: 2px;
  margin: 22px 0;
  border-radius: 999px;
  background: rgba(58,111,122,0.8);
}
.section-header{
  display:flex;
  align-items:center;
  gap: 12px;
  margin: 0 0 12px;
}
.section-header h2{ margin:0; }
.section-header::after{
  content:"";
  height:2px;
  flex:1;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(58,111,122,0.75), transparent);
}

.workspace-showcase{
  margin-top: 20px;
  position: relative;
  z-index: 2;
  --workspace-gap: 22px;
  --workspace-columns: 1;
  --workspace-card-height: 300px;
  --workspace-preview-height: 170px;
}
.workspace-showcase.height-small{
  --workspace-card-height: 320px;
  --workspace-preview-height: 170px;
}
.workspace-showcase.height-medium{
  --workspace-card-height: min(70vh, 720px);
  --workspace-preview-height: min(45vh, 420px);
}
.workspace-showcase.height-large{
  --workspace-card-height: min(88vh, 900px);
  --workspace-preview-height: min(58vh, 520px);
}

.workspace-showcase-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.workspace-showcase-head h2{
  margin:0;
  font-size: 22px;
  font-weight: 800;
}
.workspace-track-wrap{
  position: relative;
}
.workspace-track{
  position: relative;
  display:flex;
  gap: var(--workspace-gap);
  overflow-x: auto;
  padding: 12px 0 0;
  margin: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
  scroll-padding-inline: 0;
  overflow-y: visible;
}
.workspace-track::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}
.workspace-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(11,17,24,0.72);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  font-size: 16px;
  font-weight: 800;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(11,17,24,0.45);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
.workspace-nav.prev{ left: -44px; }
.workspace-nav.next{ right: -44px; }
.workspace-nav:hover{
  transform: translateY(calc(-50% - 1px));
  background: rgba(11,17,24,0.9);
  border-color: rgba(58,111,122,0.6);
}
.workspace-nav:disabled{
  opacity: 0.35;
  cursor: default;
}
.workspace-nav.is-hidden{
  opacity: 0;
  pointer-events: none;
}
.workspace-card{
  flex: 0 0 calc((100% - (var(--workspace-gap) * (var(--workspace-columns) - 1))) / var(--workspace-columns));
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(14,22,32,0.85), rgba(11,17,24,0.95));
  border: 1px solid rgba(58,111,122,0.35);
  border-radius: var(--radius);
  padding: 22px;
  min-height: var(--workspace-card-height);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(11,17,24,0.55);
}
.workspace-card::before{
  content:"";
  position:absolute;
  inset: 0 0 auto 0;
  height: 70%;
  background:
    radial-gradient(240px 160px at 18% 22%, rgba(57,255,154,0.16), transparent 70%),
    radial-gradient(260px 180px at 72% 18%, rgba(58,121,255,0.16), transparent 72%);
  opacity: 0.55;
  pointer-events:none;
}
.workspace-showcase .workspace-card{
  display: block;
  padding: 0;
  height: var(--workspace-card-height);
  min-height: var(--workspace-card-height);
  background-image: var(--workspace-preview-url);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.workspace-showcase .workspace-card.is-placeholder{
  background-size: 60% auto;
}
.workspace-showcase .workspace-card.is-placeholder{
  background-image: none;
}
.workspace-showcase .workspace-card.is-placeholder .workspace-card-preview{
  display: flex;
  align-items: center;
  justify-content: center;
}
.workspace-showcase .workspace-card.is-placeholder .workspace-preview-img.placeholder{
  position: relative;
  inset: auto;
  width: 85%;
  height: auto;
  max-height: 85%;
}
.workspace-showcase.theme-green-border .workspace-card{
  background: linear-gradient(160deg, rgba(14,22,32,0.85), rgba(9,14,22,0.95));
  border-color: rgba(57,255,154,0.35);
  box-shadow: 0 16px 34px rgba(11,17,24,0.55);
  backdrop-filter: blur(18px);
}
.workspace-showcase.theme-green-border .workspace-card::after{
  content:"";
  position:absolute;
  inset: 2px;
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(120deg, rgba(255,255,255,0.18), transparent 45%, rgba(255,255,255,0.08));
  opacity: 0.7;
  pointer-events:none;
}
.workspace-showcase.theme-login .workspace-card{
  background: linear-gradient(160deg, rgba(140,230,255,0.2), rgba(16,32,48,0.7));
  border-color: rgba(210,245,255,0.55);
  box-shadow:
    0 18px 40px rgba(10,24,38,0.6),
    0 0 36px rgba(120,220,255,0.18);
  backdrop-filter: blur(18px);
}
.workspace-showcase.theme-login .workspace-card::after{
  content:"";
  position:absolute;
  inset: 6px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 10px 24px rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 55%, rgba(255,255,255,0.12));
  pointer-events:none;
}
.workspace-showcase.theme-login .workspace-card::before{
  background:
    radial-gradient(240px 200px at 18% 18%, rgba(180,245,255,0.28), transparent 70%),
    radial-gradient(220px 160px at 70% 20%, rgba(120,210,255,0.22), transparent 72%);
  opacity: 0.7;
}
.workspace-showcase.theme-neo .workspace-card{
  background: linear-gradient(160deg, rgba(10,20,36,0.96), rgba(6,12,22,0.98));
  border-color: rgba(120,225,255,0.7);
  box-shadow: 0 14px 28px rgba(9,18,32,0.6);
  backdrop-filter: blur(12px);
}
.workspace-showcase.theme-neo .workspace-card::before{
  background: none;
  opacity: 0;
}
.workspace-showcase.theme-neo .workspace-card::after{
  content:"";
  position:absolute;
  inset: 2px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(120,220,255,0.45);
  box-shadow:
    inset 4px 0 10px rgba(120,220,255,0),
    inset -4px 0 10px rgba(120,220,255,0),
    0 0 8px rgba(120,220,255,0.18);
  opacity: 0.85;
  pointer-events:none;
  z-index: 0;
  animation: neonSides 3.8s ease-in-out infinite;
}
.workspace-card-body{
  position: relative;
  z-index: 1;
}
.workspace-card-preview{
  height: var(--workspace-preview-height);
  margin: -22px -22px 16px;
  position: relative;
  z-index: 0;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 14px 14px;
  border: none;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.workspace-showcase .workspace-card-preview{
  position: absolute;
  inset: 0;
  margin: 0;
  height: 100%;
  border-radius: var(--radius);
  display: block;
  pointer-events: none;
}
.workspace-showcase .workspace-card-preview .workspace-preview-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.workspace-showcase .workspace-card-preview .workspace-preview-img.placeholder{
  inset: 7.5%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.workspace-card-preview .workspace-preview-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.workspace-card-preview .workspace-preview-img.placeholder{
  width: 85%;
  height: 85%;
  object-fit: contain;
  opacity: 0.8;
  background: transparent;
}
.workspace-showcase .workspace-card-preview .workspace-preview-img[data-screenshot-src]{
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.preview-box .workspace-preview-img{
  width: 100%;
  height: auto;
  object-fit: contain;
}
.workspace-showcase.height-large .workspace-card{
  padding: 0;
}
.workspace-showcase.height-large .workspace-card-body{
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 1;
}
.workspace-showcase.height-large .workspace-card-actions{
  position: absolute;
  left: 18px;
  bottom: 18px;
  margin: 0;
  z-index: 1;
}
.workspace-showcase.height-large .workspace-card-preview{
  position: absolute;
  inset: 0;
  margin: 0;
  height: 100%;
  border-radius: var(--radius);
  display: block;
  pointer-events: none;
}
.workspace-showcase.height-large .workspace-card-preview::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(8,14,24,0.15) 0%, rgba(8,14,24,0.55) 70%, rgba(8,14,24,0.7) 100%);
  pointer-events: none;
}
.workspace-showcase.height-large .workspace-card-preview .workspace-preview-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.workspace-showcase.height-medium .workspace-card{
  padding: 0;
}
.workspace-showcase.height-medium .workspace-card-body{
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 1;
}
.workspace-showcase.height-medium .workspace-card-actions{
  position: absolute;
  left: 18px;
  bottom: 18px;
  margin: 0;
  z-index: 1;
}
.workspace-showcase.height-medium .workspace-card-preview{
  position: absolute;
  inset: 0;
  margin: 0;
  height: 100%;
  border-radius: var(--radius);
  display: block;
  pointer-events: none;
}
.workspace-showcase.height-medium .workspace-card-preview::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(8,14,24,0.12) 0%, rgba(8,14,24,0.6) 70%, rgba(8,14,24,0.75) 100%);
  pointer-events: none;
}
.workspace-showcase.height-medium .workspace-card-preview .workspace-preview-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.workspace-showcase.height-small .workspace-card{
  padding: 0;
}
.workspace-showcase.height-small .workspace-card-body{
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 1;
}
.workspace-showcase.height-small .workspace-card-actions{
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  z-index: 1;
}
.workspace-showcase.height-small .workspace-card-preview{
  position: absolute;
  inset: 0;
  margin: 0;
  height: 100%;
  border-radius: var(--radius);
  display: block;
  pointer-events: none;
}
.workspace-showcase.height-small .workspace-card-preview::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(8,14,24,0.1) 0%, rgba(8,14,24,0.55) 70%, rgba(8,14,24,0.7) 100%);
  pointer-events: none;
}
.workspace-showcase.height-small .workspace-card-preview .workspace-preview-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.workspace-card-title{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 2;
}
.workspace-card-desc{
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  position: relative;
  z-index: 2;
}
.workspace-card-meta{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  position: relative;
  z-index: 2;
}
.workspace-card-actions{
  margin-top: 12px;
  position: relative;
  z-index: 2;
}
.workspace-badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(11,17,24,0.55);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.workspace-badge.type-wordpress{
  border-color: rgba(57,255,154,0.4);
  color: #c6ffe4;
}
.workspace-badge.type-php{
  border-color: rgba(58,121,255,0.4);
  color: #d1e2ff;
}
.workspace-badge.type-static{
  border-color: rgba(255,176,32,0.4);
  color: #ffe7b8;
}

@media (max-width: 720px){
  .workspace-showcase-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .workspace-nav{
    width: 30px;
    height: 30px;
  }
  .workspace-nav.prev{ left: 8px; }
  .workspace-nav.next{ right: 8px; }
  .workspace-track{
    scroll-snap-type: x mandatory;
  }
  .workspace-showcase{
    --workspace-columns: 1;
  }
}

@media (max-width: 980px){
  .workspace-showcase{
    --workspace-columns: 1;
  }
}

.access-list{
  display:grid;
  gap: 10px;
}
.access-group{
  border: 1px solid rgba(58,111,122,0.22);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(14,22,32,0.4);
}
.access-project{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 600;
}
.access-items{
  margin-left: 22px;
  margin-top: 8px;
  display:grid;
  gap: 6px;
}
.access-item{
  display:flex;
  align-items:center;
  gap: 8px;
  color: var(--muted);
}
.item-locked{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}
.item-lock{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(58,111,122,0.35);
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: rgba(154,166,178,0.9);
}

.item-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.item-actions{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.item-gallery{
  margin-top: 12px;
  position: relative;
}
.item-gallery-track{
  display: grid;
  gap: 10px;
}
.gallery-image{
  border: 1px solid rgba(58,111,122,0.35);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(11,17,24,0.6);
  padding: 0;
  width: 100%;
  display: block;
  cursor: zoom-in;
}
.gallery-image:focus-visible{
  outline: 2px solid rgba(58,111,122,0.8);
  outline-offset: 2px;
}
.gallery-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.item-gallery--grid .item-gallery-track{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.item-gallery--grid .gallery-image{
  aspect-ratio: 16 / 10;
}
.item-gallery--hero .item-gallery-track{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 120px;
}
.item-gallery--hero .gallery-image{
  height: 100%;
}
.item-gallery--hero .gallery-image:first-child{
  grid-column: span 2;
  grid-row: span 2;
}
.item-gallery--strip .item-gallery-track{
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding-bottom: 6px;
}
.item-gallery--strip .gallery-image{
  flex: 0 0 240px;
  scroll-snap-align: start;
  aspect-ratio: 16 / 10;
}
.item-gallery--strip .item-gallery-track::-webkit-scrollbar{
  height: 6px;
}
.item-gallery--strip .item-gallery-track::-webkit-scrollbar-thumb{
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 1px solid rgba(11,17,24,0.25);
}
.item-gallery--strip .item-gallery-track::-webkit-scrollbar-track{
  background: var(--scrollbar-track);
  border-radius: 999px;
}
.item-gallery--slider .item-gallery-track{
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.item-gallery--slider .item-gallery-track::-webkit-scrollbar{
  height: 0;
}
.item-gallery--slider .gallery-image{
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
}
.item-gallery--stack .item-gallery-track{
  grid-template-columns: 1fr;
}
.item-gallery--stack .gallery-image{
  aspect-ratio: auto;
}
.item-gallery--stack .gallery-image img{
  height: auto;
  object-fit: contain;
  background: rgba(11,17,24,0.85);
}
.gallery-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(58,111,122,0.5);
  background: rgba(10,16,24,0.75);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.item-gallery--slider .gallery-nav{
  display: flex;
}
.gallery-nav.prev{ left: 8px; }
.gallery-nav.next{ right: 8px; }
.gallery-nav:hover{
  border-color: rgba(58,111,122,0.9);
}
.gallery-dots{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.gallery-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(58,111,122,0.55);
  background: rgba(154,166,178,0.35);
  cursor: pointer;
  padding: 0;
}
.gallery-dot.is-active{
  background: rgba(57,255,154,0.9);
  border-color: rgba(57,255,154,0.6);
  box-shadow: 0 0 10px rgba(57,255,154,0.45);
}
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(6,10,16,0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox.is-open{
  display: flex;
}
.lightbox-content{
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lightbox-content img{
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 14px;
  border: 1px solid rgba(58,111,122,0.4);
  background: rgba(11,17,24,0.85);
}
.lightbox-caption{
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.lightbox-close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(58,111,122,0.5);
  background: rgba(10,16,24,0.8);
  color: var(--text);
  cursor: pointer;
}
.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(58,111,122,0.5);
  background: rgba(10,16,24,0.8);
  color: var(--text);
  cursor: pointer;
}
.lightbox-prev{ left: 16px; }
.lightbox-next{ right: 16px; }

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Site cards */
.site-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.glass-site{
  background: linear-gradient(180deg, rgba(14,22,32,0.85), rgba(11,17,24,0.9));
  border: 1px solid rgba(58,111,122,0.35);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
}
.glass-site .preview{
  position:relative;
  height: 170px;
  border-bottom: 1px solid rgba(58,111,122,0.25);
  background: rgba(11,17,24,0.6);
}
.glass-site .preview img{
  width:100%;
  height:100%;
  object-fit: cover;
  opacity: 0.93;
}
.preview-loading{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 8px 10px;
    text-align:center;
    font-weight: 800;
    font-size: 12px;
    color:#fff;
    text-shadow:-1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000;
    background: rgba(11,17,24,0.65);
    opacity:0;
    transition: opacity .2s ease;
    pointer-events:none;
  }
.preview-empty{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 8px 10px;
    text-align:center;
    font-weight: 700;
    font-size: 12px;
    color:#fff;
    text-shadow:-1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000;
    background: rgba(11,17,24,0.45);
    opacity:0;
    transition: opacity .2s ease;
    pointer-events:none;
  }
.preview.loading .preview-loading,
.preview-box.loading .preview-loading,
.preview-thumb.loading .preview-loading,
.workspace-card-preview.loading .preview-loading{
    opacity:1;
  }
.workspace-card-preview.no-preview .preview-empty,
.workspace-card-preview.failed .preview-empty{
    opacity:1;
  }
.workspace-card-preview.loading .preview-empty{
    opacity:0;
  }
.preview.loading img,
.preview-thumb.loading img,
.preview-box.loading img,
.workspace-card-preview.loading img{
  opacity: 1;
  filter: none;
  visibility: hidden;
}
.preview-thumb{
    position: relative;
    width:140px;
    height:90px;
    overflow:hidden;
    border-radius:8px;
    border:1px solid rgba(58,111,122,0.35);
    background: rgba(11,17,24,0.6);
  }
.workspace-preview-thumb{
    width:110px;
    height:70px;
  }
.sites-preview-thumb{
    width:80px;
    height:50px;
  }
.preview-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.glass-site .body{
  padding: 12px;
}
.glass-site .meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.glass-site .site-actions{
  margin-top: 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
}
.site-actions-left{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}
.site-meta-right{
  display:flex;
  align-items:center;
  gap: 6px;
  margin-left: auto;
}
.ms-badge{
  display:inline-flex;
  align-items:center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(11,17,24,0.7);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.ms-badge::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, transparent, rgba(57,255,154,0.16), transparent);
  transform: translateX(-70%);
  opacity: 0;
  pointer-events: none;
}
.ms-badge.pulse::after{
  animation: lastCheckSweep 1.8s ease-in-out;
  opacity: 0.9;
}

/* Status dot */
.status-dot{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius:999px;
  background: var(--gray);
  box-shadow: 0 0 14px rgba(154,166,178,0.3);
  transform-origin: center;
}
.status-dot.green{
  background: var(--green);
  box-shadow: 0 0 18px rgba(57,255,154,0.4);
  animation: pulse-green-dot 1.8s ease-in-out infinite;
}
.status-dot.orange{ background: var(--orange); box-shadow:0 0 18px rgba(255,176,32,0.32); }
.status-dot.red{ background: var(--red); box-shadow:0 0 18px rgba(255,59,59,0.32); }
.status-dot.gray{ background: var(--gray); box-shadow:0 0 14px rgba(154,166,178,0.3); }

/* Drawer */
.drawer{
  position:fixed;
  top:0;
  right:-380px;
  width: 360px;
  max-width: calc(100vw - 22px);
  height:100%;
  z-index: 5000;

  background: rgba(14,22,32,0.92);
  border-left: 1px solid rgba(58,111,122,0.35);
  backdrop-filter: blur(14px);
  box-shadow: -20px 0 60px rgba(11,17,24,0.6);

  transition: right .25s ease;
  padding: 16px;
}
.drawer.open{ right:0; }
.drawer-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(58,111,122,0.25);
}
.drawer-header button{
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(14,22,32,0.6);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 10px;
  cursor:pointer;
}
.drawer-body{
  padding-top: 12px;
}
.drawer-list{
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text);
}
.drawer-list li{ margin: 8px 0; }

/* Auth */
.auth-wrap{
  min-height: calc(100vh - 64px);
  display:grid;
  place-items:center;
  padding: 18px;
}
.auth-card{
  width: min(460px, 100%);
}
.setup-body .auth-card form{
  margin-top: 12px;
}
.setup-body .auth-card form .input + .btn,
.setup-body .auth-card form label + .btn{
  margin-top: 10px;
}

/* Admin */
.admin-body{
  min-height: 100vh;
}
.admin-shell{
  display:flex;
  min-height: 100vh;
}
.admin-sidebar{
  width: 240px;
  max-width: 80vw;
  padding: 18px 16px;
  display:flex;
  flex-direction:column;
  gap: 16px;
  background: linear-gradient(180deg, rgba(14,22,32,0.92), rgba(11,17,24,0.96));
  border-right: 1px solid rgba(58,111,122,0.35);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 60;
}
.admin-brand{
  font-weight: 900;
  letter-spacing: 0.4px;
}
.admin-subtitle{
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.admin-nav{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.admin-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(11,17,24,0.45);
  color: var(--text);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.admin-link:hover{
  background: rgba(14,22,32,0.7);
  border-color: rgba(58,111,122,0.45);
  transform: translateX(1px);
}
.admin-link.active{
  background: rgba(57,255,154,0.12);
  border-color: rgba(57,255,154,0.35);
}
.admin-sidebar-footer{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.admin-main{
  flex:1;
  min-width: 0;
}
.admin-topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 20px;
  backdrop-filter: blur(10px);
  background: rgba(11,17,24,0.7);
  border-bottom: 1px solid rgba(58,111,122,0.25);
}
.admin-title{
  font-weight: 900;
  letter-spacing: 0.2px;
}
.admin-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}
.admin-menu-toggle{
  display:none;
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(14,22,32,0.6);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 10px;
  cursor:pointer;
}
.admin-overlay{
  display:none;
  position: fixed;
  inset: 0;
  background: rgba(5,8,12,0.55);
  backdrop-filter: blur(2px);
  z-index: 55;
}
.admin-overlay.show{
  display:block;
}
.upload-overlay{
  display:none;
  position: fixed;
  inset: 0;
  background: rgba(5,8,12,0.7);
  backdrop-filter: blur(4px);
  z-index: 120;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.upload-overlay.show{
  display:flex;
}
.upload-card{
  width: min(420px, 90vw);
  text-align: center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 12px;
}
.upload-spinner{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 3px solid rgba(58,111,122,0.35);
  border-top-color: rgba(57,255,154,0.9);
  box-shadow: 0 0 16px rgba(57,255,154,0.2);
  animation: uploadSpin 1s linear infinite;
}
.upload-title{
  font-size: 16px;
  font-weight: 800;
}
.upload-note{
  font-size: 12px;
  color: var(--muted);
}
.upload-overlay .btn{
  pointer-events: none;
}
@keyframes uploadSpin{
  to { transform: rotate(360deg); }
}
.item-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(5,8,12,0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 70;
}
.item-modal-overlay.open{
  opacity: 1;
  pointer-events: auto;
}
.item-modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 80;
  overscroll-behavior: contain;
}
.item-modal.open{
  opacity: 1;
  pointer-events: auto;
}
.item-modal-card{
  width: min(920px, 100%);
  max-height: calc(100vh - 80px);
  overflow: hidden;
  padding: 8px;
  border-radius: var(--radius);
}
.item-modal-scroll{
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(58,111,122,0.7) rgba(11,17,24,0.35);
  scrollbar-gutter: stable;
}
.item-modal-scroll::-webkit-scrollbar{
  width: 8px;
}
.item-modal-scroll::-webkit-scrollbar-track{
  background: rgba(11,17,24,0.35);
  border-radius: 999px;
  border: 1px solid rgba(58,111,122,0.18);
}
.item-modal-scroll::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(58,111,122,0.9), rgba(58,111,122,0.55));
  border-radius: 999px;
  border: 2px solid rgba(11,17,24,0.55);
}
.item-modal-scroll::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, rgba(57,255,154,0.4), rgba(58,111,122,0.7));
}
.item-modal-scroll::-webkit-scrollbar-button{
  width: 0;
  height: 0;
  display: none;
}
.item-modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.workspace-embed{
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: transparent;
  display: block;
}
#workspaceModal .item-modal-header{
  justify-content: flex-end;
}
#workspaceModal .item-modal-card{
  padding: 4px;
}
#workspaceModal .item-modal-scroll{
  padding: 12px 8px 16px 16px;
}
.admin-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.check-inline{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(58,111,122,0.3);
  background: rgba(11,17,24,0.45);
  font-size: 12px;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}
.check-inline::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, transparent, rgba(57,255,154,0.16), transparent);
  transform: translateX(-70%);
  opacity: 0;
  pointer-events: none;
}
.check-inline.pulse::after{
  animation: lastCheckSweep 1.8s ease-in-out;
  opacity: 0.9;
}
.check-label{
  color: rgba(230,237,243,0.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.check-time{
  font-weight: 600;
  color: rgba(230,237,243,0.7);
}
.table-wrap{ overflow:auto; }
table{
  width: 100%;
  border-collapse: collapse;
}
th,td{
  text-align:left;
  padding: 10px;
  border-bottom: 1px solid rgba(58,111,122,0.2);
  font-size: 13px;
}
th{ color: var(--muted); font-weight: 800; }

.input{
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(11,17,24,0.7);
  color: var(--text);
  outline:none;
}
.input:focus{ border-color: rgba(57,255,154,0.6); }

.field{
  margin-bottom: 14px;
}
.field-label{
  display:flex;
  align-items:center;
  gap: 6px;
  font-weight: 700;
  margin-bottom: 6px;
}
.field-hint{
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}
.label-required{
  color: var(--orange);
  font-weight: 900;
}
.field-note{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.field-row{
  display:flex;
  align-items:center;
  gap: 10px;
}
.field-row .input{
  flex: 1;
}
.db-check-status{
  font-weight: 600;
}
.db-check-status.ok{
  color: rgba(57,255,154,0.9);
}
.db-check-status.error{
  color: rgba(255,118,118,0.9);
}
.note-code{
  display:block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(11,17,24,0.6);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  white-space: normal;
  word-break: break-all;
  overflow-x: hidden;
}
.form-note{
  margin-bottom: 12px;
}
.field-note a{
  text-decoration: underline;
}
.toggle-row{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 600;
}
.input-row{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}
.input-row .input{
  flex: 1;
}
.dice-btn{
  width: 44px;
  height: 44px;
  padding: 0;
}
.toggle-btn{
  height: 44px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 12px;
}
.dice-icon{
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(230,237,243,0.65);
  background:
    radial-gradient(circle at 30% 30%, rgba(230,237,243,0.9) 2px, transparent 3px),
    radial-gradient(circle at 70% 30%, rgba(230,237,243,0.9) 2px, transparent 3px),
    radial-gradient(circle at 50% 50%, rgba(230,237,243,0.9) 2px, transparent 3px),
    radial-gradient(circle at 30% 70%, rgba(230,237,243,0.9) 2px, transparent 3px),
    radial-gradient(circle at 70% 70%, rgba(230,237,243,0.9) 2px, transparent 3px),
    rgba(11,17,24,0.35);
  box-shadow: inset 0 0 0 1px rgba(11,17,24,0.6);
}

.alert{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(11,17,24,0.7);
  margin: 10px 0;
  position: relative;
}
.alert.error{
  border-color: rgba(255,59,59,0.5);
  background: rgba(255,59,59,0.12);
}
.alert.ok{
  border-color: rgba(57,255,154,0.5);
  background: rgba(57,255,154,0.12);
}
.alert.dismissible{
  padding-right: 36px;
}
.alert .alert-close{
  position: absolute;
  top: 6px;
  right: 6px;
  border: 1px solid rgba(58,111,122,0.35);
  background: rgba(14,22,32,0.6);
  color: var(--text);
  border-radius: 10px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}

.preview-box{
  margin-top: 10px;
  border: 1px solid rgba(58,111,122,0.35);
  border-radius: 14px;
  overflow:hidden;
  position: relative;
}
.preview-box img{
  width: 100%;
  height: auto;
  display:block;
}

@keyframes pulse-green-halo{
  0%{ box-shadow: 0 0 6px rgba(57,255,154,0.22); }
  50%{ box-shadow: 0 0 20px rgba(57,255,154,0.5); }
  100%{ box-shadow: 0 0 6px rgba(57,255,154,0.22); }
}
@keyframes pulse-green-dot{
  0%{ transform: scale(1); box-shadow: 0 0 10px rgba(57,255,154,0.25); }
  50%{ transform: scale(1.2); box-shadow: 0 0 20px rgba(57,255,154,0.5); }
  100%{ transform: scale(1); box-shadow: 0 0 10px rgba(57,255,154,0.25); }
}
@keyframes pulse-green-badge{
  0%{ box-shadow: 0 0 8px rgba(57,255,154,0.25); }
  50%{ box-shadow: 0 0 24px rgba(57,255,154,0.55); }
  100%{ box-shadow: 0 0 8px rgba(57,255,154,0.25); }
}
@keyframes parallaxGlow{
  0%{ transform: translate3d(0,0,0); }
  50%{ transform: translate3d(-2%, 1.5%, 0); }
  100%{ transform: translate3d(0,0,0); }
}
@keyframes lastCheckSweep{
  0%{ transform: translateX(-70%); opacity: 0.2; }
  50%{ transform: translateX(60%); opacity: 0.9; }
  100%{ transform: translateX(140%); opacity: 0; }
}
@keyframes neonSides{
  0%,100%{
    opacity: 0.6;
    border-color: rgba(120,220,255,0.35);
    box-shadow:
      inset 4px 0 10px rgba(120,220,255,0.45),
      inset -4px 0 10px rgba(120,220,255,0.05),
      0 0 8px rgba(120,220,255,0.12);
  }
  40%{
    opacity: 0.9;
    border-color: rgba(170,240,255,0.75);
    box-shadow:
      inset 4px 0 10px rgba(120,220,255,0.18),
      inset -4px 0 10px rgba(120,220,255,0.18),
      0 0 10px rgba(120,220,255,0.2);
  }
  70%{
    opacity: 0.9;
    border-color: rgba(180,245,255,0.8);
    box-shadow:
      inset 4px 0 10px rgba(120,220,255,0.05),
      inset -4px 0 10px rgba(120,220,255,0.45),
      0 0 8px rgba(120,220,255,0.16);
  }
}

@media (max-width: 980px){
  .grid-3{ grid-template-columns: 1fr; }
  .item-gallery--grid .item-gallery-track,
  .item-gallery--hero .item-gallery-track{
    grid-template-columns: 1fr;
  }
  .item-gallery--hero .gallery-image:first-child{
    grid-column: span 1;
    grid-row: span 1;
  }
  .site-grid{ grid-template-columns: repeat(2, 1fr); }
  .admin-grid{ grid-template-columns: 1fr; }
  .hero-canvas{ height: 320px; }
  .admin-shell{
    display:block;
  }
  .admin-sidebar{
    position: fixed;
    left: -260px;
    top: 0;
    height: 100vh;
    transition: left .2s ease;
  }
  .admin-shell.sidebar-open .admin-sidebar{
    left: 0;
  }
  .admin-menu-toggle{
    display:inline-flex;
  }
}
@media (max-width: 620px){
  .site-grid{ grid-template-columns: 1fr; }
  .hero-header h1{ font-size: 22px; }
  .hero-canvas{ height: 280px; }
  .hero-header{
    flex-direction: column;
    align-items:flex-start;
  }
  .hero-status{
    align-items:flex-start;
  }
  .last-check-overlay{
    right: 12px;
    left: auto;
    bottom: 12px;
  }
  .last-check-bar{
    width: auto;
    max-width: 250px;
    justify-content: flex-end;
  }
  .node-panel{
    left: 12px;
    right: 12px;
    top: 12px;
    width: auto;
    max-width: none;
  }
  .panel-head{
    flex-direction: column;
    align-items: flex-start;
  }
  .check-inline{
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 520px){
  .item-modal{
    padding: 12px;
  }
  .item-modal-card{
    max-height: calc(100vh - 40px);
    padding: 6px;
  }
  .item-modal-scroll{
    max-height: calc(100vh - 96px);
    padding: 14px;
  }
}
