.panel-host .tool-main {
  padding: 0;
}
.tool-layout { display: flex; min-height: 100vh; }
.tool-side {
  width: 260px;
  flex: none;
  background: #fff;
  box-shadow: 5px 0 25px rgba(94, 92, 154, 0.1);
  padding: 22px 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.tool-brand {
  display: block;
  padding: 0 24px 18px;
  font-weight: 800;
  color: #0e1726;
  text-decoration: none;
}
.tool-side h2 {
  margin: 8px 0 0;
  padding: 14px 24px 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #888ea8;
  font-weight: 700;
}
.tool-side a.tool-link {
  display: block;
  padding: 10px 24px;
  color: #506690;
  text-decoration: none;
}
.tool-side a.tool-link:hover,
.tool-side a.tool-link.active {
  color: #f18944;
  background: #fff7f1;
}
.tool-main { flex: 1; min-width: 0; padding: 24px; }
.tool-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.tool-head h1 { margin: 0; font-size: 22px; font-weight: 700; }
.tool-note { margin: 0 0 16px; color: #506690; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-grid .full { grid-column: 1 / -1; }
.condition { grid-template-columns: 1fr 1fr auto; align-items: center; margin-top: 10px; }
.tool-main label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.tool-main label.tool-actions { flex-direction: row; align-items: center; }
.tool-main .form-input,
.tool-main .form-select,
.tool-main .form-textarea,
.tool-main textarea { width: 100%; }
.tool-main textarea { min-height: 96px; }
.tool-main h2 { margin: 0 0 16px; font-size: 18px; font-weight: 700; }
section.panel { margin-bottom: 20px; }
.tool-table .btn + .btn { margin-left: 8px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tool-table { width: 100%; border-collapse: collapse; }
.tool-table th {
  text-align: left;
  color: #888ea8;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  border-bottom: 1px solid #e0e6ed;
}
.tool-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f2f3;
  vertical-align: middle;
}
.tool-cover { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; background: #192335; }
#message { min-height: 24px; margin: 0 0 12px; font-weight: 700; }
#message.error { color: #e7515a; }
#message.ok { color: #00ab55; }
@media (max-width: 900px) {
  .tool-layout { display: block; }
  .tool-side { width: auto; height: auto; position: static; }
  .tool-grid { grid-template-columns: 1fr; }
}

.lt-admin .lt-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lt-admin .lt-stat-chip {
  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  color: #506690;
  min-width: 96px;
}
.lt-admin .lt-stat-chip span {
  display: block;
  color: #f18944;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}
.lt-admin .lt-split {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 16px;
  align-items: start;
}
.lt-admin .lt-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.lt-admin .lt-editor-head h2 { margin: 0; }
.lt-admin .lt-options-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.lt-admin .lt-options-head span { color: #888ea8; font-size: 12px; font-weight: 600; }
.lt-admin .lt-option-rows { display: grid; gap: 8px; }
.lt-admin .lt-option-row {
  display: grid;
  grid-template-columns: 22px 36px 1fr auto;
  gap: 8px;
  align-items: center;
}
.lt-admin .lt-letter-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff7f1;
  color: #f18944;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.lt-admin .lt-filters .form-input,
.lt-admin .lt-filters .form-select { min-width: 140px; max-width: 220px; }
.lt-admin .lt-q-cell {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lt-admin .lt-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.lt-admin .lt-badge.ok { background: #e8faf1; color: #00ab55; }
.lt-admin .lt-badge.off { background: #f1f2f3; color: #888ea8; }
.lt-admin .lt-row-actions { white-space: nowrap; }
.lt-admin .lt-row-actions .btn + .btn { margin-left: 6px; }
.lt-admin .lt-field-hint {
  font-weight: 600;
  color: #888ea8;
  font-size: 12px;
  margin-left: 6px;
}
@media (max-width: 1100px) {
  .lt-admin .lt-split { grid-template-columns: 1fr; }
}
