:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --primary: #0b7285;
  --text: #1f2933;
  --muted: #6b7b8c;
  --radius: 10px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0 auto;
  padding: 24px;
  max-width: 1200px;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at 10% 20%, #e0f7fa, transparent 25%),
    radial-gradient(circle at 90% 10%, #e3f2fd, transparent 20%),
    var(--bg);
  color: var(--text);
}
header { margin-bottom: 20px; }
h1 { margin: 0 0 8px; color: var(--primary); }
p { color: var(--muted); }

.card {
  background: var(--card);
  padding: 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

label { display: block; margin: 8px 0; font-weight: 600; }
input, textarea, button {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  font-size: 14px;
  margin-top: 4px;
}
textarea { min-height: 70px; resize: vertical; }
button {
  cursor: pointer;
  background: var(--primary);
  color: white;
  border: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
button.secondary {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
button.danger { background: #c92a2a; }
button:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
button:active { transform: translateY(0); }

.ok { color: #2b8a3e; }
.warn { color: #d9480f; }
.pill { padding: 4px 10px; border-radius: 999px; background: #e9ecef; font-weight: 600; }

.actions { display: flex; gap: 10px; align-items: center; }
#logOutput { background: #0b1021; color: #cde5ff; min-height: 180px; padding: 12px; border-radius: var(--radius); overflow: auto; }
.log-scroller { max-height: 280px; overflow: auto; border: 1px solid #e0e7ef; border-radius: var(--radius); padding: 8px; background: #0b1021; color: #cde5ff; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-input { display: flex; gap: 6px; align-items: center; }
.inline-input input { flex: 2.2; min-width: 420px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.full { width: 100%; }
.w100 { width: 100%; }
.actions.wrap { flex-wrap: wrap; }
.status-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.lamp { width: 16px; height: 16px; border-radius: 50%; background: #adb5bd; box-shadow: 0 0 6px rgba(0,0,0,0.2); }
.lamp.ok { background: #2b8a3e; }
.lamp.warn { background: #f59f00; }
.lamp.err { background: #c92a2a; }
.logblock { margin-bottom: 12px; }
.logblock pre { background: #0b1021; color: #cde5ff; padding: 10px; border-radius: 8px; min-height: 60px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.col-wide { min-height: 100%; }
.col-narrow { min-height: 100%; }

table { border-collapse: collapse; width: 100%; margin-top: 10px; }
table th, table td { padding: 8px 10px; border-bottom: 1px solid #e9ecef; text-align: left; }
table td.code { font-family: monospace; color: #495057; }
table tr.warn td { background: #fff4e6; }
table tr.ok td { background: #f4fbf6; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.select-row { display: flex; gap: 12px; flex-wrap: wrap; }
.select-row label { flex: 1; min-width: 200px; }
.toggle-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 10px; background: #f4fbf6; border: 1px solid #dfe8e4; border-radius: var(--radius); }
.toggle-row .group { display: flex; gap: 10px; align-items: center; }
.field-row { position: relative; margin-bottom: 10px; }
.clear-btn { margin-top: 6px; padding: 6px 10px; background: #e03131; color: #fff; border: none; border-radius: 6px; font-size: 12px; cursor: pointer; width: 100%; }
.clear-btn:hover { box-shadow: var(--shadow); }
.save-flash { animation: flash-bg 0.8s ease; }
@keyframes flash-bg {
  0% { background-color: #d3f9d8; }
  100% { background-color: #fff; }
}
.panel { border: 1px solid #e0e7ef; border-radius: var(--radius); padding: 12px; background: #fefefe; box-shadow: var(--shadow); }
.panel h3 { margin-top: 0; }
.mono { font-family: monospace; }
.half-width { max-width: 100%; }
.pre-wrap { white-space: pre-wrap; }
.scroll { max-height: 260px; overflow: auto; }
.panel .logblock pre { width: 100%; max-width: 100%; }

.login-box { border: 1px solid #d0d7de; padding: 12px; border-radius: var(--radius); background: #f8fbff; box-shadow: var(--shadow); }
.login-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.muted { color: #6b7b8c; font-size: 13px; }
.hidden { display: none !important; }
.hero { text-align: center; margin-bottom: 16px; }
.hero h1 { margin-bottom: 4px; }
.input-lg { min-height: 46px; font-size: 16px; }
.textarea-lg { min-height: 140px; }

.deployment-badge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: rgba(6, 10, 28, 0.92);
  color: #ecf2ff;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 28px rgba(2, 6, 24, 0.7);
  pointer-events: none;
  z-index: 9999;
  min-width: 210px;
}

.deployment-badge div {
  font-weight: 600;
  letter-spacing: 0.3px;
}

@media (max-width: 640px) {
  body { padding: 16px; }
  button, input, textarea { width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
}
