.oqoc-shell,
.oqoc-shell *,
.oqoc-card,
.oqoc-card * {
  box-sizing: border-box;
}

.oqoc-shell,
.oqoc-card {
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  margin: 16px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.oqoc-form {
  width: 100%;
}

.oqoc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.oqoc-form label,
.oqoc-checkbox-field legend {
  font-weight: 700;
  color: #111827;
}

.oqoc-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.oqoc-form label span {
  font-weight: 400;
  color: #6b7280;
}

.oqoc-form input[type="text"],
.oqoc-form input[type="number"],
.oqoc-form select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.35;
  background: #fff;
}

.oqoc-form input:focus,
.oqoc-form select:focus {
  border-color: #111827;
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, .08);
}

.oqoc-checkbox-field {
  grid-column: 1 / -1;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  margin: 0;
  min-width: 0;
}

.oqoc-checkbox-field legend {
  padding: 0 6px;
}

.oqoc-checkboxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 8px;
}

.oqoc-form .oqoc-checkbox-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  line-height: 1.25;
}

.oqoc-form .oqoc-checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: auto;
  flex: 0 0 auto;
}

.oqoc-actions {
  margin: 18px 0 0;
}

.oqoc-button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 700;
}

.oqoc-button:hover { opacity: .9; }
.oqoc-muted { color: #6b7280; }
.oqoc-table-wrap { overflow-x: auto; }

.oqoc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.oqoc-table th,
.oqoc-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.oqoc-table th {
  background: #f9fafb;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.oqoc-table th:hover { background: #f3f4f6; }
.oqoc-sort-asc::after { content: ' ▲'; font-size: 11px; }
.oqoc-sort-desc::after { content: ' ▼'; font-size: 11px; }
.oqoc-why { min-width: 260px; color: #374151; }

@media (max-width: 900px) {
  .oqoc-grid,
  .oqoc-checkboxes {
    grid-template-columns: 1fr;
  }

  .oqoc-shell,
  .oqoc-card {
    padding: 16px;
  }
}
