:root{
  --bg:#07101f;
  --panel:#111c33;
  --panel2:#17223b;
  --panel3:#0c1629;
  --text:#e5edf9;
  --muted:#94a3b8;
  --line:rgba(255,255,255,.10);
  --green:#22c55e;
  --warn:#f59e0b;
  --red:#ef4444;
  --cyan:#38bdf8;
}
*{box-sizing:border-box}
body{
  margin:0;
  background:
    radial-gradient(circle at top left,rgba(56,189,248,.14),transparent 32%),
    radial-gradient(circle at top right,rgba(34,197,94,.10),transparent 28%),
    linear-gradient(135deg,#07101f,#101827 55%,#121a2b);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
}
.topbar{
  position:fixed;
  top:0;left:0;right:0;
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 22px;
  background:rgba(7,16,31,.94);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(16px);
  z-index:5;
}
.brand-title{font-size:20px;font-weight:900;letter-spacing:.2px}
.brand-subtitle{color:var(--muted);font-size:12px;margin-top:3px}
.top-status{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.clock,.pill{
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:15px;
  padding:9px 12px;
  min-width:122px;
}
.clock .label{display:block;font-size:11px;color:var(--muted)}
.pill.ok{border-color:rgba(34,197,94,.55);box-shadow:0 0 0 1px rgba(34,197,94,.08) inset}
.pill.bad{border-color:rgba(239,68,68,.65)}
.sidebar{
  position:fixed;
  left:0;top:74px;bottom:0;
  width:218px;
  background:rgba(7,16,31,.72);
  border-right:1px solid var(--line);
  padding:18px 14px;
  backdrop-filter: blur(16px);
}
.sidebar a,.logout{
  width:100%;
  display:block;
  color:var(--text);
  text-decoration:none;
  padding:12px 14px;
  margin-bottom:8px;
  border-radius:13px;
  background:rgba(255,255,255,.04);
  border:1px solid transparent;
  text-align:left;
}
.sidebar a:hover,.logout:hover{border-color:var(--line);background:rgba(255,255,255,.08)}
.logout{cursor:pointer}
.content{
  margin-left:218px;
  padding:98px 24px 70px;
}
.hero{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  padding:22px;
  border:1px solid var(--line);
  border-radius:24px;
  background:linear-gradient(135deg,rgba(56,189,248,.12),rgba(34,197,94,.08),rgba(255,255,255,.03));
  box-shadow:0 20px 60px rgba(0,0,0,.24);
  margin-bottom:18px;
}
.hero h1{margin:0 0 6px;font-size:31px}
.hero p{margin:0;color:var(--muted)}
.mode-lock{
  text-align:right;
  border:1px solid rgba(34,197,94,.35);
  background:rgba(34,197,94,.09);
  border-radius:18px;
  padding:12px 16px;
}
.mode-lock span{display:block;color:var(--muted);font-size:12px}
.mode-lock strong{color:var(--green)}
h1{margin-top:0;font-size:30px}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
}
.grid.two{grid-template-columns:repeat(auto-fit,minmax(360px,1fr))}
.status-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;
  margin-bottom:16px;
}
.metric-card,.card{
  background:rgba(17,28,51,.86);
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  margin-bottom:16px;
  box-shadow:0 15px 42px rgba(0,0,0,.22);
}
.metric-card{
  min-height:112px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.metric-label{color:var(--muted);font-size:13px}
.metric-card strong{font-size:28px}
.metric-card small{color:var(--muted)}
.green{color:var(--green)!important}
.red{color:var(--red)!important}
.card-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.card h2{margin-top:0}
.badge{
  color:var(--cyan);
  border:1px solid rgba(56,189,248,.35);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  background:rgba(56,189,248,.08);
}
.now-title{
  font-size:22px;
  font-weight:800;
  margin:8px 0 4px;
  line-height:1.25;
}
.muted{color:var(--muted)}
.next-box{
  margin-top:14px;
  padding:13px;
  border-radius:15px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
}
.next-box span{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}
.stats-line{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.stats-line span{
  padding:7px 9px;
  border-radius:10px;
  background:rgba(255,255,255,.04);
  color:#dbeafe;
  font-size:13px;
}
.notice{
  padding:14px 16px;
  background:rgba(245,158,11,.12);
  border:1px solid rgba(245,158,11,.35);
  border-radius:14px;
  margin-bottom:16px;
}
pre{
  white-space:pre-wrap;
  word-break:break-word;
  color:#dbeafe;
  background:rgba(0,0,0,.18);
  padding:12px;
  border-radius:12px;
  max-height:420px;
  overflow:auto;
}
table{width:100%;border-collapse:collapse}
th,td{padding:10px;border-bottom:1px solid var(--line);text-align:left}
th{color:var(--muted)}
button,input,select{
  border-radius:10px;
  border:1px solid var(--line);
  padding:10px 12px;
  background:#111827;
  color:var(--text);
}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:not-allowed}
label{display:block;margin:12px 0 6px;color:var(--muted)}
.lock-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
}
.lock-grid div{
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
}
.footer{
  position:fixed;
  left:218px;right:0;bottom:0;
  padding:10px 20px;
  background:rgba(7,16,31,.92);
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
}
.login-page{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
}
.login-card{
  width:min(420px,92vw);
  background:rgba(17,28,51,.92);
  border:1px solid var(--line);
  border-radius:22px;
  padding:26px;
}
.login-card input,.login-card button{width:100%;margin-bottom:12px}
.alert{
  background:rgba(239,68,68,.14);
  border:1px solid rgba(239,68,68,.45);
  padding:12px;
  border-radius:12px;
  margin-bottom:12px;
}
@media(max-width:850px){
  .sidebar{position:static;width:auto;margin-top:74px}
  .content{margin-left:0;padding-top:24px}
  .footer{left:0}
  .topbar{position:fixed;align-items:flex-start;gap:10px}
  .hero{flex-direction:column;align-items:flex-start}
}

/* CORE_PANEL_01X2_UI_POLISH_CSS */
.core-x2-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.x2-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
}

.x2-actions-list {
  display: grid;
  gap: 12px;
}

.x2-action-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.x2-action-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.x2-action-meta,
.x2-safety {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  opacity: 0.95;
}

.x2-safety span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.x2-action-buttons {
  display: flex;
  align-items: center;
}

.x2-empty {
  padding: 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
}

.x2-helper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 760px) {
  .x2-action-row {
    flex-direction: column;
  }
  .x2-helper-grid {
    grid-template-columns: 1fr;
  }
}
