* {
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  background: #0b0b0b;
  color: #f2f2f2;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: #0b0b0b;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #1f1f1f;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  flex: 1;
}

.tabs {
  display: flex;
  gap: 6px;
}

.tab {
  background: #1f1f1f;
  color: #f2f2f2;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
}

.tab.active {
  background: #2b2b2b;
}

.tab.disabled {
  opacity: 0.4;
}

.status {
  color: #bdbdbd;
  font-size: 13px;
}

.content {
  padding: 16px;
  flex: 1;
  max-width: 1920px;
  margin: 0 auto;
}

.panel {
  background: #151515;
  border-radius: 10px;
  padding: 14px;
}

.login-panel {
  max-width: 360px;
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr 1.2fr;
  gap: 14px;
  min-height: 80vh;
}

.left-panel,
.center-panel,
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

h2 {
  margin: 0;
  font-size: 16px;
}

h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  font-size: 12px;
  color: #bdbdbd;
}

input {
  background: #101010;
  border: 1px solid #2b2b2b;
  color: #f2f2f2;
  padding: 8px;
  border-radius: 6px;
  width: 100%;
}

button {
  background: #1f1f1f;
  color: #f2f2f2;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #2b2b2b;
}

.error {
  margin-top: 8px;
  color: #ff453a;
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
}

.table-wrap.small {
  max-height: 240px;
}

.table-wrap.medium {
  max-height: 260px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 380px;
}

th,
td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #2b2b2b;
  font-size: 12px;
}

th {
  color: #bdbdbd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chart-wrap {
  position: relative;
  height: 520px;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  padding: 8px;
}

.empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b6b6b;
  font-size: 12px;
}

.panel-block {
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  padding: 10px;
}

.button-stack {
  display: grid;
  gap: 8px;
}

.description {
  font-size: 12px;
  color: #bdbdbd;
  line-height: 1.4;
}

.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 12px;
}

.kv div {
  color: #bdbdbd;
}

.kv span {
  color: #f2f2f2;
}

.hidden {
  display: none;
}
