* { box-sizing: border-box; }
body {
  margin: 0;
  background: #0f1012;
  color: #e5e7eb;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}
a { color: inherit; }
.page { min-height: 100vh; padding: 24px; position: relative; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.title { margin: 0; font-size: 24px; }
.subtitle { margin: 4px 0 0; color: #9ca3af; }
.header-actions { display: flex; gap: 8px; }
.primary-btn, .ghost-btn {
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid #2d3748;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.05s ease, opacity 0.1s ease;
}
.primary-btn { background: #16a34a; color: #0f1012; border: none; }
.primary-btn:disabled, .ghost-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ghost-btn { background: #1f2937; color: #e5e7eb; }
.banner {
  background: #1f2937;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.hidden { display: none; }
/* Более высокий приоритет для скрытия выдвижной панели */
.drawer.hidden { display: none !important; }
.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.summary-item {
  background: #16171a;
  border: 1px solid #22242b;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.summary-label { font-size: 12px; color: #9ca3af; }
.summary-value { font-size: 20px; font-weight: 700; }
.filters {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.input, .select {
  background: #16171a;
  border: 1px solid #2d3748;
  border-radius: 10px;
  padding: 10px 12px;
  color: #e5e7eb;
}
.select-wrapper { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #9ca3af; }
.select-label { margin-left: 4px; }
.table-wrapper {
  background: #121316;
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid #1f2937; }
th { color: #9ca3af; text-align: left; cursor: pointer; user-select: none; }
.task-row { cursor: pointer; }
.task-id-cell { font-weight: 700; color: #67e8f9; }
tbody tr:hover { background: #1a1b1f; }
.drawer {
  position: fixed; top: 0; right: 0; width: 360px; height: 100%;
  background: #0f1012; border-left: 1px solid #1f2937;
  box-shadow: -8px 0 24px rgba(0,0,0,0.35);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.drawer-header { display: flex; justify-content: space-between; align-items: center; }
.drawer-id { font-size: 14px; color: #9ca3af; }
.drawer-title { font-size: 18px; font-weight: 600; }
.drawer-body { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; justify-content: space-between; color: #e5e7eb; }
.soft { color: #9ca3af; }
.mapping {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #2d3748;
  border-radius: 12px;
  background: #16171a;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mapping-title { font-weight: 600; }
.mapping-list { display: flex; flex-direction: column; gap: 6px; }
.mapping-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.mapping-row input {
  width: 100%;
  background: #16171a;
  border: 1px solid #2d3748;
  border-radius: 10px;
  padding: 10px 12px;
  color: #e5e7eb;
}

