:root {
  --lohn-row-gap: 10px;
}

.lohn-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 12px 90px 12px; /* bottom-nav space */
}

.lohn-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.lohn-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.lohn-filters input[type="search"] {
  flex: 1;
  min-width: 220px;
}

.lohn-list {
  margin-top: 14px;
}

.lohn-group {
  margin: 14px 0;
}

.lohn-group-title {
  font-weight: 700;
  font-size: 14px;
  opacity: 0.9;
  margin: 12px 0 8px;
}

.lohn-row {
  display: grid;
  grid-template-columns: 54px 80px 1.2fr 0.8fr 120px 120px 140px 110px 110px 120px;
  gap: var(--lohn-row-gap);
  align-items: center;
  padding: 10px 10px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  margin: 8px 0;
}

.lohn-row .mini {
  font-size: 12px;
  opacity: 0.75;
}

.lohn-order {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lohn-order button {
  padding: 4px 6px;
  border-radius: 10px;
}

.lohn-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.lohn-scope {
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.03);
  font-size: 12px;
}

.badge.public { background: rgba(0, 160, 60, 0.08); }
.badge.private { background: rgba(0, 120, 255, 0.08); }

.lohn-row input, .lohn-row select {
  height: 36px;
}

.lohn-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.lohn-actions button {
  padding: 6px 10px;
  border-radius: 12px;
}

@media (max-width: 980px) {
  .lohn-row {
    grid-template-columns: 54px 70px 1fr 0.7fr 110px 110px 140px 110px 110px 120px;
  }
}

@media (max-width: 760px) {
  .lohn-row {
    grid-template-columns: 54px 1fr;
    grid-auto-rows: minmax(34px, auto);
  }
  .lohn-row > * { grid-column: 1 / -1; }
  .lohn-order { flex-direction: row; }
  .lohn-actions { justify-content: flex-start; }
}

.lohn-help {
  margin-top: 10px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.02);
}

.lohn-help summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.lohn-help[open] {
  background: rgba(0,0,0,0.03);
}
